
void fadvise(FILE *fp,fadvice_t advice)

{
  int fd;
  
  if (fp != (FILE *)0x0) {
    fd = fileno((FILE *)fp);
    fdadvise(fd,0,0,advice);
    return;
  }
  return;
}



void FUN_00106eb7(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (FILE *)0x0) {
    iVar1 = fileno(param_1);
    FUN_00106ea9(iVar1,0,0,param_2);
    return;
  }
  return;
}


TEST RDI,RDI
JZ 0x00106ed9
PUSH RBX
MOV EBX,ESI
CALL 0x00102200
MOV ECX,EBX
MOV EDX,0x0
MOV ESI,0x0
MOV EDI,EAX
CALL 0x00106ea9
POP RBX
RET
RET
(translation_unit "void FUN_00106eb7(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00106eb7(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00106eb7(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  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" { (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00106ea9(iVar1,0,0,param_2);" (call_expression "FUN_00106ea9(iVar1,0,0,param_2)" identifier (argument_list "(iVar1,0,0,param_2)" ( identifier , number_literal , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void fadvise(FILE *fp,fadvice_t advice)\n\n{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void fadvise(FILE *fp,fadvice_t advice)\n\n{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "fadvise(FILE *fp,fadvice_t advice)" identifier (parameter_list "(FILE *fp,fadvice_t advice)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "fadvice_t advice" type_identifier identifier) ))) (compound_statement "{\n  int fd;\n  \n  if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n    return;\n  }\n  return;\n}" { (declaration "int fd;" primitive_type identifier ;) (if_statement "if (fp != (FILE *)0x0) {\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n    return;\n  }" if (parenthesized_expression "(fp != (FILE *)0x0)" ( (binary_expression "fp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fd = fileno((FILE *)fp);\n    fdadvise(fd,0,0,advice);\n    return;\n  }" { (expression_statement "fd = fileno((FILE *)fp);" (assignment_expression "fd = fileno((FILE *)fp)" identifier = (call_expression "fileno((FILE *)fp)" identifier (argument_list "((FILE *)fp)" ( (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "fdadvise(fd,0,0,advice);" (call_expression "fdadvise(fd,0,0,advice)" identifier (argument_list "(fd,0,0,advice)" ( identifier , number_literal , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00106eb7(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00106eb7(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00106eb7(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  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" { (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00106ea9(iVar1,0,0,param_2);" (call_expression "FUN_00106ea9(iVar1,0,0,param_2)" identifier (argument_list "(iVar1,0,0,param_2)" ( identifier , number_literal , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00106eb7(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00106eb7(FILE *param_1,undefined4 param_2)" (identifier "FUN_00106eb7") (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  int iVar1;\n  \n  if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != (FILE *)0x0) {\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (FILE *)0x0)" (( "(") (binary_expression "param_1 != (FILE *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = fileno(param_1);\n    FUN_00106ea9(iVar1,0,0,param_2);\n    return;\n  }" ({ "{") (expression_statement "iVar1 = fileno(param_1);" (assignment_expression "iVar1 = fileno(param_1)" (identifier "iVar1") (= "=") (call_expression "fileno(param_1)" (identifier "fileno") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "FUN_00106ea9(iVar1,0,0,param_2);" (call_expression "FUN_00106ea9(iVar1,0,0,param_2)" (identifier "FUN_00106ea9") (argument_list "(iVar1,0,0,param_2)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *var_1,type_2 advice)

{
  int fd;
  
  if (var_1 != (type_1 *)0x0) {
    fd = var_2((type_1 *)var_1);
    var_3(fd,0,0,advice);
    return;
  }
  return;
}


(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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier)))) (return_statement))) (return_statement))))

void MASKED(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (FILE *)0x0) {
    iVar1 = fileno(param_1);
    FUN_00106ea9(iVar1,0,0,param_2);
    return;
  }
  return;
}

