
int __regparm3 vdbePmaReaderIncrMergeInit(PmaReader *pReadr,int eMode)

{
  IncrMerger *pIncr;
  SortSubtask *pTask;
  sqlite3 *db;
  sqlite3_file **ppFd;
  sqlite3_file *psVar1;
  sqlite3_file **ppFd_00;
  int iVar2;
  bool bVar3;
  undefined4 in_stack_ffffffc8;
  
  pIncr = pReadr->pIncr;
  pTask = pIncr->pTask;
  db = pTask->pSorter->db;
  iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode);
  if (iVar2 != 0) {
    return iVar2;
  }
  ppFd = (sqlite3_file **)pIncr->mxSz;
  if (pIncr->bUseThread == 0) {
    psVar1 = (pTask->file2).pFd;
    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;
    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);
    if (psVar1 != (sqlite3_file *)0x0) {
      pIncr->aFile[1].pFd = psVar1;
      bVar3 = true;
      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;
      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;
      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;
      *(uint *)((int)&(pTask->file2).iEof + 4) =
           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);
      iVar2 = 0;
      goto LAB_00047212;
    }
    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);
    *(undefined4 *)&(pTask->file2).iEof = 0;
    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;
    if (iVar2 != 0) {
      return iVar2;
    }
    psVar1 = (pTask->file2).pFd;
    iVar2 = pIncr->bUseThread;
    *(undefined4 *)&pIncr->iStartOff = 0;
    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;
    pIncr->aFile[1].pFd = psVar1;
    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;
    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;
  }
  else {
    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);
    if (iVar2 != 0) {
      return iVar2;
    }
    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);
    if (iVar2 != 0) {
      return iVar2;
    }
    iVar2 = pIncr->bUseThread;
  }
  bVar3 = true;
  if (iVar2 != 0) {
    iVar2 = vdbeIncrPopulate(pIncr);
    bVar3 = iVar2 == 0;
  }
LAB_00047212:
  if ((eMode != 1) && (bVar3)) {
    iVar2 = vdbePmaReaderNext(pReadr);
    return iVar2;
  }
  return iVar2;
}



void __regparm3 FUN_000471a0(int param_1,int param_2)

{
  int *piVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  bool bVar7;
  
  piVar1 = *(int **)(param_1 + 0x30);
  iVar6 = *piVar1;
  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));
  if (iVar5 != 0) {
    return;
  }
  uVar2 = piVar1[4];
  if (piVar1[6] == 0) {
    uVar3 = *(uint *)(iVar6 + 0x34);
    iVar5 = *(int *)(iVar6 + 0x38);
    if (*(int *)(iVar6 + 0x30) != 0) {
      piVar1[10] = *(int *)(iVar6 + 0x30);
      bVar7 = true;
      piVar1[2] = uVar3;
      piVar1[3] = iVar5;
      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;
      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);
      goto LAB_00047212;
    }
    iVar5 = FUN_0002cbc0(iVar6 + 0x30);
    *(undefined4 *)(iVar6 + 0x34) = 0;
    *(undefined4 *)(iVar6 + 0x38) = 0;
    if (iVar5 != 0) {
      return;
    }
    iVar4 = *(int *)(iVar6 + 0x30);
    iVar5 = piVar1[6];
    piVar1[2] = 0;
    piVar1[3] = 0;
    piVar1[10] = iVar4;
    *(uint *)(iVar6 + 0x34) = uVar2;
    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;
  }
  else {
    iVar6 = FUN_0002cbc0(piVar1 + 7);
    if (iVar6 != 0) {
      return;
    }
    iVar6 = FUN_0002cbc0(piVar1 + 10);
    if (iVar6 != 0) {
      return;
    }
    iVar5 = piVar1[6];
  }
  bVar7 = true;
  if (iVar5 != 0) {
    iVar6 = FUN_00046a90();
    bVar7 = iVar6 == 0;
  }
