
bfd_boolean stab_int_constant(void *p,char *name,bfd_vma val)

{
  bfd_boolean bVar1;
  size_t sVar2;
  char *__s;
  
  sVar2 = strlen(name);
  __s = (char *)xmalloc(sVar2 + 0x14);
  sprintf(__s,"%s:c=i%ld",name);
  bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);
  if (bVar1 != 0) {
    free(__s);
    bVar1 = 1;
  }
  return bVar1;
}



undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)

{
  size_t sVar1;
  char *__s;
  undefined8 uVar2;
  
  sVar1 = strlen(param_2);
  __s = (char *)xmalloc(sVar1 + 0x14);
  sprintf(__s,"%s:c=i%ld",param_2,param_3);
  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);
  if ((int)uVar2 != 0) {
    free(__s);
    uVar2 = 1;
  }
  return uVar2;
}


PUSH R13
MOV R13,RDX
PUSH R12
MOV R12,RDI
MOV RDI,RSI
PUSH RBP
MOV RBP,RSI
PUSH RBX
SUB RSP,0x8
CALL 0x00104260
LEA RDI,[RAX + 0x14]
CALL 0x00104370
MOV RCX,R13
MOV RDX,RBP
LEA RSI,[0x123f5d]
MOV RDI,RAX
MOV RBX,RAX
XOR EAX,EAX
CALL 0x00104820
XOR ECX,ECX
XOR EDX,EDX
MOV R8,RBX
MOV ESI,0x80
MOV RDI,R12
CALL 0x00118330
TEST EAX,EAX
JZ 0x00118673
MOV RDI,RBX
CALL 0x00104920
MOV EAX,0x1
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 0x14);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 0x14)" identifier (argument_list "(sVar1 + 0x14)" ( (binary_expression "sVar1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s,"%s:c=i%ld",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=i%ld",param_2,param_3)" identifier (argument_list "(__s,"%s:c=i%ld",param_2,param_3)" ( identifier , (string_literal ""%s:c=i%ld"" " string_content ") , identifier , identifier ))) ;) (expression_statement "uVar2 = FUN_00118330(param_1,0x80,0,0,__s);" (assignment_expression "uVar2 = FUN_00118330(param_1,0x80,0,0,__s)" identifier = (call_expression "FUN_00118330(param_1,0x80,0,0,__s)" identifier (argument_list "(param_1,0x80,0,0,__s)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }" if (parenthesized_expression "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    free(__s);\n    uVar2 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "bfd_boolean stab_int_constant(void *p,char *name,bfd_vma val)\n\n{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  char *__s;\n  \n  sVar2 = strlen(name);\n  __s = (char *)xmalloc(sVar2 + 0x14);\n  sprintf(__s,"%s:c=i%ld",name);\n  bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar1 != 0) {\n    free(__s);\n    bVar1 = 1;\n  }\n  return bVar1;\n}\n\n" (function_definition "bfd_boolean stab_int_constant(void *p,char *name,bfd_vma val)\n\n{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  char *__s;\n  \n  sVar2 = strlen(name);\n  __s = (char *)xmalloc(sVar2 + 0x14);\n  sprintf(__s,"%s:c=i%ld",name);\n  bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar1 != 0) {\n    free(__s);\n    bVar1 = 1;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "stab_int_constant(void *p,char *name,bfd_vma val)" identifier (parameter_list "(void *p,char *name,bfd_vma val)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  char *__s;\n  \n  sVar2 = strlen(name);\n  __s = (char *)xmalloc(sVar2 + 0x14);\n  sprintf(__s,"%s:c=i%ld",name);\n  bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar1 != 0) {\n    free(__s);\n    bVar1 = 1;\n  }\n  return bVar1;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "sVar2 = strlen(name);" (assignment_expression "sVar2 = strlen(name)" identifier = (call_expression "strlen(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar2 + 0x14);" (assignment_expression "__s = (char *)xmalloc(sVar2 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 0x14)" identifier (argument_list "(sVar2 + 0x14)" ( (binary_expression "sVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s,"%s:c=i%ld",name);" (call_expression "sprintf(__s,"%s:c=i%ld",name)" identifier (argument_list "(__s,"%s:c=i%ld",name)" ( identifier , (string_literal ""%s:c=i%ld"" " string_content ") , identifier ))) ;) (expression_statement "bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);" (assignment_expression "bVar1 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s)" identifier = (call_expression "stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s)" identifier (argument_list "((stab_write_handle *)p,0x80,0,0,__s)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    free(__s);\n    bVar1 = 1;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s);\n    bVar1 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 0x14);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 0x14)" identifier (argument_list "(sVar1 + 0x14)" ( (binary_expression "sVar1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s,"%s:c=i%ld",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=i%ld",param_2,param_3)" identifier (argument_list "(__s,"%s:c=i%ld",param_2,param_3)" ( identifier , (string_literal ""%s:c=i%ld"" " string_content ") , identifier , identifier ))) ;) (expression_statement "uVar2 = FUN_00118330(param_1,0x80,0,0,__s);" (assignment_expression "uVar2 = FUN_00118330(param_1,0x80,0,0,__s)" identifier = (call_expression "FUN_00118330(param_1,0x80,0,0,__s)" identifier (argument_list "(param_1,0x80,0,0,__s)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }" if (parenthesized_expression "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    free(__s);\n    uVar2 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "FUN_00118610(undefined8 param_1,char *param_2,undefined8 param_3)" (identifier "FUN_00118610") (parameter_list "(undefined8 param_1,char *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  char *__s;\n  undefined8 uVar2;\n  \n  sVar1 = strlen(param_2);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=i%ld",param_2,param_3);\n  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);\n  if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }\n  return uVar2;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "__s = (char *)xmalloc(sVar1 + 0x14);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 0x14)" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 0x14)" (identifier "xmalloc") (argument_list "(sVar1 + 0x14)" (( "(") (binary_expression "sVar1 + 0x14" (identifier "sVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "sprintf(__s,"%s:c=i%ld",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=i%ld",param_2,param_3)" (identifier "sprintf") (argument_list "(__s,"%s:c=i%ld",param_2,param_3)" (( "(") (identifier "__s") (, ",") (string_literal ""%s:c=i%ld"" (" """) (string_content "%s:c=i%ld") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_00118330(param_1,0x80,0,0,__s);" (assignment_expression "uVar2 = FUN_00118330(param_1,0x80,0,0,__s)" (identifier "uVar2") (= "=") (call_expression "FUN_00118330(param_1,0x80,0,0,__s)" (identifier "FUN_00118330") (argument_list "(param_1,0x80,0,0,__s)" (( "(") (identifier "param_1") (, ",") (number_literal "0x80") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "__s") () ")")))) (; ";")) (if_statement "if ((int)uVar2 != 0) {\n    free(__s);\n    uVar2 = 1;\n  }" (if "if") (parenthesized_expression "((int)uVar2 != 0)" (( "(") (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free(__s);\n    uVar2 = 1;\n  }" ({ "{") (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 function_1(void *p,char *name,type_2 val)

{
  type_1 var_6;
  size_t var_3;
  char *__s;
  
  var_3 = var_1(name);
  __s = (char *)var_2(var_3 + 0x14);
  var_4(__s,"%s:c=i%ld",name);
  var_6 = var_5((type_3 *)p,0x80,0,0,__s);
  if (var_6 != 0) {
    var_7(__s);
    var_6 = 1;
  }
  return var_6;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

undefined8 MASKED(undefined8 param_1,char *param_2,undefined8 param_3)

{
  size_t sVar1;
  char *__s;
  undefined8 uVar2;
  
  sVar1 = strlen(param_2);
  __s = (char *)xmalloc(sVar1 + 0x14);
  sprintf(__s,"%s:c=i%ld",param_2,param_3);
  uVar2 = FUN_00118330(param_1,0x80,0,0,__s);
  if ((int)uVar2 != 0) {
    free(__s);
    uVar2 = 1;
  }
  return uVar2;
}

