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

void __regparm3 ppc_apuinfo_section_add(uint apu,uint version)

{
  ulong *puVar1;
  uint uVar2;
  uint uVar3;
  
  uVar3 = apu << 0x10 | 1;
  if (ppc_apuinfo_num == 0) {
    if (ppc_apuinfo_num_alloc == 0) {
      ppc_apuinfo_num_alloc = 4;
      ppc_apuinfo_list = (ulong *)xmalloc(0x10);
    }
LAB_00042d56:
    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;
    ppc_apuinfo_num = ppc_apuinfo_num + 1;
    *puVar1 = uVar3;
  }
  else if (uVar3 != *ppc_apuinfo_list) {
    uVar2 = 0;
    do {
      uVar2 = uVar2 + 1;
      if (uVar2 == ppc_apuinfo_num) {
        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {
          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;
          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);
        }
        goto LAB_00042d56;
      }
    } while (uVar3 != ppc_apuinfo_list[uVar2]);
  }
  return;
}



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

void __regparm3 FUN_00042d00(int param_1)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = param_1 << 0x10 | 1;
  if (DAT_00078078 == 0) {
    if (DAT_00078080 == 0) {
      DAT_00078080 = 4;
      DAT_0007807c = (uint *)xmalloc(0x10);
    }
LAB_00042d56:
    puVar1 = DAT_0007807c + DAT_00078078;
    DAT_00078078 = DAT_00078078 + 1;
    *puVar1 = uVar3;
  }
  else if (uVar3 != *DAT_0007807c) {
    iVar2 = 0;
    do {
      iVar2 = iVar2 + 1;
      if (iVar2 == DAT_00078078) {
        if (DAT_00078080 == DAT_00078078) {
          DAT_00078080 = DAT_00078078 + 4;
          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);
        }
        goto LAB_00042d56;
      }
    } while (uVar3 != DAT_0007807c[iVar2]);
  }
  return;
}


