
MergeEngine * vdbeMergeEngineNew(int nReader)

{
  int iVar1;
  int iVar2;
  MergeEngine *pMVar3;
  int iVar4;
  
  if (nReader < 3) {
    iVar4 = 2;
  }
  else {
    iVar2 = 2;
    do {
      iVar4 = iVar2 * 2;
      iVar1 = iVar2 * -2;
      iVar2 = iVar4;
    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);
  }
  iVar2 = sqlite3FaultSim(100);
  pMVar3 = (MergeEngine *)0x0;
  if (iVar2 == 0) {
    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));
    if (pMVar3 != (MergeEngine *)0x0) {
      pMVar3->nTree = iVar4;
      pMVar3->pTask = (SortSubtask *)0x0;
      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);
      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);
    }
  }
  return pMVar3;
}



int * FUN_00137299(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  if (param_1 < 3) {
    iVar4 = 2;
  }
  else {
    iVar2 = 2;
    do {
      iVar4 = iVar2 * 2;
      iVar1 = iVar2 * -2;
      iVar2 = iVar4;
    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);
  }
  iVar2 = FUN_0012ac73(100);
  piVar3 = (int *)0x0;
  if (iVar2 == 0) {
    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));
    if (piVar3 != (int *)0x0) {
      *piVar3 = iVar4;
      piVar3[2] = 0;
      piVar3[3] = 0;
      *(int **)(piVar3 + 6) = piVar3 + 8;
      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;
    }
  }
  return piVar3;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
