
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

bfd_boolean __regparm3
stab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,
                 uint *palloc)

{
  char *p;
  bfd_boolean bVar1;
  debug_type_conflict *ppdVar2;
  uint uVar3;
  uint uVar4;
  stab_demangle_info *in_stack_ffffffc4;
  char **in_stack_ffffffc8;
  debug_type_conflict *in_stack_ffffffcc;
  debug_type type;
  
  p = *pp;
  bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))
  {
    if (pargs == (debug_type_conflict **)0x0) {
      return 1;
    }
    if (type != (debug_type)0x0) {
      uVar4 = *pcount;
      uVar3 = uVar4 + 1;
      ppdVar2 = *pargs;
      if (*palloc <= uVar3) {
        uVar3 = *palloc + 10;
        *palloc = uVar3;
        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);
        *pargs = ppdVar2;
        uVar4 = *pcount;
        uVar3 = uVar4 + 1;
      }
      ppdVar2[uVar4] = type;
      *pcount = uVar3;
      return 1;
    }
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 FUN_00041940(uint *param_1,uint *param_2)

{
  int iVar1;
  int *in_ECX;
  uint uVar2;
  uint uVar3;
  int local_20;
  
  iVar1 = FUN_00040410();
  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {
    if (in_ECX == (int *)0x0) {
      return 1;
    }
    if (local_20 != 0) {
      uVar3 = *param_1;
      uVar2 = uVar3 + 1;
      iVar1 = *in_ECX;
      if (*param_2 <= uVar2) {
        uVar2 = *param_2 + 10;
        *param_2 = uVar2;
        iVar1 = xrealloc(iVar1,uVar2 * 4);
        *in_ECX = iVar1;
        uVar3 = *param_1;
        uVar2 = uVar3 + 1;
      }
      *(int *)(iVar1 + uVar3 * 4) = local_20;
      *param_1 = uVar2;
      return 1;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
MOV EAX,0x0
PUSH ESI
CALL 0x0003adb8
ADD ESI,0x316b1
PUSH EBX
MOV EBX,EDX
SUB ESP,0x2c
MOV EBP,dword ptr [EDX]
MOV dword ptr [ESP + 0xc],ESI
MOV ESI,ECX
LEA ECX,[ESP + 0x1c]
TEST ESI,ESI
CMOVZ ECX,EAX
MOV EAX,EDI
CALL 0x00040410
TEST EAX,EAX
JNZ 0x00041988
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EBX]
MOV EDX,EBP
MOV EAX,EDI
SUB ECX,EBP
CALL 0x0003eff0
TEST EAX,EAX
JZ 0x00041977
MOV EAX,0x1
TEST ESI,ESI
JZ 0x00041979
MOV ECX,dword ptr [ESP + 0x1c]
TEST ECX,ECX
JZ 0x00041977
MOV EAX,dword ptr [ESP + 0x40]
MOV EBX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [EAX]
LEA EDI,[EBX + 0x1]
MOV EAX,dword ptr [ESI]
CMP EDI,EDX
JNC 0x000419d8
MOV dword ptr [EAX + EBX*0x4],ECX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],EDI
ADD ESP,0x2c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x44]
ADD EDX,0xa
SUB ESP,0x8
MOV dword ptr [EDI],EDX
SHL EDX,0x2
PUSH EDX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00014220
MOV EDX,dword ptr [ESP + 0x50]
MOV ECX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV EBX,dword ptr [EDX]
LEA EDI,[EBX + 0x1]
JMP 0x000419bf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_00041940(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00041940(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00041940(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00040410();" (assignment_expression "iVar1 = FUN_00040410()" identifier = (call_expression "FUN_00040410()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0003eff0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0003eff0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003eff0()" identifier = (call_expression "FUN_0003eff0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" { (if_statement "if (in_ECX == (int *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(in_ECX == (int *)0x0)" ( (binary_expression "in_ECX == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *in_ECX;" (assignment_expression "iVar1 = *in_ECX" identifier = (pointer_expression "*in_ECX" * identifier)) ;) (if_statement "if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" if (parenthesized_expression "(*param_2 <= uVar2)" ( (binary_expression "*param_2 <= uVar2" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" { (expression_statement "uVar2 = *param_2 + 10;" (assignment_expression "uVar2 = *param_2 + 10" identifier = (binary_expression "*param_2 + 10" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = xrealloc(iVar1,uVar2 * 4);" (assignment_expression "iVar1 = xrealloc(iVar1,uVar2 * 4)" identifier = (call_expression "xrealloc(iVar1,uVar2 * 4)" identifier (argument_list "(iVar1,uVar2 * 4)" ( identifier , (binary_expression "uVar2 * 4" identifier * number_literal) )))) ;) (expression_statement "*in_ECX = iVar1;" (assignment_expression "*in_ECX = iVar1" (pointer_expression "*in_ECX" * identifier) = identifier) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(int *)(iVar1 + uVar3 * 4) = local_20;" (assignment_expression "*(int *)(iVar1 + uVar3 * 4) = local_20" (pointer_expression "*(int *)(iVar1 + uVar3 * 4)" * (cast_expression "(int *)(iVar1 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + uVar3 * 4)" ( (binary_expression "iVar1 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nbfd_boolean __regparm3\nstab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)\n\n{\n  char *p;\n  bfd_boolean bVar1;\n  debug_type_conflict *ppdVar2;\n  uint uVar3;\n  uint uVar4;\n  stab_demangle_info *in_stack_ffffffc4;\n  char **in_stack_ffffffc8;\n  debug_type_conflict *in_stack_ffffffcc;\n  debug_type type;\n  \n  p = *pp;\n  bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nstab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)\n\n{\n  char *p;\n  bfd_boolean bVar1;\n  debug_type_conflict *ppdVar2;\n  uint uVar3;\n  uint uVar4;\n  stab_demangle_info *in_stack_ffffffc4;\n  char **in_stack_ffffffc8;\n  debug_type_conflict *in_stack_ffffffcc;\n  debug_type type;\n  \n  p = *pp;\n  bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)" identifier (parameter_list "(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)" ( (parameter_declaration "stab_demangle_info *minfo" type_identifier (pointer_declarator "*minfo" * identifier)) , (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) , (parameter_declaration "debug_type_conflict **pargs" type_identifier (pointer_declarator "**pargs" * (pointer_declarator "*pargs" * identifier))) , (parameter_declaration "uint *pcount" type_identifier (pointer_declarator "*pcount" * identifier)) , (parameter_declaration "uint *palloc" type_identifier (pointer_declarator "*palloc" * identifier)) ))) (compound_statement "{\n  char *p;\n  bfd_boolean bVar1;\n  debug_type_conflict *ppdVar2;\n  uint uVar3;\n  uint uVar4;\n  stab_demangle_info *in_stack_ffffffc4;\n  char **in_stack_ffffffc8;\n  debug_type_conflict *in_stack_ffffffcc;\n  debug_type type;\n  \n  p = *pp;\n  bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "debug_type_conflict *ppdVar2;" type_identifier (pointer_declarator "*ppdVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "stab_demangle_info *in_stack_ffffffc4;" type_identifier (pointer_declarator "*in_stack_ffffffc4" * identifier) ;) (declaration "char **in_stack_ffffffc8;" primitive_type (pointer_declarator "**in_stack_ffffffc8" * (pointer_declarator "*in_stack_ffffffc8" * identifier)) ;) (declaration "debug_type_conflict *in_stack_ffffffcc;" type_identifier (pointer_declarator "*in_stack_ffffffcc" * identifier) ;) (declaration "debug_type type;" type_identifier identifier ;) (expression_statement "p = *pp;" (assignment_expression "p = *pp" identifier = (pointer_expression "*pp" * identifier)) ;) (expression_statement "bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (assignment_expression "bVar1 = stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier = (call_expression "stab_demangle_type(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }\n  }" if (parenthesized_expression "((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))" ( (binary_expression "(bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0)" (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0)" ( (comma_expression "bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0" (assignment_expression "bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p)" identifier = (call_expression "stab_demangle_remember_type(minfo,p,(int)*pp - (int)p)" identifier (argument_list "(minfo,p,(int)*pp - (int)p)" ( identifier , identifier , (binary_expression "(int)*pp - (int)p" (cast_expression "(int)*pp" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pp" * identifier)) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }\n  }" { (if_statement "if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(pargs == (debug_type_conflict **)0x0)" ( (binary_expression "pargs == (debug_type_conflict **)0x0" identifier == (cast_expression "(debug_type_conflict **)0x0" ( (type_descriptor "debug_type_conflict **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (type != (debug_type)0x0) {\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }" if (parenthesized_expression "(type != (debug_type)0x0)" ( (binary_expression "type != (debug_type)0x0" identifier != (cast_expression "(debug_type)0x0" ( (type_descriptor "debug_type" type_identifier) ) number_literal)) )) (compound_statement "{\n      uVar4 = *pcount;\n      uVar3 = uVar4 + 1;\n      ppdVar2 = *pargs;\n      if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }\n      ppdVar2[uVar4] = type;\n      *pcount = uVar3;\n      return 1;\n    }" { (expression_statement "uVar4 = *pcount;" (assignment_expression "uVar4 = *pcount" identifier = (pointer_expression "*pcount" * identifier)) ;) (expression_statement "uVar3 = uVar4 + 1;" (assignment_expression "uVar3 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "ppdVar2 = *pargs;" (assignment_expression "ppdVar2 = *pargs" identifier = (pointer_expression "*pargs" * identifier)) ;) (if_statement "if (*palloc <= uVar3) {\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }" if (parenthesized_expression "(*palloc <= uVar3)" ( (binary_expression "*palloc <= uVar3" (pointer_expression "*palloc" * identifier) <= identifier) )) (compound_statement "{\n        uVar3 = *palloc + 10;\n        *palloc = uVar3;\n        ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);\n        *pargs = ppdVar2;\n        uVar4 = *pcount;\n        uVar3 = uVar4 + 1;\n      }" { (expression_statement "uVar3 = *palloc + 10;" (assignment_expression "uVar3 = *palloc + 10" identifier = (binary_expression "*palloc + 10" (pointer_expression "*palloc" * identifier) + number_literal)) ;) (expression_statement "*palloc = uVar3;" (assignment_expression "*palloc = uVar3" (pointer_expression "*palloc" * identifier) = identifier) ;) (expression_statement "ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4);" (assignment_expression "ppdVar2 = (debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4)" identifier = (cast_expression "(debug_type_conflict *)xrealloc(ppdVar2,uVar3 * 4)" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(ppdVar2,uVar3 * 4)" identifier (argument_list "(ppdVar2,uVar3 * 4)" ( identifier , (binary_expression "uVar3 * 4" identifier * number_literal) ))))) ;) (expression_statement "*pargs = ppdVar2;" (assignment_expression "*pargs = ppdVar2" (pointer_expression "*pargs" * identifier) = identifier) ;) (expression_statement "uVar4 = *pcount;" (assignment_expression "uVar4 = *pcount" identifier = (pointer_expression "*pcount" * identifier)) ;) (expression_statement "uVar3 = uVar4 + 1;" (assignment_expression "uVar3 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "ppdVar2[uVar4] = type;" (assignment_expression "ppdVar2[uVar4] = type" (subscript_expression "ppdVar2[uVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "*pcount = uVar3;" (assignment_expression "*pcount = uVar3" (pointer_expression "*pcount" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00041940(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00041940(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00041940(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00040410();" (assignment_expression "iVar1 = FUN_00040410()" identifier = (call_expression "FUN_00040410()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0003eff0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0003eff0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003eff0()" identifier = (call_expression "FUN_0003eff0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" { (if_statement "if (in_ECX == (int *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(in_ECX == (int *)0x0)" ( (binary_expression "in_ECX == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *in_ECX;" (assignment_expression "iVar1 = *in_ECX" identifier = (pointer_expression "*in_ECX" * identifier)) ;) (if_statement "if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" if (parenthesized_expression "(*param_2 <= uVar2)" ( (binary_expression "*param_2 <= uVar2" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" { (expression_statement "uVar2 = *param_2 + 10;" (assignment_expression "uVar2 = *param_2 + 10" identifier = (binary_expression "*param_2 + 10" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = xrealloc(iVar1,uVar2 * 4);" (assignment_expression "iVar1 = xrealloc(iVar1,uVar2 * 4)" identifier = (call_expression "xrealloc(iVar1,uVar2 * 4)" identifier (argument_list "(iVar1,uVar2 * 4)" ( identifier , (binary_expression "uVar2 * 4" identifier * number_literal) )))) ;) (expression_statement "*in_ECX = iVar1;" (assignment_expression "*in_ECX = iVar1" (pointer_expression "*in_ECX" * identifier) = identifier) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(int *)(iVar1 + uVar3 * 4) = local_20;" (assignment_expression "*(int *)(iVar1 + uVar3 * 4) = local_20" (pointer_expression "*(int *)(iVar1 + uVar3 * 4)" * (cast_expression "(int *)(iVar1 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + uVar3 * 4)" ( (binary_expression "iVar1 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (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 (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00041940(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00041940(uint *param_1,uint *param_2)" (identifier "FUN_00041940") (parameter_list "(uint *param_1,uint *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *in_ECX;\n  uint uVar2;\n  uint uVar3;\n  int local_20;\n  \n  iVar1 = FUN_00040410();\n  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *in_ECX;" (primitive_type "int") (pointer_declarator "*in_ECX" (* "*") (identifier "in_ECX")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar1 = FUN_00040410();" (assignment_expression "iVar1 = FUN_00040410()" (identifier "iVar1") (= "=") (call_expression "FUN_00040410()" (identifier "FUN_00040410") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_0003eff0(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_0003eff0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003eff0()" (identifier "iVar1") (= "=") (call_expression "FUN_0003eff0()" (identifier "FUN_0003eff0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (in_ECX == (int *)0x0) {\n      return 1;\n    }\n    if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (in_ECX == (int *)0x0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(in_ECX == (int *)0x0)" (( "(") (binary_expression "in_ECX == (int *)0x0" (identifier "in_ECX") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (local_20 != 0) {\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" (if "if") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = *param_1;\n      uVar2 = uVar3 + 1;\n      iVar1 = *in_ECX;\n      if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }\n      *(int *)(iVar1 + uVar3 * 4) = local_20;\n      *param_1 = uVar2;\n      return 1;\n    }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *in_ECX;" (assignment_expression "iVar1 = *in_ECX" (identifier "iVar1") (= "=") (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX"))) (; ";")) (if_statement "if (*param_2 <= uVar2) {\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" (if "if") (parenthesized_expression "(*param_2 <= uVar2)" (( "(") (binary_expression "*param_2 <= uVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n        uVar2 = *param_2 + 10;\n        *param_2 = uVar2;\n        iVar1 = xrealloc(iVar1,uVar2 * 4);\n        *in_ECX = iVar1;\n        uVar3 = *param_1;\n        uVar2 = uVar3 + 1;\n      }" ({ "{") (expression_statement "uVar2 = *param_2 + 10;" (assignment_expression "uVar2 = *param_2 + 10" (identifier "uVar2") (= "=") (binary_expression "*param_2 + 10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "10"))) (; ";")) (expression_statement "*param_2 = uVar2;" (assignment_expression "*param_2 = uVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar1 = xrealloc(iVar1,uVar2 * 4);" (assignment_expression "iVar1 = xrealloc(iVar1,uVar2 * 4)" (identifier "iVar1") (= "=") (call_expression "xrealloc(iVar1,uVar2 * 4)" (identifier "xrealloc") (argument_list "(iVar1,uVar2 * 4)" (( "(") (identifier "iVar1") (, ",") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*in_ECX = iVar1;" (assignment_expression "*in_ECX = iVar1" (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = uVar3 + 1;" (assignment_expression "uVar2 = uVar3 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar1 + uVar3 * 4) = local_20;" (assignment_expression "*(int *)(iVar1 + uVar3 * 4) = local_20" (pointer_expression "*(int *)(iVar1 + uVar3 * 4)" (* "*") (cast_expression "(int *)(iVar1 + uVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + uVar3 * 4)" (( "(") (binary_expression "iVar1 + uVar3 * 4" (identifier "iVar1") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "local_20")) (; ";")) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

type_1 __regparm3
function_1(type_2 *minfo,char **pp,type_3 **var_4,type_4 *pcount,
                 type_4 *palloc)

{
  char *p;
  type_1 var_2;
  type_3 *ppdVar2;
  type_4 var_7;
  type_4 var_6;
  type_2 *in_stack_ffffffc4;
  char **in_stack_ffffffc8;
  type_3 *in_stack_ffffffcc;
  type_5 var_5;
  
  p = *pp;
  var_2 = var_1(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  if ((var_2 != 0) && (var_2 = var_3(minfo,p,(int)*pp - (int)p), var_2 != 0))
  {
    if (var_4 == (type_3 **)0x0) {
      return 1;
    }
    if (var_5 != (type_5)0x0) {
      var_6 = *pcount;
      var_7 = var_6 + 1;
      ppdVar2 = *var_4;
      if (*palloc <= var_7) {
        var_7 = *palloc + 10;
        *palloc = var_7;
        ppdVar2 = (type_3 *)var_8(ppdVar2,var_7 * 4);
        *var_4 = ppdVar2;
        var_6 = *pcount;
        var_7 = var_6 + 1;
      }
      ppdVar2[var_6] = var_5;
      *pcount = var_7;
      return 1;
    }
  }
  return 0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 MASKED(uint *param_1,uint *param_2)

{
  int iVar1;
  int *in_ECX;
  uint uVar2;
  uint uVar3;
  int local_20;
  
  iVar1 = FUN_00040410();
  if ((iVar1 != 0) && (iVar1 = FUN_0003eff0(), iVar1 != 0)) {
    if (in_ECX == (int *)0x0) {
      return 1;
    }
    if (local_20 != 0) {
      uVar3 = *param_1;
      uVar2 = uVar3 + 1;
      iVar1 = *in_ECX;
      if (*param_2 <= uVar2) {
        uVar2 = *param_2 + 10;
        *param_2 = uVar2;
        iVar1 = xrealloc(iVar1,uVar2 * 4);
        *in_ECX = iVar1;
        uVar3 = *param_1;
        uVar2 = uVar3 + 1;
      }
      *(int *)(iVar1 + uVar3 * 4) = local_20;
      *param_1 = uVar2;
      return 1;
    }
  }
  return 0;
}

