
int gmon_io_write_64(FILE *ofp,ulong val)

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



bool FUN_001094b0(FILE *param_1,undefined8 param_2)

{
  size_t sVar1;
  undefined1 local_20 [16];
  
  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);
  sVar1 = fwrite(local_20,1,8,param_1);
  return sVar1 != 8;
}


PUSH RBP
MOV RBP,RDI
MOV RDI,RSI
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr [0x00119ad8]
LEA RBX,[RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RSI,RBX
CALL qword ptr [RAX + 0x30]
MOV RCX,RBP
MOV RDI,RBX
MOV EDX,0x8
MOV ESI,0x1
CALL 0x00102460
CMP RAX,0x8
SETNZ AL
ADD RSP,0x18
MOVZX EAX,AL
POP RBX
POP RBP
RET
(translation_unit "bool FUN_001094b0(FILE *param_1,undefined8 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}\n\n" (function_definition "bool FUN_001094b0(FILE *param_1,undefined8 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" primitive_type (function_declarator "FUN_001094b0(FILE *param_1,undefined8 param_2)" identifier (parameter_list "(FILE *param_1,undefined8 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);" (call_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20)" (parenthesized_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))" ( (pointer_expression "**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" * (pointer_expression "*(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" * (cast_expression "(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(DAT_00119ad8 + 8) + 0x30)" ( (binary_expression "*(long *)(DAT_00119ad8 + 8) + 0x30" (pointer_expression "*(long *)(DAT_00119ad8 + 8)" * (cast_expression "(long *)(DAT_00119ad8 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00119ad8 + 8)" ( (binary_expression "DAT_00119ad8 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2,local_20)" ( identifier , identifier ))) ;) (expression_statement "sVar1 = fwrite(local_20,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_20,1,8,param_1)" identifier = (call_expression "fwrite(local_20,1,8,param_1)" identifier (argument_list "(local_20,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 "int gmon_io_write_64(FILE *ofp,ulong val)\n\n{\n  size_t sVar1;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)(val,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (int)(sVar1 != 8);\n}\n\n" (function_definition "int gmon_io_write_64(FILE *ofp,ulong val)\n\n{\n  size_t sVar1;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)(val,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (int)(sVar1 != 8);\n}" primitive_type (function_declarator "gmon_io_write_64(FILE *ofp,ulong val)" identifier (parameter_list "(FILE *ofp,ulong val)" ( (parameter_declaration "FILE *ofp" type_identifier (pointer_declarator "*ofp" * identifier)) , (parameter_declaration "ulong val" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char buf [8];\n  \n  (*core_bfd->xvec->bfd_putx64)(val,buf);\n  sVar1 = fwrite(buf,1,8,(FILE *)ofp);\n  return (int)(sVar1 != 8);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char buf [8];" primitive_type (array_declarator "buf [8]" identifier [ number_literal ]) ;) (expression_statement "(*core_bfd->xvec->bfd_putx64)(val,buf);" (call_expression "(*core_bfd->xvec->bfd_putx64)(val,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 "(val,buf)" ( 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 (int)(sVar1 != 8);" return (cast_expression "(int)(sVar1 != 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar1 != 8)" ( (binary_expression "sVar1 != 8" identifier != number_literal) ))) ;) })))
(translation_unit "bool FUN_001094b0(FILE *param_1,undefined8 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}\n\n" (function_definition "bool FUN_001094b0(FILE *param_1,undefined8 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" primitive_type (function_declarator "FUN_001094b0(FILE *param_1,undefined8 param_2)" identifier (parameter_list "(FILE *param_1,undefined8 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);" (call_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20)" (parenthesized_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))" ( (pointer_expression "**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" * (pointer_expression "*(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" * (cast_expression "(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(DAT_00119ad8 + 8) + 0x30)" ( (binary_expression "*(long *)(DAT_00119ad8 + 8) + 0x30" (pointer_expression "*(long *)(DAT_00119ad8 + 8)" * (cast_expression "(long *)(DAT_00119ad8 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00119ad8 + 8)" ( (binary_expression "DAT_00119ad8 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2,local_20)" ( identifier , identifier ))) ;) (expression_statement "sVar1 = fwrite(local_20,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_20,1,8,param_1)" identifier = (call_expression "fwrite(local_20,1,8,param_1)" identifier (argument_list "(local_20,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 (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , 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 FUN_001094b0(FILE *param_1,undefined8 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" (primitive_type "bool") (function_declarator "FUN_001094b0(FILE *param_1,undefined8 param_2)" (identifier "FUN_001094b0") (parameter_list "(FILE *param_1,undefined8 param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_20 [16];\n  \n  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);\n  sVar1 = fwrite(local_20,1,8,param_1);\n  return sVar1 != 8;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);" (call_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20)" (parenthesized_expression "(**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))" (( "(") (pointer_expression "**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" (* "*") (pointer_expression "*(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" (* "*") (cast_expression "(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(DAT_00119ad8 + 8) + 0x30)" (( "(") (binary_expression "*(long *)(DAT_00119ad8 + 8) + 0x30" (pointer_expression "*(long *)(DAT_00119ad8 + 8)" (* "*") (cast_expression "(long *)(DAT_00119ad8 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00119ad8 + 8)" (( "(") (binary_expression "DAT_00119ad8 + 8" (identifier "DAT_00119ad8") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(param_2,local_20)" (( "(") (identifier "param_2") (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "sVar1 = fwrite(local_20,1,8,param_1);" (assignment_expression "sVar1 = fwrite(local_20,1,8,param_1)" (identifier "sVar1") (= "=") (call_expression "fwrite(local_20,1,8,param_1)" (identifier "fwrite") (argument_list "(local_20,1,8,param_1)" (( "(") (identifier "local_20") (, ",") (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")) (; ";")) (} "}")))

int function_1(type_1 *ofp,type_2 val)

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


(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: (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (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))))))

bool MASKED(FILE *param_1,undefined8 param_2)

{
  size_t sVar1;
  undefined1 local_20 [16];
  
  (**(code **)(*(long *)(DAT_00119ad8 + 8) + 0x30))(param_2,local_20);
  sVar1 = fwrite(local_20,1,8,param_1);
  return sVar1 != 8;
}

