
/* WARNING: Unknown calling convention */

int cplus_demangle_fill_name(demangle_component *p,char *s,int len)

{
  if ((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)) {
    p->type = DEMANGLE_COMPONENT_NAME;
    p->d_printing = 0;
    (p->u).s_name.s = s;
    (p->u).s_name.len = len;
    return 1;
  }
  return 0;
}



undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)

{
  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {
    *param_1 = 0;
    param_1[1] = param_2;
    *(int *)(param_1 + 2) = param_3;
    return 1;
  }
  return 0;
}


TEST RSI,RSI
SETZ CL
TEST EDX,EDX
SETZ AL
OR CL,AL
JNZ 0x002e4cf0
TEST RDI,RDI
JZ 0x002e4cf0
MOV qword ptr [RDI],0x0
MOV EAX,0x1
MOV qword ptr [RDI + 0x8],RSI
MOV dword ptr [RDI + 0x10],EDX
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)\n\n{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)\n\n{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,int param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" if (parenthesized_expression "((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0))" ( (binary_expression "(param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)" (parenthesized_expression "(param_2 != 0 && param_3 != 0)" ( (binary_expression "param_2 != 0 && param_3 != 0" (binary_expression "param_2 != 0" identifier != number_literal) && (binary_expression "param_3 != 0" identifier != number_literal)) )) && (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)(param_1 + 2) = param_3;" (assignment_expression "*(int *)(param_1 + 2) = param_3" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint cplus_demangle_fill_name(demangle_component *p,char *s,int len)\n\n{\n  if ((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)) {\n    p->type = DEMANGLE_COMPONENT_NAME;\n    p->d_printing = 0;\n    (p->u).s_name.s = s;\n    (p->u).s_name.len = len;\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int cplus_demangle_fill_name(demangle_component *p,char *s,int len)\n\n{\n  if ((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)) {\n    p->type = DEMANGLE_COMPONENT_NAME;\n    p->d_printing = 0;\n    (p->u).s_name.s = s;\n    (p->u).s_name.len = len;\n    return 1;\n  }\n  return 0;\n}" primitive_type (function_declarator "cplus_demangle_fill_name(demangle_component *p,char *s,int len)" identifier (parameter_list "(demangle_component *p,char *s,int len)" ( (parameter_declaration "demangle_component *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  if ((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)) {\n    p->type = DEMANGLE_COMPONENT_NAME;\n    p->d_printing = 0;\n    (p->u).s_name.s = s;\n    (p->u).s_name.len = len;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)) {\n    p->type = DEMANGLE_COMPONENT_NAME;\n    p->d_printing = 0;\n    (p->u).s_name.s = s;\n    (p->u).s_name.len = len;\n    return 1;\n  }" if (parenthesized_expression "((s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0))" ( (binary_expression "(s != (char *)0x0 && len != 0) && (p != (demangle_component *)0x0)" (parenthesized_expression "(s != (char *)0x0 && len != 0)" ( (binary_expression "s != (char *)0x0 && len != 0" (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "len != 0" identifier != number_literal)) )) && (parenthesized_expression "(p != (demangle_component *)0x0)" ( (binary_expression "p != (demangle_component *)0x0" identifier != (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    p->type = DEMANGLE_COMPONENT_NAME;\n    p->d_printing = 0;\n    (p->u).s_name.s = s;\n    (p->u).s_name.len = len;\n    return 1;\n  }" { (expression_statement "p->type = DEMANGLE_COMPONENT_NAME;" (assignment_expression "p->type = DEMANGLE_COMPONENT_NAME" (field_expression "p->type" identifier -> field_identifier) = identifier) ;) (expression_statement "p->d_printing = 0;" (assignment_expression "p->d_printing = 0" (field_expression "p->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "(p->u).s_name.s = s;" (assignment_expression "(p->u).s_name.s = s" (field_expression "(p->u).s_name.s" (field_expression "(p->u).s_name" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(p->u).s_name.len = len;" (assignment_expression "(p->u).s_name.len = len" (field_expression "(p->u).s_name.len" (field_expression "(p->u).s_name" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)\n\n{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)\n\n{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,int param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" if (parenthesized_expression "((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0))" ( (binary_expression "(param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)" (parenthesized_expression "(param_2 != 0 && param_3 != 0)" ( (binary_expression "param_2 != 0 && param_3 != 0" (binary_expression "param_2 != 0" identifier != number_literal) && (binary_expression "param_3 != 0" identifier != number_literal)) )) && (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)(param_1 + 2) = param_3;" (assignment_expression "*(int *)(param_1 + 2) = param_3" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)\n\n{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_002e4cc0(undefined8 *param_1,long param_2,int param_3)" (identifier "FUN_002e4cc0") (parameter_list "(undefined8 *param_1,long param_2,int param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }\n  return 0;\n}" ({ "{") (if_statement "if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0))" (( "(") (binary_expression "(param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)" (parenthesized_expression "(param_2 != 0 && param_3 != 0)" (( "(") (binary_expression "param_2 != 0 && param_3 != 0" (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) (&& "&&") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 != (undefined8 *)0x0)" (( "(") (binary_expression "param_1 != (undefined8 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_2;\n    *(int *)(param_1 + 2) = param_3;\n    return 1;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)(param_1 + 2) = param_3;" (assignment_expression "*(int *)(param_1 + 2) = param_3" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_3,char *var_1,int var_2)

{
  if ((var_1 != (char *)0x0 && var_2 != 0) && (var_3 != (type_1 *)0x0)) {
    var_3->type = DEMANGLE_COMPONENT_NAME;
    var_3->d_printing = 0;
    (var_3->u).s_name.var_1 = var_1;
    (var_3->u).s_name.var_2 = var_2;
    return 1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_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: (identifier))) (return_statement (number_literal)))) (return_statement (number_literal)))))

undefined8 MASKED(undefined8 *param_1,long param_2,int param_3)

{
  if ((param_2 != 0 && param_3 != 0) && (param_1 != (undefined8 *)0x0)) {
    *param_1 = 0;
    param_1[1] = param_2;
    *(int *)(param_1 + 2) = param_3;
    return 1;
  }
  return 0;
}

