
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 gmon_io_write_64(FILE *ofp,ulonglong val)

{
  size_t sVar1;
  uint in_EDX;
  char buf [8];
  
  (*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf);
  sVar1 = fwrite(buf,1,8,(FILE *)ofp);
  return (uint)(sVar1 != 8);
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

bool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)

{
  size_t sVar1;
  undefined1 local_24 [20];
  
  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);
  sVar1 = fwrite(local_24,1,8,param_1);
  return sVar1 != 8;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
CALL 0x00017eb8
ADD ESI,0x126b6
PUSH EBX
XOR EBX,EBX
SUB ESP,0x20
LEA EDI,[ESP + 0xc]
LEA EAX,[ESI + 0x1478]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x4]
PUSH EDI
PUSH EBX
MOV EBX,ESI
PUSH EDX
CALL dword ptr [EAX + 0x24]
PUSH EBP
PUSH 0x8
PUSH 0x1
PUSH EDI
CALL 0x000121c0
CMP EAX,0x8
SETNZ AL
ADD ESP,0x3c
POP EBX
MOVZX EAX,AL
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nbool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}\n\n" comment (function_definition "bool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019940(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_24 [20];" type_identifier (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);" (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x24)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x24" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2,0,local_24)" ( identifier , number_literal , identifier ))) ;) (expression_statement "sVar1 = fwrite(local_24,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_24,1,8,param_1)" identifier = (call_expression "fwrite(local_24,1,8,param_1)" identifier (argument_list "(local_24,1,8,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (return_statement "return sVar1 != 8;" return (binary_expression "sVar1 != 8" identifier != number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint __regparm3 gmon_io_write_64(FILE *ofp,ulonglong val)\n\n{\n  size_t sVar1;\n  uint in_EDX;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (uint)(sVar1 != 8);\n}\n\n" comment (function_definition "int __regparm3 gmon_io_write_64(FILE *ofp,ulonglong val)\n\n{\n  size_t sVar1;\n  uint in_EDX;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (uint)(sVar1 != 8);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "gmon_io_write_64(FILE *ofp,ulonglong val)" identifier (parameter_list "(FILE *ofp,ulonglong val)" ( (parameter_declaration "FILE *ofp" type_identifier (pointer_declarator "*ofp" * identifier)) , (parameter_declaration "ulonglong val" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  uint in_EDX;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (uint)(sVar1 != 8);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "uint in_EDX;" type_identifier identifier ;) (declaration "char buf [8];" primitive_type (array_declarator "buf [8]" identifier [ number_literal ]) ;) (expression_statement "(*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf);" (call_expression "(*core_bfd->xvec->bfd_putx64)((ulonglong)in_EDX,buf)" (parenthesized_expression "(*core_bfd->xvec->bfd_putx64)" ( (pointer_expression "*core_bfd->xvec->bfd_putx64" * (field_expression "core_bfd->xvec->bfd_putx64" (field_expression "core_bfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "((ulonglong)in_EDX,buf)" ( (cast_expression "(ulonglong)in_EDX" ( (type_descriptor "ulonglong" type_identifier) ) identifier) , identifier ))) ;) (expression_statement "sVar1 = fwrite(buf,1,8,(FILE *)ofp);" (assignment_expression "sVar1 = fwrite(buf,1,8,(FILE *)ofp)" identifier = (call_expression "fwrite(buf,1,8,(FILE *)ofp)" identifier (argument_list "(buf,1,8,(FILE *)ofp)" ( identifier , number_literal , number_literal , (cast_expression "(FILE *)ofp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return (uint)(sVar1 != 8);" return (call_expression "(uint)(sVar1 != 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sVar1 != 8)" ( (binary_expression "sVar1 != 8" identifier != number_literal) ))) ;) })))
(translation_unit "bool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}\n\n" (function_definition "bool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019940(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_24 [20];" type_identifier (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);" (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x24)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x24" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2,0,local_24)" ( identifier , number_literal , identifier ))) ;) (expression_statement "sVar1 = fwrite(local_24,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_24,1,8,param_1)" identifier = (call_expression "fwrite(local_24,1,8,param_1)" identifier (argument_list "(local_24,1,8,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (return_statement "return sVar1 != 8;" return (binary_expression "sVar1 != 8" identifier != number_literal) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })))
(function_definition "bool __regparm3 FUN_00019940(FILE *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00019940(FILE *param_1,undefined4 param_2)" (identifier "FUN_00019940") (parameter_list "(FILE *param_1,undefined4 param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_24 [20];\n  \n  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);\n  sVar1 = fwrite(local_24,1,8,param_1);\n  return sVar1 != 8;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined1 local_24 [20];" (type_identifier "undefined1") (array_declarator "local_24 [20]" (identifier "local_24") ([ "[") (number_literal "20") (] "]")) (; ";")) (expression_statement "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);" (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))" (( "(") (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" (* "*") (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" (* "*") (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x24)" (( "(") (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x24" (pointer_expression "*(int *)(DAT_0002d478 + 4)" (* "*") (cast_expression "(int *)(DAT_0002d478 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d478 + 4)" (( "(") (binary_expression "DAT_0002d478 + 4" (identifier "DAT_0002d478") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(param_2,0,local_24)" (( "(") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "local_24") () ")"))) (; ";")) (expression_statement "sVar1 = fwrite(local_24,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_24,1,8,param_1)" (identifier "sVar1") (= "=") (call_expression "fwrite(local_24,1,8,param_1)" (identifier "fwrite") (argument_list "(local_24,1,8,param_1)" (( "(") (identifier "local_24") (, ",") (number_literal "1") (, ",") (number_literal "8") (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return sVar1 != 8;" (return "return") (binary_expression "sVar1 != 8" (identifier "sVar1") (!= "!=") (number_literal "8")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 function_1(type_1 *ofp,type_2 val)

{
  size_t var_2;
  type_3 in_EDX;
  char buf [8];
  
  (*core_bfd->xvec->bfd_putx64)((type_2)in_EDX,buf);
  var_2 = var_1(buf,1,8,(type_1 *)ofp);
  return (type_3)(var_2 != 8);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

bool __regparm3 MASKED(FILE *param_1,undefined4 param_2)

{
  size_t sVar1;
  undefined1 local_24 [20];
  
  (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x24))(param_2,0,local_24);
  sVar1 = fwrite(local_24,1,8,param_1);
  return sVar1 != 8;
}

