
int cmp_export_elem(def_file_export *e,char *ex_name,char *in_name,char *its_name,int ord)

{
  int iVar1;
  
  iVar1 = are_names_equal(ex_name,e->name);
  if (iVar1 == 0) {
    iVar1 = are_names_equal(in_name,e->internal_name);
    if (iVar1 == 0) {
      iVar1 = are_names_equal(its_name,e->its_name);
      if (iVar1 == 0) {
        iVar1 = ord - e->ordinal;
      }
    }
  }
  return iVar1;
}



ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                  int param_5)

{
  ulong uVar1;
  
  uVar1 = FUN_0014a820(param_2,*param_1);
  if ((int)uVar1 == 0) {
    uVar1 = FUN_0014a820(param_3,param_1[1]);
    if ((int)uVar1 == 0) {
      uVar1 = FUN_0014a820(param_4,param_1[2]);
      if ((int)uVar1 == 0) {
        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));
      }
    }
  }
  return uVar1;
}


PUSH R13
MOV R13D,R8D
PUSH R12
MOV R12,RCX
PUSH RBP
MOV RBP,RDX
PUSH RBX
MOV RBX,RDI
MOV RDI,RSI
SUB RSP,0x8
MOV RSI,qword ptr [RBX]
CALL 0x0014a820
TEST EAX,EAX
JNZ 0x0014ac5b
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,RBP
CALL 0x0014a820
TEST EAX,EAX
JNZ 0x0014ac5b
MOV RSI,qword ptr [RBX + 0x10]
MOV RDI,R12
CALL 0x0014a820
TEST EAX,EAX
JNZ 0x0014ac5b
MOV EAX,R13D
SUB EAX,dword ptr [RBX + 0x18]
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)\n\n{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)\n\n{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_0014a820(param_2,*param_1);" (assignment_expression "uVar1 = FUN_0014a820(param_2,*param_1)" identifier = (call_expression "FUN_0014a820(param_2,*param_1)" identifier (argument_list "(param_2,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" { (expression_statement "uVar1 = FUN_0014a820(param_3,param_1[1]);" (assignment_expression "uVar1 = FUN_0014a820(param_3,param_1[1])" identifier = (call_expression "FUN_0014a820(param_3,param_1[1])" identifier (argument_list "(param_3,param_1[1])" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" { (expression_statement "uVar1 = FUN_0014a820(param_4,param_1[2]);" (assignment_expression "uVar1 = FUN_0014a820(param_4,param_1[2])" identifier = (call_expression "FUN_0014a820(param_4,param_1[2])" identifier (argument_list "(param_4,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" { (expression_statement "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));" (assignment_expression "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3))" identifier = (call_expression "(ulong)(uint)(param_5 - *(int *)(param_1 + 3))" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "(param_5 - *(int *)(param_1 + 3))" ( (binary_expression "param_5 - *(int *)(param_1 + 3)" identifier - (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) )))) ;) })) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int cmp_export_elem(def_file_export *e,char *ex_name,char *in_name,char *its_name,int ord)\n\n{\n  int iVar1;\n  \n  iVar1 = are_names_equal(ex_name,e->name);\n  if (iVar1 == 0) {\n    iVar1 = are_names_equal(in_name,e->internal_name);\n    if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int cmp_export_elem(def_file_export *e,char *ex_name,char *in_name,char *its_name,int ord)\n\n{\n  int iVar1;\n  \n  iVar1 = are_names_equal(ex_name,e->name);\n  if (iVar1 == 0) {\n    iVar1 = are_names_equal(in_name,e->internal_name);\n    if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "cmp_export_elem(def_file_export *e,char *ex_name,char *in_name,char *its_name,int ord)" identifier (parameter_list "(def_file_export *e,char *ex_name,char *in_name,char *its_name,int ord)" ( (parameter_declaration "def_file_export *e" type_identifier (pointer_declarator "*e" * identifier)) , (parameter_declaration "char *ex_name" primitive_type (pointer_declarator "*ex_name" * identifier)) , (parameter_declaration "char *in_name" primitive_type (pointer_declarator "*in_name" * identifier)) , (parameter_declaration "char *its_name" primitive_type (pointer_declarator "*its_name" * identifier)) , (parameter_declaration "int ord" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = are_names_equal(ex_name,e->name);\n  if (iVar1 == 0) {\n    iVar1 = are_names_equal(in_name,e->internal_name);\n    if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = are_names_equal(ex_name,e->name);" (assignment_expression "iVar1 = are_names_equal(ex_name,e->name)" identifier = (call_expression "are_names_equal(ex_name,e->name)" identifier (argument_list "(ex_name,e->name)" ( identifier , (field_expression "e->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = are_names_equal(in_name,e->internal_name);\n    if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = are_names_equal(in_name,e->internal_name);\n    if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }\n  }" { (expression_statement "iVar1 = are_names_equal(in_name,e->internal_name);" (assignment_expression "iVar1 = are_names_equal(in_name,e->internal_name)" identifier = (call_expression "are_names_equal(in_name,e->internal_name)" identifier (argument_list "(in_name,e->internal_name)" ( identifier , (field_expression "e->internal_name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = are_names_equal(its_name,e->its_name);\n      if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }\n    }" { (expression_statement "iVar1 = are_names_equal(its_name,e->its_name);" (assignment_expression "iVar1 = are_names_equal(its_name,e->its_name)" identifier = (call_expression "are_names_equal(its_name,e->its_name)" identifier (argument_list "(its_name,e->its_name)" ( identifier , (field_expression "e->its_name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = ord - e->ordinal;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = ord - e->ordinal;\n      }" { (expression_statement "iVar1 = ord - e->ordinal;" (assignment_expression "iVar1 = ord - e->ordinal" identifier = (binary_expression "ord - e->ordinal" identifier - (field_expression "e->ordinal" identifier -> field_identifier))) ;) })) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)\n\n{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)\n\n{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_0014a820(param_2,*param_1);" (assignment_expression "uVar1 = FUN_0014a820(param_2,*param_1)" identifier = (call_expression "FUN_0014a820(param_2,*param_1)" identifier (argument_list "(param_2,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" { (expression_statement "uVar1 = FUN_0014a820(param_3,param_1[1]);" (assignment_expression "uVar1 = FUN_0014a820(param_3,param_1[1])" identifier = (call_expression "FUN_0014a820(param_3,param_1[1])" identifier (argument_list "(param_3,param_1[1])" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" { (expression_statement "uVar1 = FUN_0014a820(param_4,param_1[2]);" (assignment_expression "uVar1 = FUN_0014a820(param_4,param_1[2])" identifier = (call_expression "FUN_0014a820(param_4,param_1[2])" identifier (argument_list "(param_4,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" { (expression_statement "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));" (assignment_expression "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3))" identifier = (call_expression "(ulong)(uint)(param_5 - *(int *)(param_1 + 3))" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "(param_5 - *(int *)(param_1 + 3))" ( (binary_expression "param_5 - *(int *)(param_1 + 3)" identifier - (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) )))) ;) })) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)\n\n{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" (type_identifier "ulong") (function_declarator "FUN_0014ac10(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" (identifier "FUN_0014ac10") (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                  int param_5)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = FUN_0014a820(param_2,*param_1);\n  if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = FUN_0014a820(param_2,*param_1);" (assignment_expression "uVar1 = FUN_0014a820(param_2,*param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_0014a820(param_2,*param_1)" (identifier "FUN_0014a820") (argument_list "(param_2,*param_1)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if ((int)uVar1 == 0) {\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" (if "if") (parenthesized_expression "((int)uVar1 == 0)" (( "(") (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_0014a820(param_3,param_1[1]);\n    if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }\n  }" ({ "{") (expression_statement "uVar1 = FUN_0014a820(param_3,param_1[1]);" (assignment_expression "uVar1 = FUN_0014a820(param_3,param_1[1])" (identifier "uVar1") (= "=") (call_expression "FUN_0014a820(param_3,param_1[1])" (identifier "FUN_0014a820") (argument_list "(param_3,param_1[1])" (( "(") (identifier "param_3") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if ((int)uVar1 == 0) {\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" (if "if") (parenthesized_expression "((int)uVar1 == 0)" (( "(") (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = FUN_0014a820(param_4,param_1[2]);\n      if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }\n    }" ({ "{") (expression_statement "uVar1 = FUN_0014a820(param_4,param_1[2]);" (assignment_expression "uVar1 = FUN_0014a820(param_4,param_1[2])" (identifier "uVar1") (= "=") (call_expression "FUN_0014a820(param_4,param_1[2])" (identifier "FUN_0014a820") (argument_list "(param_4,param_1[2])" (( "(") (identifier "param_4") (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if ((int)uVar1 == 0) {\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" (if "if") (parenthesized_expression "((int)uVar1 == 0)" (( "(") (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));\n      }" ({ "{") (expression_statement "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));" (assignment_expression "uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3))" (identifier "uVar1") (= "=") (call_expression "(ulong)(uint)(param_5 - *(int *)(param_1 + 3))" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (argument_list "(param_5 - *(int *)(param_1 + 3))" (( "(") (binary_expression "param_5 - *(int *)(param_1 + 3)" (identifier "param_5") (- "-") (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) () ")")))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *e,char *ex_name,char *in_name,char *its_name,int var_3)

{
  int var_2;
  
  var_2 = var_1(ex_name,e->name);
  if (var_2 == 0) {
    var_2 = var_1(in_name,e->internal_name);
    if (var_2 == 0) {
      var_2 = var_1(its_name,e->its_name);
      if (var_2 == 0) {
        var_2 = var_3 - e->ordinal;
      }
    }
  }
  return var_2;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_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)))))))))))))))) (return_statement (identifier)))))

ulong MASKED(undefined8 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                  int param_5)

{
  ulong uVar1;
  
  uVar1 = FUN_0014a820(param_2,*param_1);
  if ((int)uVar1 == 0) {
    uVar1 = FUN_0014a820(param_3,param_1[1]);
    if ((int)uVar1 == 0) {
      uVar1 = FUN_0014a820(param_4,param_1[2]);
      if ((int)uVar1 == 0) {
        uVar1 = (ulong)(uint)(param_5 - *(int *)(param_1 + 3));
      }
    }
  }
  return uVar1;
}

