
demangle_component * __regparm3 d_function_type(d_info *di)

{
  char *pcVar1;
  demangle_component *pdVar2;
  
  pcVar1 = di->n;
  if (*pcVar1 != 'F') {
    return (demangle_component *)0x0;
  }
  di->n = pcVar1 + 1;
  if (pcVar1[1] == 'Y') {
    di->n = pcVar1 + 2;
  }
  pdVar2 = d_bare_function_type(di,1);
  pdVar2 = d_ref_qualifier(di,pdVar2);
  if (*di->n == 'E') {
    di->n = di->n + 1;
    return pdVar2;
  }
  return (demangle_component *)0x0;
}



undefined4 __regparm3 FUN_00176310(int param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  
  pcVar1 = *(char **)(param_1 + 0xc);
  if (*pcVar1 != 'F') {
    return 0;
  }
  *(char **)(param_1 + 0xc) = pcVar1 + 1;
  if (pcVar1[1] == 'Y') {
    *(char **)(param_1 + 0xc) = pcVar1 + 2;
  }
  FUN_001762a0();
  uVar2 = FUN_0016df50();
  if (**(char **)(param_1 + 0xc) == 'E') {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
    return uVar2;
  }
  return 0;
}


MOV EDX,dword ptr [EAX + 0xc]
CMP byte ptr [EDX],0x46
JNZ 0x00176370
PUSH EBX
LEA ECX,[EDX + 0x1]
SUB ESP,0x8
MOV dword ptr [EAX + 0xc],ECX
CMP byte ptr [EDX + 0x1],0x59
JZ 0x00176350
MOV EDX,0x1
MOV EBX,EAX
CALL 0x001762a0
MOV EDX,EAX
MOV EAX,EBX
CALL 0x0016df50
MOV EDX,dword ptr [EBX + 0xc]
CMP byte ptr [EDX],0x45
JNZ 0x00176360
ADD EDX,0x1
MOV dword ptr [EBX + 0xc],EDX
ADD ESP,0x8
POP EBX
RET
ADD EDX,0x2
MOV dword ptr [EAX + 0xc],EDX
JMP 0x00176328
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 __regparm3 FUN_00176310(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00176310(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00176310(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != 'F') {\n    return 0;\n  }" if (parenthesized_expression "(*pcVar1 != 'F')" ( (binary_expression "*pcVar1 != 'F'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'F'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" if (parenthesized_expression "(pcVar1[1] == 'Y')" ( (binary_expression "pcVar1[1] == 'Y'" (subscript_expression "pcVar1[1]" identifier [ number_literal ]) == (char_literal "'Y'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 2;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 2" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) })) (expression_statement "FUN_001762a0();" (call_expression "FUN_001762a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = FUN_0016df50();" (assignment_expression "uVar2 = FUN_0016df50()" identifier = (call_expression "FUN_0016df50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'E')" ( (binary_expression "**(char **)(param_1 + 0xc) == 'E'" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == (char_literal "'E'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "demangle_component * __regparm3 d_function_type(d_info *di)\n\n{\n  char *pcVar1;\n  demangle_component *pdVar2;\n  \n  pcVar1 = di->n;\n  if (*pcVar1 != 'F') {\n    return (demangle_component *)0x0;\n  }\n  di->n = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    di->n = pcVar1 + 2;\n  }\n  pdVar2 = d_bare_function_type(di,1);\n  pdVar2 = d_ref_qualifier(di,pdVar2);\n  if (*di->n == 'E') {\n    di->n = di->n + 1;\n    return pdVar2;\n  }\n  return (demangle_component *)0x0;\n}\n\n" (ERROR "demangle_component * __regparm3 d_function_type(d_info *di)" (binary_expression "demangle_component * __regparm3 d_function_type(d_info *di)" identifier * (ERROR "__regparm3" identifier) (call_expression "d_function_type(d_info *di)" identifier (argument_list "(d_info *di)" ( (binary_expression "d_info *di" identifier * identifier) ))))) (compound_statement "{\n  char *pcVar1;\n  demangle_component *pdVar2;\n  \n  pcVar1 = di->n;\n  if (*pcVar1 != 'F') {\n    return (demangle_component *)0x0;\n  }\n  di->n = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    di->n = pcVar1 + 2;\n  }\n  pdVar2 = d_bare_function_type(di,1);\n  pdVar2 = d_ref_qualifier(di,pdVar2);\n  if (*di->n == 'E') {\n    di->n = di->n + 1;\n    return pdVar2;\n  }\n  return (demangle_component *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "demangle_component *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (expression_statement "pcVar1 = di->n;" (assignment_expression "pcVar1 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (if_statement "if (*pcVar1 != 'F') {\n    return (demangle_component *)0x0;\n  }" if (parenthesized_expression "(*pcVar1 != 'F')" ( (binary_expression "*pcVar1 != 'F'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'F'" ' character ')) )) (compound_statement "{\n    return (demangle_component *)0x0;\n  }" { (return_statement "return (demangle_component *)0x0;" return (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "di->n = pcVar1 + 1;" (assignment_expression "di->n = pcVar1 + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar1[1] == 'Y') {\n    di->n = pcVar1 + 2;\n  }" if (parenthesized_expression "(pcVar1[1] == 'Y')" ( (binary_expression "pcVar1[1] == 'Y'" (subscript_expression "pcVar1[1]" identifier [ number_literal ]) == (char_literal "'Y'" ' character ')) )) (compound_statement "{\n    di->n = pcVar1 + 2;\n  }" { (expression_statement "di->n = pcVar1 + 2;" (assignment_expression "di->n = pcVar1 + 2" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) })) (expression_statement "pdVar2 = d_bare_function_type(di,1);" (assignment_expression "pdVar2 = d_bare_function_type(di,1)" identifier = (call_expression "d_bare_function_type(di,1)" identifier (argument_list "(di,1)" ( identifier , number_literal )))) ;) (expression_statement "pdVar2 = d_ref_qualifier(di,pdVar2);" (assignment_expression "pdVar2 = d_ref_qualifier(di,pdVar2)" identifier = (call_expression "d_ref_qualifier(di,pdVar2)" identifier (argument_list "(di,pdVar2)" ( identifier , identifier )))) ;) (if_statement "if (*di->n == 'E') {\n    di->n = di->n + 1;\n    return pdVar2;\n  }" if (parenthesized_expression "(*di->n == 'E')" ( (binary_expression "*di->n == 'E'" (pointer_expression "*di->n" * (field_expression "di->n" identifier -> field_identifier)) == (char_literal "'E'" ' character ')) )) (compound_statement "{\n    di->n = di->n + 1;\n    return pdVar2;\n  }" { (expression_statement "di->n = di->n + 1;" (assignment_expression "di->n = di->n + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "di->n + 1" (field_expression "di->n" identifier -> field_identifier) + number_literal)) ;) (return_statement "return pdVar2;" return identifier ;) })) (return_statement "return (demangle_component *)0x0;" return (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "undefined4 __regparm3 FUN_00176310(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00176310(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00176310(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != 'F') {\n    return 0;\n  }" if (parenthesized_expression "(*pcVar1 != 'F')" ( (binary_expression "*pcVar1 != 'F'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'F'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" if (parenthesized_expression "(pcVar1[1] == 'Y')" ( (binary_expression "pcVar1[1] == 'Y'" (subscript_expression "pcVar1[1]" identifier [ number_literal ]) == (char_literal "'Y'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 2;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 2" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar1 + 2" identifier + number_literal)) ;) })) (expression_statement "FUN_001762a0();" (call_expression "FUN_001762a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = FUN_0016df50();" (assignment_expression "uVar2 = FUN_0016df50()" identifier = (call_expression "FUN_0016df50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'E')" ( (binary_expression "**(char **)(param_1 + 0xc) == 'E'" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == (char_literal "'E'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00176310(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00176310(int param_1)" (identifier "FUN_00176310") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  \n  pcVar1 = *(char **)(param_1 + 0xc);\n  if (*pcVar1 != 'F') {\n    return 0;\n  }\n  *(char **)(param_1 + 0xc) = pcVar1 + 1;\n  if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }\n  FUN_001762a0();\n  uVar2 = FUN_0016df50();\n  if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "pcVar1 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0xc)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*pcVar1 != 'F') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*pcVar1 != 'F')" (( "(") (binary_expression "*pcVar1 != 'F'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'F'" (' "'") (character "F") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar1[1] == 'Y') {\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" (if "if") (parenthesized_expression "(pcVar1[1] == 'Y')" (( "(") (binary_expression "pcVar1[1] == 'Y'" (subscript_expression "pcVar1[1]" (identifier "pcVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'Y'" (' "'") (character "Y") (' "'"))) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar1 + 2;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = pcVar1 + 2;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar1 + 2" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "pcVar1 + 2" (identifier "pcVar1") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "FUN_001762a0();" (call_expression "FUN_001762a0()" (identifier "FUN_001762a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0016df50();" (assignment_expression "uVar2 = FUN_0016df50()" (identifier "uVar2") (= "=") (call_expression "FUN_0016df50()" (identifier "FUN_0016df50") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (**(char **)(param_1 + 0xc) == 'E') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'E')" (( "(") (binary_expression "**(char **)(param_1 + 0xc) == 'E'" (pointer_expression "**(char **)(param_1 + 0xc)" (* "*") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    return uVar2;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 * __regparm3 d_function_type(d_info *di)

{
  char *var_1;
  type_1 *pdVar2;
  
  var_1 = di->n;
  if (*var_1 != 'F') {
    return (type_1 *)0x0;
  }
  di->n = var_1 + 1;
  if (var_1[1] == 'Y') {
    di->n = var_1 + 2;
  }
  pdVar2 = var_2(di,1);
  pdVar2 = var_3(di,pdVar2);
  if (*di->n == 'E') {
    di->n = di->n + 1;
    return pdVar2;
  }
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(int param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  
  pcVar1 = *(char **)(param_1 + 0xc);
  if (*pcVar1 != 'F') {
    return 0;
  }
  *(char **)(param_1 + 0xc) = pcVar1 + 1;
  if (pcVar1[1] == 'Y') {
    *(char **)(param_1 + 0xc) = pcVar1 + 2;
  }
  FUN_001762a0();
  uVar2 = FUN_0016df50();
  if (**(char **)(param_1 + 0xc) == 'E') {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
    return uVar2;
  }
  return 0;
}

