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

debug_type_conflict *
stab_demangle_v3_arglist
          (void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)

{
  void *in_EAX;
  debug_type_conflict *ppdVar1;
  debug_type pdVar2;
  debug_type_conflict *__ptr;
  char *__format;
  int *in_ECX;
  demangle_component *dc;
  stab_handle *in_EDX;
  uint uVar3;
  uint local_44;
  bfd_boolean varargs;
  undefined4 uStack_14;
  
  uStack_14 = 0x21c1b;
  ppdVar1 = (debug_type_conflict *)xmalloc(0x28);
  *(undefined4 *)dhandle = 0;
  __ptr = ppdVar1;
  if (in_ECX != (int *)0x0) {
    if (*in_ECX != 0x2e) {
LAB_00021d50:
      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);
      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);
      free(__ptr);
      return (debug_type_conflict *)0x0;
    }
    dc = (demangle_component *)in_ECX[2];
    if (dc != (demangle_component *)0x0) {
      uVar3 = 0;
      local_44 = 10;
      do {
        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);
        if (pdVar2 == (debug_type)0x0) {
          if (varargs == 0) {
            free(__ptr);
            return (debug_type_conflict *)0x0;
          }
          *(undefined4 *)dhandle = 1;
          in_ECX = (int *)in_ECX[3];
        }
        else {
          if (local_44 <= uVar3 + 1) {
            local_44 = local_44 + 10;
            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);
          }
          in_ECX = (int *)in_ECX[3];
          __ptr[uVar3] = pdVar2;
          uVar3 = uVar3 + 1;
        }
        if (in_ECX == (int *)0x0) break;
        if (*in_ECX != 0x2e) goto LAB_00021d50;
        dc = (demangle_component *)in_ECX[2];
      } while (dc != (demangle_component *)0x0);
      ppdVar1 = __ptr + uVar3;
    }
  }
  *ppdVar1 = (debug_type_conflict)0x0;
  return __ptr;
}



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

undefined4 * FUN_00021c10(undefined4 *param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *__ptr;
  char *__format;
  int *in_ECX;
  uint uVar3;
  uint local_44;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x21c1b;
  puVar1 = (undefined4 *)xmalloc(0x28);
  *param_1 = 0;
  __ptr = puVar1;
  if (in_ECX != (int *)0x0) {
    if (*in_ECX != 0x2e) {
LAB_00021d50:
      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);
      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);
      free(__ptr);
      return (undefined4 *)0x0;
    }
    if (in_ECX[2] != 0) {
      uVar3 = 0;
      local_44 = 10;
      do {
        iVar2 = FUN_000214b0(0,local_20);
        if (iVar2 == 0) {
          if (local_20[0] == 0) {
            free(__ptr);
            return (undefined4 *)0x0;
          }
          *param_1 = 1;
          in_ECX = (int *)in_ECX[3];
        }
        else {
          if (local_44 <= uVar3 + 1) {
            local_44 = local_44 + 10;
            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);
          }
          in_ECX = (int *)in_ECX[3];
          __ptr[uVar3] = iVar2;
          uVar3 = uVar3 + 1;
        }
        if (in_ECX == (int *)0x0) break;
        if (*in_ECX != 0x2e) goto LAB_00021d50;
      } while (in_ECX[2] != 0);
      puVar1 = __ptr + uVar3;
    }
  }
  *puVar1 = 0;
  return __ptr;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x000166c0
