
void vdbeIncrFree(IncrMerger *pIncr)

{
  sqlite3_file *psVar1;
  
  if (pIncr != (IncrMerger *)0x0) {
    if (pIncr->bUseThread != 0) {
      vdbeSorterJoinThread(pIncr->pTask);
      psVar1 = pIncr->aFile[0].pFd;
      if (psVar1 != (sqlite3_file *)0x0) {
        sqlite3OsCloseFree(psVar1);
      }
      psVar1 = pIncr->aFile[1].pFd;
      if (psVar1 != (sqlite3_file *)0x0) {
        sqlite3OsCloseFree(psVar1);
      }
    }
    vdbeMergeEngineFree(pIncr->pMerger);
    sqlite3_free(pIncr);
    return;
  }
  return;
}



void FUN_00148740(undefined8 *param_1)

{
  if (param_1 != (undefined8 *)0x0) {
    if (*(int *)(param_1 + 4) != 0) {
      FUN_0014852c(*param_1);
      if (param_1[5] != 0) {
        FUN_0014135a();
      }
      if (param_1[7] != 0) {
        FUN_0014135a();
      }
    }
    FUN_001486ff(param_1[1]);
    FUN_00141303(param_1);
    return;
  }
  return;
}


TEST RDI,RDI
JZ 0x00148788
PUSH RBX
MOV RBX,RDI
CMP dword ptr [RDI + 0x20],0x0
JNZ 0x00148762
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x001486ff
MOV RDI,RBX
CALL 0x00141303
POP RBX
RET
MOV RDI,qword ptr [RDI]
CALL 0x0014852c
MOV RDI,qword ptr [RBX + 0x28]
TEST RDI,RDI
JZ 0x00148778
CALL 0x0014135a
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JZ 0x0014874f
CALL 0x0014135a
JMP 0x0014874f
RET
(translation_unit "void FUN_00148740(undefined8 *param_1)\n\n{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00148740(undefined8 *param_1)\n\n{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00148740(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 (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" { (expression_statement "FUN_0014852c(*param_1);" (call_expression "FUN_0014852c(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (if_statement "if (param_1[5] != 0) {\n        FUN_0014135a();\n      }" if (parenthesized_expression "(param_1[5] != 0)" ( (binary_expression "param_1[5] != 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_0014135a();\n      }" { (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_1[7] != 0) {\n        FUN_0014135a();\n      }" if (parenthesized_expression "(param_1[7] != 0)" ( (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_0014135a();\n      }" { (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "FUN_001486ff(param_1[1]);" (call_expression "FUN_001486ff(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00141303(param_1);" (call_expression "FUN_00141303(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void vdbeIncrFree(IncrMerger *pIncr)\n\n{\n  sqlite3_file *psVar1;\n  \n  if (pIncr != (IncrMerger *)0x0) {\n    if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }\n    vdbeMergeEngineFree(pIncr->pMerger);\n    sqlite3_free(pIncr);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void vdbeIncrFree(IncrMerger *pIncr)\n\n{\n  sqlite3_file *psVar1;\n  \n  if (pIncr != (IncrMerger *)0x0) {\n    if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }\n    vdbeMergeEngineFree(pIncr->pMerger);\n    sqlite3_free(pIncr);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "vdbeIncrFree(IncrMerger *pIncr)" identifier (parameter_list "(IncrMerger *pIncr)" ( (parameter_declaration "IncrMerger *pIncr" type_identifier (pointer_declarator "*pIncr" * identifier)) ))) (compound_statement "{\n  sqlite3_file *psVar1;\n  \n  if (pIncr != (IncrMerger *)0x0) {\n    if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }\n    vdbeMergeEngineFree(pIncr->pMerger);\n    sqlite3_free(pIncr);\n    return;\n  }\n  return;\n}" { (declaration "sqlite3_file *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (if_statement "if (pIncr != (IncrMerger *)0x0) {\n    if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }\n    vdbeMergeEngineFree(pIncr->pMerger);\n    sqlite3_free(pIncr);\n    return;\n  }" if (parenthesized_expression "(pIncr != (IncrMerger *)0x0)" ( (binary_expression "pIncr != (IncrMerger *)0x0" identifier != (cast_expression "(IncrMerger *)0x0" ( (type_descriptor "IncrMerger *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }\n    vdbeMergeEngineFree(pIncr->pMerger);\n    sqlite3_free(pIncr);\n    return;\n  }" { (if_statement "if (pIncr->bUseThread != 0) {\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }" if (parenthesized_expression "(pIncr->bUseThread != 0)" ( (binary_expression "pIncr->bUseThread != 0" (field_expression "pIncr->bUseThread" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      vdbeSorterJoinThread(pIncr->pTask);\n      psVar1 = pIncr->aFile[0].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n      psVar1 = pIncr->aFile[1].pFd;\n      if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }\n    }" { (expression_statement "vdbeSorterJoinThread(pIncr->pTask);" (call_expression "vdbeSorterJoinThread(pIncr->pTask)" identifier (argument_list "(pIncr->pTask)" ( (field_expression "pIncr->pTask" identifier -> field_identifier) ))) ;) (expression_statement "psVar1 = pIncr->aFile[0].pFd;" (assignment_expression "psVar1 = pIncr->aFile[0].pFd" identifier = (field_expression "pIncr->aFile[0].pFd" (subscript_expression "pIncr->aFile[0]" (field_expression "pIncr->aFile" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }" if (parenthesized_expression "(psVar1 != (sqlite3_file *)0x0)" ( (binary_expression "psVar1 != (sqlite3_file *)0x0" identifier != (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3OsCloseFree(psVar1);\n      }" { (expression_statement "sqlite3OsCloseFree(psVar1);" (call_expression "sqlite3OsCloseFree(psVar1)" identifier (argument_list "(psVar1)" ( identifier ))) ;) })) (expression_statement "psVar1 = pIncr->aFile[1].pFd;" (assignment_expression "psVar1 = pIncr->aFile[1].pFd" identifier = (field_expression "pIncr->aFile[1].pFd" (subscript_expression "pIncr->aFile[1]" (field_expression "pIncr->aFile" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if (psVar1 != (sqlite3_file *)0x0) {\n        sqlite3OsCloseFree(psVar1);\n      }" if (parenthesized_expression "(psVar1 != (sqlite3_file *)0x0)" ( (binary_expression "psVar1 != (sqlite3_file *)0x0" identifier != (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3OsCloseFree(psVar1);\n      }" { (expression_statement "sqlite3OsCloseFree(psVar1);" (call_expression "sqlite3OsCloseFree(psVar1)" identifier (argument_list "(psVar1)" ( identifier ))) ;) })) })) (expression_statement "vdbeMergeEngineFree(pIncr->pMerger);" (call_expression "vdbeMergeEngineFree(pIncr->pMerger)" identifier (argument_list "(pIncr->pMerger)" ( (field_expression "pIncr->pMerger" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3_free(pIncr);" (call_expression "sqlite3_free(pIncr)" identifier (argument_list "(pIncr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00148740(undefined8 *param_1)\n\n{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00148740(undefined8 *param_1)\n\n{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00148740(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 (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" { (expression_statement "FUN_0014852c(*param_1);" (call_expression "FUN_0014852c(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (if_statement "if (param_1[5] != 0) {\n        FUN_0014135a();\n      }" if (parenthesized_expression "(param_1[5] != 0)" ( (binary_expression "param_1[5] != 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_0014135a();\n      }" { (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_1[7] != 0) {\n        FUN_0014135a();\n      }" if (parenthesized_expression "(param_1[7] != 0)" ( (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_0014135a();\n      }" { (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "FUN_001486ff(param_1[1]);" (call_expression "FUN_001486ff(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00141303(param_1);" (call_expression "FUN_00141303(param_1)" identifier (argument_list "(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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (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 ( (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00148740(undefined8 *param_1)\n\n{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00148740(undefined8 *param_1)" (identifier "FUN_00148740") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != (undefined8 *)0x0) {\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined8 *)0x0)" (( "(") (binary_expression "param_1 != (undefined8 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }\n    FUN_001486ff(param_1[1]);\n    FUN_00141303(param_1);\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0014852c(*param_1);\n      if (param_1[5] != 0) {\n        FUN_0014135a();\n      }\n      if (param_1[7] != 0) {\n        FUN_0014135a();\n      }\n    }" ({ "{") (expression_statement "FUN_0014852c(*param_1);" (call_expression "FUN_0014852c(*param_1)" (identifier "FUN_0014852c") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (if_statement "if (param_1[5] != 0) {\n        FUN_0014135a();\n      }" (if "if") (parenthesized_expression "(param_1[5] != 0)" (( "(") (binary_expression "param_1[5] != 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0014135a();\n      }" ({ "{") (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" (identifier "FUN_0014135a") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[7] != 0) {\n        FUN_0014135a();\n      }" (if "if") (parenthesized_expression "(param_1[7] != 0)" (( "(") (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0014135a();\n      }" ({ "{") (expression_statement "FUN_0014135a();" (call_expression "FUN_0014135a()" (identifier "FUN_0014135a") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_001486ff(param_1[1]);" (call_expression "FUN_001486ff(param_1[1])" (identifier "FUN_001486ff") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_00141303(param_1);" (call_expression "FUN_00141303(param_1)" (identifier "FUN_00141303") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *var_1)

{
  type_2 *var_3;
  
  if (var_1 != (type_1 *)0x0) {
    if (var_1->bUseThread != 0) {
      var_2(var_1->pTask);
      var_3 = var_1->aFile[0].pFd;
      if (var_3 != (type_2 *)0x0) {
        var_4(var_3);
      }
      var_3 = var_1->aFile[1].pFd;
      if (var_3 != (type_2 *)0x0) {
        var_4(var_3);
      }
    }
    var_5(var_1->pMerger);
    var_6(var_1);
    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: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (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 (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  if (param_1 != (undefined8 *)0x0) {
    if (*(int *)(param_1 + 4) != 0) {
      FUN_0014852c(*param_1);
      if (param_1[5] != 0) {
        FUN_0014135a();
      }
      if (param_1[7] != 0) {
        FUN_0014135a();
      }
    }
    FUN_001486ff(param_1[1]);
    FUN_00141303(param_1);
    return;
  }
  return;
}

