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

bfd_boolean stab_float_type(void *p,uint size)

{
  bfd_boolean bVar1;
  char *__ptr;
  int iVar2;
  stab_write_handle *local_60;
  char buf [50];
  
  if (size - 1 < 0x10) {
    iVar2 = *(int *)((int)p + size * 4 + 0x80);
    if (iVar2 != 0) {
      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);
      return bVar1;
    }
    bVar1 = stab_int_type(p,4,0);
    if (bVar1 != 0) {
      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));
      iVar2 = *(int *)((int)p + 0x3c);
      *(int *)((int)p + 0x3c) = iVar2 + 1;
      *(int *)((int)p + size * 4 + 0x80) = iVar2;
LAB_0002afc3:
      local_60 = (stab_write_handle *)((int)p + 0x38);
      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);
      free(__ptr);
      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);
      return bVar1;
    }
  }
  else {
    bVar1 = stab_int_type(p,4,0);
    if (bVar1 != 0) {
      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));
      iVar2 = *(int *)((int)p + 0x3c);
      *(int *)((int)p + 0x3c) = iVar2 + 1;
      goto LAB_0002afc3;
    }
  }
  return 0;
}



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

undefined4 FUN_0002af40(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  void *__ptr;
  char local_4e [58];
  undefined4 uStack_14;
  
  uStack_14 = 0x2af49;
  if (param_2 - 1U < 0x10) {
    iVar1 = param_1 + param_2 * 4;
    if (*(int *)(iVar1 + 0x80) != 0) {
      uVar3 = FUN_00029680();
      return uVar3;
    }
    iVar2 = FUN_0002ac10(param_1,4,0);
    if (iVar2 != 0) {
      __ptr = (void *)FUN_00028700();
      iVar2 = *(int *)(param_1 + 0x3c);
      *(int *)(param_1 + 0x3c) = iVar2 + 1;
      *(int *)(iVar1 + 0x80) = iVar2;
LAB_0002afc3:
      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);
      free(__ptr);
      uVar3 = FUN_00029600(1,param_2);
      return uVar3;
    }
  }
  else {
    iVar2 = FUN_0002ac10(param_1,4,0);
    if (iVar2 != 0) {
      __ptr = (void *)FUN_00028700();
      iVar2 = *(int *)(param_1 + 0x3c);
      *(int *)(param_1 + 0x3c) = iVar2 + 1;
      goto LAB_0002afc3;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x140b7
SUB ESP,0x5c
MOV EDI,dword ptr [ESP + 0x74]
MOV ESI,dword ptr [ESP + 0x70]
LEA EAX,[EDI + -0x1]
CMP EAX,0xf
JA 0x0002af98
LEA EBP,[ESI + EDI*0x4]
MOV EDX,dword ptr [EBP + 0x80]
TEST EDX,EDX
JNZ 0x0002b030
SUB ESP,0x4
PUSH 0x0
PUSH 0x4
PUSH ESI
CALL 0x0002ac10
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002b010
ADD ESP,0x5c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x0
PUSH 0x4
PUSH ESI
CALL 0x0002ac10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002af8b
LEA EAX,[ESI + 0x38]
MOV dword ptr [ESP + 0xc],EAX
CALL 0x00028700
MOV ECX,dword ptr [ESI + 0x3c]
MOV EDX,EAX
LEA EAX,[ECX + 0x1]
MOV dword ptr [ESI + 0x3c],EAX
SUB ESP,0xc
LEA EAX,[EBX + 0xffff4fbc]
PUSH EDI
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
PUSH EAX
LEA ESI,[ESP + 0x3a]
PUSH ESI
CALL 0x000137a0
ADD ESP,0x14
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
CALL 0x00013948
POP EAX
POP EDX
PUSH EDI
PUSH 0x1
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,ESI
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00029600
ADD ESP,0x10
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x38]
MOV dword ptr [ESP + 0xc],EAX
CALL 0x00028700
MOV ECX,dword ptr [ESI + 0x3c]
MOV EDX,EAX
LEA EAX,[ECX + 0x1]
MOV dword ptr [ESI + 0x3c],EAX
MOV dword ptr [EBP + 0x80],ECX
JMP 0x0002afc3
MOV ECX,EDI
MOV EAX,ESI
CALL 0x00029680
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0002af40(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0002af40(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0002af40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char local_4e [58];" primitive_type (array_declarator "local_4e [58]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2af49;" (assignment_expression "uStack_14 = 0x2af49" identifier = number_literal) ;) (if_statement "if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" if (parenthesized_expression "(param_2 - 1U < 0x10)" ( (binary_expression "param_2 - 1U < 0x10" (binary_expression "param_2 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }" { (expression_statement "iVar1 = param_1 + param_2 * 4;" (assignment_expression "iVar1 = param_1 + param_2 * 4" identifier = (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal))) ;) (if_statement "if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x80) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x80) != 0" (pointer_expression "*(int *)(iVar1 + 0x80)" * (cast_expression "(int *)(iVar1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x80)" ( (binary_expression "iVar1 + 0x80" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" { (expression_statement "uVar3 = FUN_00029680();" (assignment_expression "uVar3 = FUN_00029680()" identifier = (call_expression "FUN_00029680()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" identifier = (call_expression "FUN_0002ac10(param_1,4,0)" identifier (argument_list "(param_1,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0x80) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0x80) = iVar2" (pointer_expression "*(int *)(iVar1 + 0x80)" * (cast_expression "(int *)(iVar1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x80)" ( (binary_expression "iVar1 + 0x80" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" statement_identifier : (expression_statement "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" (call_expression "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" identifier (argument_list "(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" ( identifier , (string_literal ""%ld=r%s;%u;0;"" " string_content ") , identifier , identifier , identifier ))) ;)) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar3 = FUN_00029600(1,param_2);" (assignment_expression "uVar3 = FUN_00029600(1,param_2)" identifier = (call_expression "FUN_00029600(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" else (compound_statement "{\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" { (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" identifier = (call_expression "FUN_0002ac10(param_1,4,0)" identifier (argument_list "(param_1,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0002afc3;" goto statement_identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean stab_float_type(void *p,uint size)\n\n{\n  bfd_boolean bVar1;\n  char *__ptr;\n  int iVar2;\n  stab_write_handle *local_60;\n  char buf [50];\n  \n  if (size - 1 < 0x10) {\n    iVar2 = *(int *)((int)p + size * 4 + 0x80);\n    if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }\n  }\n  else {\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean stab_float_type(void *p,uint size)\n\n{\n  bfd_boolean bVar1;\n  char *__ptr;\n  int iVar2;\n  stab_write_handle *local_60;\n  char buf [50];\n  \n  if (size - 1 < 0x10) {\n    iVar2 = *(int *)((int)p + size * 4 + 0x80);\n    if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }\n  }\n  else {\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "stab_float_type(void *p,uint size)" identifier (parameter_list "(void *p,uint size)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "uint size" type_identifier identifier) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  char *__ptr;\n  int iVar2;\n  stab_write_handle *local_60;\n  char buf [50];\n  \n  if (size - 1 < 0x10) {\n    iVar2 = *(int *)((int)p + size * 4 + 0x80);\n    if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }\n  }\n  else {\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "stab_write_handle *local_60;" type_identifier (pointer_declarator "*local_60" * identifier) ;) (declaration "char buf [50];" primitive_type (array_declarator "buf [50]" identifier [ number_literal ]) ;) (if_statement "if (size - 1 < 0x10) {\n    iVar2 = *(int *)((int)p + size * 4 + 0x80);\n    if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }\n  }\n  else {\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" if (parenthesized_expression "(size - 1 < 0x10)" ( (binary_expression "size - 1 < 0x10" (binary_expression "size - 1" identifier - number_literal) < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)((int)p + size * 4 + 0x80);\n    if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }\n  }" { (expression_statement "iVar2 = *(int *)((int)p + size * 4 + 0x80);" (assignment_expression "iVar2 = *(int *)((int)p + size * 4 + 0x80)" identifier = (pointer_expression "*(int *)((int)p + size * 4 + 0x80)" * (cast_expression "(int *)((int)p + size * 4 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + size * 4 + 0x80)" ( (binary_expression "(int)p + size * 4 + 0x80" (binary_expression "(int)p + size * 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "size * 4" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);\n      return bVar1;\n    }" { (expression_statement "bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size);" (assignment_expression "bVar1 = stab_push_defined_type((stab_write_handle *)p,iVar2,size)" identifier = (call_expression "stab_push_defined_type((stab_write_handle *)p,iVar2,size)" identifier (argument_list "((stab_write_handle *)p,iVar2,size)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier )))) ;) (return_statement "return bVar1;" return identifier ;) })) (expression_statement "bVar1 = stab_int_type(p,4,0);" (assignment_expression "bVar1 = stab_int_type(p,4,0)" identifier = (call_expression "stab_int_type(p,4,0)" identifier (argument_list "(p,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      *(int *)((int)p + size * 4 + 0x80) = iVar2;\nLAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);\n      sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);\n      free(__ptr);\n      bVar1 = stab_push_string(local_60,buf,iVar2,1,size);\n      return bVar1;\n    }" { (expression_statement "__ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "__ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier (argument_list "((stab_write_handle *)((int)p + 0x38))" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (expression_statement "iVar2 = *(int *)((int)p + 0x3c);" (assignment_expression "iVar2 = *(int *)((int)p + 0x3c)" identifier = (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(int *)((int)p + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)((int)p + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)((int)p + size * 4 + 0x80) = iVar2;" (assignment_expression "*(int *)((int)p + size * 4 + 0x80) = iVar2" (pointer_expression "*(int *)((int)p + size * 4 + 0x80)" * (cast_expression "(int *)((int)p + size * 4 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + size * 4 + 0x80)" ( (binary_expression "(int)p + size * 4 + 0x80" (binary_expression "(int)p + size * 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "size * 4" identifier * number_literal)) + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0002afc3:\n      local_60 = (stab_write_handle *)((int)p + 0x38);" statement_identifier : (expression_statement "local_60 = (stab_write_handle *)((int)p + 0x38);" (assignment_expression "local_60 = (stab_write_handle *)((int)p + 0x38)" identifier = (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;)) (expression_statement "sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size);" (call_expression "sprintf(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size)" identifier (argument_list "(buf,"%ld=r%s;%u;0;",iVar2,__ptr,size)" ( identifier , (string_literal ""%ld=r%s;%u;0;"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "bVar1 = stab_push_string(local_60,buf,iVar2,1,size);" (assignment_expression "bVar1 = stab_push_string(local_60,buf,iVar2,1,size)" identifier = (call_expression "stab_push_string(local_60,buf,iVar2,1,size)" identifier (argument_list "(local_60,buf,iVar2,1,size)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (return_statement "return bVar1;" return identifier ;) })) }) (else_clause "else {\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" else (compound_statement "{\n    bVar1 = stab_int_type(p,4,0);\n    if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" { (expression_statement "bVar1 = stab_int_type(p,4,0);" (assignment_expression "bVar1 = stab_int_type(p,4,0)" identifier = (call_expression "stab_int_type(p,4,0)" identifier (argument_list "(p,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (bVar1 != 0) {\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n      iVar2 = *(int *)((int)p + 0x3c);\n      *(int *)((int)p + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" { (expression_statement "__ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "__ptr = stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier (argument_list "((stab_write_handle *)((int)p + 0x38))" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (expression_statement "iVar2 = *(int *)((int)p + 0x3c);" (assignment_expression "iVar2 = *(int *)((int)p + 0x3c)" identifier = (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(int *)((int)p + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)((int)p + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0002afc3;" goto statement_identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0002af40(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0002af40(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0002af40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char local_4e [58];" primitive_type (array_declarator "local_4e [58]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2af49;" (assignment_expression "uStack_14 = 0x2af49" identifier = number_literal) ;) (if_statement "if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" if (parenthesized_expression "(param_2 - 1U < 0x10)" ( (binary_expression "param_2 - 1U < 0x10" (binary_expression "param_2 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }" { (expression_statement "iVar1 = param_1 + param_2 * 4;" (assignment_expression "iVar1 = param_1 + param_2 * 4" identifier = (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal))) ;) (if_statement "if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x80) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x80) != 0" (pointer_expression "*(int *)(iVar1 + 0x80)" * (cast_expression "(int *)(iVar1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x80)" ( (binary_expression "iVar1 + 0x80" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" { (expression_statement "uVar3 = FUN_00029680();" (assignment_expression "uVar3 = FUN_00029680()" identifier = (call_expression "FUN_00029680()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" identifier = (call_expression "FUN_0002ac10(param_1,4,0)" identifier (argument_list "(param_1,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0x80) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0x80) = iVar2" (pointer_expression "*(int *)(iVar1 + 0x80)" * (cast_expression "(int *)(iVar1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x80)" ( (binary_expression "iVar1 + 0x80" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" statement_identifier : (expression_statement "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" (call_expression "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" identifier (argument_list "(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" ( identifier , (string_literal ""%ld=r%s;%u;0;"" " string_content ") , identifier , identifier , identifier ))) ;)) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar3 = FUN_00029600(1,param_2);" (assignment_expression "uVar3 = FUN_00029600(1,param_2)" identifier = (call_expression "FUN_00029600(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" else (compound_statement "{\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" { (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" identifier = (call_expression "FUN_0002ac10(param_1,4,0)" identifier (argument_list "(param_1,4,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0002afc3;" goto statement_identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0002af40(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0002af40(int param_1,int param_2)" (identifier "FUN_0002af40") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *__ptr;\n  char local_4e [58];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2af49;\n  if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char local_4e [58];" (primitive_type "char") (array_declarator "local_4e [58]" (identifier "local_4e") ([ "[") (number_literal "58") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2af49;" (assignment_expression "uStack_14 = 0x2af49" (identifier "uStack_14") (= "=") (number_literal "0x2af49")) (; ";")) (if_statement "if (param_2 - 1U < 0x10) {\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }\n  else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 - 1U < 0x10)" (( "(") (binary_expression "param_2 - 1U < 0x10" (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U")) (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    iVar1 = param_1 + param_2 * 4;\n    if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }\n  }" ({ "{") (expression_statement "iVar1 = param_1 + param_2 * 4;" (assignment_expression "iVar1 = param_1 + param_2 * 4" (identifier "iVar1") (= "=") (binary_expression "param_1 + param_2 * 4" (identifier "param_1") (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4")))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x80) != 0) {\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x80) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x80) != 0" (pointer_expression "*(int *)(iVar1 + 0x80)" (* "*") (cast_expression "(int *)(iVar1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x80)" (( "(") (binary_expression "iVar1 + 0x80" (identifier "iVar1") (+ "+") (number_literal "0x80")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_00029680();\n      return uVar3;\n    }" ({ "{") (expression_statement "uVar3 = FUN_00029680();" (assignment_expression "uVar3 = FUN_00029680()" (identifier "uVar3") (= "=") (call_expression "FUN_00029680()" (identifier "FUN_00029680") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0002ac10(param_1,4,0)" (identifier "FUN_0002ac10") (argument_list "(param_1,4,0)" (( "(") (identifier "param_1") (, ",") (number_literal "4") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      *(int *)(iVar1 + 0x80) = iVar2;\nLAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);\n      free(__ptr);\n      uVar3 = FUN_00029600(1,param_2);\n      return uVar3;\n    }" ({ "{") (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00028700()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x80) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0x80) = iVar2" (pointer_expression "*(int *)(iVar1 + 0x80)" (* "*") (cast_expression "(int *)(iVar1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x80)" (( "(") (binary_expression "iVar1 + 0x80" (identifier "iVar1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (labeled_statement "LAB_0002afc3:\n      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" (statement_identifier "LAB_0002afc3") (: ":") (expression_statement "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);" (call_expression "sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" (identifier "sprintf") (argument_list "(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2)" (( "(") (identifier "local_4e") (, ",") (string_literal ""%ld=r%s;%u;0;"" (" """) (string_content "%ld=r%s;%u;0;") (" """)) (, ",") (identifier "iVar2") (, ",") (identifier "__ptr") (, ",") (identifier "param_2") () ")"))) (; ";"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00029600(1,param_2);" (assignment_expression "uVar3 = FUN_00029600(1,param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00029600(1,param_2)" (identifier "FUN_00029600") (argument_list "(1,param_2)" (( "(") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_0002ac10(param_1,4,0);\n    if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_0002ac10(param_1,4,0);" (assignment_expression "iVar2 = FUN_0002ac10(param_1,4,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0002ac10(param_1,4,0)" (identifier "FUN_0002ac10") (argument_list "(param_1,4,0)" (( "(") (identifier "param_1") (, ",") (number_literal "4") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      iVar2 = *(int *)(param_1 + 0x3c);\n      *(int *)(param_1 + 0x3c) = iVar2 + 1;\n      goto LAB_0002afc3;\n    }" ({ "{") (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00028700()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x3c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_0002afc3;" (goto "goto") (statement_identifier "LAB_0002afc3") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *p,type_2 var_1)

{
  type_1 var_5;
  char *__ptr;
  int var_2;
  type_3 *local_60;
  char buf [50];
  
  if (var_1 - 1 < 0x10) {
    var_2 = *(int *)((int)p + var_1 * 4 + 0x80);
    if (var_2 != 0) {
      var_5 = var_3((type_3 *)p,var_2,var_1);
      return var_5;
    }
    var_5 = var_4(p,4,0);
    if (var_5 != 0) {
      __ptr = var_6((type_3 *)((int)p + 0x38));
      var_2 = *(int *)((int)p + 0x3c);
      *(int *)((int)p + 0x3c) = var_2 + 1;
      *(int *)((int)p + var_1 * 4 + 0x80) = var_2;
LAB_0002afc3:
      local_60 = (type_3 *)((int)p + 0x38);
      var_7(buf,"%ld=r%s;%u;0;",var_2,__ptr,var_1);
      var_8(__ptr);
      var_5 = var_9(local_60,buf,var_2,1,var_1);
      return var_5;
    }
  }
  else {
    var_5 = var_4(p,4,0);
    if (var_5 != 0) {
      __ptr = var_6((type_3 *)((int)p + 0x38));
      var_2 = *(int *)((int)p + 0x3c);
      *(int *)((int)p + 0x3c) = var_2 + 1;
      goto LAB_0002afc3;
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (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))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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))))) (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: (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: (identifier) right: (number_literal))))) right: (binary_expression left: (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: (identifier) right: (number_literal))))) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier))))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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))))) (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: (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: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  void *__ptr;
  char local_4e [58];
  undefined4 uStack_14;
  
  uStack_14 = 0x2af49;
  if (param_2 - 1U < 0x10) {
    iVar1 = param_1 + param_2 * 4;
    if (*(int *)(iVar1 + 0x80) != 0) {
      uVar3 = FUN_00029680();
      return uVar3;
    }
    iVar2 = FUN_0002ac10(param_1,4,0);
    if (iVar2 != 0) {
      __ptr = (void *)FUN_00028700();
      iVar2 = *(int *)(param_1 + 0x3c);
      *(int *)(param_1 + 0x3c) = iVar2 + 1;
      *(int *)(iVar1 + 0x80) = iVar2;
LAB_0002afc3:
      sprintf(local_4e,"%ld=r%s;%u;0;",iVar2,__ptr,param_2);
      free(__ptr);
      uVar3 = FUN_00029600(1,param_2);
      return uVar3;
    }
  }
  else {
    iVar2 = FUN_0002ac10(param_1,4,0);
    if (iVar2 != 0) {
      __ptr = (void *)FUN_00028700();
      iVar2 = *(int *)(param_1 + 0x3c);
      *(int *)(param_1 + 0x3c) = iVar2 + 1;
      goto LAB_0002afc3;
    }
  }
  return 0;
}

