
int d_type(void)

{
  byte bVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int unaff_EDI;
  int local_20;
  
  iVar3 = __x86_get_pc_thunk_di();
  pcVar2 = *(char **)(iVar3 + 0xc);
  iVar4 = next_is_type_qual_isra_2();
  if (iVar4 == 0) {
    bVar1 = *pcVar2 - 0x30;
    if (bVar1 < 0x4b) {
                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();
      return iVar3;
    }
  }
  else {
    piVar5 = (int *)d_cv_qualifiers();
    if (piVar5 != (int *)0x0) {
      if (**(char **)(iVar3 + 0xc) == 'F') {
        piVar6 = (int *)d_function_type();
        *piVar5 = (int)piVar6;
      }
      else {
        piVar6 = (int *)d_type();
        *piVar5 = (int)piVar6;
      }
      if (piVar6 != (int *)0x0) {
        if (*piVar6 - 0x1fU < 2) {
          iVar4 = piVar6[2];
          piVar6[2] = local_20;
          local_20 = *piVar5;
          *piVar5 = iVar4;
        }
        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {
          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;
          *(int *)(iVar3 + 0x20) = iVar4 + 1;
          return local_20;
        }
      }
    }
  }
  return 0;
}



int FUN_002715c0(void)

{
  byte bVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int unaff_EDI;
  int local_20;
  
  iVar3 = FUN_000559ee();
  pcVar2 = *(char **)(iVar3 + 0xc);
  iVar4 = FUN_002703e0();
  if (iVar4 == 0) {
    bVar1 = *pcVar2 - 0x30;
    if (bVar1 < 0x4b) {
                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();
      return iVar3;
    }
  }
  else {
    piVar5 = (int *)FUN_002721b0();
    if (piVar5 != (int *)0x0) {
      if (**(char **)(iVar3 + 0xc) == 'F') {
        piVar6 = (int *)FUN_00272440();
        *piVar5 = (int)piVar6;
      }
      else {
        piVar6 = (int *)FUN_002715c0();
        *piVar5 = (int)piVar6;
      }
      if (piVar6 != (int *)0x0) {
        if (*piVar6 - 0x1fU < 2) {
          iVar4 = piVar6[2];
          piVar6[2] = local_20;
          local_20 = *piVar5;
          *piVar5 = iVar4;
        }
        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {
          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;
          *(int *)(iVar3 + 0x20) = iVar4 + 1;
          return local_20;
        }
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x11da39
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x2c
MOV ESI,dword ptr [EAX + 0xc]
MOV EAX,ESI
CALL 0x002703e0
TEST EAX,EAX
JNZ 0x00271658
MOVSX EDX,byte ptr [ESI]
LEA EAX,[EDX + -0x30]
CMP AL,0x4a
JA 0x00271648
MOVZX EAX,AL
MOV ECX,dword ptr [EDI + EAX*0x4 + 0xfff18bb8]
ADD ECX,EDI
JMP ECX
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[ESP + 0x1c]
XOR ECX,ECX
MOV EAX,EBX
CALL 0x002721b0
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00271648
MOV EAX,dword ptr [EBX + 0xc]
CMP byte ptr [EAX],0x46
MOV EAX,EBX
JZ 0x002716c8
CALL 0x002715c0
MOV dword ptr [ESI],EAX
MOV EDX,EAX
TEST EDX,EDX
JZ 0x00271648
MOV EDI,dword ptr [EDX]
MOV EAX,dword ptr [ESP + 0x1c]
LEA ECX,[EDI + -0x1f]
CMP ECX,0x1
JA 0x002716a2
MOV ECX,dword ptr [EDX + 0x8]
MOV dword ptr [EDX + 0x8],EAX
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESI],ECX
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JZ 0x00271648
MOV EDX,dword ptr [EBX + 0x20]
CMP EDX,dword ptr [EBX + 0x24]
JGE 0x00271648
MOV ECX,dword ptr [EBX + 0x1c]
MOV dword ptr [ECX + EDX*0x4],EAX
ADD EDX,0x1
MOV dword ptr [EBX + 0x20],EDX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00272440
MOV EDX,EAX
MOV dword ptr [ESI],EAX
JMP 0x0027167e
(translation_unit "int FUN_002715c0(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_002715c0(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_002715c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_000559ee();" (assignment_expression "iVar3 = FUN_000559ee()" identifier = (call_expression "FUN_000559ee()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = *(char **)(iVar3 + 0xc);" (assignment_expression "pcVar2 = *(char **)(iVar3 + 0xc)" identifier = (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_002703e0();" (assignment_expression "iVar4 = FUN_002703e0()" identifier = (call_expression "FUN_002703e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }" { (expression_statement "bVar1 = *pcVar2 - 0x30;" (assignment_expression "bVar1 = *pcVar2 - 0x30" identifier = (binary_expression "*pcVar2 - 0x30" (pointer_expression "*pcVar2" * identifier) - number_literal)) ;) (if_statement "if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" if (parenthesized_expression "(bVar1 < 0x4b)" ( (binary_expression "bVar1 < 0x4b" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" { comment comment (expression_statement "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();" (assignment_expression "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39" (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (binary_expression "unaff_EDI + 0x365f1 + (uint)bVar1 * 4" (binary_expression "unaff_EDI + 0x365f1" identifier + number_literal) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" { (expression_statement "piVar5 = (int *)FUN_002721b0();" (assignment_expression "piVar5 = (int *)FUN_002721b0()" identifier = (cast_expression "(int *)FUN_002721b0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002721b0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" { (if_statement "if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" if (parenthesized_expression "(**(char **)(iVar3 + 0xc) == 'F')" ( (binary_expression "**(char **)(iVar3 + 0xc) == 'F'" (pointer_expression "**(char **)(iVar3 + 0xc)" * (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) == (char_literal "'F'" ' character ')) )) (compound_statement "{\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)FUN_00272440();" (assignment_expression "piVar6 = (int *)FUN_00272440()" identifier = (cast_expression "(int *)FUN_00272440()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00272440()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" else (compound_statement "{\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)FUN_002715c0();" (assignment_expression "piVar6 = (int *)FUN_002715c0()" identifier = (cast_expression "(int *)FUN_002715c0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002715c0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" { (if_statement "if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" if (parenthesized_expression "(*piVar6 - 0x1fU < 2)" ( (binary_expression "*piVar6 - 0x1fU < 2" (binary_expression "*piVar6 - 0x1fU" (pointer_expression "*piVar6" * identifier) - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" { (expression_statement "iVar4 = piVar6[2];" (assignment_expression "iVar4 = piVar6[2]" identifier = (subscript_expression "piVar6[2]" identifier [ number_literal ])) ;) (expression_statement "piVar6[2] = local_20;" (assignment_expression "piVar6[2] = local_20" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20 = *piVar5;" (assignment_expression "local_20 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*piVar5 = iVar4;" (assignment_expression "*piVar5 = iVar4" (pointer_expression "*piVar5" * identifier) = identifier) ;) })) (if_statement "if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" if (parenthesized_expression "((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)))" ( (binary_expression "(local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" ( (comma_expression "iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)" (assignment_expression "iVar4 = *(int *)(iVar3 + 0x20)" identifier = (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) ))))) , (binary_expression "iVar4 < *(int *)(iVar3 + 0x24)" identifier < (pointer_expression "*(int *)(iVar3 + 0x24)" * (cast_expression "(int *)(iVar3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))))) ))) )) (compound_statement "{\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" { (expression_statement "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;" (assignment_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20" (pointer_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (binary_expression "*(int *)(iVar3 + 0x1c) + iVar4 * 4" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x20) = iVar4 + 1;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar4 + 1" (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return local_20;" return identifier ;) })) })) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int d_type(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = __x86_get_pc_thunk_di();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = next_is_type_qual_isra_2();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int d_type(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = __x86_get_pc_thunk_di();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = next_is_type_qual_isra_2();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "d_type(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = __x86_get_pc_thunk_di();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = next_is_type_qual_isra_2();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar3 = __x86_get_pc_thunk_di();" (assignment_expression "iVar3 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = *(char **)(iVar3 + 0xc);" (assignment_expression "pcVar2 = *(char **)(iVar3 + 0xc)" identifier = (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = next_is_type_qual_isra_2();" (assignment_expression "iVar4 = next_is_type_qual_isra_2()" identifier = (call_expression "next_is_type_qual_isra_2()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }" { (expression_statement "bVar1 = *pcVar2 - 0x30;" (assignment_expression "bVar1 = *pcVar2 - 0x30" identifier = (binary_expression "*pcVar2 - 0x30" (pointer_expression "*pcVar2" * identifier) - number_literal)) ;) (if_statement "if (bVar1 < 0x4b) {\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" if (parenthesized_expression "(bVar1 < 0x4b)" ( (binary_expression "bVar1 < 0x4b" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" { comment comment (expression_statement "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();" (assignment_expression "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39" (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (binary_expression "unaff_EDI + 0x365f1 + (uint)bVar1 * 4" (binary_expression "unaff_EDI + 0x365f1" identifier + number_literal) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else {\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)d_cv_qualifiers();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" { (expression_statement "piVar5 = (int *)d_cv_qualifiers();" (assignment_expression "piVar5 = (int *)d_cv_qualifiers()" identifier = (cast_expression "(int *)d_cv_qualifiers()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "d_cv_qualifiers()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" { (if_statement "if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }" if (parenthesized_expression "(**(char **)(iVar3 + 0xc) == 'F')" ( (binary_expression "**(char **)(iVar3 + 0xc) == 'F'" (pointer_expression "**(char **)(iVar3 + 0xc)" * (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) == (char_literal "'F'" ' character ')) )) (compound_statement "{\n        piVar6 = (int *)d_function_type();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)d_function_type();" (assignment_expression "piVar6 = (int *)d_function_type()" identifier = (cast_expression "(int *)d_function_type()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "d_function_type()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }" else (compound_statement "{\n        piVar6 = (int *)d_type();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)d_type();" (assignment_expression "piVar6 = (int *)d_type()" identifier = (cast_expression "(int *)d_type()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "d_type()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" { (if_statement "if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" if (parenthesized_expression "(*piVar6 - 0x1fU < 2)" ( (binary_expression "*piVar6 - 0x1fU < 2" (binary_expression "*piVar6 - 0x1fU" (pointer_expression "*piVar6" * identifier) - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" { (expression_statement "iVar4 = piVar6[2];" (assignment_expression "iVar4 = piVar6[2]" identifier = (subscript_expression "piVar6[2]" identifier [ number_literal ])) ;) (expression_statement "piVar6[2] = local_20;" (assignment_expression "piVar6[2] = local_20" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20 = *piVar5;" (assignment_expression "local_20 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*piVar5 = iVar4;" (assignment_expression "*piVar5 = iVar4" (pointer_expression "*piVar5" * identifier) = identifier) ;) })) (if_statement "if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" if (parenthesized_expression "((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)))" ( (binary_expression "(local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" ( (comma_expression "iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)" (assignment_expression "iVar4 = *(int *)(iVar3 + 0x20)" identifier = (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) ))))) , (binary_expression "iVar4 < *(int *)(iVar3 + 0x24)" identifier < (pointer_expression "*(int *)(iVar3 + 0x24)" * (cast_expression "(int *)(iVar3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))))) ))) )) (compound_statement "{\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" { (expression_statement "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;" (assignment_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20" (pointer_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (binary_expression "*(int *)(iVar3 + 0x1c) + iVar4 * 4" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x20) = iVar4 + 1;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar4 + 1" (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return local_20;" return identifier ;) })) })) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_002715c0(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_002715c0(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_002715c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_000559ee();" (assignment_expression "iVar3 = FUN_000559ee()" identifier = (call_expression "FUN_000559ee()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = *(char **)(iVar3 + 0xc);" (assignment_expression "pcVar2 = *(char **)(iVar3 + 0xc)" identifier = (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_002703e0();" (assignment_expression "iVar4 = FUN_002703e0()" identifier = (call_expression "FUN_002703e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }" { (expression_statement "bVar1 = *pcVar2 - 0x30;" (assignment_expression "bVar1 = *pcVar2 - 0x30" identifier = (binary_expression "*pcVar2 - 0x30" (pointer_expression "*pcVar2" * identifier) - number_literal)) ;) (if_statement "if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" if (parenthesized_expression "(bVar1 < 0x4b)" ( (binary_expression "bVar1 < 0x4b" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" { (expression_statement "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();" (assignment_expression "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" ( (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39" (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" ( (binary_expression "unaff_EDI + 0x365f1 + (uint)bVar1 * 4" (binary_expression "unaff_EDI + 0x365f1" identifier + number_literal) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" { (expression_statement "piVar5 = (int *)FUN_002721b0();" (assignment_expression "piVar5 = (int *)FUN_002721b0()" identifier = (cast_expression "(int *)FUN_002721b0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002721b0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" { (if_statement "if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" if (parenthesized_expression "(**(char **)(iVar3 + 0xc) == 'F')" ( (binary_expression "**(char **)(iVar3 + 0xc) == 'F'" (pointer_expression "**(char **)(iVar3 + 0xc)" * (pointer_expression "*(char **)(iVar3 + 0xc)" * (cast_expression "(char **)(iVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) == (char_literal "'F'" ' character ')) )) (compound_statement "{\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)FUN_00272440();" (assignment_expression "piVar6 = (int *)FUN_00272440()" identifier = (cast_expression "(int *)FUN_00272440()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00272440()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" else (compound_statement "{\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" { (expression_statement "piVar6 = (int *)FUN_002715c0();" (assignment_expression "piVar6 = (int *)FUN_002715c0()" identifier = (cast_expression "(int *)FUN_002715c0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002715c0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" { (if_statement "if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" if (parenthesized_expression "(*piVar6 - 0x1fU < 2)" ( (binary_expression "*piVar6 - 0x1fU < 2" (binary_expression "*piVar6 - 0x1fU" (pointer_expression "*piVar6" * identifier) - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" { (expression_statement "iVar4 = piVar6[2];" (assignment_expression "iVar4 = piVar6[2]" identifier = (subscript_expression "piVar6[2]" identifier [ number_literal ])) ;) (expression_statement "piVar6[2] = local_20;" (assignment_expression "piVar6[2] = local_20" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20 = *piVar5;" (assignment_expression "local_20 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*piVar5 = iVar4;" (assignment_expression "*piVar5 = iVar4" (pointer_expression "*piVar5" * identifier) = identifier) ;) })) (if_statement "if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" if (parenthesized_expression "((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)))" ( (binary_expression "(local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" ( (comma_expression "iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)" (assignment_expression "iVar4 = *(int *)(iVar3 + 0x20)" identifier = (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) ))))) , (binary_expression "iVar4 < *(int *)(iVar3 + 0x24)" identifier < (pointer_expression "*(int *)(iVar3 + 0x24)" * (cast_expression "(int *)(iVar3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))))) ))) )) (compound_statement "{\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" { (expression_statement "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;" (assignment_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20" (pointer_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" * (cast_expression "(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" ( (binary_expression "*(int *)(iVar3 + 0x1c) + iVar4 * 4" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x20) = iVar4 + 1;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar4 + 1" (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return local_20;" return identifier ;) })) })) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) + IDENT) + LIT) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })) })) })) }))) (return_statement return LIT ;) })))
(function_definition "int FUN_002715c0(void)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_002715c0(void)" (identifier "FUN_002715c0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int local_20;\n  \n  iVar3 = FUN_000559ee();\n  pcVar2 = *(char **)(iVar3 + 0xc);\n  iVar4 = FUN_002703e0();\n  if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar3 = FUN_000559ee();" (assignment_expression "iVar3 = FUN_000559ee()" (identifier "iVar3") (= "=") (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = *(char **)(iVar3 + 0xc);" (assignment_expression "pcVar2 = *(char **)(iVar3 + 0xc)" (identifier "pcVar2") (= "=") (pointer_expression "*(char **)(iVar3 + 0xc)" (* "*") (cast_expression "(char **)(iVar3 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar4 = FUN_002703e0();" (assignment_expression "iVar4 = FUN_002703e0()" (identifier "iVar4") (= "=") (call_expression "FUN_002703e0()" (identifier "FUN_002703e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }\n  else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar1 = *pcVar2 - 0x30;\n    if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }\n  }" ({ "{") (expression_statement "bVar1 = *pcVar2 - 0x30;" (assignment_expression "bVar1 = *pcVar2 - 0x30" (identifier "bVar1") (= "=") (binary_expression "*pcVar2 - 0x30" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (- "-") (number_literal "0x30"))) (; ";")) (if_statement "if (bVar1 < 0x4b) {\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(bVar1 < 0x4b)" (( "(") (binary_expression "bVar1 < 0x4b" (identifier "bVar1") (< "<") (number_literal "0x4b")) () ")")) (compound_statement "{\n                    \n                    \n      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();\n      return iVar3;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();" (assignment_expression "iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" (identifier "iVar3") (= "=") (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))" (( "(") (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" (* "*") (cast_expression "(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39" (binary_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x365f1 + (uint)bVar1 * 4)" (( "(") (binary_expression "unaff_EDI + 0x365f1 + (uint)bVar1 * 4" (binary_expression "unaff_EDI + 0x365f1" (identifier "unaff_EDI") (+ "+") (number_literal "0x365f1")) (+ "+") (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "4"))) () ")")))) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "0x11da39")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    piVar5 = (int *)FUN_002721b0();\n    if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "piVar5 = (int *)FUN_002721b0();" (assignment_expression "piVar5 = (int *)FUN_002721b0()" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_002721b0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002721b0()" (identifier "FUN_002721b0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }\n      if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }\n    }" ({ "{") (if_statement "if (**(char **)(iVar3 + 0xc) == 'F') {\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }\n      else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" (if "if") (parenthesized_expression "(**(char **)(iVar3 + 0xc) == 'F')" (( "(") (binary_expression "**(char **)(iVar3 + 0xc) == 'F'" (pointer_expression "**(char **)(iVar3 + 0xc)" (* "*") (pointer_expression "*(char **)(iVar3 + 0xc)" (* "*") (cast_expression "(char **)(iVar3 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (char_literal "'F'" (' "'") (character "F") (' "'"))) () ")")) (compound_statement "{\n        piVar6 = (int *)FUN_00272440();\n        *piVar5 = (int)piVar6;\n      }" ({ "{") (expression_statement "piVar6 = (int *)FUN_00272440();" (assignment_expression "piVar6 = (int *)FUN_00272440()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00272440()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00272440()" (identifier "FUN_00272440") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6"))) (; ";")) (} "}")) (else_clause "else {\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" (else "else") (compound_statement "{\n        piVar6 = (int *)FUN_002715c0();\n        *piVar5 = (int)piVar6;\n      }" ({ "{") (expression_statement "piVar6 = (int *)FUN_002715c0();" (assignment_expression "piVar6 = (int *)FUN_002715c0()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_002715c0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002715c0()" (identifier "FUN_002715c0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar5 = (int)piVar6;" (assignment_expression "*piVar5 = (int)piVar6" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6"))) (; ";")) (} "}")))) (if_statement "if (piVar6 != (int *)0x0) {\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" (if "if") (parenthesized_expression "(piVar6 != (int *)0x0)" (( "(") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }\n        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }\n      }" ({ "{") (if_statement "if (*piVar6 - 0x1fU < 2) {\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" (if "if") (parenthesized_expression "(*piVar6 - 0x1fU < 2)" (( "(") (binary_expression "*piVar6 - 0x1fU < 2" (binary_expression "*piVar6 - 0x1fU" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (- "-") (number_literal "0x1fU")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n          iVar4 = piVar6[2];\n          piVar6[2] = local_20;\n          local_20 = *piVar5;\n          *piVar5 = iVar4;\n        }" ({ "{") (expression_statement "iVar4 = piVar6[2];" (assignment_expression "iVar4 = piVar6[2]" (identifier "iVar4") (= "=") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar6[2] = local_20;" (assignment_expression "piVar6[2] = local_20" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_20")) (; ";")) (expression_statement "local_20 = *piVar5;" (assignment_expression "local_20 = *piVar5" (identifier "local_20") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "*piVar5 = iVar4;" (assignment_expression "*piVar5 = iVar4" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (if_statement "if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" (if "if") (parenthesized_expression "((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)))" (( "(") (binary_expression "(local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))" (( "(") (comma_expression "iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24)" (assignment_expression "iVar4 = *(int *)(iVar3 + 0x20)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar3 + 0x20)" (* "*") (cast_expression "(int *)(iVar3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")"))))) (, ",") (binary_expression "iVar4 < *(int *)(iVar3 + 0x24)" (identifier "iVar4") (< "<") (pointer_expression "*(int *)(iVar3 + 0x24)" (* "*") (cast_expression "(int *)(iVar3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;\n          *(int *)(iVar3 + 0x20) = iVar4 + 1;\n          return local_20;\n        }" ({ "{") (expression_statement "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;" (assignment_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20" (pointer_expression "*(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar3 + 0x1c) + iVar4 * 4)" (( "(") (binary_expression "*(int *)(iVar3 + 0x1c) + iVar4 * 4" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "local_20")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x20) = iVar4 + 1;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar4 + 1" (pointer_expression "*(int *)(iVar3 + 0x20)" (* "*") (cast_expression "(int *)(iVar3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(void)

{
  type_1 var_5;
  char *pcVar2;
  int var_2;
  int var_4;
  int *var_8;
  int *var_10;
  int var_6;
  int var_11;
  
  var_2 = var_1();
  pcVar2 = *(char **)(var_2 + 0xc);
  var_4 = var_3();
  if (var_4 == 0) {
    var_5 = *pcVar2 - 0x30;
    if (var_5 < 0x4b) {
                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      var_2 = (*(type_2 *)(*(int *)(var_6 + 0x365f1 + (type_3)var_5 * 4) + var_6 + 0x11da39))();
      return var_2;
    }
  }
  else {
    var_8 = (int *)var_7();
    if (var_8 != (int *)0x0) {
      if (**(char **)(var_2 + 0xc) == 'F') {
        var_10 = (int *)var_9();
        *var_8 = (int)var_10;
      }
      else {
        var_10 = (int *)function_1();
        *var_8 = (int)var_10;
      }
      if (var_10 != (int *)0x0) {
        if (*var_10 - 0x1fU < 2) {
          var_4 = var_10[2];
          var_10[2] = var_11;
          var_11 = *var_8;
          *var_8 = var_4;
        }
        if ((var_11 != 0) && (var_4 = *(int *)(var_2 + 0x20), var_4 < *(int *)(var_2 + 0x24))) {
          *(int *)(*(int *)(var_2 + 0x1c) + var_4 * 4) = var_11;
          *(int *)(var_2 + 0x20) = var_4 + 1;
          return var_11;
        }
      }
    }
  }
  return 0;
}


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

int MASKED(void)

{
  byte bVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int unaff_EDI;
  int local_20;
  
  iVar3 = FUN_000559ee();
  pcVar2 = *(char **)(iVar3 + 0xc);
  iVar4 = FUN_002703e0();
  if (iVar4 == 0) {
    bVar1 = *pcVar2 - 0x30;
    if (bVar1 < 0x4b) {
                    /* WARNING: Could not recover jumptable at 0x002715f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar3 = (*(code *)(*(int *)(unaff_EDI + 0x365f1 + (uint)bVar1 * 4) + unaff_EDI + 0x11da39))();
      return iVar3;
    }
  }
  else {
    piVar5 = (int *)FUN_002721b0();
    if (piVar5 != (int *)0x0) {
      if (**(char **)(iVar3 + 0xc) == 'F') {
        piVar6 = (int *)FUN_00272440();
        *piVar5 = (int)piVar6;
      }
      else {
        piVar6 = (int *)MASKED();
        *piVar5 = (int)piVar6;
      }
      if (piVar6 != (int *)0x0) {
        if (*piVar6 - 0x1fU < 2) {
          iVar4 = piVar6[2];
          piVar6[2] = local_20;
          local_20 = *piVar5;
          *piVar5 = iVar4;
        }
        if ((local_20 != 0) && (iVar4 = *(int *)(iVar3 + 0x20), iVar4 < *(int *)(iVar3 + 0x24))) {
          *(int *)(*(int *)(iVar3 + 0x1c) + iVar4 * 4) = local_20;
          *(int *)(iVar3 + 0x20) = iVar4 + 1;
          return local_20;
        }
      }
    }
  }
  return 0;
}

