
/* WARNING: Unknown calling convention */

demangling_styles cplus_demangle_set_style(demangling_styles style)

{
  demangling_styles dVar1;
  undefined1 *puVar2;
  
  if (style != no_demangling) {
    dVar1 = auto_demangling;
    puVar2 = libiberty_demanglers;
    while( true ) {
      if (dVar1 == unknown_demangling) {
        return dVar1;
      }
      if (dVar1 == style) break;
      dVar1 = *(demangling_styles *)(puVar2 + 0x38);
      puVar2 = puVar2 + 0x18;
    }
  }
  current_demangling_style = style;
  return style;
}



int FUN_002c3490(int param_1)

{
  int iVar1;
  undefined **ppuVar2;
  
  if (param_1 != -1) {
    iVar1 = 0x100;
    ppuVar2 = &PTR_s_none_0042d480;
    while( true ) {
      if (iVar1 == 0) {
        return 0;
      }
      if (iVar1 == param_1) break;
      iVar1 = *(int *)(ppuVar2 + 7);
      ppuVar2 = ppuVar2 + 3;
    }
  }
  DAT_0043e6bc = param_1;
  return param_1;
}


CMP EDI,-0x1
JZ 0x002c34c0
MOV EAX,0x100
LEA RDX,[0x42d480]
JMP 0x002c34af
CMP EAX,EDI
JZ 0x002c34c0
MOV EAX,dword ptr [RDX + 0x20]
ADD RDX,0x18
TEST EAX,EAX
JNZ 0x002c34a8
RET
MOV dword ptr [0x0043e6bc],EDI
MOV EAX,EDI
RET
(translation_unit "int FUN_002c3490(int param_1)\n\n{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}\n\n" (function_definition "int FUN_002c3490(int param_1)\n\n{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" primitive_type (function_declarator "FUN_002c3490(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (if_statement "if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" if (parenthesized_expression "(param_1 != -1)" ( (binary_expression "param_1 != -1" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" { (expression_statement "iVar1 = 0x100;" (assignment_expression "iVar1 = 0x100" identifier = number_literal) ;) (expression_statement "ppuVar2 = &PTR_s_none_0042d480;" (assignment_expression "ppuVar2 = &PTR_s_none_0042d480" identifier = (pointer_expression "&PTR_s_none_0042d480" & identifier)) ;) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" { (if_statement "if (iVar1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == param_1) break;" if (parenthesized_expression "(iVar1 == param_1)" ( (binary_expression "iVar1 == param_1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(ppuVar2 + 7);" (assignment_expression "iVar1 = *(int *)(ppuVar2 + 7)" identifier = (pointer_expression "*(int *)(ppuVar2 + 7)" * (cast_expression "(int *)(ppuVar2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppuVar2 + 7)" ( (binary_expression "ppuVar2 + 7" identifier + number_literal) ))))) ;) (expression_statement "ppuVar2 = ppuVar2 + 3;" (assignment_expression "ppuVar2 = ppuVar2 + 3" identifier = (binary_expression "ppuVar2 + 3" identifier + number_literal)) ;) })) })) (expression_statement "DAT_0043e6bc = param_1;" (assignment_expression "DAT_0043e6bc = param_1" identifier = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\ndemangling_styles cplus_demangle_set_style(demangling_styles style)\n\n{\n  demangling_styles dVar1;\n  undefined1 *puVar2;\n  \n  if (style != no_demangling) {\n    dVar1 = auto_demangling;\n    puVar2 = libiberty_demanglers;\n    while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }\n  }\n  current_demangling_style = style;\n  return style;\n}\n\n" comment (function_definition "demangling_styles cplus_demangle_set_style(demangling_styles style)\n\n{\n  demangling_styles dVar1;\n  undefined1 *puVar2;\n  \n  if (style != no_demangling) {\n    dVar1 = auto_demangling;\n    puVar2 = libiberty_demanglers;\n    while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }\n  }\n  current_demangling_style = style;\n  return style;\n}" type_identifier (function_declarator "cplus_demangle_set_style(demangling_styles style)" identifier (parameter_list "(demangling_styles style)" ( (parameter_declaration "demangling_styles style" type_identifier identifier) ))) (compound_statement "{\n  demangling_styles dVar1;\n  undefined1 *puVar2;\n  \n  if (style != no_demangling) {\n    dVar1 = auto_demangling;\n    puVar2 = libiberty_demanglers;\n    while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }\n  }\n  current_demangling_style = style;\n  return style;\n}" { (declaration "demangling_styles dVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (style != no_demangling) {\n    dVar1 = auto_demangling;\n    puVar2 = libiberty_demanglers;\n    while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }\n  }" if (parenthesized_expression "(style != no_demangling)" ( (binary_expression "style != no_demangling" identifier != identifier) )) (compound_statement "{\n    dVar1 = auto_demangling;\n    puVar2 = libiberty_demanglers;\n    while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }\n  }" { (expression_statement "dVar1 = auto_demangling;" (assignment_expression "dVar1 = auto_demangling" identifier = identifier) ;) (expression_statement "puVar2 = libiberty_demanglers;" (assignment_expression "puVar2 = libiberty_demanglers" identifier = identifier) ;) (while_statement "while( true ) {\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }\n      if (dVar1 == style) break;\n      dVar1 = *(demangling_styles *)(puVar2 + 0x38);\n      puVar2 = puVar2 + 0x18;\n    }" { (if_statement "if (dVar1 == unknown_demangling) {\n        return dVar1;\n      }" if (parenthesized_expression "(dVar1 == unknown_demangling)" ( (binary_expression "dVar1 == unknown_demangling" identifier == identifier) )) (compound_statement "{\n        return dVar1;\n      }" { (return_statement "return dVar1;" return identifier ;) })) (if_statement "if (dVar1 == style) break;" if (parenthesized_expression "(dVar1 == style)" ( (binary_expression "dVar1 == style" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "dVar1 = *(demangling_styles *)(puVar2 + 0x38);" (assignment_expression "dVar1 = *(demangling_styles *)(puVar2 + 0x38)" identifier = (pointer_expression "*(demangling_styles *)(puVar2 + 0x38)" * (cast_expression "(demangling_styles *)(puVar2 + 0x38)" ( (type_descriptor "demangling_styles *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x38)" ( (binary_expression "puVar2 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar2 + 0x18;" (assignment_expression "puVar2 = puVar2 + 0x18" identifier = (binary_expression "puVar2 + 0x18" identifier + number_literal)) ;) })) })) (expression_statement "current_demangling_style = style;" (assignment_expression "current_demangling_style = style" identifier = identifier) ;) (return_statement "return style;" return identifier ;) })))
(translation_unit "int FUN_002c3490(int param_1)\n\n{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}\n\n" (function_definition "int FUN_002c3490(int param_1)\n\n{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" primitive_type (function_declarator "FUN_002c3490(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (if_statement "if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" if (parenthesized_expression "(param_1 != -1)" ( (binary_expression "param_1 != -1" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" { (expression_statement "iVar1 = 0x100;" (assignment_expression "iVar1 = 0x100" identifier = number_literal) ;) (expression_statement "ppuVar2 = &PTR_s_none_0042d480;" (assignment_expression "ppuVar2 = &PTR_s_none_0042d480" identifier = (pointer_expression "&PTR_s_none_0042d480" & identifier)) ;) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" { (if_statement "if (iVar1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == param_1) break;" if (parenthesized_expression "(iVar1 == param_1)" ( (binary_expression "iVar1 == param_1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(ppuVar2 + 7);" (assignment_expression "iVar1 = *(int *)(ppuVar2 + 7)" identifier = (pointer_expression "*(int *)(ppuVar2 + 7)" * (cast_expression "(int *)(ppuVar2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppuVar2 + 7)" ( (binary_expression "ppuVar2 + 7" identifier + number_literal) ))))) ;) (expression_statement "ppuVar2 = ppuVar2 + 3;" (assignment_expression "ppuVar2 = ppuVar2 + 3" identifier = (binary_expression "ppuVar2 + 3" identifier + number_literal)) ;) })) })) (expression_statement "DAT_0043e6bc = param_1;" (assignment_expression "DAT_0043e6bc = param_1" identifier = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_002c3490(int param_1)\n\n{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_002c3490(int param_1)" (identifier "FUN_002c3490") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined **ppuVar2;\n  \n  if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }\n  DAT_0043e6bc = param_1;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined **ppuVar2;" (type_identifier "undefined") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (if_statement "if (param_1 != -1) {\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != -1)" (( "(") (binary_expression "param_1 != -1" (identifier "param_1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar1 = 0x100;\n    ppuVar2 = &PTR_s_none_0042d480;\n    while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 0x100;" (assignment_expression "iVar1 = 0x100" (identifier "iVar1") (= "=") (number_literal "0x100")) (; ";")) (expression_statement "ppuVar2 = &PTR_s_none_0042d480;" (assignment_expression "ppuVar2 = &PTR_s_none_0042d480" (identifier "ppuVar2") (= "=") (pointer_expression "&PTR_s_none_0042d480" (& "&") (identifier "PTR_s_none_0042d480"))) (; ";")) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar1 == 0) {\n        return 0;\n      }\n      if (iVar1 == param_1) break;\n      iVar1 = *(int *)(ppuVar2 + 7);\n      ppuVar2 = ppuVar2 + 3;\n    }" ({ "{") (if_statement "if (iVar1 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar1 == param_1) break;" (if "if") (parenthesized_expression "(iVar1 == param_1)" (( "(") (binary_expression "iVar1 == param_1" (identifier "iVar1") (== "==") (identifier "param_1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(ppuVar2 + 7);" (assignment_expression "iVar1 = *(int *)(ppuVar2 + 7)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(ppuVar2 + 7)" (* "*") (cast_expression "(int *)(ppuVar2 + 7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(ppuVar2 + 7)" (( "(") (binary_expression "ppuVar2 + 7" (identifier "ppuVar2") (+ "+") (number_literal "7")) () ")"))))) (; ";")) (expression_statement "ppuVar2 = ppuVar2 + 3;" (assignment_expression "ppuVar2 = ppuVar2 + 3" (identifier "ppuVar2") (= "=") (binary_expression "ppuVar2 + 3" (identifier "ppuVar2") (+ "+") (number_literal "3"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_0043e6bc = param_1;" (assignment_expression "DAT_0043e6bc = param_1" (identifier "DAT_0043e6bc") (= "=") (identifier "param_1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_1 var_1)

{
  type_1 var_3;
  type_2 *var_5;
  
  if (var_1 != var_2) {
    var_3 = auto_demangling;
    var_5 = libiberty_demanglers;
    while( true ) {
      if (var_3 == var_4) {
        return var_3;
      }
      if (var_3 == var_1) break;
      var_3 = *(type_1 *)(var_5 + 0x38);
      var_5 = var_5 + 0x18;
    }
  }
  current_demangling_style = var_1;
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  undefined **ppuVar2;
  
  if (param_1 != -1) {
    iVar1 = 0x100;
    ppuVar2 = &PTR_s_none_0042d480;
    while( true ) {
      if (iVar1 == 0) {
        return 0;
      }
      if (iVar1 == param_1) break;
      iVar1 = *(int *)(ppuVar2 + 7);
      ppuVar2 = ppuVar2 + 3;
    }
  }
  DAT_0043e6bc = param_1;
  return param_1;
}