ADD EBX,0x1e3e5
SUB ESP,0x48
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x1c],EDX
PUSH 0x28
CALL 0x000132e0
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x60]
ADD ESP,0x10
MOV dword ptr [EAX],0x0
TEST ESI,ESI
JZ 0x00021d80
CMP dword ptr [ESI],0x2e
JNZ 0x00021d50
MOV ECX,dword ptr [ESI + 0x8]
TEST ECX,ECX
JZ 0x00021d80
LEA EAX,[ESP + 0x2c]
XOR EDI,EDI
MOV dword ptr [ESP + 0x8],0xa
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00021c9e
LEA ECX,[EDI + 0x1]
CMP ECX,dword ptr [ESP + 0x8]
JNC 0x00021cf8
MOV ESI,dword ptr [ESI + 0xc]
MOV dword ptr [EBP + EDI*0x4],EDX
MOV EDI,ECX
TEST ESI,ESI
JZ 0x00021ce0
CMP dword ptr [ESI],0x2e
JNZ 0x00021d50
MOV ECX,dword ptr [ESI + 0x8]
TEST ECX,ECX
JZ 0x00021ce0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x000214b0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JNZ 0x00021c78
MOV EAX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
JZ 0x00021d30
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [EAX],0x1
MOV ESI,dword ptr [ESI + 0xc]
TEST ESI,ESI
JNZ 0x00021c8e
LEA ESI,[ESI]
LEA ESI,[ESI]
LEA EAX,[EBP + EDI*0x4]
MOV dword ptr [EAX],0x0
ADD ESP,0x3c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x1c],EAX
ADD dword ptr [ESP + 0x8],0xa
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0x8
MOV dword ptr [ESP + 0x20],ECX
SHL EAX,0x2
PUSH EAX
PUSH EBP
CALL 0x00013230
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x18]
MOV EBP,EAX
JMP 0x00021c81
SUB ESP,0xc
PUSH EBP
CALL 0x00013948
ADD ESP,0x10
ADD ESP,0x3c
XOR EBP,EBP
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4258]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
POP EDX
POP ECX
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffa8]
PUSH dword ptr [EAX]
CALL 0x00013520
MOV dword ptr [ESP],EBP
CALL 0x00013948
ADD ESP,0x10
JMP 0x00021d3c
MOV EAX,EBP
JMP 0x00021ce4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00021c10(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}\n\n" comment (function_definition "undefined4 * FUN_00021c10(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" type_identifier (pointer_declarator "* FUN_00021c10(undefined4 *param_1)" * (function_declarator "FUN_00021c10(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21c1b;" (assignment_expression "uStack_14 = 0x21c1b" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x28);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x28)" identifier = (cast_expression "(undefined4 *)xmalloc(0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" identifier = identifier) ;) (if_statement "if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\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    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }" { (if_statement "if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (compound_statement "{\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" { (labeled_statement "LAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" statement_identifier : (expression_statement "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier (argument_list "(0,"Unexpected type in v3 arglist demangling\n",5)" ( number_literal , (string_literal ""Unexpected type in v3 arglist demangling\n"" " string_content escape_sequence ") , number_literal ))))) ;)) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,__format)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" if (parenthesized_expression "(in_ECX[2] != 0)" ( (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 10;" (assignment_expression "local_44 = 10" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);" do (compound_statement "{\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      }" { (expression_statement "iVar2 = FUN_000214b0(0,local_20);" (assignment_expression "iVar2 = FUN_000214b0(0,local_20)" identifier = (call_expression "FUN_000214b0(0,local_20)" identifier (argument_list "(0,local_20)" ( number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }" { (if_statement "if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" if (parenthesized_expression "(local_20[0] == 0)" ( (binary_expression "local_20[0] == 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" else (compound_statement "{\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" { (if_statement "if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" if (parenthesized_expression "(local_44 <= uVar3 + 1)" ( (binary_expression "local_44 <= uVar3 + 1" identifier <= (binary_expression "uVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" { (expression_statement "local_44 = local_44 + 10;" (assignment_expression "local_44 = local_44 + 10" identifier = (binary_expression "local_44 + 10" identifier + number_literal)) ;) (expression_statement "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);" (assignment_expression "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4)" identifier = (cast_expression "(undefined4 *)xrealloc(__ptr,local_44 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(__ptr,local_44 * 4)" identifier (argument_list "(__ptr,local_44 * 4)" ( identifier , (binary_expression "local_44 * 4" identifier * number_literal) ))))) ;) })) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) (expression_statement "__ptr[uVar3] = iVar2;" (assignment_expression "__ptr[uVar3] = iVar2" (subscript_expression "__ptr[uVar3]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }))) (if_statement "if (in_ECX == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (if_statement "if (*in_ECX != 0x2e) goto LAB_00021d50;" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (goto_statement "goto LAB_00021d50;" goto statement_identifier ;)) }) while (parenthesized_expression "(in_ECX[2] != 0)" ( (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" identifier [ number_literal ]) != number_literal) )) ;) (expression_statement "puVar1 = __ptr + uVar3;" (assignment_expression "puVar1 = __ptr + uVar3" identifier = (binary_expression "__ptr + uVar3" identifier + identifier)) ;) })) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return __ptr;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ndebug_type_conflict *\nstab_demangle_v3_arglist\n          (void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)\n\n{\n  void *in_EAX;\n  debug_type_conflict *ppdVar1;\n  debug_type pdVar2;\n  debug_type_conflict *__ptr;\n  char *__format;\n  int *in_ECX;\n  demangle_component *dc;\n  stab_handle *in_EDX;\n  uint uVar3;\n  uint local_44;\n  bfd_boolean varargs;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  ppdVar1 = (debug_type_conflict *)xmalloc(0x28);\n  *(undefined4 *)dhandle = 0;\n  __ptr = ppdVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }\n    dc = (demangle_component *)in_ECX[2];\n    if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }\n  }\n  *ppdVar1 = (debug_type_conflict)0x0;\n  return __ptr;\n}\n\n" comment (function_definition "debug_type_conflict *\nstab_demangle_v3_arglist\n          (void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)\n\n{\n  void *in_EAX;\n  debug_type_conflict *ppdVar1;\n  debug_type pdVar2;\n  debug_type_conflict *__ptr;\n  char *__format;\n  int *in_ECX;\n  demangle_component *dc;\n  stab_handle *in_EDX;\n  uint uVar3;\n  uint local_44;\n  bfd_boolean varargs;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  ppdVar1 = (debug_type_conflict *)xmalloc(0x28);\n  *(undefined4 *)dhandle = 0;\n  __ptr = ppdVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }\n    dc = (demangle_component *)in_ECX[2];\n    if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }\n  }\n  *ppdVar1 = (debug_type_conflict)0x0;\n  return __ptr;\n}" type_identifier (pointer_declarator "*\nstab_demangle_v3_arglist\n          (void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)" * (function_declarator "stab_demangle_v3_arglist\n          (void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)" identifier (parameter_list "(void *dhandle,stab_handle *info,demangle_component *arglist,bfd_boolean *pvarargs)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "stab_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "demangle_component *arglist" type_identifier (pointer_declarator "*arglist" * identifier)) , (parameter_declaration "bfd_boolean *pvarargs" type_identifier (pointer_declarator "*pvarargs" * identifier)) )))) (compound_statement "{\n  void *in_EAX;\n  debug_type_conflict *ppdVar1;\n  debug_type pdVar2;\n  debug_type_conflict *__ptr;\n  char *__format;\n  int *in_ECX;\n  demangle_component *dc;\n  stab_handle *in_EDX;\n  uint uVar3;\n  uint local_44;\n  bfd_boolean varargs;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  ppdVar1 = (debug_type_conflict *)xmalloc(0x28);\n  *(undefined4 *)dhandle = 0;\n  __ptr = ppdVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }\n    dc = (demangle_component *)in_ECX[2];\n    if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }\n  }\n  *ppdVar1 = (debug_type_conflict)0x0;\n  return __ptr;\n}" { (declaration "void *in_EAX;" primitive_type (pointer_declarator "*in_EAX" * identifier) ;) (declaration "debug_type_conflict *ppdVar1;" type_identifier (pointer_declarator "*ppdVar1" * identifier) ;) (declaration "debug_type pdVar2;" type_identifier identifier ;) (declaration "debug_type_conflict *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "demangle_component *dc;" type_identifier (pointer_declarator "*dc" * identifier) ;) (declaration "stab_handle *in_EDX;" type_identifier (pointer_declarator "*in_EDX" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "bfd_boolean varargs;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21c1b;" (assignment_expression "uStack_14 = 0x21c1b" identifier = number_literal) ;) (expression_statement "ppdVar1 = (debug_type_conflict *)xmalloc(0x28);" (assignment_expression "ppdVar1 = (debug_type_conflict *)xmalloc(0x28)" identifier = (cast_expression "(debug_type_conflict *)xmalloc(0x28)" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)dhandle = 0;" (assignment_expression "*(undefined4 *)dhandle = 0" (pointer_expression "*(undefined4 *)dhandle" * (cast_expression "(undefined4 *)dhandle" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "__ptr = ppdVar1;" (assignment_expression "__ptr = ppdVar1" identifier = identifier) ;) (if_statement "if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }\n    dc = (demangle_component *)in_ECX[2];\n    if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }\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    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }\n    dc = (demangle_component *)in_ECX[2];\n    if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }\n  }" { (if_statement "if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (compound_statement "{\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (debug_type_conflict *)0x0;\n    }" { (labeled_statement "LAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" statement_identifier : (expression_statement "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier (argument_list "(0,"Unexpected type in v3 arglist demangling\n",5)" ( number_literal , (string_literal ""Unexpected type in v3 arglist demangling\n"" " string_content escape_sequence ") , number_literal ))))) ;)) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,__format)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (debug_type_conflict *)0x0;" return (cast_expression "(debug_type_conflict *)0x0" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "dc = (demangle_component *)in_ECX[2];" (assignment_expression "dc = (demangle_component *)in_ECX[2]" identifier = (cast_expression "(demangle_component *)in_ECX[2]" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[2]" identifier [ number_literal ]))) ;) (if_statement "if (dc != (demangle_component *)0x0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }" if (parenthesized_expression "(dc != (demangle_component *)0x0)" ( (binary_expression "dc != (demangle_component *)0x0" identifier != (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);\n      ppdVar1 = __ptr + uVar3;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 10;" (assignment_expression "local_44 = 10" identifier = number_literal) ;) (do_statement "do {\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      } while (dc != (demangle_component *)0x0);" do (compound_statement "{\n        pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);\n        if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n        dc = (demangle_component *)in_ECX[2];\n      }" { (expression_statement "pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs);" (assignment_expression "pdVar2 = stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs)" identifier = (call_expression "stab_demangle_v3_arg(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs)" identifier (argument_list "(in_EAX,in_EDX,dc,(debug_type)0x0,&varargs)" ( identifier , identifier , identifier , (cast_expression "(debug_type)0x0" ( (type_descriptor "debug_type" type_identifier) ) number_literal) , (pointer_expression "&varargs" & identifier) )))) ;) (if_statement "if (pdVar2 == (debug_type)0x0) {\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }" if (parenthesized_expression "(pdVar2 == (debug_type)0x0)" ( (binary_expression "pdVar2 == (debug_type)0x0" identifier == (cast_expression "(debug_type)0x0" ( (type_descriptor "debug_type" type_identifier) ) number_literal)) )) (compound_statement "{\n          if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }\n          *(undefined4 *)dhandle = 1;\n          in_ECX = (int *)in_ECX[3];\n        }" { (if_statement "if (varargs == 0) {\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }" if (parenthesized_expression "(varargs == 0)" ( (binary_expression "varargs == 0" identifier == number_literal) )) (compound_statement "{\n            free(__ptr);\n            return (debug_type_conflict *)0x0;\n          }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (debug_type_conflict *)0x0;" return (cast_expression "(debug_type_conflict *)0x0" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*(undefined4 *)dhandle = 1;" (assignment_expression "*(undefined4 *)dhandle = 1" (pointer_expression "*(undefined4 *)dhandle" * (cast_expression "(undefined4 *)dhandle" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }" else (compound_statement "{\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = pdVar2;\n          uVar3 = uVar3 + 1;\n        }" { (if_statement "if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }" if (parenthesized_expression "(local_44 <= uVar3 + 1)" ( (binary_expression "local_44 <= uVar3 + 1" identifier <= (binary_expression "uVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n            local_44 = local_44 + 10;\n            __ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);\n          }" { (expression_statement "local_44 = local_44 + 10;" (assignment_expression "local_44 = local_44 + 10" identifier = (binary_expression "local_44 + 10" identifier + number_literal)) ;) (expression_statement "__ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4);" (assignment_expression "__ptr = (debug_type_conflict *)xrealloc(__ptr,local_44 * 4)" identifier = (cast_expression "(debug_type_conflict *)xrealloc(__ptr,local_44 * 4)" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(__ptr,local_44 * 4)" identifier (argument_list "(__ptr,local_44 * 4)" ( identifier , (binary_expression "local_44 * 4" identifier * number_literal) ))))) ;) })) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) (expression_statement "__ptr[uVar3] = pdVar2;" (assignment_expression "__ptr[uVar3] = pdVar2" (subscript_expression "__ptr[uVar3]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }))) (if_statement "if (in_ECX == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (if_statement "if (*in_ECX != 0x2e) goto LAB_00021d50;" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (goto_statement "goto LAB_00021d50;" goto statement_identifier ;)) (expression_statement "dc = (demangle_component *)in_ECX[2];" (assignment_expression "dc = (demangle_component *)in_ECX[2]" identifier = (cast_expression "(demangle_component *)in_ECX[2]" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(dc != (demangle_component *)0x0)" ( (binary_expression "dc != (demangle_component *)0x0" identifier != (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "ppdVar1 = __ptr + uVar3;" (assignment_expression "ppdVar1 = __ptr + uVar3" identifier = (binary_expression "__ptr + uVar3" identifier + identifier)) ;) })) })) (expression_statement "*ppdVar1 = (debug_type_conflict)0x0;" (assignment_expression "*ppdVar1 = (debug_type_conflict)0x0" (pointer_expression "*ppdVar1" * identifier) = (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) ;) (return_statement "return __ptr;" return identifier ;) })))
(translation_unit "undefined4 * FUN_00021c10(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}\n\n" (function_definition "undefined4 * FUN_00021c10(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" type_identifier (pointer_declarator "* FUN_00021c10(undefined4 *param_1)" * (function_declarator "FUN_00021c10(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21c1b;" (assignment_expression "uStack_14 = 0x21c1b" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x28);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x28)" identifier = (cast_expression "(undefined4 *)xmalloc(0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" identifier = identifier) ;) (if_statement "if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\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    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }" { (if_statement "if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (compound_statement "{\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" { (labeled_statement "LAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" statement_identifier : (expression_statement "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" identifier (argument_list "(0,"Unexpected type in v3 arglist demangling\n",5)" ( number_literal , (string_literal ""Unexpected type in v3 arglist demangling\n"" " string_content escape_sequence ") , number_literal ))))) ;)) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,__format)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" if (parenthesized_expression "(in_ECX[2] != 0)" ( (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 10;" (assignment_expression "local_44 = 10" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);" do (compound_statement "{\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      }" { (expression_statement "iVar2 = FUN_000214b0(0,local_20);" (assignment_expression "iVar2 = FUN_000214b0(0,local_20)" identifier = (call_expression "FUN_000214b0(0,local_20)" identifier (argument_list "(0,local_20)" ( number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }" { (if_statement "if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" if (parenthesized_expression "(local_20[0] == 0)" ( (binary_expression "local_20[0] == 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" else (compound_statement "{\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" { (if_statement "if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" if (parenthesized_expression "(local_44 <= uVar3 + 1)" ( (binary_expression "local_44 <= uVar3 + 1" identifier <= (binary_expression "uVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" { (expression_statement "local_44 = local_44 + 10;" (assignment_expression "local_44 = local_44 + 10" identifier = (binary_expression "local_44 + 10" identifier + number_literal)) ;) (expression_statement "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);" (assignment_expression "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4)" identifier = (cast_expression "(undefined4 *)xrealloc(__ptr,local_44 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(__ptr,local_44 * 4)" identifier (argument_list "(__ptr,local_44 * 4)" ( identifier , (binary_expression "local_44 * 4" identifier * number_literal) ))))) ;) })) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" identifier = (cast_expression "(int *)in_ECX[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "in_ECX[3]" identifier [ number_literal ]))) ;) (expression_statement "__ptr[uVar3] = iVar2;" (assignment_expression "__ptr[uVar3] = iVar2" (subscript_expression "__ptr[uVar3]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }))) (if_statement "if (in_ECX == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (if_statement "if (*in_ECX != 0x2e) goto LAB_00021d50;" if (parenthesized_expression "(*in_ECX != 0x2e)" ( (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" * identifier) != number_literal) )) (goto_statement "goto LAB_00021d50;" goto statement_identifier ;)) }) while (parenthesized_expression "(in_ECX[2] != 0)" ( (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" identifier [ number_literal ]) != number_literal) )) ;) (expression_statement "puVar1 = __ptr + uVar3;" (assignment_expression "puVar1 = __ptr + uVar3" identifier = (binary_expression "__ptr + uVar3" identifier + identifier)) ;) })) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return __ptr;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT ))))) ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00021c10(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00021c10(undefined4 *param_1)" (* "*") (function_declarator "FUN_00021c10(undefined4 *param_1)" (identifier "FUN_00021c10") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  char *__format;\n  int *in_ECX;\n  uint uVar3;\n  uint local_44;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21c1b;\n  puVar1 = (undefined4 *)xmalloc(0x28);\n  *param_1 = 0;\n  __ptr = puVar1;\n  if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }\n  *puVar1 = 0;\n  return __ptr;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "int *in_ECX;" (primitive_type "int") (pointer_declarator "*in_ECX" (* "*") (identifier "in_ECX")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint local_44;" (type_identifier "uint") (identifier "local_44") (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x21c1b;" (assignment_expression "uStack_14 = 0x21c1b" (identifier "uStack_14") (= "=") (number_literal "0x21c1b")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x28);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x28)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" (identifier "__ptr") (= "=") (identifier "puVar1")) (; ";")) (if_statement "if (in_ECX != (int *)0x0) {\n    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\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    if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }\n    if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }\n  }" ({ "{") (if_statement "if (*in_ECX != 0x2e) {\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" (if "if") (parenthesized_expression "(*in_ECX != 0x2e)" (( "(") (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")) (!= "!=") (number_literal "0x2e")) () ")")) (compound_statement "{\nLAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);\n      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);\n      free(__ptr);\n      return (undefined4 *)0x0;\n    }" ({ "{") (labeled_statement "LAB_00021d50:\n      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" (statement_identifier "LAB_00021d50") (: ":") (expression_statement "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"Unexpected type in v3 arglist demangling\n",5)" (identifier "dcgettext") (argument_list "(0,"Unexpected type in v3 arglist demangling\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Unexpected type in v3 arglist demangling\n"" (" """) (string_content "Unexpected type in v3 arglist demangling") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";"))) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,__format)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0003ffa8,__format)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" (* "*") (cast_expression "(FILE **)PTR_stderr_0003ffa8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0003ffa8"))) (, ",") (identifier "__format") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (in_ECX[2] != 0) {\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" (if "if") (parenthesized_expression "(in_ECX[2] != 0)" (( "(") (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" (identifier "in_ECX") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      local_44 = 10;\n      do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);\n      puVar1 = __ptr + uVar3;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 10;" (assignment_expression "local_44 = 10" (identifier "local_44") (= "=") (number_literal "10")) (; ";")) (do_statement "do {\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      } while (in_ECX[2] != 0);" (do "do") (compound_statement "{\n        iVar2 = FUN_000214b0(0,local_20);\n        if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }\n        if (in_ECX == (int *)0x0) break;\n        if (*in_ECX != 0x2e) goto LAB_00021d50;\n      }" ({ "{") (expression_statement "iVar2 = FUN_000214b0(0,local_20);" (assignment_expression "iVar2 = FUN_000214b0(0,local_20)" (identifier "iVar2") (= "=") (call_expression "FUN_000214b0(0,local_20)" (identifier "FUN_000214b0") (argument_list "(0,local_20)" (( "(") (number_literal "0") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }\n        else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }\n          *param_1 = 1;\n          in_ECX = (int *)in_ECX[3];\n        }" ({ "{") (if_statement "if (local_20[0] == 0) {\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" (if "if") (parenthesized_expression "(local_20[0] == 0)" (( "(") (binary_expression "local_20[0] == 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            free(__ptr);\n            return (undefined4 *)0x0;\n          }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" (identifier "in_ECX") (= "=") (cast_expression "(int *)in_ECX[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "in_ECX[3]" (identifier "in_ECX") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" (else "else") (compound_statement "{\n          if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }\n          in_ECX = (int *)in_ECX[3];\n          __ptr[uVar3] = iVar2;\n          uVar3 = uVar3 + 1;\n        }" ({ "{") (if_statement "if (local_44 <= uVar3 + 1) {\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" (if "if") (parenthesized_expression "(local_44 <= uVar3 + 1)" (( "(") (binary_expression "local_44 <= uVar3 + 1" (identifier "local_44") (<= "<=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n            local_44 = local_44 + 10;\n            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);\n          }" ({ "{") (expression_statement "local_44 = local_44 + 10;" (assignment_expression "local_44 = local_44 + 10" (identifier "local_44") (= "=") (binary_expression "local_44 + 10" (identifier "local_44") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);" (assignment_expression "__ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)xrealloc(__ptr,local_44 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(__ptr,local_44 * 4)" (identifier "xrealloc") (argument_list "(__ptr,local_44 * 4)" (( "(") (identifier "__ptr") (, ",") (binary_expression "local_44 * 4" (identifier "local_44") (* "*") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "in_ECX = (int *)in_ECX[3];" (assignment_expression "in_ECX = (int *)in_ECX[3]" (identifier "in_ECX") (= "=") (cast_expression "(int *)in_ECX[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "in_ECX[3]" (identifier "in_ECX") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "__ptr[uVar3] = iVar2;" (assignment_expression "__ptr[uVar3] = iVar2" (subscript_expression "__ptr[uVar3]" (identifier "__ptr") ([ "[") (identifier "uVar3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (in_ECX == (int *)0x0) break;" (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"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*in_ECX != 0x2e) goto LAB_00021d50;" (if "if") (parenthesized_expression "(*in_ECX != 0x2e)" (( "(") (binary_expression "*in_ECX != 0x2e" (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")) (!= "!=") (number_literal "0x2e")) () ")")) (goto_statement "goto LAB_00021d50;" (goto "goto") (statement_identifier "LAB_00021d50") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(in_ECX[2] != 0)" (( "(") (binary_expression "in_ECX[2] != 0" (subscript_expression "in_ECX[2]" (identifier "in_ECX") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar1 = __ptr + uVar3;" (assignment_expression "puVar1 = __ptr + uVar3" (identifier "puVar1") (= "=") (binary_expression "__ptr + uVar3" (identifier "__ptr") (+ "+") (identifier "uVar3"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (} "}")))

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

type_1 *
function_1
          (void *dhandle,type_2 *info,type_3 *arglist,type_4 *pvarargs)

{
  void *in_EAX;
  type_1 *ppdVar1;
  type_5 var_8;
  type_1 *var_13;
  char *__format;
  int *var_2;
  type_3 *var_6;
  type_2 *in_EDX;
  type_6 var_11;
  type_6 var_10;
  type_4 var_9;
  type_7 uStack_14;
  
  uStack_14 = 0x21c1b;
  ppdVar1 = (type_1 *)var_1(0x28);
  *(type_7 *)dhandle = 0;
  var_13 = ppdVar1;
  if (var_2 != (int *)0x0) {
    if (*var_2 != 0x2e) {
LAB_00021d50:
      __format = (char *)var_3(0,"Unexpected type in v3 arglist demangling\n",5);
      var_4(*(type_8 **)PTR_stderr_0003ffa8,__format);
      var_5(var_13);
      return (type_1 *)0x0;
    }
    var_6 = (type_3 *)var_2[2];
    if (var_6 != (type_3 *)0x0) {
      var_11 = 0;
      var_10 = 10;
      do {
        var_8 = var_7(in_EAX,in_EDX,var_6,(type_5)0x0,&var_9);
        if (var_8 == (type_5)0x0) {
          if (var_9 == 0) {
            var_5(var_13);
            return (type_1 *)0x0;
          }
          *(type_7 *)dhandle = 1;
          var_2 = (int *)var_2[3];
        }
        else {
          if (var_10 <= var_11 + 1) {
            var_10 = var_10 + 10;
            var_13 = (type_1 *)var_12(var_13,var_10 * 4);
          }
          var_2 = (int *)var_2[3];
          var_13[var_11] = var_8;
          var_11 = var_11 + 1;
        }
        if (var_2 == (int *)0x0) break;
        if (*var_2 != 0x2e) goto LAB_00021d50;
        var_6 = (type_3 *)var_2[2];
      } while (var_6 != (type_3 *)0x0);
      ppdVar1 = var_13 + var_11;
    }
  }
  *ppdVar1 = (type_1)0x0;
  return var_13;
}


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

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

undefined4 * MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *__ptr;
  char *__format;
  int *in_ECX;
  uint uVar3;
  uint local_44;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x21c1b;
  puVar1 = (undefined4 *)xmalloc(0x28);
  *param_1 = 0;
  __ptr = puVar1;
  if (in_ECX != (int *)0x0) {
    if (*in_ECX != 0x2e) {
LAB_00021d50:
      __format = (char *)dcgettext(0,"Unexpected type in v3 arglist demangling\n",5);
      fprintf(*(FILE **)PTR_stderr_0003ffa8,__format);
      free(__ptr);
      return (undefined4 *)0x0;
    }
    if (in_ECX[2] != 0) {
      uVar3 = 0;
      local_44 = 10;
      do {
        iVar2 = FUN_000214b0(0,local_20);
        if (iVar2 == 0) {
          if (local_20[0] == 0) {
            free(__ptr);
            return (undefined4 *)0x0;
          }
          *param_1 = 1;
          in_ECX = (int *)in_ECX[3];
        }
        else {
          if (local_44 <= uVar3 + 1) {
            local_44 = local_44 + 10;
            __ptr = (undefined4 *)xrealloc(__ptr,local_44 * 4);
          }
          in_ECX = (int *)in_ECX[3];
          __ptr[uVar3] = iVar2;
          uVar3 = uVar3 + 1;
        }
        if (in_ECX == (int *)0x0) break;
        if (*in_ECX != 0x2e) goto LAB_00021d50;
      } while (in_ECX[2] != 0);
      puVar1 = __ptr + uVar3;
    }
  }
  *puVar1 = 0;
  return __ptr;
}

