
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3
mark_resource(ia64_opcode *idesc,ia64_dependency *dep,rsrc *spec,int depind,int path)

{
  uint uVar1;
  int iVar2;
  rsrc *prVar3;
  int depind_00;
  rsrc *prVar4;
  byte bVar5;
  
  bVar5 = 0;
  if (regdepslen == regdepstotlen) {
    regdepstotlen = regdepslen + 0x14;
    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);
  }
  depind_00 = regdepslen;
  prVar3 = regdeps + regdepslen;
  prVar4 = prVar3;
  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {
    prVar4->depind = (int)idesc->name;
    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);
    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);
  }
  prVar3->depind = (int)dep;
  prVar3->path = (int)spec;
  uVar1 = md.slot[md.curr_slot].src_line;
  prVar3->file = md.slot[md.curr_slot].src_file;
  prVar3->line = uVar1;
  if ((md._48_1_ & 2) != 0) {
    print_dependency("Adding",depind_00);
    depind_00 = regdepslen;
  }
  regdepslen = depind_00 + 1;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (DAT_00087720 == DAT_0008771c) {
    DAT_0008771c = DAT_00087720 + 0x14;
    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);
  }
  iVar4 = DAT_00087720;
  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);
  puVar5 = puVar3;
  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar5 = *param_1;
    param_1 = param_1 + (uint)bVar6 * -2 + 1;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  *puVar3 = param_2;
  puVar3[0x10] = param_3;
  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);
  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);
  puVar3[9] = uVar1;
  if ((DAT_00087970 & 2) != 0) {
    FUN_00047a30();
    iVar4 = DAT_00087720;
  }
  DAT_00087720 = iVar4 + 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00016030
