
int __regparm3 d_compact_number(d_info *di)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = di->n;
  if (*pcVar2 != '_') {
    if (*pcVar2 != 'n') {
      iVar1 = d_number((d_info *)&di->n);
      iVar1 = iVar1 + 1;
      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;
    }
    return -1;
  }
  iVar1 = 0;
LAB_0039bad6:
  di->n = pcVar2 + 1;
  return iVar1;
}



int __regparm3 FUN_0039bab0(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = *(char **)(param_1 + 0xc);
  if (*pcVar2 != '_') {
    if (*pcVar2 != 'n') {
      iVar1 = FUN_0039b9a0();
      iVar1 = iVar1 + 1;
      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;
    }
    return -1;
  }
  iVar1 = 0;
LAB_0039bad6:
  *(char **)(param_1 + 0xc) = pcVar2 + 1;
  return iVar1;
}


PUSH EBX
MOV EDX,dword ptr [EAX + 0xc]
MOV EBX,EAX
MOVZX EAX,byte ptr [EDX]
CMP AL,0x5f
JZ 0x0039bae0
CMP AL,0x6e
JZ 0x0039bae8
LEA EAX,[EBX + 0xc]
CALL 0x0039b9a0
ADD EAX,0x1
JS 0x0039bae8
MOV EDX,dword ptr [EBX + 0xc]
CMP byte ptr [EDX],0x5f
JNZ 0x0039bae8
ADD EDX,0x1
MOV dword ptr [EBX + 0xc],EDX
POP EBX
RET
XOR EAX,EAX
JMP 0x0039bad6
MOV EAX,0xffffffff
POP EBX
RET
(translation_unit "int __regparm3 FUN_0039bab0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0039bab0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0039bab0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar2 = *(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 (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" if (parenthesized_expression "(*pcVar2 != '_')" ( (binary_expression "*pcVar2 != '_'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" { (if_statement "if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" if (parenthesized_expression "(*pcVar2 != 'n')" ( (binary_expression "*pcVar2 != 'n'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'n'" ' character ')) )) (compound_statement "{\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" { (expression_statement "iVar1 = FUN_0039b9a0();" (assignment_expression "iVar1 = FUN_0039b9a0()" identifier = (call_expression "FUN_0039b9a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;" if (parenthesized_expression "((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'))" ( (binary_expression "(-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "(pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" ( (comma_expression "pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'" (assignment_expression "pcVar2 = *(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) ))))) , (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character '))) ))) )) (goto_statement "goto LAB_0039bad6;" goto statement_identifier ;)) })) (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;" statement_identifier : (expression_statement "*(char **)(param_1 + 0xc) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar2 + 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 "pcVar2 + 1" identifier + number_literal)) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 d_compact_number(d_info *di)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = di->n;\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  di->n = pcVar2 + 1;\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 d_compact_number(d_info *di)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = di->n;\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  di->n = pcVar2 + 1;\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "d_compact_number(d_info *di)" identifier (parameter_list "(d_info *di)" ( (parameter_declaration "d_info *di" type_identifier (pointer_declarator "*di" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = di->n;\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  di->n = pcVar2 + 1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = di->n;" (assignment_expression "pcVar2 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (if_statement "if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" if (parenthesized_expression "(*pcVar2 != '_')" ( (binary_expression "*pcVar2 != '_'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n    if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" { (if_statement "if (*pcVar2 != 'n') {\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }" if (parenthesized_expression "(*pcVar2 != 'n')" ( (binary_expression "*pcVar2 != 'n'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'n'" ' character ')) )) (compound_statement "{\n      iVar1 = d_number((d_info *)&di->n);\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;\n    }" { (expression_statement "iVar1 = d_number((d_info *)&di->n);" (assignment_expression "iVar1 = d_number((d_info *)&di->n)" identifier = (call_expression "d_number((d_info *)&di->n)" identifier (argument_list "((d_info *)&di->n)" ( (cast_expression "(d_info *)&di->n" ( (type_descriptor "d_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&di->n" & (field_expression "di->n" identifier -> field_identifier))) )))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if ((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')) goto LAB_0039bad6;" if (parenthesized_expression "((-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_'))" ( (binary_expression "(-1 < iVar1) && (pcVar2 = di->n, *pcVar2 == '_')" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "(pcVar2 = di->n, *pcVar2 == '_')" ( (comma_expression "pcVar2 = di->n, *pcVar2 == '_'" (assignment_expression "pcVar2 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) , (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character '))) ))) )) (goto_statement "goto LAB_0039bad6;" goto statement_identifier ;)) })) (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0039bad6:\n  di->n = pcVar2 + 1;" statement_identifier : (expression_statement "di->n = pcVar2 + 1;" (assignment_expression "di->n = pcVar2 + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0039bab0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0039bab0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0039bab0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar2 = *(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 (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" if (parenthesized_expression "(*pcVar2 != '_')" ( (binary_expression "*pcVar2 != '_'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" { (if_statement "if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" if (parenthesized_expression "(*pcVar2 != 'n')" ( (binary_expression "*pcVar2 != 'n'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'n'" ' character ')) )) (compound_statement "{\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" { (expression_statement "iVar1 = FUN_0039b9a0();" (assignment_expression "iVar1 = FUN_0039b9a0()" identifier = (call_expression "FUN_0039b9a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;" if (parenthesized_expression "((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'))" ( (binary_expression "(-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "(pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" ( (comma_expression "pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'" (assignment_expression "pcVar2 = *(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) ))))) , (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character '))) ))) )) (goto_statement "goto LAB_0039bad6;" goto statement_identifier ;)) })) (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;" statement_identifier : (expression_statement "*(char **)(param_1 + 0xc) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar2 + 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 "pcVar2 + 1" identifier + number_literal)) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (pointer_expression * IDENT) == (char_literal ' character '))) ))) )) (goto_statement goto statement_identifier ;)) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (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)) ;)) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0039bab0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0039bab0(int param_1)" (identifier "FUN_0039bab0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *(char **)(param_1 + 0xc);\n  if (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }\n  iVar1 = 0;\nLAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0xc)" (identifier "pcVar2") (= "=") (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 (*pcVar2 != '_') {\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" (if "if") (parenthesized_expression "(*pcVar2 != '_')" (( "(") (binary_expression "*pcVar2 != '_'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n    if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }\n    return -1;\n  }" ({ "{") (if_statement "if (*pcVar2 != 'n') {\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" (if "if") (parenthesized_expression "(*pcVar2 != 'n')" (( "(") (binary_expression "*pcVar2 != 'n'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'n'" (' "'") (character "n") (' "'"))) () ")")) (compound_statement "{\n      iVar1 = FUN_0039b9a0();\n      iVar1 = iVar1 + 1;\n      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;\n    }" ({ "{") (expression_statement "iVar1 = FUN_0039b9a0();" (assignment_expression "iVar1 = FUN_0039b9a0()" (identifier "iVar1") (= "=") (call_expression "FUN_0039b9a0()" (identifier "FUN_0039b9a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;" (if "if") (parenthesized_expression "((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'))" (( "(") (binary_expression "(-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (&& "&&") (parenthesized_expression "(pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')" (( "(") (comma_expression "pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_'" (assignment_expression "pcVar2 = *(char **)(param_1 + 0xc)" (identifier "pcVar2") (= "=") (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 "*pcVar2 == '_'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'")))) () ")"))) () ")")) (goto_statement "goto LAB_0039bad6;" (goto "goto") (statement_identifier "LAB_0039bad6") (; ";"))) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0039bad6:\n  *(char **)(param_1 + 0xc) = pcVar2 + 1;" (statement_identifier "LAB_0039bad6") (: ":") (expression_statement "*(char **)(param_1 + 0xc) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar2 + 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 "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *di)

{
  int var_2;
  char *var_3;
  
  var_3 = di->n;
  if (*var_3 != '_') {
    if (*var_3 != 'n') {
      var_2 = var_1((type_1 *)&di->n);
      var_2 = var_2 + 1;
      if ((-1 < var_2) && (var_3 = di->n, *var_3 == '_')) goto LAB_0039bad6;
    }
    return -1;
  }
  var_2 = 0;
LAB_0039bad6:
  di->n = var_3 + 1;
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))) consequence: (goto_statement label: (statement_identifier))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (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))))) (return_statement (identifier)))))

int __regparm3 MASKED(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = *(char **)(param_1 + 0xc);
  if (*pcVar2 != '_') {
    if (*pcVar2 != 'n') {
      iVar1 = FUN_0039b9a0();
      iVar1 = iVar1 + 1;
      if ((-1 < iVar1) && (pcVar2 = *(char **)(param_1 + 0xc), *pcVar2 == '_')) goto LAB_0039bad6;
    }
    return -1;
  }
  iVar1 = 0;
LAB_0039bad6:
  *(char **)(param_1 + 0xc) = pcVar2 + 1;
  return iVar1;
}