LAB_00047212:
  if ((param_2 != 1) && (bVar7)) {
    FUN_00046cc0();
    return;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [EAX + 0x30]
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP],EDX
MOV ECX,dword ptr [ESP]
MOV ESI,dword ptr [EBX]
MOV EDX,dword ptr [EBX + 0x4]
MOV EAX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX + 0x18]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,ESI
CALL 0x00047350
TEST EAX,EAX
JNZ 0x00047259
MOV EAX,dword ptr [EBX + 0x10]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x18]
TEST EAX,EAX
JNZ 0x00047268
MOV ECX,dword ptr [ESI + 0x30]
MOV EDI,dword ptr [ESI + 0x34]
MOV EBP,dword ptr [ESI + 0x38]
TEST ECX,ECX
JZ 0x00047230
MOV dword ptr [EBX + 0x28],ECX
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,0x1
MOV dword ptr [EBX + 0x8],EDI
MOV dword ptr [EBX + 0xc],EBP
MOV EBX,ECX
SAR EBX,0x1f
ADD EDI,ECX
ADC EBP,EBX
MOV dword ptr [ESI + 0x34],EDI
MOV dword ptr [ESI + 0x38],EBP
CMP dword ptr [ESP],0x1
JZ 0x00047259
TEST DL,DL
JZ 0x00047259
MOV EAX,dword ptr [ESP + 0x4]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00046cc0
LEA EAX,[ESI + 0x30]
SUB ESP,0xc
MOV EDX,EDI
MOV ECX,EBP
PUSH EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0002cbc0
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [ESI + 0x34],0x0
MOV dword ptr [ESI + 0x38],0x0
JZ 0x000472d0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
SUB ESP,0xc
CDQ
MOV EDI,EAX
MOV ECX,EDX
MOV EDX,EAX
LEA EAX,[EBX + 0x1c]
MOV EBP,ECX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0002cbc0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00047259
LEA EAX,[EBX + 0x28]
SUB ESP,0xc
MOV EDX,EDI
MOV ECX,EBP
PUSH EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0002cbc0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00047259
MOV EAX,dword ptr [EBX + 0x18]
TEST EAX,EAX
MOV EDX,0x1
JZ 0x00047212
MOV EAX,EBX
CALL 0x00046a90
TEST EAX,EAX
SETZ DL
JMP 0x00047212
MOV EDX,dword ptr [ESI + 0x30]
MOV ECX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EBX + 0x18]
MOV dword ptr [EBX + 0x8],0x0
MOV dword ptr [EBX + 0xc],0x0
MOV dword ptr [EBX + 0x28],EDX
MOV dword ptr [ESI + 0x34],ECX
SAR ECX,0x1f
MOV dword ptr [ESI + 0x38],ECX
JMP 0x000472aa
(translation_unit "void __regparm3 FUN_000471a0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000471a0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000471a0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));" (assignment_expression "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" identifier = (call_expression "FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" identifier (argument_list "(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar6 + 8) + 0x18)" ( (binary_expression "*(int *)(iVar6 + 8) + 0x18" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) + number_literal) )))) )))) ;) (if_statement "if (iVar5 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = piVar1[4];" (assignment_expression "uVar2 = piVar1[4]" identifier = (subscript_expression "piVar1[4]" identifier [ number_literal ])) ;) (if_statement "if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" if (parenthesized_expression "(piVar1[6] == 0)" ( (binary_expression "piVar1[6] == 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }" { (expression_statement "uVar3 = *(uint *)(iVar6 + 0x34);" (assignment_expression "uVar3 = *(uint *)(iVar6 + 0x34)" identifier = (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(iVar6 + 0x38);" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x38)" identifier = (pointer_expression "*(int *)(iVar6 + 0x38)" * (cast_expression "(int *)(iVar6 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" if (parenthesized_expression "(*(int *)(iVar6 + 0x30) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x30) != 0" (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" { (expression_statement "piVar1[10] = *(int *)(iVar6 + 0x30);" (assignment_expression "piVar1[10] = *(int *)(iVar6 + 0x30)" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (expression_statement "piVar1[2] = uVar3;" (assignment_expression "piVar1[2] = uVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (expression_statement "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);" (assignment_expression "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (pointer_expression "*(uint *)(iVar6 + 0x38)" * (cast_expression "(uint *)(iVar6 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = (binary_expression "iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (binary_expression "iVar5 + ((int)uVar2 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4(uVar3,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier )))))) ;) (goto_statement "goto LAB_00047212;" goto statement_identifier ;) })) (expression_statement "iVar5 = FUN_0002cbc0(iVar6 + 0x30);" (assignment_expression "iVar5 = FUN_0002cbc0(iVar6 + 0x30)" identifier = (call_expression "FUN_0002cbc0(iVar6 + 0x30)" identifier (argument_list "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x34)" * (cast_expression "(undefined4 *)(iVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x38)" * (cast_expression "(undefined4 *)(iVar6 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar5 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(iVar6 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar6 + 0x30)" identifier = (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[10] = iVar4;" (assignment_expression "piVar1[10] = iVar4" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;" (assignment_expression "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f" (pointer_expression "*(int *)(iVar6 + 0x38)" * (cast_expression "(int *)(iVar6 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) (else_clause "else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" else (compound_statement "{\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" { (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 7);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 7)" identifier = (call_expression "FUN_0002cbc0(piVar1 + 7)" identifier (argument_list "(piVar1 + 7)" ( (binary_expression "piVar1 + 7" identifier + number_literal) )))) ;) (if_statement "if (iVar6 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 10);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 10)" identifier = (call_expression "FUN_0002cbc0(piVar1 + 10)" identifier (argument_list "(piVar1 + 10)" ( (binary_expression "piVar1 + 10" identifier + number_literal) )))) ;) (if_statement "if (iVar6 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) }))) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (if_statement "if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" { (expression_statement "iVar6 = FUN_00046a90();" (assignment_expression "iVar6 = FUN_00046a90()" identifier = (call_expression "FUN_00046a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar7 = iVar6 == 0;" (assignment_expression "bVar7 = iVar6 == 0" identifier = (binary_expression "iVar6 == 0" identifier == number_literal)) ;) })) (labeled_statement "LAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" statement_identifier : (if_statement "if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" if (parenthesized_expression "((param_2 != 1) && (bVar7))" ( (binary_expression "(param_2 != 1) && (bVar7)" (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) && (parenthesized_expression "(bVar7)" ( identifier ))) )) (compound_statement "{\n    FUN_00046cc0();\n    return;\n  }" { (expression_statement "FUN_00046cc0();" (call_expression "FUN_00046cc0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit "int __regparm3 vdbePmaReaderIncrMergeInit(PmaReader *pReadr,int eMode)\n\n{\n  IncrMerger *pIncr;\n  SortSubtask *pTask;\n  sqlite3 *db;\n  sqlite3_file **ppFd;\n  sqlite3_file *psVar1;\n  sqlite3_file **ppFd_00;\n  int iVar2;\n  bool bVar3;\n  undefined4 in_stack_ffffffc8;\n  \n  pIncr = pReadr->pIncr;\n  pTask = pIncr->pTask;\n  db = pTask->pSorter->db;\n  iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode);\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  ppFd = (sqlite3_file **)pIncr->mxSz;\n  if (pIncr->bUseThread == 0) {\n    psVar1 = (pTask->file2).pFd;\n    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;\n    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);\n    if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);\n    *(undefined4 *)&(pTask->file2).iEof = 0;\n    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    psVar1 = (pTask->file2).pFd;\n    iVar2 = pIncr->bUseThread;\n    *(undefined4 *)&pIncr->iStartOff = 0;\n    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;\n    pIncr->aFile[1].pFd = psVar1;\n    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;\n    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;\n  }\n  else {\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }\n  bVar3 = true;\n  if (iVar2 != 0) {\n    iVar2 = vdbeIncrPopulate(pIncr);\n    bVar3 = iVar2 == 0;\n  }\nLAB_00047212:\n  if ((eMode != 1) && (bVar3)) {\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 vdbePmaReaderIncrMergeInit(PmaReader *pReadr,int eMode)\n\n{\n  IncrMerger *pIncr;\n  SortSubtask *pTask;\n  sqlite3 *db;\n  sqlite3_file **ppFd;\n  sqlite3_file *psVar1;\n  sqlite3_file **ppFd_00;\n  int iVar2;\n  bool bVar3;\n  undefined4 in_stack_ffffffc8;\n  \n  pIncr = pReadr->pIncr;\n  pTask = pIncr->pTask;\n  db = pTask->pSorter->db;\n  iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode);\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  ppFd = (sqlite3_file **)pIncr->mxSz;\n  if (pIncr->bUseThread == 0) {\n    psVar1 = (pTask->file2).pFd;\n    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;\n    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);\n    if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);\n    *(undefined4 *)&(pTask->file2).iEof = 0;\n    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    psVar1 = (pTask->file2).pFd;\n    iVar2 = pIncr->bUseThread;\n    *(undefined4 *)&pIncr->iStartOff = 0;\n    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;\n    pIncr->aFile[1].pFd = psVar1;\n    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;\n    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;\n  }\n  else {\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }\n  bVar3 = true;\n  if (iVar2 != 0) {\n    iVar2 = vdbeIncrPopulate(pIncr);\n    bVar3 = iVar2 == 0;\n  }\nLAB_00047212:\n  if ((eMode != 1) && (bVar3)) {\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "vdbePmaReaderIncrMergeInit(PmaReader *pReadr,int eMode)" identifier (parameter_list "(PmaReader *pReadr,int eMode)" ( (parameter_declaration "PmaReader *pReadr" type_identifier (pointer_declarator "*pReadr" * identifier)) , (parameter_declaration "int eMode" primitive_type identifier) ))) (compound_statement "{\n  IncrMerger *pIncr;\n  SortSubtask *pTask;\n  sqlite3 *db;\n  sqlite3_file **ppFd;\n  sqlite3_file *psVar1;\n  sqlite3_file **ppFd_00;\n  int iVar2;\n  bool bVar3;\n  undefined4 in_stack_ffffffc8;\n  \n  pIncr = pReadr->pIncr;\n  pTask = pIncr->pTask;\n  db = pTask->pSorter->db;\n  iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode);\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  ppFd = (sqlite3_file **)pIncr->mxSz;\n  if (pIncr->bUseThread == 0) {\n    psVar1 = (pTask->file2).pFd;\n    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;\n    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);\n    if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);\n    *(undefined4 *)&(pTask->file2).iEof = 0;\n    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    psVar1 = (pTask->file2).pFd;\n    iVar2 = pIncr->bUseThread;\n    *(undefined4 *)&pIncr->iStartOff = 0;\n    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;\n    pIncr->aFile[1].pFd = psVar1;\n    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;\n    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;\n  }\n  else {\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }\n  bVar3 = true;\n  if (iVar2 != 0) {\n    iVar2 = vdbeIncrPopulate(pIncr);\n    bVar3 = iVar2 == 0;\n  }\nLAB_00047212:\n  if ((eMode != 1) && (bVar3)) {\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "IncrMerger *pIncr;" type_identifier (pointer_declarator "*pIncr" * identifier) ;) (declaration "SortSubtask *pTask;" type_identifier (pointer_declarator "*pTask" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "sqlite3_file **ppFd;" type_identifier (pointer_declarator "**ppFd" * (pointer_declarator "*ppFd" * identifier)) ;) (declaration "sqlite3_file *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "sqlite3_file **ppFd_00;" type_identifier (pointer_declarator "**ppFd_00" * (pointer_declarator "*ppFd_00" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 in_stack_ffffffc8;" type_identifier identifier ;) (expression_statement "pIncr = pReadr->pIncr;" (assignment_expression "pIncr = pReadr->pIncr" identifier = (field_expression "pReadr->pIncr" identifier -> field_identifier)) ;) (expression_statement "pTask = pIncr->pTask;" (assignment_expression "pTask = pIncr->pTask" identifier = (field_expression "pIncr->pTask" identifier -> field_identifier)) ;) (expression_statement "db = pTask->pSorter->db;" (assignment_expression "db = pTask->pSorter->db" identifier = (field_expression "pTask->pSorter->db" (field_expression "pTask->pSorter" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode);" (assignment_expression "iVar2 = vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode)" identifier = (call_expression "vdbeMergeEngineInit(pTask,pIncr->pMerger,eMode)" identifier (argument_list "(pTask,pIncr->pMerger,eMode)" ( identifier , (field_expression "pIncr->pMerger" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "ppFd = (sqlite3_file **)pIncr->mxSz;" (assignment_expression "ppFd = (sqlite3_file **)pIncr->mxSz" identifier = (cast_expression "(sqlite3_file **)pIncr->mxSz" ( (type_descriptor "sqlite3_file **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "pIncr->mxSz" identifier -> field_identifier))) ;) (if_statement "if (pIncr->bUseThread == 0) {\n    psVar1 = (pTask->file2).pFd;\n    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;\n    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);\n    if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);\n    *(undefined4 *)&(pTask->file2).iEof = 0;\n    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    psVar1 = (pTask->file2).pFd;\n    iVar2 = pIncr->bUseThread;\n    *(undefined4 *)&pIncr->iStartOff = 0;\n    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;\n    pIncr->aFile[1].pFd = psVar1;\n    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;\n    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;\n  }\n  else {\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }" if (parenthesized_expression "(pIncr->bUseThread == 0)" ( (binary_expression "pIncr->bUseThread == 0" (field_expression "pIncr->bUseThread" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    psVar1 = (pTask->file2).pFd;\n    ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;\n    iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);\n    if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);\n    *(undefined4 *)&(pTask->file2).iEof = 0;\n    *(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    psVar1 = (pTask->file2).pFd;\n    iVar2 = pIncr->bUseThread;\n    *(undefined4 *)&pIncr->iStartOff = 0;\n    *(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;\n    pIncr->aFile[1].pFd = psVar1;\n    *(sqlite3_file ***)&(pTask->file2).iEof = ppFd;\n    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;\n  }" { (expression_statement "psVar1 = (pTask->file2).pFd;" (assignment_expression "psVar1 = (pTask->file2).pFd" identifier = (field_expression "(pTask->file2).pFd" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof;" (assignment_expression "ppFd_00 = *(sqlite3_file ***)&(pTask->file2).iEof" identifier = (pointer_expression "*(sqlite3_file ***)&(pTask->file2).iEof" * (cast_expression "(sqlite3_file ***)&(pTask->file2).iEof" ( (type_descriptor "sqlite3_file ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier))))) ;) (expression_statement "iVar2 = *(int *)((int)&(pTask->file2).iEof + 4);" (assignment_expression "iVar2 = *(int *)((int)&(pTask->file2).iEof + 4)" identifier = (pointer_expression "*(int *)((int)&(pTask->file2).iEof + 4)" * (cast_expression "(int *)((int)&(pTask->file2).iEof + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pTask->file2).iEof + 4)" ( (binary_expression "(int)&(pTask->file2).iEof + 4" (cast_expression "(int)&(pTask->file2).iEof" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) ;) (if_statement "if (psVar1 != (sqlite3_file *)0x0) {\n      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\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      pIncr->aFile[1].pFd = psVar1;\n      bVar3 = true;\n      *(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;\n      *(int *)((int)&pIncr->iStartOff + 4) = iVar2;\n      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;\n      *(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);\n      iVar2 = 0;\n      goto LAB_00047212;\n    }" { (expression_statement "pIncr->aFile[1].pFd = psVar1;" (assignment_expression "pIncr->aFile[1].pFd = psVar1" (field_expression "pIncr->aFile[1].pFd" (subscript_expression "pIncr->aFile[1]" (field_expression "pIncr->aFile" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "*(sqlite3_file ***)&pIncr->iStartOff = ppFd_00;" (assignment_expression "*(sqlite3_file ***)&pIncr->iStartOff = ppFd_00" (pointer_expression "*(sqlite3_file ***)&pIncr->iStartOff" * (cast_expression "(sqlite3_file ***)&pIncr->iStartOff" ( (type_descriptor "sqlite3_file ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (pointer_expression "&pIncr->iStartOff" & (field_expression "pIncr->iStartOff" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&pIncr->iStartOff + 4) = iVar2;" (assignment_expression "*(int *)((int)&pIncr->iStartOff + 4) = iVar2" (pointer_expression "*(int *)((int)&pIncr->iStartOff + 4)" * (cast_expression "(int *)((int)&pIncr->iStartOff + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pIncr->iStartOff + 4)" ( (binary_expression "(int)&pIncr->iStartOff + 4" (cast_expression "(int)&pIncr->iStartOff" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pIncr->iStartOff" & (field_expression "pIncr->iStartOff" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;" (assignment_expression "*(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd" (pointer_expression "*(int *)&(pTask->file2).iEof" * (cast_expression "(int *)&(pTask->file2).iEof" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier)))) = (binary_expression "(int)ppFd_00 + (int)ppFd" (cast_expression "(int)ppFd_00" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(int)ppFd" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd);" (assignment_expression "*(uint *)((int)&(pTask->file2).iEof + 4) =\n           iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd)" (pointer_expression "*(uint *)((int)&(pTask->file2).iEof + 4)" * (cast_expression "(uint *)((int)&(pTask->file2).iEof + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pTask->file2).iEof + 4)" ( (binary_expression "(int)&(pTask->file2).iEof + 4" (cast_expression "(int)&(pTask->file2).iEof" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (binary_expression "iVar2 + ((int)ppFd >> 0x1f) + (uint)CARRY4((uint)ppFd_00,(uint)ppFd)" (binary_expression "iVar2 + ((int)ppFd >> 0x1f)" identifier + (parenthesized_expression "((int)ppFd >> 0x1f)" ( (binary_expression "(int)ppFd >> 0x1f" (cast_expression "(int)ppFd" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4((uint)ppFd_00,(uint)ppFd)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4((uint)ppFd_00,(uint)ppFd)" identifier (argument_list "((uint)ppFd_00,(uint)ppFd)" ( (cast_expression "(uint)ppFd_00" ( (type_descriptor "uint" type_identifier) ) identifier) , (cast_expression "(uint)ppFd" ( (type_descriptor "uint" type_identifier) ) identifier) )))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00047212;" goto statement_identifier ;) })) (expression_statement "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00);" (assignment_expression "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00)" identifier = (call_expression "vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00)" identifier (argument_list "(db,CONCAT44(in_stack_ffffffc8,&pTask->file2),ppFd_00)" ( identifier , (call_expression "CONCAT44(in_stack_ffffffc8,&pTask->file2)" identifier (argument_list "(in_stack_ffffffc8,&pTask->file2)" ( identifier , (pointer_expression "&pTask->file2" & (field_expression "pTask->file2" identifier -> field_identifier)) ))) , identifier )))) ;) (expression_statement "*(undefined4 *)&(pTask->file2).iEof = 0;" (assignment_expression "*(undefined4 *)&(pTask->file2).iEof = 0" (pointer_expression "*(undefined4 *)&(pTask->file2).iEof" * (cast_expression "(undefined4 *)&(pTask->file2).iEof" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&(pTask->file2).iEof + 4) = 0" (pointer_expression "*(undefined4 *)((int)&(pTask->file2).iEof + 4)" * (cast_expression "(undefined4 *)((int)&(pTask->file2).iEof + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pTask->file2).iEof + 4)" ( (binary_expression "(int)&(pTask->file2).iEof + 4" (cast_expression "(int)&(pTask->file2).iEof" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "psVar1 = (pTask->file2).pFd;" (assignment_expression "psVar1 = (pTask->file2).pFd" identifier = (field_expression "(pTask->file2).pFd" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar2 = pIncr->bUseThread;" (assignment_expression "iVar2 = pIncr->bUseThread" identifier = (field_expression "pIncr->bUseThread" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)&pIncr->iStartOff = 0;" (assignment_expression "*(undefined4 *)&pIncr->iStartOff = 0" (pointer_expression "*(undefined4 *)&pIncr->iStartOff" * (cast_expression "(undefined4 *)&pIncr->iStartOff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIncr->iStartOff" & (field_expression "pIncr->iStartOff" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pIncr->iStartOff + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pIncr->iStartOff + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pIncr->iStartOff + 4)" * (cast_expression "(undefined4 *)((int)&pIncr->iStartOff + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pIncr->iStartOff + 4)" ( (binary_expression "(int)&pIncr->iStartOff + 4" (cast_expression "(int)&pIncr->iStartOff" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pIncr->iStartOff" & (field_expression "pIncr->iStartOff" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "pIncr->aFile[1].pFd = psVar1;" (assignment_expression "pIncr->aFile[1].pFd = psVar1" (field_expression "pIncr->aFile[1].pFd" (subscript_expression "pIncr->aFile[1]" (field_expression "pIncr->aFile" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "*(sqlite3_file ***)&(pTask->file2).iEof = ppFd;" (assignment_expression "*(sqlite3_file ***)&(pTask->file2).iEof = ppFd" (pointer_expression "*(sqlite3_file ***)&(pTask->file2).iEof" * (cast_expression "(sqlite3_file ***)&(pTask->file2).iEof" ( (type_descriptor "sqlite3_file ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;" (assignment_expression "*(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f" (pointer_expression "*(int *)((int)&(pTask->file2).iEof + 4)" * (cast_expression "(int *)((int)&(pTask->file2).iEof + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pTask->file2).iEof + 4)" ( (binary_expression "(int)&(pTask->file2).iEof + 4" (cast_expression "(int)&(pTask->file2).iEof" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pTask->file2).iEof" & (field_expression "(pTask->file2).iEof" (parenthesized_expression "(pTask->file2)" ( (field_expression "pTask->file2" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (binary_expression "(int)ppFd >> 0x1f" (cast_expression "(int)ppFd" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) (else_clause "else {\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }" else (compound_statement "{\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    iVar2 = pIncr->bUseThread;\n  }" { (expression_statement "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd);" (assignment_expression "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd)" identifier = (call_expression "vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd)" identifier (argument_list "(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile),ppFd)" ( identifier , (call_expression "CONCAT44(in_stack_ffffffc8,pIncr->aFile)" identifier (argument_list "(in_stack_ffffffc8,pIncr->aFile)" ( identifier , (field_expression "pIncr->aFile" identifier -> field_identifier) ))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);" (assignment_expression "iVar2 = vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd)" identifier = (call_expression "vdbeSorterOpenTempFile(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd)" identifier (argument_list "(db,CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1),ppFd)" ( identifier , (call_expression "CONCAT44(in_stack_ffffffc8,pIncr->aFile + 1)" identifier (argument_list "(in_stack_ffffffc8,pIncr->aFile + 1)" ( identifier , (binary_expression "pIncr->aFile + 1" (field_expression "pIncr->aFile" identifier -> field_identifier) + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = pIncr->bUseThread;" (assignment_expression "iVar2 = pIncr->bUseThread" identifier = (field_expression "pIncr->bUseThread" identifier -> field_identifier)) ;) }))) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = vdbeIncrPopulate(pIncr);\n    bVar3 = iVar2 == 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = vdbeIncrPopulate(pIncr);\n    bVar3 = iVar2 == 0;\n  }" { (expression_statement "iVar2 = vdbeIncrPopulate(pIncr);" (assignment_expression "iVar2 = vdbeIncrPopulate(pIncr)" identifier = (call_expression "vdbeIncrPopulate(pIncr)" identifier (argument_list "(pIncr)" ( identifier )))) ;) (expression_statement "bVar3 = iVar2 == 0;" (assignment_expression "bVar3 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) })) (labeled_statement "LAB_00047212:\n  if ((eMode != 1) && (bVar3)) {\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }" statement_identifier : (if_statement "if ((eMode != 1) && (bVar3)) {\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }" if (parenthesized_expression "((eMode != 1) && (bVar3))" ( (binary_expression "(eMode != 1) && (bVar3)" (parenthesized_expression "(eMode != 1)" ( (binary_expression "eMode != 1" identifier != number_literal) )) && (parenthesized_expression "(bVar3)" ( identifier ))) )) (compound_statement "{\n    iVar2 = vdbePmaReaderNext(pReadr);\n    return iVar2;\n  }" { (expression_statement "iVar2 = vdbePmaReaderNext(pReadr);" (assignment_expression "iVar2 = vdbePmaReaderNext(pReadr)" identifier = (call_expression "vdbePmaReaderNext(pReadr)" identifier (argument_list "(pReadr)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_000471a0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000471a0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000471a0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));" (assignment_expression "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" identifier = (call_expression "FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" identifier (argument_list "(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar6 + 8) + 0x18)" ( (binary_expression "*(int *)(iVar6 + 8) + 0x18" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) + number_literal) )))) )))) ;) (if_statement "if (iVar5 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = piVar1[4];" (assignment_expression "uVar2 = piVar1[4]" identifier = (subscript_expression "piVar1[4]" identifier [ number_literal ])) ;) (if_statement "if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" if (parenthesized_expression "(piVar1[6] == 0)" ( (binary_expression "piVar1[6] == 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }" { (expression_statement "uVar3 = *(uint *)(iVar6 + 0x34);" (assignment_expression "uVar3 = *(uint *)(iVar6 + 0x34)" identifier = (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(iVar6 + 0x38);" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x38)" identifier = (pointer_expression "*(int *)(iVar6 + 0x38)" * (cast_expression "(int *)(iVar6 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" if (parenthesized_expression "(*(int *)(iVar6 + 0x30) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x30) != 0" (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" { (expression_statement "piVar1[10] = *(int *)(iVar6 + 0x30);" (assignment_expression "piVar1[10] = *(int *)(iVar6 + 0x30)" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (expression_statement "piVar1[2] = uVar3;" (assignment_expression "piVar1[2] = uVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (expression_statement "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);" (assignment_expression "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (pointer_expression "*(uint *)(iVar6 + 0x38)" * (cast_expression "(uint *)(iVar6 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = (binary_expression "iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (binary_expression "iVar5 + ((int)uVar2 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4(uVar3,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier )))))) ;) (goto_statement "goto LAB_00047212;" goto statement_identifier ;) })) (expression_statement "iVar5 = FUN_0002cbc0(iVar6 + 0x30);" (assignment_expression "iVar5 = FUN_0002cbc0(iVar6 + 0x30)" identifier = (call_expression "FUN_0002cbc0(iVar6 + 0x30)" identifier (argument_list "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x34)" * (cast_expression "(undefined4 *)(iVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x38)" * (cast_expression "(undefined4 *)(iVar6 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar5 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(iVar6 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar6 + 0x30)" identifier = (pointer_expression "*(int *)(iVar6 + 0x30)" * (cast_expression "(int *)(iVar6 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[10] = iVar4;" (assignment_expression "piVar1[10] = iVar4" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" * (cast_expression "(uint *)(iVar6 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x34)" ( (binary_expression "iVar6 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;" (assignment_expression "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f" (pointer_expression "*(int *)(iVar6 + 0x38)" * (cast_expression "(int *)(iVar6 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) = (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) (else_clause "else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" else (compound_statement "{\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" { (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 7);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 7)" identifier = (call_expression "FUN_0002cbc0(piVar1 + 7)" identifier (argument_list "(piVar1 + 7)" ( (binary_expression "piVar1 + 7" identifier + number_literal) )))) ;) (if_statement "if (iVar6 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 10);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 10)" identifier = (call_expression "FUN_0002cbc0(piVar1 + 10)" identifier (argument_list "(piVar1 + 10)" ( (binary_expression "piVar1 + 10" identifier + number_literal) )))) ;) (if_statement "if (iVar6 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) }))) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (if_statement "if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" { (expression_statement "iVar6 = FUN_00046a90();" (assignment_expression "iVar6 = FUN_00046a90()" identifier = (call_expression "FUN_00046a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar7 = iVar6 == 0;" (assignment_expression "bVar7 = iVar6 == 0" identifier = (binary_expression "iVar6 == 0" identifier == number_literal)) ;) })) (labeled_statement "LAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" statement_identifier : (if_statement "if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" if (parenthesized_expression "((param_2 != 1) && (bVar7))" ( (binary_expression "(param_2 != 1) && (bVar7)" (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) && (parenthesized_expression "(bVar7)" ( identifier ))) )) (compound_statement "{\n    FUN_00046cc0();\n    return;\n  }" { (expression_statement "FUN_00046cc0();" (call_expression "FUN_00046cc0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( IDENT ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) }))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000471a0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000471a0(int param_1,int param_2)" (identifier "FUN_000471a0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  bool bVar7;\n  \n  piVar1 = *(int **)(param_1 + 0x30);\n  iVar6 = *piVar1;\n  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));\n  if (iVar5 != 0) {\n    return;\n  }\n  uVar2 = piVar1[4];\n  if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }\n  bVar7 = true;\n  if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }\nLAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x30)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x30)" (* "*") (cast_expression "(int **)(param_1 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" (identifier "iVar6") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));" (assignment_expression "iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" (identifier "iVar5") (= "=") (call_expression "FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" (identifier "FUN_00047350") (argument_list "(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18))" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(int *)(iVar6 + 8) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar6 + 8) + 0x18)" (( "(") (binary_expression "*(int *)(iVar6 + 8) + 0x18" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = piVar1[4];" (assignment_expression "uVar2 = piVar1[4]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (piVar1[6] == 0) {\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }\n  else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" (if "if") (parenthesized_expression "(piVar1[6] == 0)" (( "(") (binary_expression "piVar1[6] == 0" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = *(uint *)(iVar6 + 0x34);\n    iVar5 = *(int *)(iVar6 + 0x38);\n    if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }\n    iVar5 = FUN_0002cbc0(iVar6 + 0x30);\n    *(undefined4 *)(iVar6 + 0x34) = 0;\n    *(undefined4 *)(iVar6 + 0x38) = 0;\n    if (iVar5 != 0) {\n      return;\n    }\n    iVar4 = *(int *)(iVar6 + 0x30);\n    iVar5 = piVar1[6];\n    piVar1[2] = 0;\n    piVar1[3] = 0;\n    piVar1[10] = iVar4;\n    *(uint *)(iVar6 + 0x34) = uVar2;\n    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(iVar6 + 0x34);" (assignment_expression "uVar3 = *(uint *)(iVar6 + 0x34)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar6 + 0x34)" (* "*") (cast_expression "(uint *)(iVar6 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x34)" (( "(") (binary_expression "iVar6 + 0x34" (identifier "iVar6") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar6 + 0x38);" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x38)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar6 + 0x38)" (* "*") (cast_expression "(int *)(iVar6 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x38)" (( "(") (binary_expression "iVar6 + 0x38" (identifier "iVar6") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar6 + 0x30) != 0) {\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x30) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 0x30) != 0" (pointer_expression "*(int *)(iVar6 + 0x30)" (* "*") (cast_expression "(int *)(iVar6 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x30)" (( "(") (binary_expression "iVar6 + 0x30" (identifier "iVar6") (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar1[10] = *(int *)(iVar6 + 0x30);\n      bVar7 = true;\n      piVar1[2] = uVar3;\n      piVar1[3] = iVar5;\n      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;\n      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);\n      goto LAB_00047212;\n    }" ({ "{") (expression_statement "piVar1[10] = *(int *)(iVar6 + 0x30);" (assignment_expression "piVar1[10] = *(int *)(iVar6 + 0x30)" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (pointer_expression "*(int *)(iVar6 + 0x30)" (* "*") (cast_expression "(int *)(iVar6 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x30)" (( "(") (binary_expression "iVar6 + 0x30" (identifier "iVar6") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" (identifier "bVar7") (= "=") (true "true")) (; ";")) (expression_statement "piVar1[2] = uVar3;" (assignment_expression "piVar1[2] = uVar3" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar3 + uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" (* "*") (cast_expression "(uint *)(iVar6 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x34)" (( "(") (binary_expression "iVar6 + 0x34" (identifier "iVar6") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "uVar3 + uVar2" (identifier "uVar3") (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);" (assignment_expression "*(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (pointer_expression "*(uint *)(iVar6 + 0x38)" (* "*") (cast_expression "(uint *)(iVar6 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x38)" (( "(") (binary_expression "iVar6 + 0x38" (identifier "iVar6") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2)" (binary_expression "iVar5 + ((int)uVar2 >> 0x1f)" (identifier "iVar5") (+ "+") (parenthesized_expression "((int)uVar2 >> 0x1f)" (( "(") (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (cast_expression "(uint)CARRY4(uVar3,uVar2)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar3,uVar2)" (identifier "CARRY4") (argument_list "(uVar3,uVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar2") () ")")))))) (; ";")) (goto_statement "goto LAB_00047212;" (goto "goto") (statement_identifier "LAB_00047212") (; ";")) (} "}"))) (expression_statement "iVar5 = FUN_0002cbc0(iVar6 + 0x30);" (assignment_expression "iVar5 = FUN_0002cbc0(iVar6 + 0x30)" (identifier "iVar5") (= "=") (call_expression "FUN_0002cbc0(iVar6 + 0x30)" (identifier "FUN_0002cbc0") (argument_list "(iVar6 + 0x30)" (( "(") (binary_expression "iVar6 + 0x30" (identifier "iVar6") (+ "+") (number_literal "0x30")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x34)" (( "(") (binary_expression "iVar6 + 0x34" (identifier "iVar6") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x38)" (( "(") (binary_expression "iVar6 + 0x38" (identifier "iVar6") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar5 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(iVar6 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar6 + 0x30)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar6 + 0x30)" (* "*") (cast_expression "(int *)(iVar6 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x30)" (( "(") (binary_expression "iVar6 + 0x30" (identifier "iVar6") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[10] = iVar4;" (assignment_expression "piVar1[10] = iVar4" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(uint *)(iVar6 + 0x34) = uVar2;" (assignment_expression "*(uint *)(iVar6 + 0x34) = uVar2" (pointer_expression "*(uint *)(iVar6 + 0x34)" (* "*") (cast_expression "(uint *)(iVar6 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x34)" (( "(") (binary_expression "iVar6 + 0x34" (identifier "iVar6") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;" (assignment_expression "*(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f" (pointer_expression "*(int *)(iVar6 + 0x38)" (* "*") (cast_expression "(int *)(iVar6 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x38)" (( "(") (binary_expression "iVar6 + 0x38" (identifier "iVar6") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x1f"))) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" (else "else") (compound_statement "{\n    iVar6 = FUN_0002cbc0(piVar1 + 7);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar6 = FUN_0002cbc0(piVar1 + 10);\n    if (iVar6 != 0) {\n      return;\n    }\n    iVar5 = piVar1[6];\n  }" ({ "{") (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 7);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 7)" (identifier "iVar6") (= "=") (call_expression "FUN_0002cbc0(piVar1 + 7)" (identifier "FUN_0002cbc0") (argument_list "(piVar1 + 7)" (( "(") (binary_expression "piVar1 + 7" (identifier "piVar1") (+ "+") (number_literal "7")) () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_0002cbc0(piVar1 + 10);" (assignment_expression "iVar6 = FUN_0002cbc0(piVar1 + 10)" (identifier "iVar6") (= "=") (call_expression "FUN_0002cbc0(piVar1 + 10)" (identifier "FUN_0002cbc0") (argument_list "(piVar1 + 10)" (( "(") (binary_expression "piVar1 + 10" (identifier "piVar1") (+ "+") (number_literal "10")) () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar5 = piVar1[6];" (assignment_expression "iVar5 = piVar1[6]" (identifier "iVar5") (= "=") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (} "}")))) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" (identifier "bVar7") (= "=") (true "true")) (; ";")) (if_statement "if (iVar5 != 0) {\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = FUN_00046a90();\n    bVar7 = iVar6 == 0;\n  }" ({ "{") (expression_statement "iVar6 = FUN_00046a90();" (assignment_expression "iVar6 = FUN_00046a90()" (identifier "iVar6") (= "=") (call_expression "FUN_00046a90()" (identifier "FUN_00046a90") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar7 = iVar6 == 0;" (assignment_expression "bVar7 = iVar6 == 0" (identifier "bVar7") (= "=") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0"))) (; ";")) (} "}"))) (labeled_statement "LAB_00047212:\n  if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" (statement_identifier "LAB_00047212") (: ":") (if_statement "if ((param_2 != 1) && (bVar7)) {\n    FUN_00046cc0();\n    return;\n  }" (if "if") (parenthesized_expression "((param_2 != 1) && (bVar7))" (( "(") (binary_expression "(param_2 != 1) && (bVar7)" (parenthesized_expression "(param_2 != 1)" (( "(") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")"))) () ")")) (compound_statement "{\n    FUN_00046cc0();\n    return;\n  }" ({ "{") (expression_statement "FUN_00046cc0();" (call_expression "FUN_00046cc0()" (identifier "FUN_00046cc0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pReadr,int var_8)

{
  type_2 *pIncr;
  type_3 *pTask;
  type_4 *db;
  type_5 **ppFd;
  type_5 *var_3;
  type_5 **ppFd_00;
  int var_2;
  bool bVar3;
  type_6 in_stack_ffffffc8;
  
  pIncr = pReadr->pIncr;
  pTask = pIncr->pTask;
  db = pTask->pSorter->db;
  var_2 = var_1(pTask,pIncr->pMerger,var_8);
  if (var_2 != 0) {
    return var_2;
  }
  ppFd = (type_5 **)pIncr->mxSz;
  if (pIncr->bUseThread == 0) {
    var_3 = (pTask->file2).pFd;
    ppFd_00 = *(type_5 ***)&(pTask->file2).iEof;
    var_2 = *(int *)((int)&(pTask->file2).iEof + 4);
    if (var_3 != (type_5 *)0x0) {
      pIncr->aFile[1].pFd = var_3;
      bVar3 = true;
      *(type_5 ***)&pIncr->iStartOff = ppFd_00;
      *(int *)((int)&pIncr->iStartOff + 4) = var_2;
      *(int *)&(pTask->file2).iEof = (int)ppFd_00 + (int)ppFd;
      *(type_7 *)((int)&(pTask->file2).iEof + 4) =
           var_2 + ((int)ppFd >> 0x1f) + (type_7)var_4((type_7)ppFd_00,(type_7)ppFd);
      var_2 = 0;
      goto LAB_00047212;
    }
    var_2 = var_5(db,var_6(in_stack_ffffffc8,&pTask->file2),ppFd_00);
    *(type_6 *)&(pTask->file2).iEof = 0;
    *(type_6 *)((int)&(pTask->file2).iEof + 4) = 0;
    if (var_2 != 0) {
      return var_2;
    }
    var_3 = (pTask->file2).pFd;
    var_2 = pIncr->bUseThread;
    *(type_6 *)&pIncr->iStartOff = 0;
    *(type_6 *)((int)&pIncr->iStartOff + 4) = 0;
    pIncr->aFile[1].pFd = var_3;
    *(type_5 ***)&(pTask->file2).iEof = ppFd;
    *(int *)((int)&(pTask->file2).iEof + 4) = (int)ppFd >> 0x1f;
  }
  else {
    var_2 = var_5(db,var_6(in_stack_ffffffc8,pIncr->aFile),ppFd);
    if (var_2 != 0) {
      return var_2;
    }
    var_2 = var_5(db,var_6(in_stack_ffffffc8,pIncr->aFile + 1),ppFd);
    if (var_2 != 0) {
      return var_2;
    }
    var_2 = pIncr->bUseThread;
  }
  bVar3 = true;
  if (var_2 != 0) {
    var_2 = var_7(pIncr);
    bVar3 = var_2 == 0;
  }
LAB_00047212:
  if ((var_8 != 1) && (bVar3)) {
    var_2 = var_9(pReadr);
    return var_2;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) 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))))))) (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement)))) (return_statement))))

void __regparm3 MASKED(int param_1,int param_2)

{
  int *piVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  bool bVar7;
  
  piVar1 = *(int **)(param_1 + 0x30);
  iVar6 = *piVar1;
  iVar5 = FUN_00047350(param_2,param_1,*(undefined4 *)(*(int *)(iVar6 + 8) + 0x18));
  if (iVar5 != 0) {
    return;
  }
  uVar2 = piVar1[4];
  if (piVar1[6] == 0) {
    uVar3 = *(uint *)(iVar6 + 0x34);
    iVar5 = *(int *)(iVar6 + 0x38);
    if (*(int *)(iVar6 + 0x30) != 0) {
      piVar1[10] = *(int *)(iVar6 + 0x30);
      bVar7 = true;
      piVar1[2] = uVar3;
      piVar1[3] = iVar5;
      *(uint *)(iVar6 + 0x34) = uVar3 + uVar2;
      *(uint *)(iVar6 + 0x38) = iVar5 + ((int)uVar2 >> 0x1f) + (uint)CARRY4(uVar3,uVar2);
      goto LAB_00047212;
    }
    iVar5 = FUN_0002cbc0(iVar6 + 0x30);
    *(undefined4 *)(iVar6 + 0x34) = 0;
    *(undefined4 *)(iVar6 + 0x38) = 0;
    if (iVar5 != 0) {
      return;
    }
    iVar4 = *(int *)(iVar6 + 0x30);
    iVar5 = piVar1[6];
    piVar1[2] = 0;
    piVar1[3] = 0;
    piVar1[10] = iVar4;
    *(uint *)(iVar6 + 0x34) = uVar2;
    *(int *)(iVar6 + 0x38) = (int)uVar2 >> 0x1f;
  }
  else {
    iVar6 = FUN_0002cbc0(piVar1 + 7);
    if (iVar6 != 0) {
      return;
    }
    iVar6 = FUN_0002cbc0(piVar1 + 10);
    if (iVar6 != 0) {
      return;
    }
    iVar5 = piVar1[6];
  }
  bVar7 = true;
  if (iVar5 != 0) {
    iVar6 = FUN_00046a90();
    bVar7 = iVar6 == 0;
  }
LAB_00047212:
  if ((param_2 != 1) && (bVar7)) {
    FUN_00046cc0();
    return;
  }
  return;
}

