
undefined4 __regparm3 d_lookup_template_argument_isra_9(int param_1,int *param_2)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 0x110) == 0) {
    *(undefined4 *)(param_1 + 0x118) = 1;
    uVar1 = 0;
  }
  else {
    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);
    if (-1 < *param_2) {
      uVar1 = d_index_template_argument_part_8();
      return uVar1;
    }
  }
  return uVar1;
}



undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 0x110) == 0) {
    *(undefined4 *)(param_1 + 0x118) = 1;
    uVar1 = 0;
  }
  else {
    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);
    if (-1 < *param_2) {
      uVar1 = FUN_002704b0();
      return uVar1;
    }
  }
  return uVar1;
}


MOV ECX,dword ptr [EAX + 0x110]
TEST ECX,ECX
JZ 0x00270510
MOV EAX,dword ptr [ECX + 0x4]
MOV EDX,dword ptr [EDX]
MOV ECX,dword ptr [EAX + 0xc]
TEST EDX,EDX
JS 0x0027051a
MOV EAX,ECX
JMP 0x002704b0
MOV dword ptr [EAX + 0x118],0x1
MOV EAX,ECX
RET
(translation_unit "undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_002704f0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x110) == 0)" ( (binary_expression "*(int *)(param_1 + 0x110) == 0" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x118) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" * (cast_expression "(undefined4 *)(param_1 + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" { (expression_statement "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc" (pointer_expression "*(int *)(*(int *)(param_1 + 0x110) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x110) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x110) + 4)" ( (binary_expression "*(int *)(param_1 + 0x110) + 4" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" if (parenthesized_expression "(-1 < *param_2)" ( (binary_expression "-1 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_002704b0();" (assignment_expression "uVar1 = FUN_002704b0()" identifier = (call_expression "FUN_002704b0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 d_lookup_template_argument_isra_9(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __regparm3 d_lookup_template_argument_isra_9(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "d_lookup_template_argument_isra_9(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x110) == 0)" ( (binary_expression "*(int *)(param_1 + 0x110) == 0" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x118) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" * (cast_expression "(undefined4 *)(param_1 + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }\n  }" { (expression_statement "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc" (pointer_expression "*(int *)(*(int *)(param_1 + 0x110) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x110) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x110) + 4)" ( (binary_expression "*(int *)(param_1 + 0x110) + 4" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (-1 < *param_2) {\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }" if (parenthesized_expression "(-1 < *param_2)" ( (binary_expression "-1 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      uVar1 = d_index_template_argument_part_8();\n      return uVar1;\n    }" { (expression_statement "uVar1 = d_index_template_argument_part_8();" (assignment_expression "uVar1 = d_index_template_argument_part_8()" identifier = (call_expression "d_index_template_argument_part_8()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_002704f0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x110) == 0)" ( (binary_expression "*(int *)(param_1 + 0x110) == 0" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x118) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" * (cast_expression "(undefined4 *)(param_1 + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" { (expression_statement "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc" (pointer_expression "*(int *)(*(int *)(param_1 + 0x110) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x110) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x110) + 4)" ( (binary_expression "*(int *)(param_1 + 0x110) + 4" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" if (parenthesized_expression "(-1 < *param_2)" ( (binary_expression "-1 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_002704b0();" (assignment_expression "uVar1 = FUN_002704b0()" identifier = (call_expression "FUN_002704b0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_002704f0(int param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_002704f0(int param_1,int *param_2)" (identifier "FUN_002704f0") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 0x110) == 0) {\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x110) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x110) == 0" (pointer_expression "*(int *)(param_1 + 0x110)" (* "*") (cast_expression "(int *)(param_1 + 0x110)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x118) = 1;\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x118) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x118)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x118)" (( "(") (binary_expression "param_1 + 0x118" (identifier "param_1") (+ "+") (number_literal "0x118")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" (else "else") (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);\n    if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc" (pointer_expression "*(int *)(*(int *)(param_1 + 0x110) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x110) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x110) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x110) + 4" (pointer_expression "*(int *)(param_1 + 0x110)" (* "*") (cast_expression "(int *)(param_1 + 0x110)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (-1 < *param_2) {\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(-1 < *param_2)" (( "(") (binary_expression "-1 < *param_2" (number_literal "-1") (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n      uVar1 = FUN_002704b0();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_002704b0();" (assignment_expression "uVar1 = FUN_002704b0()" (identifier "uVar1") (= "=") (call_expression "FUN_002704b0()" (identifier "FUN_002704b0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

type_1 __regparm3 function_1(int var_1,int *param_2)

{
  type_1 uVar1;
  
  if (*(int *)(var_1 + 0x110) == 0) {
    *(type_1 *)(var_1 + 0x118) = 1;
    uVar1 = 0;
  }
  else {
    uVar1 = *(type_1 *)(*(int *)(*(int *)(var_1 + 0x110) + 4) + 0xc);
    if (-1 < *param_2) {
      uVar1 = var_2();
      return uVar1;
    }
  }
  return uVar1;
}


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

undefined4 __regparm3 MASKED(int param_1,int *param_2)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 0x110) == 0) {
    *(undefined4 *)(param_1 + 0x118) = 1;
    uVar1 = 0;
  }
  else {
    uVar1 = *(undefined4 *)(*(int *)(*(int *)(param_1 + 0x110) + 4) + 0xc);
    if (-1 < *param_2) {
      uVar1 = FUN_002704b0();
      return uVar1;
    }
  }
  return uVar1;
}

