
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void logflush(void *handle)

{
  LogContext *ctx;
  
  if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {
                    /* WARNING: Load size is inaccurate */
    fflush(*handle);
    return;
  }
  return;
}



void FUN_0011e13f(undefined8 *param_1)

{
  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {
    fflush((FILE *)*param_1);
    return;
  }
  return;
}


CMP dword ptr [RDI + 0x40],0x0
JLE 0x0011e14b
CMP dword ptr [RDI + 0x8],0x2
JZ 0x0011e14c
RET
SUB RSP,0x8
MOV RDI,qword ptr [RDI]
CALL 0x00110260
ADD RSP,0x8
RET
(translation_unit "void FUN_0011e13f(undefined8 *param_1)\n\n{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011e13f(undefined8 *param_1)\n\n{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011e13f(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" { (if_statement "if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }" if (parenthesized_expression "((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2))" ( (binary_expression "(0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)" (parenthesized_expression "(0 < *(int *)(param_1 + 8))" ( (binary_expression "0 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(int *)(param_1 + 1) == 2)" ( (binary_expression "*(int *)(param_1 + 1) == 2" (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    fflush((FILE *)*param_1);\n    return;\n  }" { (expression_statement "fflush((FILE *)*param_1);" (call_expression "fflush((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid logflush(void *handle)\n\n{\n  LogContext *ctx;\n  \n  if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    fflush(*handle);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void logflush(void *handle)\n\n{\n  LogContext *ctx;\n  \n  if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    fflush(*handle);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "logflush(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  LogContext *ctx;\n  \n  if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    fflush(*handle);\n    return;\n  }\n  return;\n}" { (declaration "LogContext *ctx;" type_identifier (pointer_declarator "*ctx" * identifier) ;) (if_statement "if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {\n                    /* WARNING: Load size is inaccurate */\n    fflush(*handle);\n    return;\n  }" if (parenthesized_expression "((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2))" ( (binary_expression "(0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)" (parenthesized_expression "(0 < *(int *)((long)handle + 0x40))" ( (binary_expression "0 < *(int *)((long)handle + 0x40)" number_literal < (pointer_expression "*(int *)((long)handle + 0x40)" * (cast_expression "(int *)((long)handle + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x40)" ( (binary_expression "(long)handle + 0x40" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) && (parenthesized_expression "(*(int *)((long)handle + 8) == 2)" ( (binary_expression "*(int *)((long)handle + 8) == 2" (pointer_expression "*(int *)((long)handle + 8)" * (cast_expression "(int *)((long)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    fflush(*handle);\n    return;\n  }" { comment (expression_statement "fflush(*handle);" (call_expression "fflush(*handle)" identifier (argument_list "(*handle)" ( (pointer_expression "*handle" * identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0011e13f(undefined8 *param_1)\n\n{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011e13f(undefined8 *param_1)\n\n{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011e13f(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" { (if_statement "if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }" if (parenthesized_expression "((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2))" ( (binary_expression "(0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)" (parenthesized_expression "(0 < *(int *)(param_1 + 8))" ( (binary_expression "0 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(int *)(param_1 + 1) == 2)" ( (binary_expression "*(int *)(param_1 + 1) == 2" (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    fflush((FILE *)*param_1);\n    return;\n  }" { (expression_statement "fflush((FILE *)*param_1);" (call_expression "fflush((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * 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)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0011e13f(undefined8 *param_1)\n\n{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0011e13f(undefined8 *param_1)" (identifier "FUN_0011e13f") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {\n    fflush((FILE *)*param_1);\n    return;\n  }" (if "if") (parenthesized_expression "((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2))" (( "(") (binary_expression "(0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)" (parenthesized_expression "(0 < *(int *)(param_1 + 8))" (( "(") (binary_expression "0 < *(int *)(param_1 + 8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 1) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 1) == 2" (pointer_expression "*(int *)(param_1 + 1)" (* "*") (cast_expression "(int *)(param_1 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    fflush((FILE *)*param_1);\n    return;\n  }" ({ "{") (expression_statement "fflush((FILE *)*param_1);" (call_expression "fflush((FILE *)*param_1)" (identifier "fflush") (argument_list "((FILE *)*param_1)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(void *handle)

{
  type_1 *ctx;
  
  if ((0 < *(int *)((long)handle + 0x40)) && (*(int *)((long)handle + 8) == 2)) {
                    /* WARNING: Load size is inaccurate */
    var_1(*handle);
    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))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (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: (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))))) consequence: (compound_statement (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)))))) (return_statement))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  if ((0 < *(int *)(param_1 + 8)) && (*(int *)(param_1 + 1) == 2)) {
    fflush((FILE *)*param_1);
    return;
  }
  return;
}

