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

int __regparm3 demangle_template_template_parm(work_stuff *work,char **mangled,string *tname)

{
  int iVar1;
  char *pcVar2;
  char cVar3;
  int local_3c;
  int r;
  string temp;
  
  string_append(tname,"template <");
  iVar1 = get_count(mangled,&r);
  local_3c = 1;
  if ((iVar1 != 0) && (0 < r)) {
    iVar1 = 0;
    pcVar2 = *mangled;
    cVar3 = *pcVar2;
    if (cVar3 == 'Z') goto LAB_001d13d5;
    iVar1 = 0;
    do {
      if (cVar3 == 'z') {
        *mangled = pcVar2 + 1;
        local_3c = demangle_template_template_parm(work,mangled,tname);
        if (local_3c == 0) goto LAB_001d1430;
      }
      else {
        local_3c = do_type(work,mangled,&temp);
        if (local_3c == 0) {
          if (temp.b == (char *)0x0) {
LAB_001d1430:
            local_3c = 0;
            cVar3 = tname->p[-1];
            goto joined_r0x001d143e;
          }
          free(temp.b);
          temp.p = (char *)0x0;
          temp.e = (char *)0x0;
          temp.b = (char *)0x0;
          break;
        }
        string_appends(tname,&temp,(string *)temp.p);
        if (temp.b != (char *)0x0) {
          free(temp.b);
          temp.p = (char *)0x0;
          temp.e = (char *)0x0;
          temp.b = (char *)0x0;
        }
      }
      while( true ) {
        iVar1 = iVar1 + 1;
        if (r <= iVar1) goto LAB_001d1370;
        string_append(tname,", ");
        pcVar2 = *mangled;
        cVar3 = *pcVar2;
        if (cVar3 != 'Z') break;
LAB_001d13d5:
        *mangled = pcVar2 + 1;
        string_append(tname,"class");
      }
    } while( true );
  }
LAB_001d1370:
  cVar3 = tname->p[-1];
joined_r0x001d143e:
  if (cVar3 == '>') {
    string_append(tname," ");
  }
  string_append(tname,"> class");
  return local_3c;
}



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

int __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)

{
  int iVar1;
  char *pcVar2;
  char cVar3;
  int iVar4;
  undefined4 extraout_var;
  undefined4 uVar5;
  void **ppvVar6;
  char *pcVar7;
  int local_2c;
  void *local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1d12bd;
  FUN_001ce240();
  uVar5 = extraout_var;
  iVar1 = FUN_001cd950();
  iVar4 = 1;
  if ((iVar1 != 0) && (0 < local_2c)) {
    ppvVar6 = &local_28;
    iVar1 = 0;
    pcVar7 = "class";
    pcVar2 = (char *)*param_2;
    cVar3 = *pcVar2;
    if (cVar3 == 'Z') goto LAB_001d13d5;
    iVar1 = 0;
    do {
      if (cVar3 == 'z') {
        *param_2 = pcVar2 + 1;
        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);
        if (iVar4 == 0) goto LAB_001d1430;
      }
      else {
        iVar4 = FUN_001cf7c0();
        if (iVar4 == 0) {
          if (local_28 == (void *)0x0) {
LAB_001d1430:
            iVar4 = 0;
            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);
            goto joined_r0x001d143e;
          }
          free(local_28);
          local_24 = 0;
          local_20 = 0;
          local_28 = (void *)0x0;
          break;
        }
        FUN_001ce390();
        if (local_28 != (void *)0x0) {
          free(local_28);
          local_24 = 0;
          local_20 = 0;
          local_28 = (void *)0x0;
        }
      }
      while( true ) {
        iVar1 = iVar1 + 1;
        if (local_2c <= iVar1) goto LAB_001d1370;
        FUN_001ce240();
        pcVar2 = (char *)*param_2;
        cVar3 = *pcVar2;
        if (cVar3 != 'Z') break;
LAB_001d13d5:
        *param_2 = pcVar2 + 1;
        FUN_001ce240();
      }
    } while( true );
  }
LAB_001d1370:
  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);
joined_r0x001d143e:
  if (cVar3 == '>') {
    FUN_001ce240();
  }
  FUN_001ce240();
  return iVar4;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1bdd43
