
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_boolean stab_float_constant(void *p,char *name,double val)

{
  size_t sVar1;
  char *__s;
  bfd_boolean bVar2;
  
  sVar1 = strlen(name);
  __s = (char *)xmalloc(sVar1 + 0x14);
  sprintf(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20));
  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);
  if (bVar2 != 0) {
    free(__s);
    bVar2 = 1;
  }
  return bVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)

{
  char *__s;
  int iVar1;
  
  strlen(param_2);
  __s = (char *)xmalloc();
  sprintf(__s,"%s:c=f%g",param_2,param_3);
  iVar1 = FUN_00029160();
  if (iVar1 != 0) {
    free(__s);
    iVar1 = 1;
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x169e8
SUB ESP,0x1c
FLD qword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x30]
FSTP qword ptr [ESP + 0x14]
PUSH ESI
CALL 0x000134e0
ADD EAX,0x14
MOV dword ptr [ESP],EAX
CALL 0x000132e0
SUB ESP,0x4
FLD qword ptr [ESP + 0x1c]
MOV EDI,EAX
LEA EAX,[EBX + 0xffff4e18]
FSTP qword ptr [ESP]
PUSH ESI
PUSH EAX
PUSH EDI
CALL 0x000137a0
ADD ESP,0x1c
XOR ECX,ECX
MOV EDX,0x80
PUSH EDI
PUSH 0x0
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x00029160
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00029688
SUB ESP,0xc
PUSH EDI
CALL 0x00013948
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)\n\n{\n  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)\n\n{\n  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 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  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "strlen(param_2);" (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "__s = (char *)xmalloc();" (assignment_expression "__s = (char *)xmalloc()" identifier = (cast_expression "(char *)xmalloc()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sprintf(__s,"%s:c=f%g",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=f%g",param_2,param_3)" identifier (argument_list "(__s,"%s:c=f%g",param_2,param_3)" ( identifier , (string_literal ""%s:c=f%g"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_00029160();" (assignment_expression "iVar1 = FUN_00029160()" identifier = (call_expression "FUN_00029160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s);\n    iVar1 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean stab_float_constant(void *p,char *name,double val)\n\n{\n  size_t sVar1;\n  char *__s;\n  bfd_boolean bVar2;\n  \n  sVar1 = strlen(name);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20));\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    bVar2 = 1;\n  }\n  return bVar2;\n}\n\n" comment comment (function_definition "bfd_boolean stab_float_constant(void *p,char *name,double val)\n\n{\n  size_t sVar1;\n  char *__s;\n  bfd_boolean bVar2;\n  \n  sVar1 = strlen(name);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20));\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    bVar2 = 1;\n  }\n  return bVar2;\n}" type_identifier (function_declarator "stab_float_constant(void *p,char *name,double val)" identifier (parameter_list "(void *p,char *name,double val)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "double val" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s;\n  bfd_boolean bVar2;\n  \n  sVar1 = strlen(name);\n  __s = (char *)xmalloc(sVar1 + 0x14);\n  sprintf(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20));\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    bVar2 = 1;\n  }\n  return bVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(name);" (assignment_expression "sVar1 = strlen(name)" identifier = (call_expression "strlen(name)" identifier (argument_list "(name)" ( 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=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20));" (call_expression "sprintf(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20))" identifier (argument_list "(__s,"%s:c=f%g",name,SUB84(val,0),(int)((ulonglong)val >> 0x20))" ( identifier , (string_literal ""%s:c=f%g"" " string_content ") , identifier , (call_expression "SUB84(val,0)" identifier (argument_list "(val,0)" ( identifier , number_literal ))) , (cast_expression "(int)((ulonglong)val >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)val >> 0x20)" ( (binary_expression "(ulonglong)val >> 0x20" (cast_expression "(ulonglong)val" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) ))) ;) (expression_statement "bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);" (assignment_expression "bVar2 = 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 (bVar2 != 0) {\n    free(__s);\n    bVar2 = 1;\n  }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s);\n    bVar2 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "bVar2 = 1;" (assignment_expression "bVar2 = 1" identifier = number_literal) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "int FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)\n\n{\n  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)\n\n{\n  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 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  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "strlen(param_2);" (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "__s = (char *)xmalloc();" (assignment_expression "__s = (char *)xmalloc()" identifier = (cast_expression "(char *)xmalloc()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sprintf(__s,"%s:c=f%g",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=f%g",param_2,param_3)" identifier (argument_list "(__s,"%s:c=f%g",param_2,param_3)" ( identifier , (string_literal ""%s:c=f%g"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_00029160();" (assignment_expression "iVar1 = FUN_00029160()" identifier = (call_expression "FUN_00029160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s);\n    iVar1 = 1;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)\n\n{\n  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00029610(undefined4 param_1,char *param_2,undefined8 param_3)" (identifier "FUN_00029610") (parameter_list "(undefined4 param_1,char *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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  char *__s;\n  int iVar1;\n  \n  strlen(param_2);\n  __s = (char *)xmalloc();\n  sprintf(__s,"%s:c=f%g",param_2,param_3);\n  iVar1 = FUN_00029160();\n  if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "strlen(param_2);" (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "__s = (char *)xmalloc();" (assignment_expression "__s = (char *)xmalloc()" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc()" (identifier "xmalloc") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "sprintf(__s,"%s:c=f%g",param_2,param_3);" (call_expression "sprintf(__s,"%s:c=f%g",param_2,param_3)" (identifier "sprintf") (argument_list "(__s,"%s:c=f%g",param_2,param_3)" (( "(") (identifier "__s") (, ",") (string_literal ""%s:c=f%g"" (" """) (string_content "%s:c=f%g") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00029160();" (assignment_expression "iVar1 = FUN_00029160()" (identifier "iVar1") (= "=") (call_expression "FUN_00029160()" (identifier "FUN_00029160") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    free(__s);\n    iVar1 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free(__s);\n    iVar1 = 1;\n  }" ({ "{") (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

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

{
  size_t var_3;
  char *__s;
  type_1 var_7;
  
  var_3 = var_1(name);
  __s = (char *)var_2(var_3 + 0x14);
  var_4(__s,"%s:c=f%g",name,var_5(val,0),(int)((type_2)val >> 0x20));
  var_7 = var_6((type_3 *)p,0x80,0,0,__s);
  if (var_7 != 0) {
    var_8(__s);
    var_7 = 1;
  }
  return var_7;
}


(translation_unit (function_definition type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (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))))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  char *__s;
  int iVar1;
  
  strlen(param_2);
  __s = (char *)xmalloc();
  sprintf(__s,"%s:c=f%g",param_2,param_3);
  iVar1 = FUN_00029160();
  if (iVar1 != 0) {
    free(__s);
    iVar1 = 1;
  }
  return iVar1;
}