PUSH EBP
SHL EAX,0x10
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
OR ESI,0x1
CALL 0x00016090
ADD EBX,0x2c2ef
SUB ESP,0xc
LEA EDI,[EBX + 0x9078]
MOV ECX,dword ptr [EDI]
TEST ECX,ECX
JZ 0x00042d8c
LEA EBP,[EBX + 0x907c]
MOV EAX,dword ptr [EBP]
CMP ESI,dword ptr [EAX]
JZ 0x00042d5e
XOR EDX,EDX
JMP 0x00042d45
CMP ESI,dword ptr [EAX + EDX*0x4]
JZ 0x00042d5e
ADD EDX,0x1
CMP EDX,ECX
JNZ 0x00042d40
LEA EDX,[EBX + 0x9080]
CMP dword ptr [EDX],ECX
JZ 0x00042d70
LEA EDX,[ECX + 0x1]
MOV dword ptr [EDI],EDX
MOV dword ptr [EAX + ECX*0x4],ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ECX,0x4
SUB ESP,0x8
MOV dword ptr [EDX],ECX
SHL ECX,0x2
PUSH ECX
PUSH EAX
CALL 0x00014230
MOV ECX,dword ptr [EDI]
ADD ESP,0x10
MOV dword ptr [EBP],EAX
JMP 0x00042d56
LEA EAX,[EBX + 0x9080]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x00042da2
LEA EAX,[EBX + 0x907c]
MOV EAX,dword ptr [EAX]
JMP 0x00042d56
SUB ESP,0xc
MOV dword ptr [EAX],0x4
PUSH 0x10
CALL 0x00014820
LEA EDX,[EBX + 0x907c]
MOV ECX,dword ptr [EDI]
ADD ESP,0x10
MOV dword ptr [EDX],EAX
JMP 0x00042d56
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00042d00(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00042d00(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042d00(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = param_1 << 0x10 | 1;" (assignment_expression "uVar3 = param_1 << 0x10 | 1" identifier = (binary_expression "param_1 << 0x10 | 1" (binary_expression "param_1 << 0x10" identifier << number_literal) | number_literal)) ;) (if_statement "if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" if (parenthesized_expression "(DAT_00078078 == 0)" ( (binary_expression "DAT_00078078 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }" { (if_statement "if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" if (parenthesized_expression "(DAT_00078080 == 0)" ( (binary_expression "DAT_00078080 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" { (expression_statement "DAT_00078080 = 4;" (assignment_expression "DAT_00078080 = 4" identifier = number_literal) ;) (expression_statement "DAT_0007807c = (uint *)xmalloc(0x10);" (assignment_expression "DAT_0007807c = (uint *)xmalloc(0x10)" identifier = (cast_expression "(uint *)xmalloc(0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) })) (labeled_statement "LAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;" statement_identifier : (expression_statement "puVar1 = DAT_0007807c + DAT_00078078;" (assignment_expression "puVar1 = DAT_0007807c + DAT_00078078" identifier = (binary_expression "DAT_0007807c + DAT_00078078" identifier + identifier)) ;)) (expression_statement "DAT_00078078 = DAT_00078078 + 1;" (assignment_expression "DAT_00078078 = DAT_00078078 + 1" identifier = (binary_expression "DAT_00078078 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }) (else_clause "else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" else (if_statement "if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" if (parenthesized_expression "(uVar3 != *DAT_0007807c)" ( (binary_expression "uVar3 != *DAT_0007807c" identifier != (pointer_expression "*DAT_0007807c" * identifier)) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);" do (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" if (parenthesized_expression "(iVar2 == DAT_00078078)" ( (binary_expression "iVar2 == DAT_00078078" identifier == identifier) )) (compound_statement "{\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" { (if_statement "if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" if (parenthesized_expression "(DAT_00078080 == DAT_00078078)" ( (binary_expression "DAT_00078080 == DAT_00078078" identifier == identifier) )) (compound_statement "{\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" { (expression_statement "DAT_00078080 = DAT_00078078 + 4;" (assignment_expression "DAT_00078080 = DAT_00078078 + 4" identifier = (binary_expression "DAT_00078078 + 4" identifier + number_literal)) ;) (expression_statement "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);" (assignment_expression "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" identifier = (cast_expression "(uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_0007807c,DAT_00078080 * 4)" identifier (argument_list "(DAT_0007807c,DAT_00078080 * 4)" ( identifier , (binary_expression "DAT_00078080 * 4" identifier * number_literal) ))))) ;) })) (goto_statement "goto LAB_00042d56;" goto statement_identifier ;) })) }) while (parenthesized_expression "(uVar3 != DAT_0007807c[iVar2])" ( (binary_expression "uVar3 != DAT_0007807c[iVar2]" identifier != (subscript_expression "DAT_0007807c[iVar2]" identifier [ identifier ])) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 ppc_apuinfo_section_add(uint apu,uint version)\n\n{\n  ulong *puVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = apu << 0x10 | 1;\n  if (ppc_apuinfo_num == 0) {\n    if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;\n    ppc_apuinfo_num = ppc_apuinfo_num + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 ppc_apuinfo_section_add(uint apu,uint version)\n\n{\n  ulong *puVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = apu << 0x10 | 1;\n  if (ppc_apuinfo_num == 0) {\n    if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;\n    ppc_apuinfo_num = ppc_apuinfo_num + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "ppc_apuinfo_section_add(uint apu,uint version)" identifier (parameter_list "(uint apu,uint version)" ( (parameter_declaration "uint apu" type_identifier identifier) , (parameter_declaration "uint version" type_identifier identifier) ))) (compound_statement "{\n  ulong *puVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = apu << 0x10 | 1;\n  if (ppc_apuinfo_num == 0) {\n    if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;\n    ppc_apuinfo_num = ppc_apuinfo_num + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }\n  return;\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = apu << 0x10 | 1;" (assignment_expression "uVar3 = apu << 0x10 | 1" identifier = (binary_expression "apu << 0x10 | 1" (binary_expression "apu << 0x10" identifier << number_literal) | number_literal)) ;) (if_statement "if (ppc_apuinfo_num == 0) {\n    if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;\n    ppc_apuinfo_num = ppc_apuinfo_num + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }" if (parenthesized_expression "(ppc_apuinfo_num == 0)" ( (binary_expression "ppc_apuinfo_num == 0" identifier == number_literal) )) (compound_statement "{\n    if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;\n    ppc_apuinfo_num = ppc_apuinfo_num + 1;\n    *puVar1 = uVar3;\n  }" { (if_statement "if (ppc_apuinfo_num_alloc == 0) {\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }" if (parenthesized_expression "(ppc_apuinfo_num_alloc == 0)" ( (binary_expression "ppc_apuinfo_num_alloc == 0" identifier == number_literal) )) (compound_statement "{\n      ppc_apuinfo_num_alloc = 4;\n      ppc_apuinfo_list = (ulong *)xmalloc(0x10);\n    }" { (expression_statement "ppc_apuinfo_num_alloc = 4;" (assignment_expression "ppc_apuinfo_num_alloc = 4" identifier = number_literal) ;) (expression_statement "ppc_apuinfo_list = (ulong *)xmalloc(0x10);" (assignment_expression "ppc_apuinfo_list = (ulong *)xmalloc(0x10)" identifier = (cast_expression "(ulong *)xmalloc(0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) })) (labeled_statement "LAB_00042d56:\n    puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;" statement_identifier : (expression_statement "puVar1 = ppc_apuinfo_list + ppc_apuinfo_num;" (assignment_expression "puVar1 = ppc_apuinfo_list + ppc_apuinfo_num" identifier = (binary_expression "ppc_apuinfo_list + ppc_apuinfo_num" identifier + identifier)) ;)) (expression_statement "ppc_apuinfo_num = ppc_apuinfo_num + 1;" (assignment_expression "ppc_apuinfo_num = ppc_apuinfo_num + 1" identifier = (binary_expression "ppc_apuinfo_num + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }) (else_clause "else if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }" else (if_statement "if (uVar3 != *ppc_apuinfo_list) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }" if (parenthesized_expression "(uVar3 != *ppc_apuinfo_list)" ( (binary_expression "uVar3 != *ppc_apuinfo_list" identifier != (pointer_expression "*ppc_apuinfo_list" * identifier)) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != ppc_apuinfo_list[uVar2]);" do (compound_statement "{\n      uVar2 = uVar2 + 1;\n      if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == ppc_apuinfo_num) {\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }" if (parenthesized_expression "(uVar2 == ppc_apuinfo_num)" ( (binary_expression "uVar2 == ppc_apuinfo_num" identifier == identifier) )) (compound_statement "{\n        if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }\n        goto LAB_00042d56;\n      }" { (if_statement "if (ppc_apuinfo_num_alloc == ppc_apuinfo_num) {\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }" if (parenthesized_expression "(ppc_apuinfo_num_alloc == ppc_apuinfo_num)" ( (binary_expression "ppc_apuinfo_num_alloc == ppc_apuinfo_num" identifier == identifier) )) (compound_statement "{\n          ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;\n          ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);\n        }" { (expression_statement "ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4;" (assignment_expression "ppc_apuinfo_num_alloc = ppc_apuinfo_num + 4" identifier = (binary_expression "ppc_apuinfo_num + 4" identifier + number_literal)) ;) (expression_statement "ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4);" (assignment_expression "ppc_apuinfo_list = (ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4)" identifier = (cast_expression "(ulong *)xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4)" identifier (argument_list "(ppc_apuinfo_list,ppc_apuinfo_num_alloc * 4)" ( identifier , (binary_expression "ppc_apuinfo_num_alloc * 4" identifier * number_literal) ))))) ;) })) (goto_statement "goto LAB_00042d56;" goto statement_identifier ;) })) }) while (parenthesized_expression "(uVar3 != ppc_apuinfo_list[uVar2])" ( (binary_expression "uVar3 != ppc_apuinfo_list[uVar2]" identifier != (subscript_expression "ppc_apuinfo_list[uVar2]" identifier [ identifier ])) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00042d00(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00042d00(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042d00(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = param_1 << 0x10 | 1;" (assignment_expression "uVar3 = param_1 << 0x10 | 1" identifier = (binary_expression "param_1 << 0x10 | 1" (binary_expression "param_1 << 0x10" identifier << number_literal) | number_literal)) ;) (if_statement "if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" if (parenthesized_expression "(DAT_00078078 == 0)" ( (binary_expression "DAT_00078078 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }" { (if_statement "if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" if (parenthesized_expression "(DAT_00078080 == 0)" ( (binary_expression "DAT_00078080 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" { (expression_statement "DAT_00078080 = 4;" (assignment_expression "DAT_00078080 = 4" identifier = number_literal) ;) (expression_statement "DAT_0007807c = (uint *)xmalloc(0x10);" (assignment_expression "DAT_0007807c = (uint *)xmalloc(0x10)" identifier = (cast_expression "(uint *)xmalloc(0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) })) (labeled_statement "LAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;" statement_identifier : (expression_statement "puVar1 = DAT_0007807c + DAT_00078078;" (assignment_expression "puVar1 = DAT_0007807c + DAT_00078078" identifier = (binary_expression "DAT_0007807c + DAT_00078078" identifier + identifier)) ;)) (expression_statement "DAT_00078078 = DAT_00078078 + 1;" (assignment_expression "DAT_00078078 = DAT_00078078 + 1" identifier = (binary_expression "DAT_00078078 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }) (else_clause "else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" else (if_statement "if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" if (parenthesized_expression "(uVar3 != *DAT_0007807c)" ( (binary_expression "uVar3 != *DAT_0007807c" identifier != (pointer_expression "*DAT_0007807c" * identifier)) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);" do (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" if (parenthesized_expression "(iVar2 == DAT_00078078)" ( (binary_expression "iVar2 == DAT_00078078" identifier == identifier) )) (compound_statement "{\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" { (if_statement "if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" if (parenthesized_expression "(DAT_00078080 == DAT_00078078)" ( (binary_expression "DAT_00078080 == DAT_00078078" identifier == identifier) )) (compound_statement "{\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" { (expression_statement "DAT_00078080 = DAT_00078078 + 4;" (assignment_expression "DAT_00078080 = DAT_00078078 + 4" identifier = (binary_expression "DAT_00078078 + 4" identifier + number_literal)) ;) (expression_statement "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);" (assignment_expression "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" identifier = (cast_expression "(uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_0007807c,DAT_00078080 * 4)" identifier (argument_list "(DAT_0007807c,DAT_00078080 * 4)" ( identifier , (binary_expression "DAT_00078080 * 4" identifier * number_literal) ))))) ;) })) (goto_statement "goto LAB_00042d56;" goto statement_identifier ;) })) }) while (parenthesized_expression "(uVar3 != DAT_0007807c[iVar2])" ( (binary_expression "uVar3 != DAT_0007807c[iVar2]" identifier != (subscript_expression "DAT_0007807c[iVar2]" identifier [ identifier ])) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))))) ;) })) (goto_statement goto statement_identifier ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (subscript_expression IDENT [ IDENT ])) )) ;) })))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00042d00(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00042d00(int param_1)" (identifier "FUN_00042d00") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = param_1 << 0x10 | 1;\n  if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = param_1 << 0x10 | 1;" (assignment_expression "uVar3 = param_1 << 0x10 | 1" (identifier "uVar3") (= "=") (binary_expression "param_1 << 0x10 | 1" (binary_expression "param_1 << 0x10" (identifier "param_1") (<< "<<") (number_literal "0x10")) (| "|") (number_literal "1"))) (; ";")) (if_statement "if (DAT_00078078 == 0) {\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }\n  else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" (if "if") (parenthesized_expression "(DAT_00078078 == 0)" (( "(") (binary_expression "DAT_00078078 == 0" (identifier "DAT_00078078") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }\nLAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;\n    DAT_00078078 = DAT_00078078 + 1;\n    *puVar1 = uVar3;\n  }" ({ "{") (if_statement "if (DAT_00078080 == 0) {\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" (if "if") (parenthesized_expression "(DAT_00078080 == 0)" (( "(") (binary_expression "DAT_00078080 == 0" (identifier "DAT_00078080") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00078080 = 4;\n      DAT_0007807c = (uint *)xmalloc(0x10);\n    }" ({ "{") (expression_statement "DAT_00078080 = 4;" (assignment_expression "DAT_00078080 = 4" (identifier "DAT_00078080") (= "=") (number_literal "4")) (; ";")) (expression_statement "DAT_0007807c = (uint *)xmalloc(0x10);" (assignment_expression "DAT_0007807c = (uint *)xmalloc(0x10)" (identifier "DAT_0007807c") (= "=") (cast_expression "(uint *)xmalloc(0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_00042d56:\n    puVar1 = DAT_0007807c + DAT_00078078;" (statement_identifier "LAB_00042d56") (: ":") (expression_statement "puVar1 = DAT_0007807c + DAT_00078078;" (assignment_expression "puVar1 = DAT_0007807c + DAT_00078078" (identifier "puVar1") (= "=") (binary_expression "DAT_0007807c + DAT_00078078" (identifier "DAT_0007807c") (+ "+") (identifier "DAT_00078078"))) (; ";"))) (expression_statement "DAT_00078078 = DAT_00078078 + 1;" (assignment_expression "DAT_00078078 = DAT_00078078 + 1" (identifier "DAT_00078078") (= "=") (binary_expression "DAT_00078078 + 1" (identifier "DAT_00078078") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" (else "else") (if_statement "if (uVar3 != *DAT_0007807c) {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" (if "if") (parenthesized_expression "(uVar3 != *DAT_0007807c)" (( "(") (binary_expression "uVar3 != *DAT_0007807c" (identifier "uVar3") (!= "!=") (pointer_expression "*DAT_0007807c" (* "*") (identifier "DAT_0007807c"))) () ")")) (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    } while (uVar3 != DAT_0007807c[iVar2]);" (do "do") (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }\n    }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == DAT_00078078) {\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" (if "if") (parenthesized_expression "(iVar2 == DAT_00078078)" (( "(") (binary_expression "iVar2 == DAT_00078078" (identifier "iVar2") (== "==") (identifier "DAT_00078078")) () ")")) (compound_statement "{\n        if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }\n        goto LAB_00042d56;\n      }" ({ "{") (if_statement "if (DAT_00078080 == DAT_00078078) {\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" (if "if") (parenthesized_expression "(DAT_00078080 == DAT_00078078)" (( "(") (binary_expression "DAT_00078080 == DAT_00078078" (identifier "DAT_00078080") (== "==") (identifier "DAT_00078078")) () ")")) (compound_statement "{\n          DAT_00078080 = DAT_00078078 + 4;\n          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);\n        }" ({ "{") (expression_statement "DAT_00078080 = DAT_00078078 + 4;" (assignment_expression "DAT_00078080 = DAT_00078078 + 4" (identifier "DAT_00078080") (= "=") (binary_expression "DAT_00078078 + 4" (identifier "DAT_00078078") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);" (assignment_expression "DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" (identifier "DAT_0007807c") (= "=") (cast_expression "(uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(DAT_0007807c,DAT_00078080 * 4)" (identifier "xrealloc") (argument_list "(DAT_0007807c,DAT_00078080 * 4)" (( "(") (identifier "DAT_0007807c") (, ",") (binary_expression "DAT_00078080 * 4" (identifier "DAT_00078080") (* "*") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (goto_statement "goto LAB_00042d56;" (goto "goto") (statement_identifier "LAB_00042d56") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar3 != DAT_0007807c[iVar2])" (( "(") (binary_expression "uVar3 != DAT_0007807c[iVar2]" (identifier "uVar3") (!= "!=") (subscript_expression "DAT_0007807c[iVar2]" (identifier "DAT_0007807c") ([ "[") (identifier "iVar2") (] "]"))) () ")")) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 var_1,type_1 version)

{
  type_2 *puVar1;
  type_1 var_7;
  type_1 var_6;
  
  var_6 = var_1 << 0x10 | 1;
  if (var_2 == 0) {
    if (var_3 == 0) {
      var_3 = 4;
      var_5 = (type_2 *)var_4(0x10);
    }
LAB_00042d56:
    puVar1 = var_5 + var_2;
    var_2 = var_2 + 1;
    *puVar1 = var_6;
  }
  else if (var_6 != *var_5) {
    var_7 = 0;
    do {
      var_7 = var_7 + 1;
      if (var_7 == var_2) {
        if (var_3 == var_2) {
          var_3 = var_2 + 4;
          var_5 = (type_2 *)var_8(var_5,var_3 * 4);
        }
        goto LAB_00042d56;
      }
    } while (var_6 != var_5[var_7]);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))))) (goto_statement label: (statement_identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier))))))))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = param_1 << 0x10 | 1;
  if (DAT_00078078 == 0) {
    if (DAT_00078080 == 0) {
      DAT_00078080 = 4;
      DAT_0007807c = (uint *)xmalloc(0x10);
    }
LAB_00042d56:
    puVar1 = DAT_0007807c + DAT_00078078;
    DAT_00078078 = DAT_00078078 + 1;
    *puVar1 = uVar3;
  }
  else if (uVar3 != *DAT_0007807c) {
    iVar2 = 0;
    do {
      iVar2 = iVar2 + 1;
      if (iVar2 == DAT_00078078) {
        if (DAT_00078080 == DAT_00078078) {
          DAT_00078080 = DAT_00078078 + 4;
          DAT_0007807c = (uint *)xrealloc(DAT_0007807c,DAT_00078080 * 4);
        }
        goto LAB_00042d56;
      }
    } while (uVar3 != DAT_0007807c[iVar2]);
  }
  return;
}

