
demangle_component * __regparm3 d_lookup_template_argument(d_print_info *dpi,demangle_component *dc)

{
  demangle_component *pdVar1;
  
  if (dpi->templates == (d_print_template *)0x0) {
    dpi->demangle_failure = 1;
    pdVar1 = (demangle_component *)0x0;
  }
  else {
    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;
    if (-1 < (int)dc->type) {
      pdVar1 = d_index_template_argument(pdVar1,dc->type);
      return pdVar1;
    }
  }
  return pdVar1;
}



undefined4 __regparm3 FUN_001d4dd0(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_001d4d90();
      return uVar1;
    }
  }
  return uVar1;
}


MOV ECX,dword ptr [EAX + 0x110]
TEST ECX,ECX
JZ 0x001d4df0
MOV EAX,dword ptr [ECX + 0x4]
MOV EDX,dword ptr [EDX]
MOV ECX,dword ptr [EAX + 0xc]
TEST EDX,EDX
JS 0x001d4dfa
MOV EAX,ECX
JMP 0x001d4d90
MOV dword ptr [EAX + 0x118],0x1
MOV EAX,ECX
RET
(translation_unit "undefined4 __regparm3 FUN_001d4dd0(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_001d4d90();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_001d4dd0(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_001d4d90();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_001d4dd0(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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001d4d90();" (assignment_expression "uVar1 = FUN_001d4d90()" identifier = (call_expression "FUN_001d4d90()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "demangle_component * __regparm3 d_lookup_template_argument(d_print_info *dpi,demangle_component *dc)\n\n{\n  demangle_component *pdVar1;\n  \n  if (dpi->templates == (d_print_template *)0x0) {\n    dpi->demangle_failure = 1;\n    pdVar1 = (demangle_component *)0x0;\n  }\n  else {\n    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;\n    if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }\n  }\n  return pdVar1;\n}\n\n" (ERROR "demangle_component * __regparm3 d_lookup_template_argument(d_print_info *dpi,demangle_component *dc)" (binary_expression "demangle_component * __regparm3 d_lookup_template_argument(d_print_info *dpi,demangle_component *dc)" identifier * (ERROR "__regparm3" identifier) (call_expression "d_lookup_template_argument(d_print_info *dpi,demangle_component *dc)" identifier (argument_list "(d_print_info *dpi,demangle_component *dc)" ( (binary_expression "d_print_info *dpi" identifier * identifier) , (binary_expression "demangle_component *dc" identifier * identifier) ))))) (compound_statement "{\n  demangle_component *pdVar1;\n  \n  if (dpi->templates == (d_print_template *)0x0) {\n    dpi->demangle_failure = 1;\n    pdVar1 = (demangle_component *)0x0;\n  }\n  else {\n    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;\n    if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }\n  }\n  return pdVar1;\n}" { (declaration "demangle_component *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (if_statement "if (dpi->templates == (d_print_template *)0x0) {\n    dpi->demangle_failure = 1;\n    pdVar1 = (demangle_component *)0x0;\n  }\n  else {\n    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;\n    if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }\n  }" if (parenthesized_expression "(dpi->templates == (d_print_template *)0x0)" ( (binary_expression "dpi->templates == (d_print_template *)0x0" (field_expression "dpi->templates" identifier -> field_identifier) == (cast_expression "(d_print_template *)0x0" ( (type_descriptor "d_print_template *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    dpi->demangle_failure = 1;\n    pdVar1 = (demangle_component *)0x0;\n  }" { (expression_statement "dpi->demangle_failure = 1;" (assignment_expression "dpi->demangle_failure = 1" (field_expression "dpi->demangle_failure" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar1 = (demangle_component *)0x0;" (assignment_expression "pdVar1 = (demangle_component *)0x0" identifier = (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;\n    if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }\n  }" else (compound_statement "{\n    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;\n    if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }\n  }" { (expression_statement "pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;" (assignment_expression "pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name" identifier = (field_expression "(dpi->templates->template_decl->u).s_extended_operator.name" (field_expression "(dpi->templates->template_decl->u).s_extended_operator" (parenthesized_expression "(dpi->templates->template_decl->u)" ( (field_expression "dpi->templates->template_decl->u" (field_expression "dpi->templates->template_decl" (field_expression "dpi->templates" identifier -> field_identifier) -> field_identifier) -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (-1 < (int)dc->type) {\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }" if (parenthesized_expression "(-1 < (int)dc->type)" ( (binary_expression "-1 < (int)dc->type" number_literal < (cast_expression "(int)dc->type" ( (type_descriptor "int" primitive_type) ) (field_expression "dc->type" identifier -> field_identifier))) )) (compound_statement "{\n      pdVar1 = d_index_template_argument(pdVar1,dc->type);\n      return pdVar1;\n    }" { (expression_statement "pdVar1 = d_index_template_argument(pdVar1,dc->type);" (assignment_expression "pdVar1 = d_index_template_argument(pdVar1,dc->type)" identifier = (call_expression "d_index_template_argument(pdVar1,dc->type)" identifier (argument_list "(pdVar1,dc->type)" ( identifier , (field_expression "dc->type" identifier -> field_identifier) )))) ;) (return_statement "return pdVar1;" return identifier ;) })) }))) (return_statement "return pdVar1;" return identifier ;) }))
(translation_unit "undefined4 __regparm3 FUN_001d4dd0(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_001d4d90();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_001d4dd0(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_001d4d90();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_001d4dd0(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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001d4d90();" (assignment_expression "uVar1 = FUN_001d4d90()" identifier = (call_expression "FUN_001d4d90()" 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_001d4dd0(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_001d4d90();\n      return uVar1;\n    }\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001d4dd0(int param_1,int *param_2)" (identifier "FUN_001d4dd0") (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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\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_001d4d90();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_001d4d90();" (assignment_expression "uVar1 = FUN_001d4d90()" (identifier "uVar1") (= "=") (call_expression "FUN_001d4d90()" (identifier "FUN_001d4d90") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

type_1 * __regparm3 d_lookup_template_argument(d_print_info *dpi,type_1 *dc)

{
  type_1 *pdVar1;
  
  if (dpi->templates == (type_2 *)0x0) {
    dpi->demangle_failure = 1;
    pdVar1 = (type_1 *)0x0;
  }
  else {
    pdVar1 = (dpi->templates->template_decl->u).s_extended_operator.name;
    if (-1 < (int)dc->type) {
      pdVar1 = var_1(pdVar1,dc->type);
      return pdVar1;
    }
  }
  return pdVar1;
}


(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_001d4d90();
      return uVar1;
    }
  }
  return uVar1;
}

