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

void build_group_lists(bfd *abfd,asection *sec,void *inf)

{
  undefined4 *puVar1;
  char *key;
  uint uVar2;
  int *piVar3;
  uint *val;
  int iVar4;
  uint uVar5;
  
  key = *(char **)((int)sec->used_by_bfd + 0x84);
  if (key != (char *)0x0) {
    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);
    if (piVar3 == (int *)0x0) {
      uVar2 = *(uint *)((int)inf + 4);
                    /* WARNING: Load size is inaccurate */
      iVar4 = *inf;
      uVar5 = uVar2;
      if ((uVar2 & 0x7f) == 0) {
        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);
        uVar5 = *(uint *)((int)inf + 4);
        *(int *)inf = iVar4;
      }
      *(asection **)(iVar4 + uVar2 * 4) = sec;
      *(uint *)((int)inf + 4) = uVar5 + 1;
      val = (uint *)xmalloc(4);
      *val = uVar2;
      hash_insert(*(hash_control **)((int)inf + 8),key,val);
      return;
    }
                    /* WARNING: Load size is inaccurate */
    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);
    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;
    *puVar1 = sec;
  }
  return;
}



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

void FUN_00048c40(undefined4 param_1,int param_2,int *param_3)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint *puVar4;
  int iVar5;
  uint uVar6;
  
  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);
  if (iVar1 != 0) {
    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);
    if (piVar3 == (int *)0x0) {
      uVar2 = param_3[1];
      iVar5 = *param_3;
      uVar6 = uVar2;
      if ((uVar2 & 0x7f) == 0) {
        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);
        uVar6 = param_3[1];
        *param_3 = iVar5;
      }
      *(int *)(iVar5 + uVar2 * 4) = param_2;
      param_3[1] = uVar6 + 1;
      puVar4 = (uint *)xmalloc(4);
      *puVar4 = uVar2;
      FUN_00025230(param_3[2],iVar1,puVar4);
      return;
    }
    piVar3 = (int *)(*param_3 + *piVar3 * 4);
    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;
    *piVar3 = param_2;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x263b7
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EDI + 0xa4]
MOV EBP,dword ptr [EAX + 0x84]
TEST EBP,EBP
JZ 0x00048c94
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESI + 0x8]
CALL 0x00025480
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00048ca0
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESI]
LEA EAX,[EAX + EDX*0x4]
MOV EDX,dword ptr [EDI + 0xa4]
MOV ECX,dword ptr [EAX]
MOV dword ptr [EDX + 0x8c],ECX
MOV dword ptr [EAX],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [ESI]
MOV ECX,EDX
TEST DL,0x7f
JZ 0x00048ce8
MOV dword ptr [ESP + 0xc],EDX
ADD ECX,0x1
SUB ESP,0xc
MOV dword ptr [EAX + EDX*0x4],EDI
MOV dword ptr [ESI + 0x4],ECX
PUSH 0x4
CALL 0x00014820
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0xc
MOV dword ptr [EAX],EDX
PUSH EAX
PUSH EBP
PUSH dword ptr [ESI + 0x8]
CALL 0x00025230
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA ECX,[EDX*0x4 + 0x200]
MOV dword ptr [ESP + 0x14],EDX
PUSH ECX
PUSH EAX
CALL 0x00014230
ADD ESP,0x10
MOV ECX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI],EAX
JMP 0x00048cac
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00048c40(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00048c40(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00048c40(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x84)" * (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x84)" ( (binary_expression "*(int *)(param_2 + 0xa4) + 0x84" (pointer_expression "*(int *)(param_2 + 0xa4)" * (cast_expression "(int *)(param_2 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" { (expression_statement "piVar3 = (int *)FUN_00025480(param_3[2],iVar1);" (assignment_expression "piVar3 = (int *)FUN_00025480(param_3[2],iVar1)" identifier = (cast_expression "(int *)FUN_00025480(param_3[2],iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025480(param_3[2],iVar1)" identifier (argument_list "(param_3[2],iVar1)" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) , identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" { (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) (if_statement "if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" if (parenthesized_expression "((uVar2 & 0x7f) == 0)" ( (binary_expression "(uVar2 & 0x7f) == 0" (parenthesized_expression "(uVar2 & 0x7f)" ( (binary_expression "uVar2 & 0x7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" { (expression_statement "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);" (assignment_expression "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200)" identifier = (call_expression "xrealloc(iVar5,uVar2 * 4 + 0x200)" identifier (argument_list "(iVar5,uVar2 * 4 + 0x200)" ( identifier , (binary_expression "uVar2 * 4 + 0x200" (binary_expression "uVar2 * 4" identifier * number_literal) + number_literal) )))) ;) (expression_statement "uVar6 = param_3[1];" (assignment_expression "uVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (expression_statement "*(int *)(iVar5 + uVar2 * 4) = param_2;" (assignment_expression "*(int *)(iVar5 + uVar2 * 4) = param_2" (pointer_expression "*(int *)(iVar5 + uVar2 * 4)" * (cast_expression "(int *)(iVar5 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar2 * 4)" ( (binary_expression "iVar5 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_3[1] = uVar6 + 1;" (assignment_expression "param_3[1] = uVar6 + 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)xmalloc(4);" (assignment_expression "puVar4 = (uint *)xmalloc(4)" identifier = (cast_expression "(uint *)xmalloc(4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "FUN_00025230(param_3[2],iVar1,puVar4);" (call_expression "FUN_00025230(param_3[2],iVar1,puVar4)" identifier (argument_list "(param_3[2],iVar1,puVar4)" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)(*param_3 + *piVar3 * 4);" (assignment_expression "piVar3 = (int *)(*param_3 + *piVar3 * 4)" identifier = (cast_expression "(int *)(*param_3 + *piVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + *piVar3 * 4)" ( (binary_expression "*param_3 + *piVar3 * 4" (pointer_expression "*param_3" * identifier) + (binary_expression "*piVar3 * 4" (pointer_expression "*piVar3" * identifier) * number_literal)) )))) ;) (expression_statement "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;" (assignment_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3" (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" * (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x8c)" ( (binary_expression "*(int *)(param_2 + 0xa4) + 0x8c" (pointer_expression "*(int *)(param_2 + 0xa4)" * (cast_expression "(int *)(param_2 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) + number_literal) )))) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid build_group_lists(bfd *abfd,asection *sec,void *inf)\n\n{\n  undefined4 *puVar1;\n  char *key;\n  uint uVar2;\n  int *piVar3;\n  uint *val;\n  int iVar4;\n  uint uVar5;\n  \n  key = *(char **)((int)sec->used_by_bfd + 0x84);\n  if (key != (char *)0x0) {\n    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);\n    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;\n    *puVar1 = sec;\n  }\n  return;\n}\n\n" comment comment (function_definition "void build_group_lists(bfd *abfd,asection *sec,void *inf)\n\n{\n  undefined4 *puVar1;\n  char *key;\n  uint uVar2;\n  int *piVar3;\n  uint *val;\n  int iVar4;\n  uint uVar5;\n  \n  key = *(char **)((int)sec->used_by_bfd + 0x84);\n  if (key != (char *)0x0) {\n    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);\n    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;\n    *puVar1 = sec;\n  }\n  return;\n}" primitive_type (function_declarator "build_group_lists(bfd *abfd,asection *sec,void *inf)" identifier (parameter_list "(bfd *abfd,asection *sec,void *inf)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "void *inf" primitive_type (pointer_declarator "*inf" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *key;\n  uint uVar2;\n  int *piVar3;\n  uint *val;\n  int iVar4;\n  uint uVar5;\n  \n  key = *(char **)((int)sec->used_by_bfd + 0x84);\n  if (key != (char *)0x0) {\n    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);\n    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;\n    *puVar1 = sec;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint *val;" type_identifier (pointer_declarator "*val" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "key = *(char **)((int)sec->used_by_bfd + 0x84);" (assignment_expression "key = *(char **)((int)sec->used_by_bfd + 0x84)" identifier = (pointer_expression "*(char **)((int)sec->used_by_bfd + 0x84)" * (cast_expression "(char **)((int)sec->used_by_bfd + 0x84)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)sec->used_by_bfd + 0x84)" ( (binary_expression "(int)sec->used_by_bfd + 0x84" (cast_expression "(int)sec->used_by_bfd" ( (type_descriptor "int" primitive_type) ) (field_expression "sec->used_by_bfd" identifier -> field_identifier)) + number_literal) ))))) ;) (if_statement "if (key != (char *)0x0) {\n    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);\n    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;\n    *puVar1 = sec;\n  }" if (parenthesized_expression "(key != (char *)0x0)" ( (binary_expression "key != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    puVar1 = (undefined4 *)(*inf + *piVar3 * 4);\n    *(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;\n    *puVar1 = sec;\n  }" { (expression_statement "piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key);" (assignment_expression "piVar3 = (int *)hash_find(*(hash_control **)((int)inf + 8),key)" identifier = (cast_expression "(int *)hash_find(*(hash_control **)((int)inf + 8),key)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_find(*(hash_control **)((int)inf + 8),key)" identifier (argument_list "(*(hash_control **)((int)inf + 8),key)" ( (pointer_expression "*(hash_control **)((int)inf + 8)" * (cast_expression "(hash_control **)((int)inf + 8)" ( (type_descriptor "hash_control **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)inf + 8)" ( (binary_expression "(int)inf + 8" (cast_expression "(int)inf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = *(uint *)((int)inf + 4);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *inf;\n      uVar5 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }\n      *(asection **)(iVar4 + uVar2 * 4) = sec;\n      *(uint *)((int)inf + 4) = uVar5 + 1;\n      val = (uint *)xmalloc(4);\n      *val = uVar2;\n      hash_insert(*(hash_control **)((int)inf + 8),key,val);\n      return;\n    }" { (expression_statement "uVar2 = *(uint *)((int)inf + 4);" (assignment_expression "uVar2 = *(uint *)((int)inf + 4)" identifier = (pointer_expression "*(uint *)((int)inf + 4)" * (cast_expression "(uint *)((int)inf + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)inf + 4)" ( (binary_expression "(int)inf + 4" (cast_expression "(int)inf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "iVar4 = *inf;" (assignment_expression "iVar4 = *inf" identifier = (pointer_expression "*inf" * identifier)) ;) (expression_statement "uVar5 = uVar2;" (assignment_expression "uVar5 = uVar2" identifier = identifier) ;) (if_statement "if ((uVar2 & 0x7f) == 0) {\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }" if (parenthesized_expression "((uVar2 & 0x7f) == 0)" ( (binary_expression "(uVar2 & 0x7f) == 0" (parenthesized_expression "(uVar2 & 0x7f)" ( (binary_expression "uVar2 & 0x7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);\n        uVar5 = *(uint *)((int)inf + 4);\n        *(int *)inf = iVar4;\n      }" { (expression_statement "iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200);" (assignment_expression "iVar4 = xrealloc(iVar4,uVar2 * 4 + 0x200)" identifier = (call_expression "xrealloc(iVar4,uVar2 * 4 + 0x200)" identifier (argument_list "(iVar4,uVar2 * 4 + 0x200)" ( identifier , (binary_expression "uVar2 * 4 + 0x200" (binary_expression "uVar2 * 4" identifier * number_literal) + number_literal) )))) ;) (expression_statement "uVar5 = *(uint *)((int)inf + 4);" (assignment_expression "uVar5 = *(uint *)((int)inf + 4)" identifier = (pointer_expression "*(uint *)((int)inf + 4)" * (cast_expression "(uint *)((int)inf + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)inf + 4)" ( (binary_expression "(int)inf + 4" (cast_expression "(int)inf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(int *)inf = iVar4;" (assignment_expression "*(int *)inf = iVar4" (pointer_expression "*(int *)inf" * (cast_expression "(int *)inf" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (expression_statement "*(asection **)(iVar4 + uVar2 * 4) = sec;" (assignment_expression "*(asection **)(iVar4 + uVar2 * 4) = sec" (pointer_expression "*(asection **)(iVar4 + uVar2 * 4)" * (cast_expression "(asection **)(iVar4 + uVar2 * 4)" ( (type_descriptor "asection **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + uVar2 * 4)" ( (binary_expression "iVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(uint *)((int)inf + 4) = uVar5 + 1;" (assignment_expression "*(uint *)((int)inf + 4) = uVar5 + 1" (pointer_expression "*(uint *)((int)inf + 4)" * (cast_expression "(uint *)((int)inf + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)inf + 4)" ( (binary_expression "(int)inf + 4" (cast_expression "(int)inf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "val = (uint *)xmalloc(4);" (assignment_expression "val = (uint *)xmalloc(4)" identifier = (cast_expression "(uint *)xmalloc(4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*val = uVar2;" (assignment_expression "*val = uVar2" (pointer_expression "*val" * identifier) = identifier) ;) (expression_statement "hash_insert(*(hash_control **)((int)inf + 8),key,val);" (call_expression "hash_insert(*(hash_control **)((int)inf + 8),key,val)" identifier (argument_list "(*(hash_control **)((int)inf + 8),key,val)" ( (pointer_expression "*(hash_control **)((int)inf + 8)" * (cast_expression "(hash_control **)((int)inf + 8)" ( (type_descriptor "hash_control **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)inf + 8)" ( (binary_expression "(int)inf + 8" (cast_expression "(int)inf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "puVar1 = (undefined4 *)(*inf + *piVar3 * 4);" (assignment_expression "puVar1 = (undefined4 *)(*inf + *piVar3 * 4)" identifier = (cast_expression "(undefined4 *)(*inf + *piVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*inf + *piVar3 * 4)" ( (binary_expression "*inf + *piVar3 * 4" (pointer_expression "*inf" * identifier) + (binary_expression "*piVar3 * 4" (pointer_expression "*piVar3" * identifier) * number_literal)) )))) ;) (expression_statement "*(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;" (assignment_expression "*(undefined4 *)((int)sec->used_by_bfd + 0x8c) = *puVar1" (pointer_expression "*(undefined4 *)((int)sec->used_by_bfd + 0x8c)" * (cast_expression "(undefined4 *)((int)sec->used_by_bfd + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)sec->used_by_bfd + 0x8c)" ( (binary_expression "(int)sec->used_by_bfd + 0x8c" (cast_expression "(int)sec->used_by_bfd" ( (type_descriptor "int" primitive_type) ) (field_expression "sec->used_by_bfd" identifier -> field_identifier)) + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = sec;" (assignment_expression "*puVar1 = sec" (pointer_expression "*puVar1" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00048c40(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00048c40(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00048c40(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x84)" * (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x84)" ( (binary_expression "*(int *)(param_2 + 0xa4) + 0x84" (pointer_expression "*(int *)(param_2 + 0xa4)" * (cast_expression "(int *)(param_2 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" { (expression_statement "piVar3 = (int *)FUN_00025480(param_3[2],iVar1);" (assignment_expression "piVar3 = (int *)FUN_00025480(param_3[2],iVar1)" identifier = (cast_expression "(int *)FUN_00025480(param_3[2],iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025480(param_3[2],iVar1)" identifier (argument_list "(param_3[2],iVar1)" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) , identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" { (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) (if_statement "if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" if (parenthesized_expression "((uVar2 & 0x7f) == 0)" ( (binary_expression "(uVar2 & 0x7f) == 0" (parenthesized_expression "(uVar2 & 0x7f)" ( (binary_expression "uVar2 & 0x7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" { (expression_statement "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);" (assignment_expression "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200)" identifier = (call_expression "xrealloc(iVar5,uVar2 * 4 + 0x200)" identifier (argument_list "(iVar5,uVar2 * 4 + 0x200)" ( identifier , (binary_expression "uVar2 * 4 + 0x200" (binary_expression "uVar2 * 4" identifier * number_literal) + number_literal) )))) ;) (expression_statement "uVar6 = param_3[1];" (assignment_expression "uVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (expression_statement "*(int *)(iVar5 + uVar2 * 4) = param_2;" (assignment_expression "*(int *)(iVar5 + uVar2 * 4) = param_2" (pointer_expression "*(int *)(iVar5 + uVar2 * 4)" * (cast_expression "(int *)(iVar5 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar2 * 4)" ( (binary_expression "iVar5 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_3[1] = uVar6 + 1;" (assignment_expression "param_3[1] = uVar6 + 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)xmalloc(4);" (assignment_expression "puVar4 = (uint *)xmalloc(4)" identifier = (cast_expression "(uint *)xmalloc(4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "FUN_00025230(param_3[2],iVar1,puVar4);" (call_expression "FUN_00025230(param_3[2],iVar1,puVar4)" identifier (argument_list "(param_3[2],iVar1,puVar4)" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)(*param_3 + *piVar3 * 4);" (assignment_expression "piVar3 = (int *)(*param_3 + *piVar3 * 4)" identifier = (cast_expression "(int *)(*param_3 + *piVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + *piVar3 * 4)" ( (binary_expression "*param_3 + *piVar3 * 4" (pointer_expression "*param_3" * identifier) + (binary_expression "*piVar3 * 4" (pointer_expression "*piVar3" * identifier) * number_literal)) )))) ;) (expression_statement "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;" (assignment_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3" (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" * (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x8c)" ( (binary_expression "*(int *)(param_2 + 0xa4) + 0x8c" (pointer_expression "*(int *)(param_2 + 0xa4)" * (cast_expression "(int *)(param_2 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) + number_literal) )))) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT * LIT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (pointer_expression * IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00048c40(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00048c40(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_00048c40") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  int iVar5;\n  uint uVar6;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);\n  if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x84)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x84)" (( "(") (binary_expression "*(int *)(param_2 + 0xa4) + 0x84" (pointer_expression "*(int *)(param_2 + 0xa4)" (* "*") (cast_expression "(int *)(param_2 + 0xa4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa4)" (( "(") (binary_expression "param_2 + 0xa4" (identifier "param_2") (+ "+") (number_literal "0xa4")) () ")")))) (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);\n    if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }\n    piVar3 = (int *)(*param_3 + *piVar3 * 4);\n    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;\n    *piVar3 = param_2;\n  }" ({ "{") (expression_statement "piVar3 = (int *)FUN_00025480(param_3[2],iVar1);" (assignment_expression "piVar3 = (int *)FUN_00025480(param_3[2],iVar1)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00025480(param_3[2],iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00025480(param_3[2],iVar1)" (identifier "FUN_00025480") (argument_list "(param_3[2],iVar1)" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar1") () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar2 = param_3[1];\n      iVar5 = *param_3;\n      uVar6 = uVar2;\n      if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }\n      *(int *)(iVar5 + uVar2 * 4) = param_2;\n      param_3[1] = uVar6 + 1;\n      puVar4 = (uint *)xmalloc(4);\n      *puVar4 = uVar2;\n      FUN_00025230(param_3[2],iVar1,puVar4);\n      return;\n    }" ({ "{") (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" (identifier "uVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" (identifier "iVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" (identifier "uVar6") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((uVar2 & 0x7f) == 0) {\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" (if "if") (parenthesized_expression "((uVar2 & 0x7f) == 0)" (( "(") (binary_expression "(uVar2 & 0x7f) == 0" (parenthesized_expression "(uVar2 & 0x7f)" (( "(") (binary_expression "uVar2 & 0x7f" (identifier "uVar2") (& "&") (number_literal "0x7f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);\n        uVar6 = param_3[1];\n        *param_3 = iVar5;\n      }" ({ "{") (expression_statement "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);" (assignment_expression "iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200)" (identifier "iVar5") (= "=") (call_expression "xrealloc(iVar5,uVar2 * 4 + 0x200)" (identifier "xrealloc") (argument_list "(iVar5,uVar2 * 4 + 0x200)" (( "(") (identifier "iVar5") (, ",") (binary_expression "uVar2 * 4 + 0x200" (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4")) (+ "+") (number_literal "0x200")) () ")")))) (; ";")) (expression_statement "uVar6 = param_3[1];" (assignment_expression "uVar6 = param_3[1]" (identifier "uVar6") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar5 + uVar2 * 4) = param_2;" (assignment_expression "*(int *)(iVar5 + uVar2 * 4) = param_2" (pointer_expression "*(int *)(iVar5 + uVar2 * 4)" (* "*") (cast_expression "(int *)(iVar5 + uVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + uVar2 * 4)" (( "(") (binary_expression "iVar5 + uVar2 * 4" (identifier "iVar5") (+ "+") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_3[1] = uVar6 + 1;" (assignment_expression "param_3[1] = uVar6 + 1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = (uint *)xmalloc(4);" (assignment_expression "puVar4 = (uint *)xmalloc(4)" (identifier "puVar4") (= "=") (cast_expression "(uint *)xmalloc(4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(4)" (identifier "xmalloc") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_00025230(param_3[2],iVar1,puVar4);" (call_expression "FUN_00025230(param_3[2],iVar1,puVar4)" (identifier "FUN_00025230") (argument_list "(param_3[2],iVar1,puVar4)" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar1") (, ",") (identifier "puVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)(*param_3 + *piVar3 * 4);" (assignment_expression "piVar3 = (int *)(*param_3 + *piVar3 * 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*param_3 + *piVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_3 + *piVar3 * 4)" (( "(") (binary_expression "*param_3 + *piVar3 * 4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (binary_expression "*piVar3 * 4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;" (assignment_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3" (pointer_expression "*(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0xa4) + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xa4) + 0x8c)" (( "(") (binary_expression "*(int *)(param_2 + 0xa4) + 0x8c" (pointer_expression "*(int *)(param_2 + 0xa4)" (* "*") (cast_expression "(int *)(param_2 + 0xa4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa4)" (( "(") (binary_expression "param_2 + 0xa4" (identifier "param_2") (+ "+") (number_literal "0xa4")) () ")")))) (+ "+") (number_literal "0x8c")) () ")")))) (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *abfd,type_2 *sec,void *inf)

{
  type_3 *puVar1;
  char *var_1;
  type_4 var_4;
  int *var_3;
  type_4 *val;
  int var_6;
  type_4 var_7;
  
  var_1 = *(char **)((int)sec->used_by_bfd + 0x84);
  if (var_1 != (char *)0x0) {
    var_3 = (int *)var_2(*(type_5 **)((int)inf + 8),var_1);
    if (var_3 == (int *)0x0) {
      var_4 = *(type_4 *)((int)inf + 4);
                    /* WARNING: Load size is inaccurate */
      var_6 = *inf;
      var_7 = var_4;
      if ((var_4 & 0x7f) == 0) {
        var_6 = var_5(var_6,var_4 * 4 + 0x200);
        var_7 = *(type_4 *)((int)inf + 4);
        *(int *)inf = var_6;
      }
      *(type_2 **)(var_6 + var_4 * 4) = sec;
      *(type_4 *)((int)inf + 4) = var_7 + 1;
      val = (type_4 *)var_8(4);
      *val = var_4;
      var_9(*(type_5 **)((int)inf + 8),var_1,val);
      return;
    }
                    /* WARNING: Load size is inaccurate */
    puVar1 = (type_3 *)(*inf + *var_3 * 4);
    *(type_3 *)((int)sec->used_by_bfd + 0x8c) = *puVar1;
    *puVar1 = sec;
  }
  return;
}


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

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

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

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint *puVar4;
  int iVar5;
  uint uVar6;
  
  iVar1 = *(int *)(*(int *)(param_2 + 0xa4) + 0x84);
  if (iVar1 != 0) {
    piVar3 = (int *)FUN_00025480(param_3[2],iVar1);
    if (piVar3 == (int *)0x0) {
      uVar2 = param_3[1];
      iVar5 = *param_3;
      uVar6 = uVar2;
      if ((uVar2 & 0x7f) == 0) {
        iVar5 = xrealloc(iVar5,uVar2 * 4 + 0x200);
        uVar6 = param_3[1];
        *param_3 = iVar5;
      }
      *(int *)(iVar5 + uVar2 * 4) = param_2;
      param_3[1] = uVar6 + 1;
      puVar4 = (uint *)xmalloc(4);
      *puVar4 = uVar2;
      FUN_00025230(param_3[2],iVar1,puVar4);
      return;
    }
    piVar3 = (int *)(*param_3 + *piVar3 * 4);
    *(int *)(*(int *)(param_2 + 0xa4) + 0x8c) = *piVar3;
    *piVar3 = param_2;
  }
  return;
}

