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

int * __regparm3 d_find_pack(undefined4 param_1,undefined4 *param_2)

{
  int *piVar1;
  
  if (param_2 != (undefined4 *)0x0) {
    do {
      switch(*param_2) {
      case 0:
      case 6:
      case 0x18:
      case 0x27:
      case 0x2c:
      case 0x31:
      case 0x40:
      case 0x41:
      case 0x45:
      case 0x46:
      case 0x47:
      case 0x4a:
      case 0x4b:
        goto LAB_0027056a;
      case 5:
        piVar1 = (int *)d_lookup_template_argument_isra_9();
        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {
          return piVar1;
        }
        goto LAB_0027056a;
      case 7:
      case 8:
      case 0x32:
        goto _L245;
      }
      piVar1 = (int *)d_find_pack();
      if (piVar1 != (int *)0x0) {
        return piVar1;
      }
_L245:
      param_2 = (undefined4 *)param_2[3];
    } while (param_2 != (undefined4 *)0x0);
  }
LAB_0027056a:
  return (int *)0x0;
}



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

int * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)

{
  int *piVar1;
  
  if (param_2 != (undefined4 *)0x0) {
    do {
      switch(*param_2) {
      case 0:
      case 6:
      case 0x18:
      case 0x27:
      case 0x2c:
      case 0x31:
      case 0x40:
      case 0x41:
      case 0x45:
      case 0x46:
      case 0x47:
      case 0x4a:
      case 0x4b:
        goto LAB_0027056a;
      case 5:
        piVar1 = (int *)FUN_002704f0();
        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {
          return piVar1;
        }
        goto LAB_0027056a;
      case 7:
      case 8:
      case 0x32:
        goto code_r0x0027055e;
      }
      piVar1 = (int *)FUN_00270520();
      if (piVar1 != (int *)0x0) {
        return piVar1;
      }
code_r0x0027055e:
      param_2 = (undefined4 *)param_2[3];
    } while (param_2 != (undefined4 *)0x0);
  }
LAB_0027056a:
  return (int *)0x0;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
CALL 0x000559ea
ADD ESI,0x11ead7
PUSH EBX
MOV EBX,EDX
TEST EDX,EDX
JZ 0x00270568
CMP dword ptr [EBX],0x4b
JA 0x00270550
MOV EAX,dword ptr [EBX]
MOV ECX,dword ptr [ESI + EAX*0x4 + 0xfff18a88]
ADD ECX,ESI
JMP ECX
MOV EDX,dword ptr [EBX + 0x8]
MOV EAX,EDI
CALL 0x00270520
TEST EAX,EAX
JNZ 0x0027056a
MOV EBX,dword ptr [EBX + 0xc]
TEST EBX,EBX
JNZ 0x00270536
LEA ESI,[ESI]
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00270520(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" { (do_statement "do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);" do (compound_statement "{\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    }" { (switch_statement "switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" switch (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (compound_statement "{\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" { (case_statement "case 0:" case number_literal :) (case_statement "case 6:" case number_literal :) (case_statement "case 0x18:" case number_literal :) (case_statement "case 0x27:" case number_literal :) (case_statement "case 0x2c:" case number_literal :) (case_statement "case 0x31:" case number_literal :) (case_statement "case 0x40:" case number_literal :) (case_statement "case 0x41:" case number_literal :) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x46:" case number_literal :) (case_statement "case 0x47:" case number_literal :) (case_statement "case 0x4a:" case number_literal :) (case_statement "case 0x4b:\n        goto LAB_0027056a;" case number_literal : (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;" case number_literal : (expression_statement "piVar1 = (int *)FUN_002704f0();" (assignment_expression "piVar1 = (int *)FUN_002704f0()" identifier = (cast_expression "(int *)FUN_002704f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002704f0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == 0x2f))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == 0x2f)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == 0x2f)" ( (binary_expression "*piVar1 == 0x2f" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n          return piVar1;\n        }" { (return_statement "return piVar1;" return identifier ;) })) (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 7:" case number_literal :) (case_statement "case 8:" case number_literal :) (case_statement "case 0x32:\n        goto code_r0x0027055e;" case number_literal : (goto_statement "goto code_r0x0027055e;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)FUN_00270520();" (assignment_expression "piVar1 = (int *)FUN_00270520()" identifier = (cast_expression "(int *)FUN_00270520()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00270520()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (labeled_statement "code_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];" statement_identifier : (expression_statement "param_2 = (undefined4 *)param_2[3];" (assignment_expression "param_2 = (undefined4 *)param_2[3]" identifier = (cast_expression "(undefined4 *)param_2[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) ;)) }) while (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_0027056a:\n  return (int *)0x0;" statement_identifier : (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint * __regparm3 d_find_pack(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * __regparm3 d_find_pack(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 d_find_pack(undefined4 param_1,undefined4 *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "d_find_pack(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" { (do_statement "do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);" do (compound_statement "{\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }\n      piVar1 = (int *)d_find_pack();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\n_L245:\n      param_2 = (undefined4 *)param_2[3];\n    }" { (switch_statement "switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }" switch (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (compound_statement "{\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto _L245;\n      }" { (case_statement "case 0:" case number_literal :) (case_statement "case 6:" case number_literal :) (case_statement "case 0x18:" case number_literal :) (case_statement "case 0x27:" case number_literal :) (case_statement "case 0x2c:" case number_literal :) (case_statement "case 0x31:" case number_literal :) (case_statement "case 0x40:" case number_literal :) (case_statement "case 0x41:" case number_literal :) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x46:" case number_literal :) (case_statement "case 0x47:" case number_literal :) (case_statement "case 0x4a:" case number_literal :) (case_statement "case 0x4b:\n        goto LAB_0027056a;" case number_literal : (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 5:\n        piVar1 = (int *)d_lookup_template_argument_isra_9();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;" case number_literal : (expression_statement "piVar1 = (int *)d_lookup_template_argument_isra_9();" (assignment_expression "piVar1 = (int *)d_lookup_template_argument_isra_9()" identifier = (cast_expression "(int *)d_lookup_template_argument_isra_9()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "d_lookup_template_argument_isra_9()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == 0x2f))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == 0x2f)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == 0x2f)" ( (binary_expression "*piVar1 == 0x2f" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n          return piVar1;\n        }" { (return_statement "return piVar1;" return identifier ;) })) (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 7:" case number_literal :) (case_statement "case 8:" case number_literal :) (case_statement "case 0x32:\n        goto _L245;" case number_literal : (goto_statement "goto _L245;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)d_find_pack();" (assignment_expression "piVar1 = (int *)d_find_pack()" identifier = (cast_expression "(int *)d_find_pack()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "d_find_pack()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (labeled_statement "_L245:\n      param_2 = (undefined4 *)param_2[3];" statement_identifier : (expression_statement "param_2 = (undefined4 *)param_2[3];" (assignment_expression "param_2 = (undefined4 *)param_2[3]" identifier = (cast_expression "(undefined4 *)param_2[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) ;)) }) while (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_0027056a:\n  return (int *)0x0;" statement_identifier : (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;)) })))
(translation_unit "int * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00270520(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" { (do_statement "do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);" do (compound_statement "{\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    }" { (switch_statement "switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" switch (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (compound_statement "{\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" { (case_statement "case 0:" case number_literal :) (case_statement "case 6:" case number_literal :) (case_statement "case 0x18:" case number_literal :) (case_statement "case 0x27:" case number_literal :) (case_statement "case 0x2c:" case number_literal :) (case_statement "case 0x31:" case number_literal :) (case_statement "case 0x40:" case number_literal :) (case_statement "case 0x41:" case number_literal :) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x46:" case number_literal :) (case_statement "case 0x47:" case number_literal :) (case_statement "case 0x4a:" case number_literal :) (case_statement "case 0x4b:\n        goto LAB_0027056a;" case number_literal : (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;" case number_literal : (expression_statement "piVar1 = (int *)FUN_002704f0();" (assignment_expression "piVar1 = (int *)FUN_002704f0()" identifier = (cast_expression "(int *)FUN_002704f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002704f0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == 0x2f))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == 0x2f)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == 0x2f)" ( (binary_expression "*piVar1 == 0x2f" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n          return piVar1;\n        }" { (return_statement "return piVar1;" return identifier ;) })) (goto_statement "goto LAB_0027056a;" goto statement_identifier ;)) (case_statement "case 7:" case number_literal :) (case_statement "case 8:" case number_literal :) (case_statement "case 0x32:\n        goto code_r0x0027055e;" case number_literal : (goto_statement "goto code_r0x0027055e;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)FUN_00270520();" (assignment_expression "piVar1 = (int *)FUN_00270520()" identifier = (cast_expression "(int *)FUN_00270520()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00270520()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (labeled_statement "code_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];" statement_identifier : (expression_statement "param_2 = (undefined4 *)param_2[3];" (assignment_expression "param_2 = (undefined4 *)param_2[3]" identifier = (cast_expression "(undefined4 *)param_2[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) ;)) }) while (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_0027056a:\n  return (int *)0x0;" statement_identifier : (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;)) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (switch_statement switch (parenthesized_expression ( (pointer_expression * IDENT) )) (compound_statement { (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (goto_statement goto statement_identifier ;)) (case_statement case LIT : (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 (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;)) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (goto_statement goto statement_identifier ;)) })) (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 { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (labeled_statement statement_identifier : (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;)) })))
(function_definition "int * __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_00270520(undefined4 param_1,undefined4 *param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00270520(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_00270520") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }\nLAB_0027056a:\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" (if "if") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);\n  }" ({ "{") (do_statement "do {\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    } while (param_2 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n      switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }\n      piVar1 = (int *)FUN_00270520();\n      if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }\ncode_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];\n    }" ({ "{") (switch_statement "switch(*param_2) {\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" (switch "switch") (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (compound_statement "{\n      case 0:\n      case 6:\n      case 0x18:\n      case 0x27:\n      case 0x2c:\n      case 0x31:\n      case 0x40:\n      case 0x41:\n      case 0x45:\n      case 0x46:\n      case 0x47:\n      case 0x4a:\n      case 0x4b:\n        goto LAB_0027056a;\n      case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;\n      case 7:\n      case 8:\n      case 0x32:\n        goto code_r0x0027055e;\n      }" ({ "{") (case_statement "case 0:" (case "case") (number_literal "0") (: ":")) (case_statement "case 6:" (case "case") (number_literal "6") (: ":")) (case_statement "case 0x18:" (case "case") (number_literal "0x18") (: ":")) (case_statement "case 0x27:" (case "case") (number_literal "0x27") (: ":")) (case_statement "case 0x2c:" (case "case") (number_literal "0x2c") (: ":")) (case_statement "case 0x31:" (case "case") (number_literal "0x31") (: ":")) (case_statement "case 0x40:" (case "case") (number_literal "0x40") (: ":")) (case_statement "case 0x41:" (case "case") (number_literal "0x41") (: ":")) (case_statement "case 0x45:" (case "case") (number_literal "0x45") (: ":")) (case_statement "case 0x46:" (case "case") (number_literal "0x46") (: ":")) (case_statement "case 0x47:" (case "case") (number_literal "0x47") (: ":")) (case_statement "case 0x4a:" (case "case") (number_literal "0x4a") (: ":")) (case_statement "case 0x4b:\n        goto LAB_0027056a;" (case "case") (number_literal "0x4b") (: ":") (goto_statement "goto LAB_0027056a;" (goto "goto") (statement_identifier "LAB_0027056a") (; ";"))) (case_statement "case 5:\n        piVar1 = (int *)FUN_002704f0();\n        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }\n        goto LAB_0027056a;" (case "case") (number_literal "5") (: ":") (expression_statement "piVar1 = (int *)FUN_002704f0();" (assignment_expression "piVar1 = (int *)FUN_002704f0()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_002704f0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002704f0()" (identifier "FUN_002704f0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {\n          return piVar1;\n        }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == 0x2f))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == 0x2f)" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*piVar1 == 0x2f)" (( "(") (binary_expression "*piVar1 == 0x2f" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x2f")) () ")"))) () ")")) (compound_statement "{\n          return piVar1;\n        }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (goto_statement "goto LAB_0027056a;" (goto "goto") (statement_identifier "LAB_0027056a") (; ";"))) (case_statement "case 7:" (case "case") (number_literal "7") (: ":")) (case_statement "case 8:" (case "case") (number_literal "8") (: ":")) (case_statement "case 0x32:\n        goto code_r0x0027055e;" (case "case") (number_literal "0x32") (: ":") (goto_statement "goto code_r0x0027055e;" (goto "goto") (statement_identifier "code_r0x0027055e") (; ";"))) (} "}"))) (expression_statement "piVar1 = (int *)FUN_00270520();" (assignment_expression "piVar1 = (int *)FUN_00270520()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00270520()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00270520()" (identifier "FUN_00270520") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n        return piVar1;\n      }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return piVar1;\n      }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (labeled_statement "code_r0x0027055e:\n      param_2 = (undefined4 *)param_2[3];" (statement_identifier "code_r0x0027055e") (: ":") (expression_statement "param_2 = (undefined4 *)param_2[3];" (assignment_expression "param_2 = (undefined4 *)param_2[3]" (identifier "param_2") (= "=") (cast_expression "(undefined4 *)param_2[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0027056a:\n  return (int *)0x0;" (statement_identifier "LAB_0027056a") (: ":") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";"))) (} "}")))

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

int * __regparm3 function_1(type_1 param_1,type_1 *var_1)

{
  int *var_3;
  
  if (var_1 != (type_1 *)0x0) {
    do {
      switch(*var_1) {
      case 0:
      case 6:
      case 0x18:
      case 0x27:
      case 0x2c:
      case 0x31:
      case 0x40:
      case 0x41:
      case 0x45:
      case 0x46:
      case 0x47:
      case 0x4a:
      case 0x4b:
        goto LAB_0027056a;
      case 5:
        var_3 = (int *)var_2();
        if ((var_3 != (int *)0x0) && (*var_3 == 0x2f)) {
          return var_3;
        }
        goto LAB_0027056a;
      case 7:
      case 8:
      case 0x32:
        goto _L245;
      }
      var_3 = (int *)function_1();
      if (var_3 != (int *)0x0) {
        return var_3;
      }
_L245:
      var_1 = (type_1 *)var_1[3];
    } while (var_1 != (type_1 *)0x0);
  }
LAB_0027056a:
  return (int *)0x0;
}


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

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

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

{
  int *piVar1;
  
  if (param_2 != (undefined4 *)0x0) {
    do {
      switch(*param_2) {
      case 0:
      case 6:
      case 0x18:
      case 0x27:
      case 0x2c:
      case 0x31:
      case 0x40:
      case 0x41:
      case 0x45:
      case 0x46:
      case 0x47:
      case 0x4a:
      case 0x4b:
        goto LAB_0027056a;
      case 5:
        piVar1 = (int *)FUN_002704f0();
        if ((piVar1 != (int *)0x0) && (*piVar1 == 0x2f)) {
          return piVar1;
        }
        goto LAB_0027056a;
      case 7:
      case 8:
      case 0x32:
        goto code_r0x0027055e;
      }
      piVar1 = (int *)MASKED();
      if (piVar1 != (int *)0x0) {
        return piVar1;
      }
code_r0x0027055e:
      param_2 = (undefined4 *)param_2[3];
    } while (param_2 != (undefined4 *)0x0);
  }
LAB_0027056a:
  return (int *)0x0;
}

