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

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

{
  uint uVar1;
  undefined4 local_14;
  undefined4 uStack_10;
  
  if (*(int *)((int)p + 4) != 0) {
    uVar1 = 0;
    do {
                    /* WARNING: Load size is inaccurate */
      uVar1 = uVar1 + 1;
      putc(0x20,*p);
    } while (uVar1 < *(uint *)((int)p + 4));
  }
  uStack_10 = (undefined4)((ulonglong)val >> 0x20);
  local_14 = SUB84(val,0);
                    /* WARNING: Load size is inaccurate */
  fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10);
  return 1;
}



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

undefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)

{
  uint uVar1;
  undefined4 local_14;
  undefined4 uStack_10;
  
  if (param_1[1] != 0) {
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar1 < (uint)param_1[1]);
  }
  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);
  local_14 = (undefined4)param_3;
  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000143a0
ADD EBX,0x3b558
SUB ESP,0x10
MOV EDI,dword ptr [ESP + 0x20]
FLD qword ptr [ESP + 0x28]
MOV EAX,dword ptr [EDI + 0x4]
FSTP qword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x00034ae7
XOR ESI,ESI
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EDI]
ADD ESI,0x1
PUSH 0x20
CALL 0x00013690
ADD ESP,0x10
CMP ESI,dword ptr [EDI + 0x4]
JC 0x00034ad0
SUB ESP,0xc
LEA EAX,[EBX + 0xfffe4100]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x38]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00013868
ADD ESP,0x30
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" type_identifier (function_declarator "FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(uVar1 < (uint)param_1[1])" ( (binary_expression "uVar1 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (expression_statement "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);" (assignment_expression "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)param_3 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)param_3 >> 0x20" (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_14 = (undefined4)param_3;" (assignment_expression "local_14 = (undefined4)param_3" identifier = (cast_expression "(undefined4)param_3" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);" (call_expression "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" identifier (argument_list "((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""const double %s = %g;\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pr_float_constant(void *p,char *name,double val)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  uStack_10 = (undefined4)((ulonglong)val >> 0x20);\n  local_14 = SUB84(val,0);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10);\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean pr_float_constant(void *p,char *name,double val)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  uStack_10 = (undefined4)((ulonglong)val >> 0x20);\n  local_14 = SUB84(val,0);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10);\n  return 1;\n}" type_identifier (function_declarator "pr_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  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  uStack_10 = (undefined4)((ulonglong)val >> 0x20);\n  local_14 = SUB84(val,0);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (if_statement "if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }" if (parenthesized_expression "(*(int *)((int)p + 4) != 0)" ( (binary_expression "*(int *)((int)p + 4) != 0" (pointer_expression "*(int *)((int)p + 4)" * (cast_expression "(int *)((int)p + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    }" { comment (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,*p);" (call_expression "putc(0x20,*p)" identifier (argument_list "(0x20,*p)" ( number_literal , (pointer_expression "*p" * identifier) ))) ;) }) while (parenthesized_expression "(uVar1 < *(uint *)((int)p + 4))" ( (binary_expression "uVar1 < *(uint *)((int)p + 4)" identifier < (pointer_expression "*(uint *)((int)p + 4)" * (cast_expression "(uint *)((int)p + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "uStack_10 = (undefined4)((ulonglong)val >> 0x20);" (assignment_expression "uStack_10 = (undefined4)((ulonglong)val >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)val >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)val >> 0x20)" ( (binary_expression "(ulonglong)val >> 0x20" (cast_expression "(ulonglong)val" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_14 = SUB84(val,0);" (assignment_expression "local_14 = SUB84(val,0)" identifier = (call_expression "SUB84(val,0)" identifier (argument_list "(val,0)" ( identifier , number_literal )))) ;) comment (expression_statement "fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10);" (call_expression "fprintf(*p,"const double %s = %g;\n",name,local_14,uStack_10)" identifier (argument_list "(*p,"const double %s = %g;\n",name,local_14,uStack_10)" ( (pointer_expression "*p" * identifier) , (string_literal ""const double %s = %g;\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" type_identifier (function_declarator "FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(uVar1 < (uint)param_1[1])" ( (binary_expression "uVar1 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (expression_statement "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);" (assignment_expression "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)param_3 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)param_3 >> 0x20" (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_14 = (undefined4)param_3;" (assignment_expression "local_14 = (undefined4)param_3" identifier = (cast_expression "(undefined4)param_3" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);" (call_expression "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" identifier (argument_list "((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""const double %s = %g;\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence ") , IDENT , IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00034aa0(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" (identifier "FUN_00034aa0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);\n  local_14 = (undefined4)param_3;\n  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" (do "do") (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" (identifier "putc") (argument_list "(0x20,(FILE *)*param_1)" (( "(") (number_literal "0x20") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 < (uint)param_1[1])" (( "(") (binary_expression "uVar1 < (uint)param_1[1]" (identifier "uVar1") (< "<") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}"))) (expression_statement "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);" (assignment_expression "uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20)" (identifier "uStack_10") (= "=") (call_expression "(undefined4)((ulonglong)param_3 >> 0x20)" (parenthesized_expression "(undefined4)" (( "(") (identifier "undefined4") () ")")) (argument_list "((ulonglong)param_3 >> 0x20)" (( "(") (binary_expression "(ulonglong)param_3 >> 0x20" (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "local_14 = (undefined4)param_3;" (assignment_expression "local_14 = (undefined4)param_3" (identifier "local_14") (= "=") (cast_expression "(undefined4)param_3" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);" (call_expression "fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""const double %s = %g;\n"" (" """) (string_content "const double %s = %g;") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "local_14") (, ",") (identifier "uStack_10") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* 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)

{
  type_2 var_1;
  type_3 local_14;
  type_3 uStack_10;
  
  if (*(int *)((int)p + 4) != 0) {
    var_1 = 0;
    do {
                    /* WARNING: Load size is inaccurate */
      var_1 = var_1 + 1;
      var_2(0x20,*p);
    } while (var_1 < *(type_2 *)((int)p + 4));
  }
  uStack_10 = (type_3)((type_4)val >> 0x20);
  local_14 = var_3(val,0);
                    /* WARNING: Load size is inaccurate */
  var_4(*p,"const double %s = %g;\n",name,local_14,uStack_10);
  return 1;
}


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

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

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

{
  uint uVar1;
  undefined4 local_14;
  undefined4 uStack_10;
  
  if (param_1[1] != 0) {
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar1 < (uint)param_1[1]);
  }
  uStack_10 = (undefined4)((ulonglong)param_3 >> 0x20);
  local_14 = (undefined4)param_3;
  fprintf((FILE *)*param_1,"const double %s = %g;\n",param_2,local_14,uStack_10);
  return 1;
}