CMP EDI,0x2
JLE 0x00137307
MOV EBX,0x2
ADD EBX,EBX
CMP EDI,EBX
JG 0x001372a9
MOV EDI,0x64
CALL 0x0012ac73
MOV EDX,0x0
TEST EAX,EAX
JNZ 0x001372fd
MOVSXD RBP,EBX
IMUL EDI,EBX,0x54
ADD EDI,0x20
MOVSXD RDI,EDI
CALL 0x00137253
MOV RDX,RAX
TEST RAX,RAX
JZ 0x001372fd
MOV dword ptr [RAX],EBX
MOV qword ptr [RAX + 0x8],0x0
LEA RAX,[RAX + 0x20]
MOV qword ptr [RDX + 0x18],RAX
LEA RCX,[RBP + RBP*0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RDX + 0x10],RAX
MOV RAX,RDX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV EBX,0x2
JMP 0x001372af
(translation_unit "int * FUN_00137299(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_00137299(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_00137299(int param_1)" * (function_declarator "FUN_00137299(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" if (parenthesized_expression "(param_1 < 3)" ( (binary_expression "param_1 < 3" identifier < number_literal) )) (compound_statement "{\n    iVar4 = 2;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);" do (compound_statement "{\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    }" { (expression_statement "iVar4 = iVar2 * 2;" (assignment_expression "iVar4 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar1 = iVar2 * -2;" (assignment_expression "iVar1 = iVar2 * -2" identifier = (binary_expression "iVar2 * -2" identifier * number_literal)) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0)" ( (binary_expression "param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (binary_expression "param_1 != iVar4" identifier != identifier) && (binary_expression "SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (call_expression "SBORROW4(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier ))) == (binary_expression "param_1 + iVar1 < 0" (binary_expression "param_1 + iVar1" identifier + identifier) < number_literal))) )) ;) }))) (expression_statement "iVar2 = FUN_0012ac73(100);" (assignment_expression "iVar2 = FUN_0012ac73(100)" identifier = (call_expression "FUN_0012ac73(100)" identifier (argument_list "(100)" ( number_literal )))) ;) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" { (expression_statement "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" identifier = (cast_expression "(int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00137253((long)(iVar4 * 0x54 + 0x20))" identifier (argument_list "((long)(iVar4 * 0x54 + 0x20))" ( (cast_expression "(long)(iVar4 * 0x54 + 0x20)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 * 0x54 + 0x20)" ( (binary_expression "iVar4 * 0x54 + 0x20" (binary_expression "iVar4 * 0x54" identifier * number_literal) + number_literal) ))) ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" { (expression_statement "*piVar3 = iVar4;" (assignment_expression "*piVar3 = iVar4" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(piVar3 + 6) = piVar3 + 8;" (assignment_expression "*(int **)(piVar3 + 6) = piVar3 + 8" (pointer_expression "*(int **)(piVar3 + 6)" * (cast_expression "(int **)(piVar3 + 6)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 6)" ( (binary_expression "piVar3 + 6" identifier + number_literal) )))) = (binary_expression "piVar3 + 8" identifier + number_literal)) ;) (expression_statement "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;" (assignment_expression "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14" (pointer_expression "*(int **)(piVar3 + 4)" * (cast_expression "(int **)(piVar3 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = (binary_expression "piVar3 + 8 + (long)iVar4 * 0x14" (binary_expression "piVar3 + 8" identifier + number_literal) + (binary_expression "(long)iVar4 * 0x14" (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) ;) })) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit "MergeEngine * vdbeMergeEngineNew(int nReader)\n\n{\n  int iVar1;\n  int iVar2;\n  MergeEngine *pMVar3;\n  int iVar4;\n  \n  if (nReader < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }\n  iVar2 = sqlite3FaultSim(100);\n  pMVar3 = (MergeEngine *)0x0;\n  if (iVar2 == 0) {\n    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));\n    if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }\n  }\n  return pMVar3;\n}\n\n" (function_definition "MergeEngine * vdbeMergeEngineNew(int nReader)\n\n{\n  int iVar1;\n  int iVar2;\n  MergeEngine *pMVar3;\n  int iVar4;\n  \n  if (nReader < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }\n  iVar2 = sqlite3FaultSim(100);\n  pMVar3 = (MergeEngine *)0x0;\n  if (iVar2 == 0) {\n    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));\n    if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }\n  }\n  return pMVar3;\n}" type_identifier (pointer_declarator "* vdbeMergeEngineNew(int nReader)" * (function_declarator "vdbeMergeEngineNew(int nReader)" identifier (parameter_list "(int nReader)" ( (parameter_declaration "int nReader" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  MergeEngine *pMVar3;\n  int iVar4;\n  \n  if (nReader < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }\n  iVar2 = sqlite3FaultSim(100);\n  pMVar3 = (MergeEngine *)0x0;\n  if (iVar2 == 0) {\n    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));\n    if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }\n  }\n  return pMVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MergeEngine *pMVar3;" type_identifier (pointer_declarator "*pMVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (nReader < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }" if (parenthesized_expression "(nReader < 3)" ( (binary_expression "nReader < 3" identifier < number_literal) )) (compound_statement "{\n    iVar4 = 2;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0);" do (compound_statement "{\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    }" { (expression_statement "iVar4 = iVar2 * 2;" (assignment_expression "iVar4 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar1 = iVar2 * -2;" (assignment_expression "iVar1 = iVar2 * -2" identifier = (binary_expression "iVar2 * -2" identifier * number_literal)) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0)" ( (binary_expression "nReader != iVar4 && SBORROW4(nReader,iVar4) == nReader + iVar1 < 0" (binary_expression "nReader != iVar4" identifier != identifier) && (binary_expression "SBORROW4(nReader,iVar4) == nReader + iVar1 < 0" (call_expression "SBORROW4(nReader,iVar4)" identifier (argument_list "(nReader,iVar4)" ( identifier , identifier ))) == (binary_expression "nReader + iVar1 < 0" (binary_expression "nReader + iVar1" identifier + identifier) < number_literal))) )) ;) }))) (expression_statement "iVar2 = sqlite3FaultSim(100);" (assignment_expression "iVar2 = sqlite3FaultSim(100)" identifier = (call_expression "sqlite3FaultSim(100)" identifier (argument_list "(100)" ( number_literal )))) ;) (expression_statement "pMVar3 = (MergeEngine *)0x0;" (assignment_expression "pMVar3 = (MergeEngine *)0x0" identifier = (cast_expression "(MergeEngine *)0x0" ( (type_descriptor "MergeEngine *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));\n    if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));\n    if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }\n  }" { (expression_statement "pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20));" (assignment_expression "pMVar3 = (MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20))" identifier = (cast_expression "(MergeEngine *)sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20))" ( (type_descriptor "MergeEngine *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3MallocZero((long)(iVar4 * 0x54 + 0x20))" identifier (argument_list "((long)(iVar4 * 0x54 + 0x20))" ( (cast_expression "(long)(iVar4 * 0x54 + 0x20)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 * 0x54 + 0x20)" ( (binary_expression "iVar4 * 0x54 + 0x20" (binary_expression "iVar4 * 0x54" identifier * number_literal) + number_literal) ))) ))))) ;) (if_statement "if (pMVar3 != (MergeEngine *)0x0) {\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }" if (parenthesized_expression "(pMVar3 != (MergeEngine *)0x0)" ( (binary_expression "pMVar3 != (MergeEngine *)0x0" identifier != (cast_expression "(MergeEngine *)0x0" ( (type_descriptor "MergeEngine *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pMVar3->nTree = iVar4;\n      pMVar3->pTask = (SortSubtask *)0x0;\n      pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);\n      pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);\n    }" { (expression_statement "pMVar3->nTree = iVar4;" (assignment_expression "pMVar3->nTree = iVar4" (field_expression "pMVar3->nTree" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar3->pTask = (SortSubtask *)0x0;" (assignment_expression "pMVar3->pTask = (SortSubtask *)0x0" (field_expression "pMVar3->pTask" identifier -> field_identifier) = (cast_expression "(SortSubtask *)0x0" ( (type_descriptor "SortSubtask *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar3->aReadr = (PmaReader *)(pMVar3 + 1);" (assignment_expression "pMVar3->aReadr = (PmaReader *)(pMVar3 + 1)" (field_expression "pMVar3->aReadr" identifier -> field_identifier) = (cast_expression "(PmaReader *)(pMVar3 + 1)" ( (type_descriptor "PmaReader *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar3 + 1)" ( (binary_expression "pMVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4);" (assignment_expression "pMVar3->aTree = (int *)((PmaReader *)(pMVar3 + 1) + iVar4)" (field_expression "pMVar3->aTree" identifier -> field_identifier) = (cast_expression "(int *)((PmaReader *)(pMVar3 + 1) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((PmaReader *)(pMVar3 + 1) + iVar4)" ( (binary_expression "(PmaReader *)(pMVar3 + 1) + iVar4" (cast_expression "(PmaReader *)(pMVar3 + 1)" ( (type_descriptor "PmaReader *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar3 + 1)" ( (binary_expression "pMVar3 + 1" identifier + number_literal) ))) + identifier) )))) ;) })) })) (return_statement "return pMVar3;" return identifier ;) })))
(translation_unit "int * FUN_00137299(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_00137299(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_00137299(int param_1)" * (function_declarator "FUN_00137299(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" if (parenthesized_expression "(param_1 < 3)" ( (binary_expression "param_1 < 3" identifier < number_literal) )) (compound_statement "{\n    iVar4 = 2;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);" do (compound_statement "{\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    }" { (expression_statement "iVar4 = iVar2 * 2;" (assignment_expression "iVar4 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar1 = iVar2 * -2;" (assignment_expression "iVar1 = iVar2 * -2" identifier = (binary_expression "iVar2 * -2" identifier * number_literal)) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0)" ( (binary_expression "param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (binary_expression "param_1 != iVar4" identifier != identifier) && (binary_expression "SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (call_expression "SBORROW4(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier ))) == (binary_expression "param_1 + iVar1 < 0" (binary_expression "param_1 + iVar1" identifier + identifier) < number_literal))) )) ;) }))) (expression_statement "iVar2 = FUN_0012ac73(100);" (assignment_expression "iVar2 = FUN_0012ac73(100)" identifier = (call_expression "FUN_0012ac73(100)" identifier (argument_list "(100)" ( number_literal )))) ;) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" { (expression_statement "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" identifier = (cast_expression "(int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00137253((long)(iVar4 * 0x54 + 0x20))" identifier (argument_list "((long)(iVar4 * 0x54 + 0x20))" ( (cast_expression "(long)(iVar4 * 0x54 + 0x20)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 * 0x54 + 0x20)" ( (binary_expression "iVar4 * 0x54 + 0x20" (binary_expression "iVar4 * 0x54" identifier * number_literal) + number_literal) ))) ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" { (expression_statement "*piVar3 = iVar4;" (assignment_expression "*piVar3 = iVar4" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(piVar3 + 6) = piVar3 + 8;" (assignment_expression "*(int **)(piVar3 + 6) = piVar3 + 8" (pointer_expression "*(int **)(piVar3 + 6)" * (cast_expression "(int **)(piVar3 + 6)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 6)" ( (binary_expression "piVar3 + 6" identifier + number_literal) )))) = (binary_expression "piVar3 + 8" identifier + number_literal)) ;) (expression_statement "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;" (assignment_expression "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14" (pointer_expression "*(int **)(piVar3 + 4)" * (cast_expression "(int **)(piVar3 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = (binary_expression "piVar3 + 8 + (long)iVar4 * 0x14" (binary_expression "piVar3 + 8" identifier + number_literal) + (binary_expression "(long)iVar4 * 0x14" (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) ;) })) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) == (binary_expression (binary_expression IDENT + IDENT) < LIT))) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) ))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00137299(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* FUN_00137299(int param_1)" (* "*") (function_declarator "FUN_00137299(int param_1)" (identifier "FUN_00137299") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }\n  iVar2 = FUN_0012ac73(100);\n  piVar3 = (int *)0x0;\n  if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }\n  return piVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (param_1 < 3) {\n    iVar4 = 2;\n  }\n  else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" (if "if") (parenthesized_expression "(param_1 < 3)" (( "(") (binary_expression "param_1 < 3" (identifier "param_1") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    iVar4 = 2;\n  }" ({ "{") (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" (else "else") (compound_statement "{\n    iVar2 = 2;\n    do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);\n  }" ({ "{") (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" (identifier "iVar2") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);" (do "do") (compound_statement "{\n      iVar4 = iVar2 * 2;\n      iVar1 = iVar2 * -2;\n      iVar2 = iVar4;\n    }" ({ "{") (expression_statement "iVar4 = iVar2 * 2;" (assignment_expression "iVar4 = iVar2 * 2" (identifier "iVar4") (= "=") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar1 = iVar2 * -2;" (assignment_expression "iVar1 = iVar2 * -2" (identifier "iVar1") (= "=") (binary_expression "iVar2 * -2" (identifier "iVar2") (* "*") (number_literal "-2"))) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0)" (( "(") (binary_expression "param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (binary_expression "param_1 != iVar4" (identifier "param_1") (!= "!=") (identifier "iVar4")) (&& "&&") (binary_expression "SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0" (call_expression "SBORROW4(param_1,iVar4)" (identifier "SBORROW4") (argument_list "(param_1,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") () ")"))) (== "==") (binary_expression "param_1 + iVar1 < 0" (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (< "<") (number_literal "0")))) () ")")) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_0012ac73(100);" (assignment_expression "iVar2 = FUN_0012ac73(100)" (identifier "iVar2") (= "=") (call_expression "FUN_0012ac73(100)" (identifier "FUN_0012ac73") (argument_list "(100)" (( "(") (number_literal "100") () ")")))) (; ";")) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));\n    if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }\n  }" ({ "{") (expression_statement "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00137253((long)(iVar4 * 0x54 + 0x20))" (identifier "FUN_00137253") (argument_list "((long)(iVar4 * 0x54 + 0x20))" (( "(") (cast_expression "(long)(iVar4 * 0x54 + 0x20)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar4 * 0x54 + 0x20)" (( "(") (binary_expression "iVar4 * 0x54 + 0x20" (binary_expression "iVar4 * 0x54" (identifier "iVar4") (* "*") (number_literal "0x54")) (+ "+") (number_literal "0x20")) () ")"))) () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *piVar3 = iVar4;\n      piVar3[2] = 0;\n      piVar3[3] = 0;\n      *(int **)(piVar3 + 6) = piVar3 + 8;\n      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;\n    }" ({ "{") (expression_statement "*piVar3 = iVar4;" (assignment_expression "*piVar3 = iVar4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int **)(piVar3 + 6) = piVar3 + 8;" (assignment_expression "*(int **)(piVar3 + 6) = piVar3 + 8" (pointer_expression "*(int **)(piVar3 + 6)" (* "*") (cast_expression "(int **)(piVar3 + 6)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar3 + 6)" (( "(") (binary_expression "piVar3 + 6" (identifier "piVar3") (+ "+") (number_literal "6")) () ")")))) (= "=") (binary_expression "piVar3 + 8" (identifier "piVar3") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;" (assignment_expression "*(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14" (pointer_expression "*(int **)(piVar3 + 4)" (* "*") (cast_expression "(int **)(piVar3 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar3 + 4)" (( "(") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "piVar3 + 8 + (long)iVar4 * 0x14" (binary_expression "piVar3 + 8" (identifier "piVar3") (+ "+") (number_literal "8")) (+ "+") (binary_expression "(long)iVar4 * 0x14" (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4")) (* "*") (number_literal "0x14")))) (; ";")) (} "}"))) (} "}"))) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))

type_1 * function_1(int var_1)

{
  int var_5;
  int var_2;
  type_1 *var_8;
  int var_3;
  
  if (var_1 < 3) {
    var_3 = 2;
  }
  else {
    var_2 = 2;
    do {
      var_3 = var_2 * 2;
      var_5 = var_2 * -2;
      var_2 = var_3;
    } while (var_1 != var_3 && var_4(var_1,var_3) == var_1 + var_5 < 0);
  }
  var_2 = var_6(100);
  var_8 = (type_1 *)0x0;
  if (var_2 == 0) {
    var_8 = (type_1 *)var_7((long)(var_3 * 0x54 + 0x20));
    if (var_8 != (type_1 *)0x0) {
      var_8->nTree = var_3;
      var_8->pTask = (type_2 *)0x0;
      var_8->aReadr = (type_3 *)(var_8 + 1);
      var_8->aTree = (int *)((type_3 *)(var_8 + 1) + var_3);
    }
  }
  return var_8;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) (return_statement (identifier)))))

int * MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  if (param_1 < 3) {
    iVar4 = 2;
  }
  else {
    iVar2 = 2;
    do {
      iVar4 = iVar2 * 2;
      iVar1 = iVar2 * -2;
      iVar2 = iVar4;
    } while (param_1 != iVar4 && SBORROW4(param_1,iVar4) == param_1 + iVar1 < 0);
  }
  iVar2 = FUN_0012ac73(100);
  piVar3 = (int *)0x0;
  if (iVar2 == 0) {
    piVar3 = (int *)FUN_00137253((long)(iVar4 * 0x54 + 0x20));
    if (piVar3 != (int *)0x0) {
      *piVar3 = iVar4;
      piVar3[2] = 0;
      piVar3[3] = 0;
      *(int **)(piVar3 + 6) = piVar3 + 8;
      *(int **)(piVar3 + 4) = piVar3 + 8 + (long)iVar4 * 0x14;
    }
  }
  return piVar3;
}