SUB ESP,0x2c
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,ECX
LEA EDX,[EBX + 0xfff11b93]
CALL 0x001ce240
LEA EDX,[ESP + 0x10]
MOV EAX,EDI
CALL 0x001cd950
MOV dword ptr [ESP],0x1
TEST EAX,EAX
JZ 0x001d1370
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JLE 0x001d1370
LEA EAX,[ESP + 0x14]
XOR ESI,ESI
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0xfff11ba0]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI]
MOVZX EDX,byte ptr [EAX]
CMP DL,0x5a
JZ 0x001d13d5
LEA ESI,[ESI]
NOP
CMP DL,0x7a
JZ 0x001d1398
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,EDI
CALL 0x001cf7c0
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JNZ 0x001d13f0
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x001d1430
SUB ESP,0xc
PUSH EAX
CALL 0x00029410
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x24],0x0
ADD ESP,0x10
NOP
MOV EAX,dword ptr [EBP + 0x4]
CMP byte ptr [EAX + -0x1],0x3e
JZ 0x001d1444
MOV EAX,EBP
LEA EDX,[EBX + 0xfff11b9e]
CALL 0x001ce240
MOV EAX,dword ptr [ESP]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EAX,0x1
MOV ECX,EBP
MOV EDX,EDI
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESP + 0x4]
CALL 0x001d12b0
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JZ 0x001d1430
ADD ESI,0x1
CMP dword ptr [ESP + 0x10],ESI
JLE 0x001d1370
LEA EDX,[EBX + 0xfff0ff27]
MOV EAX,EBP
CALL 0x001ce240
MOV EAX,dword ptr [EDI]
MOVZX EDX,byte ptr [EAX]
CMP DL,0x5a
JNZ 0x001d1320
ADD EAX,0x1
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],EAX
MOV EAX,EBP
CALL 0x001ce240
JMP 0x001d13b1
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,EBP
CALL 0x001ce390
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x001d13b1
SUB ESP,0xc
PUSH EAX
CALL 0x00029410
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x24],0x0
ADD ESP,0x10
JMP 0x001d13b1
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP],0x0
CMP byte ptr [EAX + -0x1],0x3e
JNZ 0x001d137d
LEA EDX,[EBX + 0xfff0918f]
MOV EAX,EBP
CALL 0x001ce240
JMP 0x001d137d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "void **ppvVar6;" primitive_type (pointer_declarator "**ppvVar6" * (pointer_declarator "*ppvVar6" * identifier)) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "void *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d12bd;" (assignment_expression "uStack_14 = 0x1d12bd" identifier = number_literal) ;) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar5 = extraout_var;" (assignment_expression "uVar5 = extraout_var" identifier = identifier) ;) (expression_statement "iVar1 = FUN_001cd950();" (assignment_expression "iVar1 = FUN_001cd950()" identifier = (call_expression "FUN_001cd950()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" if (parenthesized_expression "((iVar1 != 0) && (0 < local_2c))" ( (binary_expression "(iVar1 != 0) && (0 < local_2c)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < local_2c)" ( (binary_expression "0 < local_2c" number_literal < identifier) ))) )) (compound_statement "{\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" { (expression_statement "ppvVar6 = &local_28;" (assignment_expression "ppvVar6 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = "class";" (assignment_expression "pcVar7 = "class"" identifier = (string_literal ""class"" " string_content ")) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 == 'Z') goto LAB_001d13d5;" if (parenthesized_expression "(cVar3 == 'Z')" ( (binary_expression "cVar3 == 'Z'" identifier == (char_literal "'Z'" ' character ')) )) (goto_statement "goto LAB_001d13d5;" goto statement_identifier ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );" do (compound_statement "{\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    }" { (if_statement "if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" if (parenthesized_expression "(cVar3 == 'z')" ( (binary_expression "cVar3 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (compound_statement "{\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }" { (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);" (assignment_expression "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" identifier = (call_expression "FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" identifier (argument_list "(iVar4,uVar5,ppvVar6,pcVar7)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_001d1430;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d1430;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" else (compound_statement "{\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" { (expression_statement "iVar4 = FUN_001cf7c0();" (assignment_expression "iVar4 = FUN_001cf7c0()" identifier = (call_expression "FUN_001cf7c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" { (if_statement "if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" if (parenthesized_expression "(local_28 == (void *)0x0)" ( (binary_expression "local_28 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" { (labeled_statement "LAB_001d1430:\n            iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" identifier = (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" * (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" ( (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (goto_statement "goto joined_r0x001d143e;" goto statement_identifier ;) })) (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "FUN_001ce390();" (call_expression "FUN_001ce390()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" if (parenthesized_expression "(local_28 != (void *)0x0)" ( (binary_expression "local_28 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) (while_statement "while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (local_2c <= iVar1) goto LAB_001d1370;" if (parenthesized_expression "(local_2c <= iVar1)" ( (binary_expression "local_2c <= iVar1" identifier <= identifier) )) (goto_statement "goto LAB_001d1370;" goto statement_identifier ;)) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 != 'Z') break;" if (parenthesized_expression "(cVar3 != 'Z')" ( (binary_expression "cVar3 != 'Z'" identifier != (char_literal "'Z'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_001d13d5:\n        *param_2 = pcVar2 + 1;" statement_identifier : (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;)) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" statement_identifier : (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" identifier = (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" * (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" ( (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal) ))))) ;)) (labeled_statement "joined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }" statement_identifier : (if_statement "if (cVar3 == '>') {\n    FUN_001ce240();\n  }" if (parenthesized_expression "(cVar3 == '>')" ( (binary_expression "cVar3 == '>'" identifier == (char_literal "'>'" ' character ')) )) (compound_statement "{\n    FUN_001ce240();\n  }" { (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 demangle_template_template_parm(work_stuff *work,char **mangled,string *tname)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int local_3c;\n  int r;\n  string temp;\n  \n  string_append(tname,"template <");\n  iVar1 = get_count(mangled,&r);\n  local_3c = 1;\n  if ((iVar1 != 0) && (0 < r)) {\n    iVar1 = 0;\n    pcVar2 = *mangled;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = tname->p[-1];\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    string_append(tname," ");\n  }\n  string_append(tname,"> class");\n  return local_3c;\n}\n\n" comment (function_definition "int __regparm3 demangle_template_template_parm(work_stuff *work,char **mangled,string *tname)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int local_3c;\n  int r;\n  string temp;\n  \n  string_append(tname,"template <");\n  iVar1 = get_count(mangled,&r);\n  local_3c = 1;\n  if ((iVar1 != 0) && (0 < r)) {\n    iVar1 = 0;\n    pcVar2 = *mangled;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = tname->p[-1];\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    string_append(tname," ");\n  }\n  string_append(tname,"> class");\n  return local_3c;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "demangle_template_template_parm(work_stuff *work,char **mangled,string *tname)" identifier (parameter_list "(work_stuff *work,char **mangled,string *tname)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "char **mangled" primitive_type (pointer_declarator "**mangled" * (pointer_declarator "*mangled" * identifier))) , (parameter_declaration "string *tname" type_identifier (pointer_declarator "*tname" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int local_3c;\n  int r;\n  string temp;\n  \n  string_append(tname,"template <");\n  iVar1 = get_count(mangled,&r);\n  local_3c = 1;\n  if ((iVar1 != 0) && (0 < r)) {\n    iVar1 = 0;\n    pcVar2 = *mangled;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = tname->p[-1];\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    string_append(tname," ");\n  }\n  string_append(tname,"> class");\n  return local_3c;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int r;" primitive_type identifier ;) (declaration "string temp;" type_identifier identifier ;) (expression_statement "string_append(tname,"template <");" (call_expression "string_append(tname,"template <")" identifier (argument_list "(tname,"template <")" ( identifier , (string_literal ""template <"" " string_content ") ))) ;) (expression_statement "iVar1 = get_count(mangled,&r);" (assignment_expression "iVar1 = get_count(mangled,&r)" identifier = (call_expression "get_count(mangled,&r)" identifier (argument_list "(mangled,&r)" ( identifier , (pointer_expression "&r" & identifier) )))) ;) (expression_statement "local_3c = 1;" (assignment_expression "local_3c = 1" identifier = number_literal) ;) (if_statement "if ((iVar1 != 0) && (0 < r)) {\n    iVar1 = 0;\n    pcVar2 = *mangled;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );\n  }" if (parenthesized_expression "((iVar1 != 0) && (0 < r))" ( (binary_expression "(iVar1 != 0) && (0 < r)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < r)" ( (binary_expression "0 < r" number_literal < identifier) ))) )) (compound_statement "{\n    iVar1 = 0;\n    pcVar2 = *mangled;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = *mangled;" (assignment_expression "pcVar2 = *mangled" identifier = (pointer_expression "*mangled" * identifier)) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 == 'Z') goto LAB_001d13d5;" if (parenthesized_expression "(cVar3 == 'Z')" ( (binary_expression "cVar3 == 'Z'" identifier == (char_literal "'Z'" ' character ')) )) (goto_statement "goto LAB_001d13d5;" goto statement_identifier ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    } while( true );" do (compound_statement "{\n      if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }\n    }" { (if_statement "if (cVar3 == 'z') {\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }\n      else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }" if (parenthesized_expression "(cVar3 == 'z')" ( (binary_expression "cVar3 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (compound_statement "{\n        *mangled = pcVar2 + 1;\n        local_3c = demangle_template_template_parm(work,mangled,tname);\n        if (local_3c == 0) goto LAB_001d1430;\n      }" { (expression_statement "*mangled = pcVar2 + 1;" (assignment_expression "*mangled = pcVar2 + 1" (pointer_expression "*mangled" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_3c = demangle_template_template_parm(work,mangled,tname);" (assignment_expression "local_3c = demangle_template_template_parm(work,mangled,tname)" identifier = (call_expression "demangle_template_template_parm(work,mangled,tname)" identifier (argument_list "(work,mangled,tname)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_3c == 0) goto LAB_001d1430;" if (parenthesized_expression "(local_3c == 0)" ( (binary_expression "local_3c == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d1430;" goto statement_identifier ;)) }) (else_clause "else {\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }" else (compound_statement "{\n        local_3c = do_type(work,mangled,&temp);\n        if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }\n        string_appends(tname,&temp,(string *)temp.p);\n        if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }\n      }" { (expression_statement "local_3c = do_type(work,mangled,&temp);" (assignment_expression "local_3c = do_type(work,mangled,&temp)" identifier = (call_expression "do_type(work,mangled,&temp)" identifier (argument_list "(work,mangled,&temp)" ( identifier , identifier , (pointer_expression "&temp" & identifier) )))) ;) (if_statement "if (local_3c == 0) {\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }" if (parenthesized_expression "(local_3c == 0)" ( (binary_expression "local_3c == 0" identifier == number_literal) )) (compound_statement "{\n          if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n          break;\n        }" { (if_statement "if (temp.b == (char *)0x0) {\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }" if (parenthesized_expression "(temp.b == (char *)0x0)" ( (binary_expression "temp.b == (char *)0x0" (field_expression "temp.b" identifier . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001d1430:\n            local_3c = 0;\n            cVar3 = tname->p[-1];\n            goto joined_r0x001d143e;\n          }" { (labeled_statement "LAB_001d1430:\n            local_3c = 0;" statement_identifier : (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;)) (expression_statement "cVar3 = tname->p[-1];" (assignment_expression "cVar3 = tname->p[-1]" identifier = (subscript_expression "tname->p[-1]" (field_expression "tname->p" identifier -> field_identifier) [ number_literal ])) ;) (goto_statement "goto joined_r0x001d143e;" goto statement_identifier ;) })) (expression_statement "free(temp.b);" (call_expression "free(temp.b)" identifier (argument_list "(temp.b)" ( (field_expression "temp.b" identifier . field_identifier) ))) ;) (expression_statement "temp.p = (char *)0x0;" (assignment_expression "temp.p = (char *)0x0" (field_expression "temp.p" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "temp.e = (char *)0x0;" (assignment_expression "temp.e = (char *)0x0" (field_expression "temp.e" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "temp.b = (char *)0x0;" (assignment_expression "temp.b = (char *)0x0" (field_expression "temp.b" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "string_appends(tname,&temp,(string *)temp.p);" (call_expression "string_appends(tname,&temp,(string *)temp.p)" identifier (argument_list "(tname,&temp,(string *)temp.p)" ( identifier , (pointer_expression "&temp" & identifier) , (cast_expression "(string *)temp.p" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "temp.p" identifier . field_identifier)) ))) ;) (if_statement "if (temp.b != (char *)0x0) {\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }" if (parenthesized_expression "(temp.b != (char *)0x0)" ( (binary_expression "temp.b != (char *)0x0" (field_expression "temp.b" identifier . field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(temp.b);\n          temp.p = (char *)0x0;\n          temp.e = (char *)0x0;\n          temp.b = (char *)0x0;\n        }" { (expression_statement "free(temp.b);" (call_expression "free(temp.b)" identifier (argument_list "(temp.b)" ( (field_expression "temp.b" identifier . field_identifier) ))) ;) (expression_statement "temp.p = (char *)0x0;" (assignment_expression "temp.p = (char *)0x0" (field_expression "temp.p" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "temp.e = (char *)0x0;" (assignment_expression "temp.e = (char *)0x0" (field_expression "temp.e" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "temp.b = (char *)0x0;" (assignment_expression "temp.b = (char *)0x0" (field_expression "temp.b" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) (while_statement "while( true ) {\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = iVar1 + 1;\n        if (r <= iVar1) goto LAB_001d1370;\n        string_append(tname,", ");\n        pcVar2 = *mangled;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *mangled = pcVar2 + 1;\n        string_append(tname,"class");\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (r <= iVar1) goto LAB_001d1370;" if (parenthesized_expression "(r <= iVar1)" ( (binary_expression "r <= iVar1" identifier <= identifier) )) (goto_statement "goto LAB_001d1370;" goto statement_identifier ;)) (expression_statement "string_append(tname,", ");" (call_expression "string_append(tname,", ")" identifier (argument_list "(tname,", ")" ( identifier , (string_literal "", "" " string_content ") ))) ;) (expression_statement "pcVar2 = *mangled;" (assignment_expression "pcVar2 = *mangled" identifier = (pointer_expression "*mangled" * identifier)) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 != 'Z') break;" if (parenthesized_expression "(cVar3 != 'Z')" ( (binary_expression "cVar3 != 'Z'" identifier != (char_literal "'Z'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_001d13d5:\n        *mangled = pcVar2 + 1;" statement_identifier : (expression_statement "*mangled = pcVar2 + 1;" (assignment_expression "*mangled = pcVar2 + 1" (pointer_expression "*mangled" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;)) (expression_statement "string_append(tname,"class");" (call_expression "string_append(tname,"class")" identifier (argument_list "(tname,"class")" ( identifier , (string_literal ""class"" " string_content ") ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001d1370:\n  cVar3 = tname->p[-1];" statement_identifier : (expression_statement "cVar3 = tname->p[-1];" (assignment_expression "cVar3 = tname->p[-1]" identifier = (subscript_expression "tname->p[-1]" (field_expression "tname->p" identifier -> field_identifier) [ number_literal ])) ;)) (labeled_statement "joined_r0x001d143e:\n  if (cVar3 == '>') {\n    string_append(tname," ");\n  }" statement_identifier : (if_statement "if (cVar3 == '>') {\n    string_append(tname," ");\n  }" if (parenthesized_expression "(cVar3 == '>')" ( (binary_expression "cVar3 == '>'" identifier == (char_literal "'>'" ' character ')) )) (compound_statement "{\n    string_append(tname," ");\n  }" { (expression_statement "string_append(tname," ");" (call_expression "string_append(tname," ")" identifier (argument_list "(tname," ")" ( identifier , (string_literal "" "" " string_content ") ))) ;) }))) (expression_statement "string_append(tname,"> class");" (call_expression "string_append(tname,"> class")" identifier (argument_list "(tname,"> class")" ( identifier , (string_literal ""> class"" " string_content ") ))) ;) (return_statement "return local_3c;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}\n\n" (function_definition "int __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "void **ppvVar6;" primitive_type (pointer_declarator "**ppvVar6" * (pointer_declarator "*ppvVar6" * identifier)) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "void *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d12bd;" (assignment_expression "uStack_14 = 0x1d12bd" identifier = number_literal) ;) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar5 = extraout_var;" (assignment_expression "uVar5 = extraout_var" identifier = identifier) ;) (expression_statement "iVar1 = FUN_001cd950();" (assignment_expression "iVar1 = FUN_001cd950()" identifier = (call_expression "FUN_001cd950()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" if (parenthesized_expression "((iVar1 != 0) && (0 < local_2c))" ( (binary_expression "(iVar1 != 0) && (0 < local_2c)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < local_2c)" ( (binary_expression "0 < local_2c" number_literal < identifier) ))) )) (compound_statement "{\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" { (expression_statement "ppvVar6 = &local_28;" (assignment_expression "ppvVar6 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = "class";" (assignment_expression "pcVar7 = "class"" identifier = (string_literal ""class"" " string_content ")) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 == 'Z') goto LAB_001d13d5;" if (parenthesized_expression "(cVar3 == 'Z')" ( (binary_expression "cVar3 == 'Z'" identifier == (char_literal "'Z'" ' character ')) )) (goto_statement "goto LAB_001d13d5;" goto statement_identifier ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );" do (compound_statement "{\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    }" { (if_statement "if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" if (parenthesized_expression "(cVar3 == 'z')" ( (binary_expression "cVar3 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (compound_statement "{\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }" { (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);" (assignment_expression "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" identifier = (call_expression "FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" identifier (argument_list "(iVar4,uVar5,ppvVar6,pcVar7)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_001d1430;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d1430;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" else (compound_statement "{\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" { (expression_statement "iVar4 = FUN_001cf7c0();" (assignment_expression "iVar4 = FUN_001cf7c0()" identifier = (call_expression "FUN_001cf7c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" { (if_statement "if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" if (parenthesized_expression "(local_28 == (void *)0x0)" ( (binary_expression "local_28 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" { (labeled_statement "LAB_001d1430:\n            iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" identifier = (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" * (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" ( (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (goto_statement "goto joined_r0x001d143e;" goto statement_identifier ;) })) (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "FUN_001ce390();" (call_expression "FUN_001ce390()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" if (parenthesized_expression "(local_28 != (void *)0x0)" ( (binary_expression "local_28 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) (while_statement "while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (local_2c <= iVar1) goto LAB_001d1370;" if (parenthesized_expression "(local_2c <= iVar1)" ( (binary_expression "local_2c <= iVar1" identifier <= identifier) )) (goto_statement "goto LAB_001d1370;" goto statement_identifier ;)) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 != 'Z') break;" if (parenthesized_expression "(cVar3 != 'Z')" ( (binary_expression "cVar3 != 'Z'" identifier != (char_literal "'Z'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_001d13d5:\n        *param_2 = pcVar2 + 1;" statement_identifier : (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;)) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" statement_identifier : (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" identifier = (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" * (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" ( (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal) ))))) ;)) (labeled_statement "joined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }" statement_identifier : (if_statement "if (cVar3 == '>') {\n    FUN_001ce240();\n  }" if (parenthesized_expression "(cVar3 == '>')" ( (binary_expression "cVar3 == '>'" identifier == (char_literal "'>'" ' character ')) )) (compound_statement "{\n    FUN_001ce240();\n  }" { (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) }))) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001d12b0(undefined4 param_1,undefined4 *param_2,int param_3)" (identifier "FUN_001d12b0") (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar3;\n  int iVar4;\n  undefined4 extraout_var;\n  undefined4 uVar5;\n  void **ppvVar6;\n  char *pcVar7;\n  int local_2c;\n  void *local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d12bd;\n  FUN_001ce240();\n  uVar5 = extraout_var;\n  iVar1 = FUN_001cd950();\n  iVar4 = 1;\n  if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }\nLAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\njoined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }\n  FUN_001ce240();\n  return iVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 extraout_var;" (type_identifier "undefined4") (identifier "extraout_var") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "void **ppvVar6;" (primitive_type "void") (pointer_declarator "**ppvVar6" (* "*") (pointer_declarator "*ppvVar6" (* "*") (identifier "ppvVar6"))) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "void *local_28;" (primitive_type "void") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1d12bd;" (assignment_expression "uStack_14 = 0x1d12bd" (identifier "uStack_14") (= "=") (number_literal "0x1d12bd")) (; ";")) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" (identifier "FUN_001ce240") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar5 = extraout_var;" (assignment_expression "uVar5 = extraout_var" (identifier "uVar5") (= "=") (identifier "extraout_var")) (; ";")) (expression_statement "iVar1 = FUN_001cd950();" (assignment_expression "iVar1 = FUN_001cd950()" (identifier "iVar1") (= "=") (call_expression "FUN_001cd950()" (identifier "FUN_001cd950") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((iVar1 != 0) && (0 < local_2c)) {\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (0 < local_2c))" (( "(") (binary_expression "(iVar1 != 0) && (0 < local_2c)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < local_2c)" (( "(") (binary_expression "0 < local_2c" (number_literal "0") (< "<") (identifier "local_2c")) () ")"))) () ")")) (compound_statement "{\n    ppvVar6 = &local_28;\n    iVar1 = 0;\n    pcVar7 = "class";\n    pcVar2 = (char *)*param_2;\n    cVar3 = *pcVar2;\n    if (cVar3 == 'Z') goto LAB_001d13d5;\n    iVar1 = 0;\n    do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );\n  }" ({ "{") (expression_statement "ppvVar6 = &local_28;" (assignment_expression "ppvVar6 = &local_28" (identifier "ppvVar6") (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar7 = "class";" (assignment_expression "pcVar7 = "class"" (identifier "pcVar7") (= "=") (string_literal ""class"" (" """) (string_content "class") (" """))) (; ";")) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" (identifier "cVar3") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (if_statement "if (cVar3 == 'Z') goto LAB_001d13d5;" (if "if") (parenthesized_expression "(cVar3 == 'Z')" (( "(") (binary_expression "cVar3 == 'Z'" (identifier "cVar3") (== "==") (char_literal "'Z'" (' "'") (character "Z") (' "'"))) () ")")) (goto_statement "goto LAB_001d13d5;" (goto "goto") (statement_identifier "LAB_001d13d5") (; ";"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    } while( true );" (do "do") (compound_statement "{\n      if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }\n      while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }\n    }" ({ "{") (if_statement "if (cVar3 == 'z') {\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }\n      else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" (if "if") (parenthesized_expression "(cVar3 == 'z')" (( "(") (binary_expression "cVar3 == 'z'" (identifier "cVar3") (== "==") (char_literal "'z'" (' "'") (character "z") (' "'"))) () ")")) (compound_statement "{\n        *param_2 = pcVar2 + 1;\n        iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);\n        if (iVar4 == 0) goto LAB_001d1430;\n      }" ({ "{") (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7);" (assignment_expression "iVar4 = FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" (identifier "iVar4") (= "=") (call_expression "FUN_001d12b0(iVar4,uVar5,ppvVar6,pcVar7)" (identifier "FUN_001d12b0") (argument_list "(iVar4,uVar5,ppvVar6,pcVar7)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar5") (, ",") (identifier "ppvVar6") (, ",") (identifier "pcVar7") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_001d1430;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001d1430;" (goto "goto") (statement_identifier "LAB_001d1430") (; ";"))) (} "}")) (else_clause "else {\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" (else "else") (compound_statement "{\n        iVar4 = FUN_001cf7c0();\n        if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }\n        FUN_001ce390();\n        if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }\n      }" ({ "{") (expression_statement "iVar4 = FUN_001cf7c0();" (assignment_expression "iVar4 = FUN_001cf7c0()" (identifier "iVar4") (= "=") (call_expression "FUN_001cf7c0()" (identifier "FUN_001cf7c0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n          break;\n        }" ({ "{") (if_statement "if (local_28 == (void *)0x0) {\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" (if "if") (parenthesized_expression "(local_28 == (void *)0x0)" (( "(") (binary_expression "local_28 == (void *)0x0" (identifier "local_28") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_001d1430:\n            iVar4 = 0;\n            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);\n            goto joined_r0x001d143e;\n          }" ({ "{") (labeled_statement "LAB_001d1430:\n            iVar4 = 0;" (statement_identifier "LAB_001d1430") (: ":") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";"))) (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" (identifier "cVar3") (= "=") (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" (* "*") (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" (( "(") (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "-1")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x001d143e;" (goto "goto") (statement_identifier "joined_r0x001d143e") (; ";")) (} "}"))) (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" (identifier "local_28") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "FUN_001ce390();" (call_expression "FUN_001ce390()" (identifier "FUN_001ce390") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_28 != (void *)0x0) {\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" (if "if") (parenthesized_expression "(local_28 != (void *)0x0)" (( "(") (binary_expression "local_28 != (void *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          free(local_28);\n          local_24 = 0;\n          local_20 = 0;\n          local_28 = (void *)0x0;\n        }" ({ "{") (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" (identifier "local_28") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}")))) (while_statement "while( true ) {\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar1 = iVar1 + 1;\n        if (local_2c <= iVar1) goto LAB_001d1370;\n        FUN_001ce240();\n        pcVar2 = (char *)*param_2;\n        cVar3 = *pcVar2;\n        if (cVar3 != 'Z') break;\nLAB_001d13d5:\n        *param_2 = pcVar2 + 1;\n        FUN_001ce240();\n      }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_2c <= iVar1) goto LAB_001d1370;" (if "if") (parenthesized_expression "(local_2c <= iVar1)" (( "(") (binary_expression "local_2c <= iVar1" (identifier "local_2c") (<= "<=") (identifier "iVar1")) () ")")) (goto_statement "goto LAB_001d1370;" (goto "goto") (statement_identifier "LAB_001d1370") (; ";"))) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" (identifier "FUN_001ce240") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar2 = (char *)*param_2;" (assignment_expression "pcVar2 = (char *)*param_2" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" (identifier "cVar3") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (if_statement "if (cVar3 != 'Z') break;" (if "if") (parenthesized_expression "(cVar3 != 'Z')" (( "(") (binary_expression "cVar3 != 'Z'" (identifier "cVar3") (!= "!=") (char_literal "'Z'" (' "'") (character "Z") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_001d13d5:\n        *param_2 = pcVar2 + 1;" (statement_identifier "LAB_001d13d5") (: ":") (expression_statement "*param_2 = pcVar2 + 1;" (assignment_expression "*param_2 = pcVar2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" (identifier "FUN_001ce240") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_001d1370:\n  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (statement_identifier "LAB_001d1370") (: ":") (expression_statement "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);" (assignment_expression "cVar3 = *(char *)(*(int *)(param_3 + 4) + -1)" (identifier "cVar3") (= "=") (pointer_expression "*(char *)(*(int *)(param_3 + 4) + -1)" (* "*") (cast_expression "(char *)(*(int *)(param_3 + 4) + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_3 + 4) + -1)" (( "(") (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "-1")) () ")"))))) (; ";"))) (labeled_statement "joined_r0x001d143e:\n  if (cVar3 == '>') {\n    FUN_001ce240();\n  }" (statement_identifier "joined_r0x001d143e") (: ":") (if_statement "if (cVar3 == '>') {\n    FUN_001ce240();\n  }" (if "if") (parenthesized_expression "(cVar3 == '>')" (( "(") (binary_expression "cVar3 == '>'" (identifier "cVar3") (== "==") (char_literal "'>'" (' "'") (character ">") (' "'"))) () ")")) (compound_statement "{\n    FUN_001ce240();\n  }" ({ "{") (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" (identifier "FUN_001ce240") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_001ce240();" (call_expression "FUN_001ce240()" (identifier "FUN_001ce240") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *work,char **mangled,type_2 *tname)

{
  int var_3;
  char *var_6;
  char var_5;
  int var_7;
  int var_4;
  type_2 temp;
  
  var_1(tname,"template <");
  var_3 = var_2(mangled,&var_4);
  var_7 = 1;
  if ((var_3 != 0) && (0 < var_4)) {
    var_3 = 0;
    var_6 = *mangled;
    var_5 = *var_6;
    if (var_5 == 'Z') goto LAB_001d13d5;
    var_3 = 0;
    do {
      if (var_5 == 'z') {
        *mangled = var_6 + 1;
        var_7 = function_1(work,mangled,tname);
        if (var_7 == 0) goto LAB_001d1430;
      }
      else {
        var_7 = var_8(work,mangled,&temp);
        if (var_7 == 0) {
          if (temp.b == (char *)0x0) {
LAB_001d1430:
            var_7 = 0;
            var_5 = tname->p[-1];
            goto joined_r0x001d143e;
          }
          var_9(temp.b);
          temp.p = (char *)0x0;
          temp.e = (char *)0x0;
          temp.b = (char *)0x0;
          break;
        }
        var_10(tname,&temp,(type_2 *)temp.p);
        if (temp.b != (char *)0x0) {
          var_9(temp.b);
          temp.p = (char *)0x0;
          temp.e = (char *)0x0;
          temp.b = (char *)0x0;
        }
      }
      while( true ) {
        var_3 = var_3 + 1;
        if (var_4 <= var_3) goto LAB_001d1370;
        var_1(tname,", ");
        var_6 = *mangled;
        var_5 = *var_6;
        if (var_5 != 'Z') break;
LAB_001d13d5:
        *mangled = var_6 + 1;
        var_1(tname,"class");
      }
    } while( true );
  }
LAB_001d1370:
  var_5 = tname->p[-1];
joined_r0x001d143e:
  if (var_5 == '>') {
    var_1(tname," ");
  }
  var_1(tname,"> class");
  return var_7;
}


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

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

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

{
  int iVar1;
  char *pcVar2;
  char cVar3;
  int iVar4;
  undefined4 extraout_var;
  undefined4 uVar5;
  void **ppvVar6;
  char *pcVar7;
  int local_2c;
  void *local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1d12bd;
  FUN_001ce240();
  uVar5 = extraout_var;
  iVar1 = FUN_001cd950();
  iVar4 = 1;
  if ((iVar1 != 0) && (0 < local_2c)) {
    ppvVar6 = &local_28;
    iVar1 = 0;
    pcVar7 = "class";
    pcVar2 = (char *)*param_2;
    cVar3 = *pcVar2;
    if (cVar3 == 'Z') goto LAB_001d13d5;
    iVar1 = 0;
    do {
      if (cVar3 == 'z') {
        *param_2 = pcVar2 + 1;
        iVar4 = MASKED(iVar4,uVar5,ppvVar6,pcVar7);
        if (iVar4 == 0) goto LAB_001d1430;
      }
      else {
        iVar4 = FUN_001cf7c0();
        if (iVar4 == 0) {
          if (local_28 == (void *)0x0) {
LAB_001d1430:
            iVar4 = 0;
            cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);
            goto joined_r0x001d143e;
          }
          free(local_28);
          local_24 = 0;
          local_20 = 0;
          local_28 = (void *)0x0;
          break;
        }
        FUN_001ce390();
        if (local_28 != (void *)0x0) {
          free(local_28);
          local_24 = 0;
          local_20 = 0;
          local_28 = (void *)0x0;
        }
      }
      while( true ) {
        iVar1 = iVar1 + 1;
        if (local_2c <= iVar1) goto LAB_001d1370;
        FUN_001ce240();
        pcVar2 = (char *)*param_2;
        cVar3 = *pcVar2;
        if (cVar3 != 'Z') break;
LAB_001d13d5:
        *param_2 = pcVar2 + 1;
        FUN_001ce240();
      }
    } while( true );
  }
LAB_001d1370:
  cVar3 = *(char *)(*(int *)(param_3 + 4) + -1);
joined_r0x001d143e:
  if (cVar3 == '>') {
    FUN_001ce240();
  }
  FUN_001ce240();
  return iVar4;
}

