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

int gmon_io_write(FILE *ofp,char *buf,size_t n)

{
  size_t sVar1;
  
  sVar1 = fwrite(buf,1,n,(FILE *)ofp);
  return (uint)(sVar1 != n);
}



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

bool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)

{
  size_t sVar1;
  
  sVar1 = fwrite(param_2,1,param_3,param_1);
  return sVar1 != param_3;
}


PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x13119
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x10]
PUSH ESI
PUSH 0x1
PUSH dword ptr [ESP + 0x20]
CALL 0x000121c0
CMP EAX,ESI
SETNZ AL
ADD ESP,0x14
MOVZX EAX,AL
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}\n\n" comment (function_definition "bool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" primitive_type (function_declarator "FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(FILE *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = fwrite(param_2,1,param_3,param_1);" (assignment_expression "sVar1 = fwrite(param_2,1,param_3,param_1)" identifier = (call_expression "fwrite(param_2,1,param_3,param_1)" identifier (argument_list "(param_2,1,param_3,param_1)" ( identifier , number_literal , identifier , identifier )))) ;) (return_statement "return sVar1 != param_3;" return (binary_expression "sVar1 != param_3" identifier != identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint gmon_io_write(FILE *ofp,char *buf,size_t n)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(buf,1,n,(FILE *)ofp);\n  return (uint)(sVar1 != n);\n}\n\n" comment comment (function_definition "int gmon_io_write(FILE *ofp,char *buf,size_t n)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(buf,1,n,(FILE *)ofp);\n  return (uint)(sVar1 != n);\n}" primitive_type (function_declarator "gmon_io_write(FILE *ofp,char *buf,size_t n)" identifier (parameter_list "(FILE *ofp,char *buf,size_t n)" ( (parameter_declaration "FILE *ofp" type_identifier (pointer_declarator "*ofp" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = fwrite(buf,1,n,(FILE *)ofp);\n  return (uint)(sVar1 != n);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = fwrite(buf,1,n,(FILE *)ofp);" (assignment_expression "sVar1 = fwrite(buf,1,n,(FILE *)ofp)" identifier = (call_expression "fwrite(buf,1,n,(FILE *)ofp)" identifier (argument_list "(buf,1,n,(FILE *)ofp)" ( identifier , number_literal , identifier , (cast_expression "(FILE *)ofp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return (uint)(sVar1 != n);" return (call_expression "(uint)(sVar1 != n)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sVar1 != n)" ( (binary_expression "sVar1 != n" identifier != identifier) ))) ;) })))
(translation_unit "bool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}\n\n" (function_definition "bool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" primitive_type (function_declarator "FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(FILE *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = fwrite(param_2,1,param_3,param_1);" (assignment_expression "sVar1 = fwrite(param_2,1,param_3,param_1)" identifier = (call_expression "fwrite(param_2,1,param_3,param_1)" identifier (argument_list "(param_2,1,param_3,param_1)" ( identifier , number_literal , identifier , identifier )))) ;) (return_statement "return sVar1 != param_3;" return (binary_expression "sVar1 != param_3" identifier != identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT != IDENT) ;) })))
(function_definition "bool FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" (primitive_type "bool") (function_declarator "FUN_00019ee0(FILE *param_1,void *param_2,size_t param_3)" (identifier "FUN_00019ee0") (parameter_list "(FILE *param_1,void *param_2,size_t param_3)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = fwrite(param_2,1,param_3,param_1);\n  return sVar1 != param_3;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (expression_statement "sVar1 = fwrite(param_2,1,param_3,param_1);" (assignment_expression "sVar1 = fwrite(param_2,1,param_3,param_1)" (identifier "sVar1") (= "=") (call_expression "fwrite(param_2,1,param_3,param_1)" (identifier "fwrite") (argument_list "(param_2,1,param_3,param_1)" (( "(") (identifier "param_2") (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return sVar1 != param_3;" (return "return") (binary_expression "sVar1 != param_3" (identifier "sVar1") (!= "!=") (identifier "param_3")) (; ";")) (} "}")))

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

int function_1(type_1 *ofp,char *buf,size_t var_3)

{
  size_t var_2;
  
  var_2 = var_1(buf,1,var_3,(type_1 *)ofp);
  return (uint)(var_2 != var_3);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

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

bool MASKED(FILE *param_1,void *param_2,size_t param_3)

{
  size_t sVar1;
  
  sVar1 = fwrite(param_2,1,param_3,param_1);
  return sVar1 != param_3;
}