ADD EBX,0x34945
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
MOV EBP,dword ptr [EBX + 0x9720]
MOV EAX,dword ptr [EBX + 0x9724]
CMP EBP,dword ptr [EBX + 0x971c]
JZ 0x00049750
IMUL EDX,EBP,0x44
MOV ECX,0x11
ADD EDX,EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDI,EDX
MOVSD.REP ES:EDI,ESI
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EDX + 0x40],EAX
IMUL EAX,dword ptr [EBX + 0x9978],0xf4
MOV ECX,dword ptr [EBX + EAX*0x1 + 0x9a50]
MOV EAX,dword ptr [EBX + EAX*0x1 + 0x9a54]
MOV dword ptr [EDX + 0x20],ECX
MOV dword ptr [EDX + 0x24],EAX
TEST byte ptr [EBX + 0x9970],0x2
JNZ 0x00049738
ADD EBP,0x1
MOV dword ptr [EBX + 0x9720],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EBP
LEA EAX,[EBX + 0xfffe5847]
CALL 0x00047a30
MOV EBP,dword ptr [EBX + 0x9720]
JMP 0x00049722
ADD EBP,0x14
SUB ESP,0x8
MOV dword ptr [EBX + 0x971c],EBP
IMUL EBP,EBP,0x44
PUSH EBP
PUSH EAX
CALL 0x00014210
MOV EBP,dword ptr [EBX + 0x9720]
ADD ESP,0x10
MOV dword ptr [EBX + 0x9724],EAX
JMP 0x000496e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" if (parenthesized_expression "(DAT_00087720 == DAT_0008771c)" ( (binary_expression "DAT_00087720 == DAT_0008771c" identifier == identifier) )) (compound_statement "{\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" { (expression_statement "DAT_0008771c = DAT_00087720 + 0x14;" (assignment_expression "DAT_0008771c = DAT_00087720 + 0x14" identifier = (binary_expression "DAT_00087720 + 0x14" identifier + number_literal)) ;) (expression_statement "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);" (assignment_expression "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44)" identifier = (call_expression "xrealloc(DAT_00087724,DAT_0008771c * 0x44)" identifier (argument_list "(DAT_00087724,DAT_0008771c * 0x44)" ( identifier , (binary_expression "DAT_0008771c * 0x44" identifier * number_literal) )))) ;) })) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" identifier = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);" (assignment_expression "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" identifier = (cast_expression "(undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00087720 * 0x44 + DAT_00087724)" ( (binary_expression "DAT_00087720 * 0x44 + DAT_00087724" (binary_expression "DAT_00087720 * 0x44" identifier * number_literal) + identifier) )))) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (for_statement "for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x11" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = *param_1;" (assignment_expression "*puVar5 = *param_1" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar6 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar6 * -2 + 1" (binary_expression "param_1 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*puVar3 = param_2;" (assignment_expression "*puVar3 = param_2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[0x10] = param_3;" (assignment_expression "puVar3[0x10] = param_3" (subscript_expression "puVar3[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);" (assignment_expression "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" identifier = (pointer_expression "*(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" * (cast_expression "(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00087a54 + DAT_00087978 * 0xf4)" ( (binary_expression "&DAT_00087a54 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a54" & identifier) + (binary_expression "DAT_00087978 * 0xf4" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);" (assignment_expression "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" (subscript_expression "puVar3[8]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" * (cast_expression "(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00087a50 + DAT_00087978 * 0xf4)" ( (binary_expression "&DAT_00087a50 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a50" & identifier) + (binary_expression "DAT_00087978 * 0xf4" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[9] = uVar1;" (assignment_expression "puVar3[9] = uVar1" (subscript_expression "puVar3[9]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" if (parenthesized_expression "((DAT_00087970 & 2) != 0)" ( (binary_expression "(DAT_00087970 & 2) != 0" (parenthesized_expression "(DAT_00087970 & 2)" ( (binary_expression "DAT_00087970 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" { (expression_statement "FUN_00047a30();" (call_expression "FUN_00047a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" identifier = identifier) ;) })) (expression_statement "DAT_00087720 = iVar4 + 1;" (assignment_expression "DAT_00087720 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3\nmark_resource(ia64_opcode *idesc,ia64_dependency *dep,rsrc *spec,int depind,int path)\n\n{\n  uint uVar1;\n  int iVar2;\n  rsrc *prVar3;\n  int depind_00;\n  rsrc *prVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (regdepslen == regdepstotlen) {\n    regdepstotlen = regdepslen + 0x14;\n    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);\n  }\n  depind_00 = regdepslen;\n  prVar3 = regdeps + regdepslen;\n  prVar4 = prVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    prVar4->depind = (int)idesc->name;\n    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);\n    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);\n  }\n  prVar3->depind = (int)dep;\n  prVar3->path = (int)spec;\n  uVar1 = md.slot[md.curr_slot].src_line;\n  prVar3->file = md.slot[md.curr_slot].src_file;\n  prVar3->line = uVar1;\n  if ((md._48_1_ & 2) != 0) {\n    print_dependency("Adding",depind_00);\n    depind_00 = regdepslen;\n  }\n  regdepslen = depind_00 + 1;\n  return;\n}\n\n" comment comment (function_definition "void __regparm3\nmark_resource(ia64_opcode *idesc,ia64_dependency *dep,rsrc *spec,int depind,int path)\n\n{\n  uint uVar1;\n  int iVar2;\n  rsrc *prVar3;\n  int depind_00;\n  rsrc *prVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (regdepslen == regdepstotlen) {\n    regdepstotlen = regdepslen + 0x14;\n    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);\n  }\n  depind_00 = regdepslen;\n  prVar3 = regdeps + regdepslen;\n  prVar4 = prVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    prVar4->depind = (int)idesc->name;\n    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);\n    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);\n  }\n  prVar3->depind = (int)dep;\n  prVar3->path = (int)spec;\n  uVar1 = md.slot[md.curr_slot].src_line;\n  prVar3->file = md.slot[md.curr_slot].src_file;\n  prVar3->line = uVar1;\n  if ((md._48_1_ & 2) != 0) {\n    print_dependency("Adding",depind_00);\n    depind_00 = regdepslen;\n  }\n  regdepslen = depind_00 + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "mark_resource(ia64_opcode *idesc,ia64_dependency *dep,rsrc *spec,int depind,int path)" identifier (parameter_list "(ia64_opcode *idesc,ia64_dependency *dep,rsrc *spec,int depind,int path)" ( (parameter_declaration "ia64_opcode *idesc" type_identifier (pointer_declarator "*idesc" * identifier)) , (parameter_declaration "ia64_dependency *dep" type_identifier (pointer_declarator "*dep" * identifier)) , (parameter_declaration "rsrc *spec" type_identifier (pointer_declarator "*spec" * identifier)) , (parameter_declaration "int depind" primitive_type identifier) , (parameter_declaration "int path" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  rsrc *prVar3;\n  int depind_00;\n  rsrc *prVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (regdepslen == regdepstotlen) {\n    regdepstotlen = regdepslen + 0x14;\n    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);\n  }\n  depind_00 = regdepslen;\n  prVar3 = regdeps + regdepslen;\n  prVar4 = prVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    prVar4->depind = (int)idesc->name;\n    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);\n    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);\n  }\n  prVar3->depind = (int)dep;\n  prVar3->path = (int)spec;\n  uVar1 = md.slot[md.curr_slot].src_line;\n  prVar3->file = md.slot[md.curr_slot].src_file;\n  prVar3->line = uVar1;\n  if ((md._48_1_ & 2) != 0) {\n    print_dependency("Adding",depind_00);\n    depind_00 = regdepslen;\n  }\n  regdepslen = depind_00 + 1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "rsrc *prVar3;" type_identifier (pointer_declarator "*prVar3" * identifier) ;) (declaration "int depind_00;" primitive_type identifier ;) (declaration "rsrc *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (regdepslen == regdepstotlen) {\n    regdepstotlen = regdepslen + 0x14;\n    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);\n  }" if (parenthesized_expression "(regdepslen == regdepstotlen)" ( (binary_expression "regdepslen == regdepstotlen" identifier == identifier) )) (compound_statement "{\n    regdepstotlen = regdepslen + 0x14;\n    regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);\n  }" { (expression_statement "regdepstotlen = regdepslen + 0x14;" (assignment_expression "regdepstotlen = regdepslen + 0x14" identifier = (binary_expression "regdepslen + 0x14" identifier + number_literal)) ;) (expression_statement "regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44);" (assignment_expression "regdeps = (rsrc *)xrealloc(regdeps,regdepstotlen * 0x44)" identifier = (cast_expression "(rsrc *)xrealloc(regdeps,regdepstotlen * 0x44)" ( (type_descriptor "rsrc *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(regdeps,regdepstotlen * 0x44)" identifier (argument_list "(regdeps,regdepstotlen * 0x44)" ( identifier , (binary_expression "regdepstotlen * 0x44" identifier * number_literal) ))))) ;) })) (expression_statement "depind_00 = regdepslen;" (assignment_expression "depind_00 = regdepslen" identifier = identifier) ;) (expression_statement "prVar3 = regdeps + regdepslen;" (assignment_expression "prVar3 = regdeps + regdepslen" identifier = (binary_expression "regdeps + regdepslen" identifier + identifier)) ;) (expression_statement "prVar4 = prVar3;" (assignment_expression "prVar4 = prVar3" identifier = identifier) ;) (for_statement "for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    prVar4->depind = (int)idesc->name;\n    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);\n    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);\n  }" for ( (assignment_expression "iVar2 = 0x11" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    prVar4->depind = (int)idesc->name;\n    idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);\n    prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);\n  }" { (expression_statement "prVar4->depind = (int)idesc->name;" (assignment_expression "prVar4->depind = (int)idesc->name" (field_expression "prVar4->depind" identifier -> field_identifier) = (cast_expression "(int)idesc->name" ( (type_descriptor "int" primitive_type) ) (field_expression "idesc->name" identifier -> field_identifier))) ;) (expression_statement "idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4);" (assignment_expression "idesc = (ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(ia64_opcode *)((int)idesc + (uint)bVar5 * -8 + 4)" ( (type_descriptor "ia64_opcode *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)idesc + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)idesc + (uint)bVar5 * -8 + 4" (binary_expression "(int)idesc + (uint)bVar5 * -8" (cast_expression "(int)idesc" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4);" (assignment_expression "prVar4 = (rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(rsrc *)((int)prVar4 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "rsrc *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)prVar4 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)prVar4 + (uint)bVar5 * -8 + 4" (binary_expression "(int)prVar4 + (uint)bVar5 * -8" (cast_expression "(int)prVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "prVar3->depind = (int)dep;" (assignment_expression "prVar3->depind = (int)dep" (field_expression "prVar3->depind" identifier -> field_identifier) = (cast_expression "(int)dep" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "prVar3->path = (int)spec;" (assignment_expression "prVar3->path = (int)spec" (field_expression "prVar3->path" identifier -> field_identifier) = (cast_expression "(int)spec" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar1 = md.slot[md.curr_slot].src_line;" (assignment_expression "uVar1 = md.slot[md.curr_slot].src_line" identifier = (field_expression "md.slot[md.curr_slot].src_line" (subscript_expression "md.slot[md.curr_slot]" (field_expression "md.slot" identifier . field_identifier) [ (field_expression "md.curr_slot" identifier . field_identifier) ]) . field_identifier)) ;) (expression_statement "prVar3->file = md.slot[md.curr_slot].src_file;" (assignment_expression "prVar3->file = md.slot[md.curr_slot].src_file" (field_expression "prVar3->file" identifier -> field_identifier) = (field_expression "md.slot[md.curr_slot].src_file" (subscript_expression "md.slot[md.curr_slot]" (field_expression "md.slot" identifier . field_identifier) [ (field_expression "md.curr_slot" identifier . field_identifier) ]) . field_identifier)) ;) (expression_statement "prVar3->line = uVar1;" (assignment_expression "prVar3->line = uVar1" (field_expression "prVar3->line" identifier -> field_identifier) = identifier) ;) (if_statement "if ((md._48_1_ & 2) != 0) {\n    print_dependency("Adding",depind_00);\n    depind_00 = regdepslen;\n  }" if (parenthesized_expression "((md._48_1_ & 2) != 0)" ( (binary_expression "(md._48_1_ & 2) != 0" (parenthesized_expression "(md._48_1_ & 2)" ( (binary_expression "md._48_1_ & 2" (field_expression "md._48_1_" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    print_dependency("Adding",depind_00);\n    depind_00 = regdepslen;\n  }" { (expression_statement "print_dependency("Adding",depind_00);" (call_expression "print_dependency("Adding",depind_00)" identifier (argument_list "("Adding",depind_00)" ( (string_literal ""Adding"" " string_content ") , identifier ))) ;) (expression_statement "depind_00 = regdepslen;" (assignment_expression "depind_00 = regdepslen" identifier = identifier) ;) })) (expression_statement "regdepslen = depind_00 + 1;" (assignment_expression "regdepslen = depind_00 + 1" identifier = (binary_expression "depind_00 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" if (parenthesized_expression "(DAT_00087720 == DAT_0008771c)" ( (binary_expression "DAT_00087720 == DAT_0008771c" identifier == identifier) )) (compound_statement "{\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" { (expression_statement "DAT_0008771c = DAT_00087720 + 0x14;" (assignment_expression "DAT_0008771c = DAT_00087720 + 0x14" identifier = (binary_expression "DAT_00087720 + 0x14" identifier + number_literal)) ;) (expression_statement "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);" (assignment_expression "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44)" identifier = (call_expression "xrealloc(DAT_00087724,DAT_0008771c * 0x44)" identifier (argument_list "(DAT_00087724,DAT_0008771c * 0x44)" ( identifier , (binary_expression "DAT_0008771c * 0x44" identifier * number_literal) )))) ;) })) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" identifier = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);" (assignment_expression "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" identifier = (cast_expression "(undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00087720 * 0x44 + DAT_00087724)" ( (binary_expression "DAT_00087720 * 0x44 + DAT_00087724" (binary_expression "DAT_00087720 * 0x44" identifier * number_literal) + identifier) )))) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (for_statement "for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x11" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = *param_1;" (assignment_expression "*puVar5 = *param_1" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar6 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar6 * -2 + 1" (binary_expression "param_1 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*puVar3 = param_2;" (assignment_expression "*puVar3 = param_2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[0x10] = param_3;" (assignment_expression "puVar3[0x10] = param_3" (subscript_expression "puVar3[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);" (assignment_expression "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" identifier = (pointer_expression "*(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" * (cast_expression "(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00087a54 + DAT_00087978 * 0xf4)" ( (binary_expression "&DAT_00087a54 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a54" & identifier) + (binary_expression "DAT_00087978 * 0xf4" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);" (assignment_expression "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" (subscript_expression "puVar3[8]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" * (cast_expression "(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00087a50 + DAT_00087978 * 0xf4)" ( (binary_expression "&DAT_00087a50 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a50" & identifier) + (binary_expression "DAT_00087978 * 0xf4" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[9] = uVar1;" (assignment_expression "puVar3[9] = uVar1" (subscript_expression "puVar3[9]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" if (parenthesized_expression "((DAT_00087970 & 2) != 0)" ( (binary_expression "(DAT_00087970 & 2) != 0" (parenthesized_expression "(DAT_00087970 & 2)" ( (binary_expression "DAT_00087970 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" { (expression_statement "FUN_00047a30();" (call_expression "FUN_00047a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" identifier = identifier) ;) })) (expression_statement "DAT_00087720 = iVar4 + 1;" (assignment_expression "DAT_00087720 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000496b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000496b0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }\n  iVar4 = DAT_00087720;\n  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);\n  puVar5 = puVar3;\n  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  *puVar3 = param_2;\n  puVar3[0x10] = param_3;\n  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);\n  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);\n  puVar3[9] = uVar1;\n  if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }\n  DAT_00087720 = iVar4 + 1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_00087720 == DAT_0008771c) {\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" (if "if") (parenthesized_expression "(DAT_00087720 == DAT_0008771c)" (( "(") (binary_expression "DAT_00087720 == DAT_0008771c" (identifier "DAT_00087720") (== "==") (identifier "DAT_0008771c")) () ")")) (compound_statement "{\n    DAT_0008771c = DAT_00087720 + 0x14;\n    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);\n  }" ({ "{") (expression_statement "DAT_0008771c = DAT_00087720 + 0x14;" (assignment_expression "DAT_0008771c = DAT_00087720 + 0x14" (identifier "DAT_0008771c") (= "=") (binary_expression "DAT_00087720 + 0x14" (identifier "DAT_00087720") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);" (assignment_expression "DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44)" (identifier "DAT_00087724") (= "=") (call_expression "xrealloc(DAT_00087724,DAT_0008771c * 0x44)" (identifier "xrealloc") (argument_list "(DAT_00087724,DAT_0008771c * 0x44)" (( "(") (identifier "DAT_00087724") (, ",") (binary_expression "DAT_0008771c * 0x44" (identifier "DAT_0008771c") (* "*") (number_literal "0x44")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" (identifier "iVar4") (= "=") (identifier "DAT_00087720")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);" (assignment_expression "puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00087720 * 0x44 + DAT_00087724)" (( "(") (binary_expression "DAT_00087720 * 0x44 + DAT_00087724" (binary_expression "DAT_00087720 * 0x44" (identifier "DAT_00087720") (* "*") (number_literal "0x44")) (+ "+") (identifier "DAT_00087724")) () ")")))) (; ";")) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" (identifier "puVar5") (= "=") (identifier "puVar3")) (; ";")) (for_statement "for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = 0x11" (identifier "iVar2") (= "=") (number_literal "0x11")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar5 = *param_1;\n    param_1 = param_1 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = *param_1;" (assignment_expression "*puVar5 = *param_1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + (uint)bVar6 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar6 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (uint)bVar6 * -2 + 1" (binary_expression "param_1 + (uint)bVar6 * -2" (identifier "param_1") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" (identifier "puVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*puVar3 = param_2;" (assignment_expression "*puVar3 = param_2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3[0x10] = param_3;" (assignment_expression "puVar3[0x10] = param_3" (subscript_expression "puVar3[0x10]" (identifier "puVar3") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);" (assignment_expression "uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" (* "*") (cast_expression "(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00087a54 + DAT_00087978 * 0xf4)" (( "(") (binary_expression "&DAT_00087a54 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a54" (& "&") (identifier "DAT_00087a54")) (+ "+") (binary_expression "DAT_00087978 * 0xf4" (identifier "DAT_00087978") (* "*") (number_literal "0xf4"))) () ")"))))) (; ";")) (expression_statement "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);" (assignment_expression "puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" (subscript_expression "puVar3[8]" (identifier "puVar3") ([ "[") (number_literal "8") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" (* "*") (cast_expression "(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00087a50 + DAT_00087978 * 0xf4)" (( "(") (binary_expression "&DAT_00087a50 + DAT_00087978 * 0xf4" (pointer_expression "&DAT_00087a50" (& "&") (identifier "DAT_00087a50")) (+ "+") (binary_expression "DAT_00087978 * 0xf4" (identifier "DAT_00087978") (* "*") (number_literal "0xf4"))) () ")"))))) (; ";")) (expression_statement "puVar3[9] = uVar1;" (assignment_expression "puVar3[9] = uVar1" (subscript_expression "puVar3[9]" (identifier "puVar3") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if ((DAT_00087970 & 2) != 0) {\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" (if "if") (parenthesized_expression "((DAT_00087970 & 2) != 0)" (( "(") (binary_expression "(DAT_00087970 & 2) != 0" (parenthesized_expression "(DAT_00087970 & 2)" (( "(") (binary_expression "DAT_00087970 & 2" (identifier "DAT_00087970") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00047a30();\n    iVar4 = DAT_00087720;\n  }" ({ "{") (expression_statement "FUN_00047a30();" (call_expression "FUN_00047a30()" (identifier "FUN_00047a30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = DAT_00087720;" (assignment_expression "iVar4 = DAT_00087720" (identifier "iVar4") (= "=") (identifier "DAT_00087720")) (; ";")) (} "}"))) (expression_statement "DAT_00087720 = iVar4 + 1;" (assignment_expression "DAT_00087720 = iVar4 + 1" (identifier "DAT_00087720") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3
function_1(type_1 *idesc,type_2 *dep,type_3 *spec,int depind,int path)

{
  type_4 uVar1;
  int var_5;
  type_3 *prVar3;
  int var_7;
  type_3 *prVar4;
  type_5 bVar5;
  
  bVar5 = 0;
  if (var_1 == var_2) {
    var_2 = var_1 + 0x14;
    var_4 = (type_3 *)var_3(var_4,var_2 * 0x44);
  }
  var_7 = var_1;
  prVar3 = var_4 + var_1;
  prVar4 = prVar3;
  for (var_5 = 0x11; var_5 != 0; var_5 = var_5 + -1) {
    prVar4->depind = (int)idesc->name;
    idesc = (type_1 *)((int)idesc + (type_4)bVar5 * -8 + 4);
    prVar4 = (type_3 *)((int)prVar4 + (type_4)bVar5 * -8 + 4);
  }
  prVar3->depind = (int)dep;
  prVar3->path = (int)spec;
  uVar1 = md.slot[md.curr_slot].src_line;
  prVar3->file = md.slot[md.curr_slot].src_file;
  prVar3->line = uVar1;
  if ((md._48_1_ & 2) != 0) {
    var_6("Adding",var_7);
    var_7 = var_1;
  }
  var_1 = var_7 + 1;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (DAT_00087720 == DAT_0008771c) {
    DAT_0008771c = DAT_00087720 + 0x14;
    DAT_00087724 = xrealloc(DAT_00087724,DAT_0008771c * 0x44);
  }
  iVar4 = DAT_00087720;
  puVar3 = (undefined4 *)(DAT_00087720 * 0x44 + DAT_00087724);
  puVar5 = puVar3;
  for (iVar2 = 0x11; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar5 = *param_1;
    param_1 = param_1 + (uint)bVar6 * -2 + 1;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  *puVar3 = param_2;
  puVar3[0x10] = param_3;
  uVar1 = *(undefined4 *)(&DAT_00087a54 + DAT_00087978 * 0xf4);
  puVar3[8] = *(undefined4 *)(&DAT_00087a50 + DAT_00087978 * 0xf4);
  puVar3[9] = uVar1;
  if ((DAT_00087970 & 2) != 0) {
    FUN_00047a30();
    iVar4 = DAT_00087720;
  }
  DAT_00087720 = iVar4 + 1;
  return;
}

