
int __regparm3 vdbeMergeEngineStep(MergeEngine *pMerger,int *pbEof)

{
  SortSubtask *pSVar1;
  uint uVar2;
  PmaReader *pPVar3;
  int *piVar4;
  int iVar5;
  uint uVar6;
  PmaReader *pPVar7;
  PmaReader *pPVar8;
  int in_GS_OFFSET;
  int bCached;
  int local_20;
  
  pSVar1 = pMerger->pTask;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar6 = pMerger->aTree[1];
  uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6);
  if (uVar2 == 0) {
    iVar5 = uVar6 + pMerger->nTree;
    pPVar3 = pMerger->aReadr;
    bCached = 0;
    pPVar8 = pPVar3 + (uVar6 & 0xfffe);
    pPVar7 = pPVar3 + (uVar6 | 1);
    if (iVar5 < 2) {
      piVar4 = pMerger->aTree;
    }
    else {
      uVar6 = iVar5 / 2;
      do {
        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {
          if (pPVar7->pFd != (sqlite3_file *)0x0) {
            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,
                                        pPVar7->nKey);
            pPVar3 = pMerger->aReadr;
            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {
              if (pPVar8->pFd != (sqlite3_file *)0x0) {
                bCached = 0;
              }
              break;
            }
          }
          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;
          piVar4 = pMerger->aTree;
          pPVar3 = pMerger->aReadr;
          bCached = 0;
          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];
          uVar6 = uVar2;
          if (uVar2 == 0) goto LAB_00059963;
        }
        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;
        piVar4 = pMerger->aTree;
        pPVar3 = pMerger->aReadr;
        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];
        uVar6 = uVar2;
      } while (uVar2 != 0);
    }
LAB_00059963:
    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);
    uVar2 = (uint)pSVar1->pUnpacked->errCode;
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return uVar2;
}



uint __regparm3 FUN_00059840(int *param_1,uint *param_2)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  
  iVar1 = param_1[1];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar5 = *(uint *)(param_1[2] + 4);
  uVar2 = FUN_00059290();
  if (uVar2 == 0) {
    iVar4 = param_1[3];
    local_24 = 0;
    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;
    uVar7 = (uVar5 | 1) * 0x34 + iVar4;
    if ((int)(uVar5 + *param_1) < 2) {
      iVar3 = param_1[2];
    }
    else {
      uVar5 = (int)(uVar5 + *param_1) / 2;
      do {
        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {
          if (*(int *)(uVar7 + 0x18) != 0) {
            iVar3 = (**(code **)(iVar1 + 0x20))
                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),
                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),
                               *(undefined4 *)(uVar7 + 0x14));
            iVar4 = param_1[3];
            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {
              if (*(int *)(uVar2 + 0x18) != 0) {
                local_24 = 0;
              }
              break;
            }
          }
          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;
          iVar3 = param_1[2];
          iVar4 = param_1[3];
          local_24 = 0;
          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;
          uVar5 = uVar6;
          if (uVar6 == 0) goto LAB_00059963;
        }
        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;
        iVar3 = param_1[2];
        iVar4 = param_1[3];
        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;
        uVar5 = uVar6;
      } while (uVar6 != 0);
    }
LAB_00059963:
    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);
    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00153870();
  }
  return uVar2;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EBP,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0xc],EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV EBX,dword ptr [EAX + 0x4]
IMUL EAX,EBX,0x34
ADD EAX,dword ptr [EDI + 0xc]
CALL 0x00059290
TEST EAX,EAX
JNZ 0x00059980
MOV EDX,EBX
MOV ESI,EBX
ADD EBX,dword ptr [EDI]
MOV EAX,dword ptr [EDI + 0xc]
AND EDX,0xfffe
OR ESI,0x1
MOV ECX,EBX
SHR EBX,0x1f
IMUL EDX,EDX,0x34
ADD EBX,ECX
MOV dword ptr [ESP + 0x18],0x0
IMUL ESI,ESI,0x34
SAR EBX,0x1
ADD EDX,EAX
ADD ESI,EAX
CMP ECX,0x1
JLE 0x000599b0
LEA ECX,[ESP + 0x18]
MOV dword ptr [ESP + 0x8],ECX
MOV ECX,EDI
MOV EDI,EDX
MOV EDX,EBP
MOV EBP,ECX
JMP 0x00059930
MOV ECX,dword ptr [ESI + 0x18]
TEST ECX,ECX
JZ 0x000598fe
SUB ESP,0x8
PUSH dword ptr [ESI + 0x14]
PUSH dword ptr [ESI + 0x20]
PUSH dword ptr [EDI + 0x14]
PUSH dword ptr [EDI + 0x20]
PUSH dword ptr [ESP + 0x20]
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
CALL dword ptr [EDX + 0x20]
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0x4]
TEST EAX,EAX
MOV EAX,dword ptr [EBP + 0xc]
JS 0x000598fe
JNZ 0x00059995
CMP EDI,ESI
JNC 0x00059995
MOV ESI,EDI
MOV ECX,dword ptr [EBP + 0x8]
SUB ESI,EAX
MOV EAX,ESI
MOV ESI,EBX
SAR EAX,0x2
XOR ESI,0x1
IMUL EAX,EAX,-0x3b13b13b
MOV dword ptr [ECX + EBX*0x4],EAX
MOV ECX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0xc]
IMUL ESI,dword ptr [ECX + ESI*0x4],0x34
MOV dword ptr [ESP + 0x18],0x0
ADD ESI,EAX
SAR EBX,0x1
JZ 0x00059961
MOV ECX,dword ptr [EDI + 0x18]
TEST ECX,ECX
JNZ 0x000598c0
MOV EDI,ESI
MOV ECX,dword ptr [EBP + 0x8]
SUB EDI,EAX
MOV EAX,EDI
MOV EDI,EBX
SAR EAX,0x2
XOR EDI,0x1
IMUL EAX,EAX,-0x3b13b13b
MOV dword ptr [ECX + EBX*0x4],EAX
MOV ECX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0xc]
IMUL EDI,dword ptr [ECX + EDI*0x4],0x34
ADD EDI,EAX
SAR EBX,0x1
JNZ 0x00059930
MOV EBP,EDX
IMUL EDX,dword ptr [ECX + 0x4],0x34
MOV EAX,dword ptr [EAX + EDX*0x1 + 0x18]
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
SETZ AL
MOVZX EAX,AL
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [EBP + 0xc]
MOVZX EAX,byte ptr [EAX + 0xb]
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x000599b5
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EDI + 0x18]
TEST ECX,ECX
JZ 0x00059937
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00059937
MOV ECX,dword ptr [EDI + 0x8]
JMP 0x00059963
CALL 0x00153870
(translation_unit "uint __regparm3 FUN_00059840(int *param_1,uint *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return uVar2;\n}\n\n" (function_definition "uint __regparm3 FUN_00059840(int *param_1,uint *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00059840(int *param_1,uint *param_2)" identifier (parameter_list "(int *param_1,uint *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(param_1[2] + 4);" (assignment_expression "uVar5 = *(uint *)(param_1[2] + 4)" identifier = (pointer_expression "*(uint *)(param_1[2] + 4)" * (cast_expression "(uint *)(param_1[2] + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00059290();" (assignment_expression "uVar2 = FUN_00059290()" identifier = (call_expression "FUN_00059290()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" { (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;" (assignment_expression "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4" identifier = (binary_expression "(uVar5 & 0xfffe) * 0x34 + iVar4" (binary_expression "(uVar5 & 0xfffe) * 0x34" (parenthesized_expression "(uVar5 & 0xfffe)" ( (binary_expression "uVar5 & 0xfffe" identifier & number_literal) )) * number_literal) + identifier)) ;) (expression_statement "uVar7 = (uVar5 | 1) * 0x34 + iVar4;" (assignment_expression "uVar7 = (uVar5 | 1) * 0x34 + iVar4" identifier = (binary_expression "(uVar5 | 1) * 0x34 + iVar4" (binary_expression "(uVar5 | 1) * 0x34" (parenthesized_expression "(uVar5 | 1)" ( (binary_expression "uVar5 | 1" identifier | number_literal) )) * number_literal) + identifier)) ;) (if_statement "if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" if (parenthesized_expression "((int)(uVar5 + *param_1) < 2)" ( (binary_expression "(int)(uVar5 + *param_1) < 2" (cast_expression "(int)(uVar5 + *param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 + *param_1)" ( (binary_expression "uVar5 + *param_1" identifier + (pointer_expression "*param_1" * identifier)) ))) < number_literal) )) (compound_statement "{\n      iVar3 = param_1[2];\n    }" { (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" else (compound_statement "{\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" { (expression_statement "uVar5 = (int)(uVar5 + *param_1) / 2;" (assignment_expression "uVar5 = (int)(uVar5 + *param_1) / 2" identifier = (binary_expression "(int)(uVar5 + *param_1) / 2" (cast_expression "(int)(uVar5 + *param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 + *param_1)" ( (binary_expression "uVar5 + *param_1" identifier + (pointer_expression "*param_1" * identifier)) ))) / number_literal)) ;) (do_statement "do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);" do (compound_statement "{\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      }" { (while_statement "while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" while (parenthesized_expression "(uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0)" ( (comma_expression "uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0" (assignment_expression "uVar6 = (int)uVar5 >> 1" identifier = (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) , (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" { (if_statement "if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" if (parenthesized_expression "(*(int *)(uVar7 + 0x18) != 0)" ( (binary_expression "*(int *)(uVar7 + 0x18) != 0" (pointer_expression "*(int *)(uVar7 + 0x18)" * (cast_expression "(int *)(uVar7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x18)" ( (binary_expression "uVar7 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" { (expression_statement "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));" (assignment_expression "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" identifier = (call_expression "(**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" ( (pointer_expression "**(code **)(iVar1 + 0x20)" * (pointer_expression "*(code **)(iVar1 + 0x20)" * (cast_expression "(code **)(iVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" ( identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "*(undefined4 *)(uVar2 + 0x20)" * (cast_expression "(undefined4 *)(uVar2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x20)" ( (binary_expression "uVar2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar2 + 0x14)" * (cast_expression "(undefined4 *)(uVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x14)" ( (binary_expression "uVar2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar7 + 0x20)" * (cast_expression "(undefined4 *)(uVar7 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x20)" ( (binary_expression "uVar7 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar7 + 0x14)" * (cast_expression "(undefined4 *)(uVar7 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x14)" ( (binary_expression "uVar7 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" if (parenthesized_expression "((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2))))" ( (binary_expression "(-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))" (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) && (parenthesized_expression "((iVar3 != 0 || (uVar7 <= uVar2)))" ( (parenthesized_expression "(iVar3 != 0 || (uVar7 <= uVar2))" ( (binary_expression "iVar3 != 0 || (uVar7 <= uVar2)" (binary_expression "iVar3 != 0" identifier != number_literal) || (parenthesized_expression "(uVar7 <= uVar2)" ( (binary_expression "uVar7 <= uVar2" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" { (if_statement "if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }" if (parenthesized_expression "(*(int *)(uVar2 + 0x18) != 0)" ( (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                local_24 = 0;\n              }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) (break_statement "break;" break ;) })) })) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" * (cast_expression "(int *)(param_1[2] + uVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + uVar5 * 4)" ( (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "uVar5 * 4" identifier * number_literal)) )))) = (binary_expression "((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar2 - iVar4) >> 2)" ( (binary_expression "(int)(uVar2 - iVar4) >> 2" (cast_expression "(int)(uVar2 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar2 - iVar4)" ( (binary_expression "uVar2 - iVar4" identifier - identifier) ))) >> number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" identifier = (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" * (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" ( (binary_expression "iVar3 + (uVar5 ^ 1) * 4" identifier + (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" ( (binary_expression "uVar5 ^ 1" identifier ^ number_literal) )) * number_literal)) )))) * number_literal) + identifier)) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (if_statement "if (uVar6 == 0) goto LAB_00059963;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00059963;" goto statement_identifier ;)) })) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" * (cast_expression "(int *)(param_1[2] + uVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + uVar5 * 4)" ( (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "uVar5 * 4" identifier * number_literal)) )))) = (binary_expression "((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar7 - iVar4) >> 2)" ( (binary_expression "(int)(uVar7 - iVar4) >> 2" (cast_expression "(int)(uVar7 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar7 - iVar4)" ( (binary_expression "uVar7 - iVar4" identifier - identifier) ))) >> number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" identifier = (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" * (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" ( (binary_expression "iVar3 + (uVar5 ^ 1) * 4" identifier + (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" ( (binary_expression "uVar5 ^ 1" identifier ^ number_literal) )) * number_literal)) )))) * number_literal) + identifier)) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" statement_identifier : (expression_statement "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" (assignment_expression "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (pointer_expression "*param_2" * identifier) = (call_expression "(uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" ( (binary_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0" (pointer_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" * (cast_expression "(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" ( (binary_expression "iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34" (binary_expression "iVar4 + 0x18" identifier + number_literal) + (binary_expression "*(int *)(iVar3 + 4) * 0x34" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) * number_literal)) )))) == number_literal) )))) ;)) (expression_statement "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);" (assignment_expression "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" identifier = (binary_expression "(uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xb)" ( (binary_expression "*(int *)(iVar1 + 0xc) + 0xb" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }" { comment (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int __regparm3 vdbeMergeEngineStep(MergeEngine *pMerger,int *pbEof)\n\n{\n  SortSubtask *pSVar1;\n  uint uVar2;\n  PmaReader *pPVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  PmaReader *pPVar7;\n  PmaReader *pPVar8;\n  int in_GS_OFFSET;\n  int bCached;\n  int local_20;\n  \n  pSVar1 = pMerger->pTask;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = pMerger->aTree[1];\n  uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6);\n  if (uVar2 == 0) {\n    iVar5 = uVar6 + pMerger->nTree;\n    pPVar3 = pMerger->aReadr;\n    bCached = 0;\n    pPVar8 = pPVar3 + (uVar6 & 0xfffe);\n    pPVar7 = pPVar3 + (uVar6 | 1);\n    if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }\nLAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);\n    uVar2 = (uint)pSVar1->pUnpacked->errCode;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar2;\n}\n\n" (function_definition "int __regparm3 vdbeMergeEngineStep(MergeEngine *pMerger,int *pbEof)\n\n{\n  SortSubtask *pSVar1;\n  uint uVar2;\n  PmaReader *pPVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  PmaReader *pPVar7;\n  PmaReader *pPVar8;\n  int in_GS_OFFSET;\n  int bCached;\n  int local_20;\n  \n  pSVar1 = pMerger->pTask;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = pMerger->aTree[1];\n  uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6);\n  if (uVar2 == 0) {\n    iVar5 = uVar6 + pMerger->nTree;\n    pPVar3 = pMerger->aReadr;\n    bCached = 0;\n    pPVar8 = pPVar3 + (uVar6 & 0xfffe);\n    pPVar7 = pPVar3 + (uVar6 | 1);\n    if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }\nLAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);\n    uVar2 = (uint)pSVar1->pUnpacked->errCode;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "vdbeMergeEngineStep(MergeEngine *pMerger,int *pbEof)" identifier (parameter_list "(MergeEngine *pMerger,int *pbEof)" ( (parameter_declaration "MergeEngine *pMerger" type_identifier (pointer_declarator "*pMerger" * identifier)) , (parameter_declaration "int *pbEof" primitive_type (pointer_declarator "*pbEof" * identifier)) ))) (compound_statement "{\n  SortSubtask *pSVar1;\n  uint uVar2;\n  PmaReader *pPVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  PmaReader *pPVar7;\n  PmaReader *pPVar8;\n  int in_GS_OFFSET;\n  int bCached;\n  int local_20;\n  \n  pSVar1 = pMerger->pTask;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = pMerger->aTree[1];\n  uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6);\n  if (uVar2 == 0) {\n    iVar5 = uVar6 + pMerger->nTree;\n    pPVar3 = pMerger->aReadr;\n    bCached = 0;\n    pPVar8 = pPVar3 + (uVar6 & 0xfffe);\n    pPVar7 = pPVar3 + (uVar6 | 1);\n    if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }\nLAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);\n    uVar2 = (uint)pSVar1->pUnpacked->errCode;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar2;\n}" { (declaration "SortSubtask *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "PmaReader *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "PmaReader *pPVar7;" type_identifier (pointer_declarator "*pPVar7" * identifier) ;) (declaration "PmaReader *pPVar8;" type_identifier (pointer_declarator "*pPVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int bCached;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "pSVar1 = pMerger->pTask;" (assignment_expression "pSVar1 = pMerger->pTask" identifier = (field_expression "pMerger->pTask" identifier -> field_identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = pMerger->aTree[1];" (assignment_expression "uVar6 = pMerger->aTree[1]" identifier = (subscript_expression "pMerger->aTree[1]" (field_expression "pMerger->aTree" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6);" (assignment_expression "uVar2 = vdbePmaReaderNext(pMerger->aReadr + uVar6)" identifier = (call_expression "vdbePmaReaderNext(pMerger->aReadr + uVar6)" identifier (argument_list "(pMerger->aReadr + uVar6)" ( (binary_expression "pMerger->aReadr + uVar6" (field_expression "pMerger->aReadr" identifier -> field_identifier) + identifier) )))) ;) (if_statement "if (uVar2 == 0) {\n    iVar5 = uVar6 + pMerger->nTree;\n    pPVar3 = pMerger->aReadr;\n    bCached = 0;\n    pPVar8 = pPVar3 + (uVar6 & 0xfffe);\n    pPVar7 = pPVar3 + (uVar6 | 1);\n    if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }\nLAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);\n    uVar2 = (uint)pSVar1->pUnpacked->errCode;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar5 = uVar6 + pMerger->nTree;\n    pPVar3 = pMerger->aReadr;\n    bCached = 0;\n    pPVar8 = pPVar3 + (uVar6 & 0xfffe);\n    pPVar7 = pPVar3 + (uVar6 | 1);\n    if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }\nLAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);\n    uVar2 = (uint)pSVar1->pUnpacked->errCode;\n  }" { (expression_statement "iVar5 = uVar6 + pMerger->nTree;" (assignment_expression "iVar5 = uVar6 + pMerger->nTree" identifier = (binary_expression "uVar6 + pMerger->nTree" identifier + (field_expression "pMerger->nTree" identifier -> field_identifier))) ;) (expression_statement "pPVar3 = pMerger->aReadr;" (assignment_expression "pPVar3 = pMerger->aReadr" identifier = (field_expression "pMerger->aReadr" identifier -> field_identifier)) ;) (expression_statement "bCached = 0;" (assignment_expression "bCached = 0" identifier = number_literal) ;) (expression_statement "pPVar8 = pPVar3 + (uVar6 & 0xfffe);" (assignment_expression "pPVar8 = pPVar3 + (uVar6 & 0xfffe)" identifier = (binary_expression "pPVar3 + (uVar6 & 0xfffe)" identifier + (parenthesized_expression "(uVar6 & 0xfffe)" ( (binary_expression "uVar6 & 0xfffe" identifier & number_literal) )))) ;) (expression_statement "pPVar7 = pPVar3 + (uVar6 | 1);" (assignment_expression "pPVar7 = pPVar3 + (uVar6 | 1)" identifier = (binary_expression "pPVar3 + (uVar6 | 1)" identifier + (parenthesized_expression "(uVar6 | 1)" ( (binary_expression "uVar6 | 1" identifier | number_literal) )))) ;) (if_statement "if (iVar5 < 2) {\n      piVar4 = pMerger->aTree;\n    }\n    else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }" if (parenthesized_expression "(iVar5 < 2)" ( (binary_expression "iVar5 < 2" identifier < number_literal) )) (compound_statement "{\n      piVar4 = pMerger->aTree;\n    }" { (expression_statement "piVar4 = pMerger->aTree;" (assignment_expression "piVar4 = pMerger->aTree" identifier = (field_expression "pMerger->aTree" identifier -> field_identifier)) ;) }) (else_clause "else {\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }" else (compound_statement "{\n      uVar6 = iVar5 / 2;\n      do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);\n    }" { (expression_statement "uVar6 = iVar5 / 2;" (assignment_expression "uVar6 = iVar5 / 2" identifier = (binary_expression "iVar5 / 2" identifier / number_literal)) ;) (do_statement "do {\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      } while (uVar2 != 0);" do (compound_statement "{\n        while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }\n        pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;\n        piVar4 = pMerger->aTree;\n        pPVar3 = pMerger->aReadr;\n        pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];\n        uVar6 = uVar2;\n      }" { (while_statement "while (uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0) {\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }" while (parenthesized_expression "(uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0)" ( (comma_expression "uVar2 = (int)uVar6 >> 1, pPVar8->pFd != (sqlite3_file *)0x0" (assignment_expression "uVar2 = (int)uVar6 >> 1" identifier = (binary_expression "(int)uVar6 >> 1" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) , (binary_expression "pPVar8->pFd != (sqlite3_file *)0x0" (field_expression "pPVar8->pFd" identifier -> field_identifier) != (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n          if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }\n          pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;\n          piVar4 = pMerger->aTree;\n          pPVar3 = pMerger->aReadr;\n          bCached = 0;\n          pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];\n          uVar6 = uVar2;\n          if (uVar2 == 0) goto LAB_00059963;\n        }" { (if_statement "if (pPVar7->pFd != (sqlite3_file *)0x0) {\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }" if (parenthesized_expression "(pPVar7->pFd != (sqlite3_file *)0x0)" ( (binary_expression "pPVar7->pFd != (sqlite3_file *)0x0" (field_expression "pPVar7->pFd" identifier -> field_identifier) != (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);\n            pPVar3 = pMerger->aReadr;\n            if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }\n          }" { (expression_statement "iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey);" (assignment_expression "iVar5 = (*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey)" identifier = (call_expression "(*pSVar1->xCompare)(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey)" (parenthesized_expression "(*pSVar1->xCompare)" ( (pointer_expression "*pSVar1->xCompare" * (field_expression "pSVar1->xCompare" identifier -> field_identifier)) )) (argument_list "(pSVar1,&bCached,pPVar8->aKey,pPVar8->nKey,pPVar7->aKey,\n                                        pPVar7->nKey)" ( identifier , (pointer_expression "&bCached" & identifier) , (field_expression "pPVar8->aKey" identifier -> field_identifier) , (field_expression "pPVar8->nKey" identifier -> field_identifier) , (field_expression "pPVar7->aKey" identifier -> field_identifier) , (field_expression "pPVar7->nKey" identifier -> field_identifier) )))) ;) (expression_statement "pPVar3 = pMerger->aReadr;" (assignment_expression "pPVar3 = pMerger->aReadr" identifier = (field_expression "pMerger->aReadr" identifier -> field_identifier)) ;) (if_statement "if ((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))) {\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }" if (parenthesized_expression "((-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8))))" ( (binary_expression "(-1 < iVar5) && ((iVar5 != 0 || (pPVar7 <= pPVar8)))" (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) && (parenthesized_expression "((iVar5 != 0 || (pPVar7 <= pPVar8)))" ( (parenthesized_expression "(iVar5 != 0 || (pPVar7 <= pPVar8))" ( (binary_expression "iVar5 != 0 || (pPVar7 <= pPVar8)" (binary_expression "iVar5 != 0" identifier != number_literal) || (parenthesized_expression "(pPVar7 <= pPVar8)" ( (binary_expression "pPVar7 <= pPVar8" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n              if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }\n              break;\n            }" { (if_statement "if (pPVar8->pFd != (sqlite3_file *)0x0) {\n                bCached = 0;\n              }" if (parenthesized_expression "(pPVar8->pFd != (sqlite3_file *)0x0)" ( (binary_expression "pPVar8->pFd != (sqlite3_file *)0x0" (field_expression "pPVar8->pFd" identifier -> field_identifier) != (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                bCached = 0;\n              }" { (expression_statement "bCached = 0;" (assignment_expression "bCached = 0" identifier = number_literal) ;) })) (break_statement "break;" break ;) })) })) (expression_statement "pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b;" (assignment_expression "pMerger->aTree[uVar6] = ((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b" (subscript_expression "pMerger->aTree[uVar6]" (field_expression "pMerger->aTree" identifier -> field_identifier) [ identifier ]) = (binary_expression "((int)pPVar8 - (int)pPVar3 >> 2) * -0x3b13b13b" (parenthesized_expression "((int)pPVar8 - (int)pPVar3 >> 2)" ( (binary_expression "(int)pPVar8 - (int)pPVar3 >> 2" (binary_expression "(int)pPVar8 - (int)pPVar3" (cast_expression "(int)pPVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pPVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (expression_statement "piVar4 = pMerger->aTree;" (assignment_expression "piVar4 = pMerger->aTree" identifier = (field_expression "pMerger->aTree" identifier -> field_identifier)) ;) (expression_statement "pPVar3 = pMerger->aReadr;" (assignment_expression "pPVar3 = pMerger->aReadr" identifier = (field_expression "pMerger->aReadr" identifier -> field_identifier)) ;) (expression_statement "bCached = 0;" (assignment_expression "bCached = 0" identifier = number_literal) ;) (expression_statement "pPVar7 = pPVar3 + piVar4[uVar6 ^ 1];" (assignment_expression "pPVar7 = pPVar3 + piVar4[uVar6 ^ 1]" identifier = (binary_expression "pPVar3 + piVar4[uVar6 ^ 1]" identifier + (subscript_expression "piVar4[uVar6 ^ 1]" identifier [ (binary_expression "uVar6 ^ 1" identifier ^ number_literal) ]))) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 == 0) goto LAB_00059963;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00059963;" goto statement_identifier ;)) })) (expression_statement "pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b;" (assignment_expression "pMerger->aTree[uVar6] = ((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b" (subscript_expression "pMerger->aTree[uVar6]" (field_expression "pMerger->aTree" identifier -> field_identifier) [ identifier ]) = (binary_expression "((int)pPVar7 - (int)pPVar3 >> 2) * -0x3b13b13b" (parenthesized_expression "((int)pPVar7 - (int)pPVar3 >> 2)" ( (binary_expression "(int)pPVar7 - (int)pPVar3 >> 2" (binary_expression "(int)pPVar7 - (int)pPVar3" (cast_expression "(int)pPVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pPVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (expression_statement "piVar4 = pMerger->aTree;" (assignment_expression "piVar4 = pMerger->aTree" identifier = (field_expression "pMerger->aTree" identifier -> field_identifier)) ;) (expression_statement "pPVar3 = pMerger->aReadr;" (assignment_expression "pPVar3 = pMerger->aReadr" identifier = (field_expression "pMerger->aReadr" identifier -> field_identifier)) ;) (expression_statement "pPVar8 = pPVar3 + piVar4[uVar6 ^ 1];" (assignment_expression "pPVar8 = pPVar3 + piVar4[uVar6 ^ 1]" identifier = (binary_expression "pPVar3 + piVar4[uVar6 ^ 1]" identifier + (subscript_expression "piVar4[uVar6 ^ 1]" identifier [ (binary_expression "uVar6 ^ 1" identifier ^ number_literal) ]))) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00059963:\n    *pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);" statement_identifier : (expression_statement "*pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0);" (assignment_expression "*pbEof = (uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0)" (pointer_expression "*pbEof" * identifier) = (call_expression "(uint)(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0)" ( (binary_expression "pPVar3[piVar4[1]].pFd == (sqlite3_file *)0x0" (field_expression "pPVar3[piVar4[1]].pFd" (subscript_expression "pPVar3[piVar4[1]]" identifier [ (subscript_expression "piVar4[1]" identifier [ number_literal ]) ]) . field_identifier) == (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) ;)) (expression_statement "uVar2 = (uint)pSVar1->pUnpacked->errCode;" (assignment_expression "uVar2 = (uint)pSVar1->pUnpacked->errCode" identifier = (cast_expression "(uint)pSVar1->pUnpacked->errCode" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar1->pUnpacked->errCode" (field_expression "pSVar1->pUnpacked" identifier -> field_identifier) -> field_identifier))) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00059840(int *param_1,uint *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return uVar2;\n}\n\n" (function_definition "uint __regparm3 FUN_00059840(int *param_1,uint *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00059840(int *param_1,uint *param_2)" identifier (parameter_list "(int *param_1,uint *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(param_1[2] + 4);" (assignment_expression "uVar5 = *(uint *)(param_1[2] + 4)" identifier = (pointer_expression "*(uint *)(param_1[2] + 4)" * (cast_expression "(uint *)(param_1[2] + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00059290();" (assignment_expression "uVar2 = FUN_00059290()" identifier = (call_expression "FUN_00059290()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" { (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;" (assignment_expression "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4" identifier = (binary_expression "(uVar5 & 0xfffe) * 0x34 + iVar4" (binary_expression "(uVar5 & 0xfffe) * 0x34" (parenthesized_expression "(uVar5 & 0xfffe)" ( (binary_expression "uVar5 & 0xfffe" identifier & number_literal) )) * number_literal) + identifier)) ;) (expression_statement "uVar7 = (uVar5 | 1) * 0x34 + iVar4;" (assignment_expression "uVar7 = (uVar5 | 1) * 0x34 + iVar4" identifier = (binary_expression "(uVar5 | 1) * 0x34 + iVar4" (binary_expression "(uVar5 | 1) * 0x34" (parenthesized_expression "(uVar5 | 1)" ( (binary_expression "uVar5 | 1" identifier | number_literal) )) * number_literal) + identifier)) ;) (if_statement "if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" if (parenthesized_expression "((int)(uVar5 + *param_1) < 2)" ( (binary_expression "(int)(uVar5 + *param_1) < 2" (cast_expression "(int)(uVar5 + *param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 + *param_1)" ( (binary_expression "uVar5 + *param_1" identifier + (pointer_expression "*param_1" * identifier)) ))) < number_literal) )) (compound_statement "{\n      iVar3 = param_1[2];\n    }" { (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" else (compound_statement "{\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" { (expression_statement "uVar5 = (int)(uVar5 + *param_1) / 2;" (assignment_expression "uVar5 = (int)(uVar5 + *param_1) / 2" identifier = (binary_expression "(int)(uVar5 + *param_1) / 2" (cast_expression "(int)(uVar5 + *param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 + *param_1)" ( (binary_expression "uVar5 + *param_1" identifier + (pointer_expression "*param_1" * identifier)) ))) / number_literal)) ;) (do_statement "do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);" do (compound_statement "{\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      }" { (while_statement "while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" while (parenthesized_expression "(uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0)" ( (comma_expression "uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0" (assignment_expression "uVar6 = (int)uVar5 >> 1" identifier = (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) , (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" { (if_statement "if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" if (parenthesized_expression "(*(int *)(uVar7 + 0x18) != 0)" ( (binary_expression "*(int *)(uVar7 + 0x18) != 0" (pointer_expression "*(int *)(uVar7 + 0x18)" * (cast_expression "(int *)(uVar7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x18)" ( (binary_expression "uVar7 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" { (expression_statement "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));" (assignment_expression "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" identifier = (call_expression "(**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" ( (pointer_expression "**(code **)(iVar1 + 0x20)" * (pointer_expression "*(code **)(iVar1 + 0x20)" * (cast_expression "(code **)(iVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" ( identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "*(undefined4 *)(uVar2 + 0x20)" * (cast_expression "(undefined4 *)(uVar2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x20)" ( (binary_expression "uVar2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar2 + 0x14)" * (cast_expression "(undefined4 *)(uVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x14)" ( (binary_expression "uVar2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar7 + 0x20)" * (cast_expression "(undefined4 *)(uVar7 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x20)" ( (binary_expression "uVar7 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(uVar7 + 0x14)" * (cast_expression "(undefined4 *)(uVar7 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x14)" ( (binary_expression "uVar7 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" if (parenthesized_expression "((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2))))" ( (binary_expression "(-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))" (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) && (parenthesized_expression "((iVar3 != 0 || (uVar7 <= uVar2)))" ( (parenthesized_expression "(iVar3 != 0 || (uVar7 <= uVar2))" ( (binary_expression "iVar3 != 0 || (uVar7 <= uVar2)" (binary_expression "iVar3 != 0" identifier != number_literal) || (parenthesized_expression "(uVar7 <= uVar2)" ( (binary_expression "uVar7 <= uVar2" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" { (if_statement "if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }" if (parenthesized_expression "(*(int *)(uVar2 + 0x18) != 0)" ( (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" * (cast_expression "(int *)(uVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 0x18)" ( (binary_expression "uVar2 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                local_24 = 0;\n              }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) (break_statement "break;" break ;) })) })) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" * (cast_expression "(int *)(param_1[2] + uVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + uVar5 * 4)" ( (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "uVar5 * 4" identifier * number_literal)) )))) = (binary_expression "((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar2 - iVar4) >> 2)" ( (binary_expression "(int)(uVar2 - iVar4) >> 2" (cast_expression "(int)(uVar2 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar2 - iVar4)" ( (binary_expression "uVar2 - iVar4" identifier - identifier) ))) >> number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" identifier = (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" * (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" ( (binary_expression "iVar3 + (uVar5 ^ 1) * 4" identifier + (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" ( (binary_expression "uVar5 ^ 1" identifier ^ number_literal) )) * number_literal)) )))) * number_literal) + identifier)) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (if_statement "if (uVar6 == 0) goto LAB_00059963;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00059963;" goto statement_identifier ;)) })) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" * (cast_expression "(int *)(param_1[2] + uVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + uVar5 * 4)" ( (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "uVar5 * 4" identifier * number_literal)) )))) = (binary_expression "((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar7 - iVar4) >> 2)" ( (binary_expression "(int)(uVar7 - iVar4) >> 2" (cast_expression "(int)(uVar7 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar7 - iVar4)" ( (binary_expression "uVar7 - iVar4" identifier - identifier) ))) >> number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" identifier = (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" * (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" ( (binary_expression "iVar3 + (uVar5 ^ 1) * 4" identifier + (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" ( (binary_expression "uVar5 ^ 1" identifier ^ number_literal) )) * number_literal)) )))) * number_literal) + identifier)) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" statement_identifier : (expression_statement "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" (assignment_expression "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (pointer_expression "*param_2" * identifier) = (call_expression "(uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" ( (binary_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0" (pointer_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" * (cast_expression "(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" ( (binary_expression "iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34" (binary_expression "iVar4 + 0x18" identifier + number_literal) + (binary_expression "*(int *)(iVar3 + 4) * 0x34" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) * number_literal)) )))) == number_literal) )))) ;)) (expression_statement "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);" (assignment_expression "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" identifier = (binary_expression "(uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xb)" ( (binary_expression "*(int *)(iVar1 + 0xc) + 0xb" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00153870();\n  }" { (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT | LIT) )) * LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * IDENT)) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * IDENT)) ))) / LIT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (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 ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (break_statement break ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) >> LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) * LIT)) )))) * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) >> LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) * LIT)) )))) * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) == LIT) )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (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 != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00059840(int *param_1,uint *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return uVar2;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00059840(int *param_1,uint *param_2)" (identifier "FUN_00059840") (parameter_list "(int *param_1,uint *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  \n  iVar1 = param_1[1];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = *(uint *)(param_1[2] + 4);\n  uVar2 = FUN_00059290();\n  if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(uint *)(param_1[2] + 4);" (assignment_expression "uVar5 = *(uint *)(param_1[2] + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(param_1[2] + 4)" (* "*") (cast_expression "(uint *)(param_1[2] + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 4)" (( "(") (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_00059290();" (assignment_expression "uVar2 = FUN_00059290()" (identifier "uVar2") (= "=") (call_expression "FUN_00059290()" (identifier "FUN_00059290") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar2 == 0) {\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = param_1[3];\n    local_24 = 0;\n    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;\n    uVar7 = (uVar5 | 1) * 0x34 + iVar4;\n    if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }\nLAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);\n    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);\n  }" ({ "{") (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" (identifier "iVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;" (assignment_expression "uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4" (identifier "uVar2") (= "=") (binary_expression "(uVar5 & 0xfffe) * 0x34 + iVar4" (binary_expression "(uVar5 & 0xfffe) * 0x34" (parenthesized_expression "(uVar5 & 0xfffe)" (( "(") (binary_expression "uVar5 & 0xfffe" (identifier "uVar5") (& "&") (number_literal "0xfffe")) () ")")) (* "*") (number_literal "0x34")) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "uVar7 = (uVar5 | 1) * 0x34 + iVar4;" (assignment_expression "uVar7 = (uVar5 | 1) * 0x34 + iVar4" (identifier "uVar7") (= "=") (binary_expression "(uVar5 | 1) * 0x34 + iVar4" (binary_expression "(uVar5 | 1) * 0x34" (parenthesized_expression "(uVar5 | 1)" (( "(") (binary_expression "uVar5 | 1" (identifier "uVar5") (| "|") (number_literal "1")) () ")")) (* "*") (number_literal "0x34")) (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if ((int)(uVar5 + *param_1) < 2) {\n      iVar3 = param_1[2];\n    }\n    else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" (if "if") (parenthesized_expression "((int)(uVar5 + *param_1) < 2)" (( "(") (binary_expression "(int)(uVar5 + *param_1) < 2" (cast_expression "(int)(uVar5 + *param_1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar5 + *param_1)" (( "(") (binary_expression "uVar5 + *param_1" (identifier "uVar5") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      iVar3 = param_1[2];\n    }" ({ "{") (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" (identifier "iVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" (else "else") (compound_statement "{\n      uVar5 = (int)(uVar5 + *param_1) / 2;\n      do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);\n    }" ({ "{") (expression_statement "uVar5 = (int)(uVar5 + *param_1) / 2;" (assignment_expression "uVar5 = (int)(uVar5 + *param_1) / 2" (identifier "uVar5") (= "=") (binary_expression "(int)(uVar5 + *param_1) / 2" (cast_expression "(int)(uVar5 + *param_1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar5 + *param_1)" (( "(") (binary_expression "uVar5 + *param_1" (identifier "uVar5") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (/ "/") (number_literal "2"))) (; ";")) (do_statement "do {\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      } while (uVar6 != 0);" (do "do") (compound_statement "{\n        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }\n        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;\n        iVar3 = param_1[2];\n        iVar4 = param_1[3];\n        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n        uVar5 = uVar6;\n      }" ({ "{") (while_statement "while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" (while "while") (parenthesized_expression "(uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0)" (( "(") (comma_expression "uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0" (assignment_expression "uVar6 = (int)uVar5 >> 1" (identifier "uVar6") (= "=") (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "1"))) (, ",") (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" (* "*") (cast_expression "(int *)(uVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x18)" (( "(") (binary_expression "uVar2 + 0x18" (identifier "uVar2") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }\n          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;\n          iVar3 = param_1[2];\n          iVar4 = param_1[3];\n          local_24 = 0;\n          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;\n          uVar5 = uVar6;\n          if (uVar6 == 0) goto LAB_00059963;\n        }" ({ "{") (if_statement "if (*(int *)(uVar7 + 0x18) != 0) {\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" (if "if") (parenthesized_expression "(*(int *)(uVar7 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(uVar7 + 0x18) != 0" (pointer_expression "*(int *)(uVar7 + 0x18)" (* "*") (cast_expression "(int *)(uVar7 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x18)" (( "(") (binary_expression "uVar7 + 0x18" (identifier "uVar7") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));\n            iVar4 = param_1[3];\n            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }\n          }" ({ "{") (expression_statement "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14));" (assignment_expression "iVar3 = (**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" (identifier "iVar3") (= "=") (call_expression "(**(code **)(iVar1 + 0x20))\n                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x20)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x20)" (* "*") (cast_expression "(code **)(iVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),\n                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),\n                               *(undefined4 *)(uVar7 + 0x14))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "*(undefined4 *)(uVar2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(uVar2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x20)" (( "(") (binary_expression "uVar2 + 0x20" (identifier "uVar2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(uVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(uVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x14)" (( "(") (binary_expression "uVar2 + 0x14" (identifier "uVar2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(uVar7 + 0x20)" (* "*") (cast_expression "(undefined4 *)(uVar7 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x20)" (( "(") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(uVar7 + 0x14)" (* "*") (cast_expression "(undefined4 *)(uVar7 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x14)" (( "(") (binary_expression "uVar7 + 0x14" (identifier "uVar7") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" (identifier "iVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" (if "if") (parenthesized_expression "((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2))))" (( "(") (binary_expression "(-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))" (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "((iVar3 != 0 || (uVar7 <= uVar2)))" (( "(") (parenthesized_expression "(iVar3 != 0 || (uVar7 <= uVar2))" (( "(") (binary_expression "iVar3 != 0 || (uVar7 <= uVar2)" (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(uVar7 <= uVar2)" (( "(") (binary_expression "uVar7 <= uVar2" (identifier "uVar7") (<= "<=") (identifier "uVar2")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n              if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }\n              break;\n            }" ({ "{") (if_statement "if (*(int *)(uVar2 + 0x18) != 0) {\n                local_24 = 0;\n              }" (if "if") (parenthesized_expression "(*(int *)(uVar2 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(uVar2 + 0x18) != 0" (pointer_expression "*(int *)(uVar2 + 0x18)" (* "*") (cast_expression "(int *)(uVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 0x18)" (( "(") (binary_expression "uVar2 + 0x18" (identifier "uVar2") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                local_24 = 0;\n              }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" (* "*") (cast_expression "(int *)(param_1[2] + uVar5 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + uVar5 * 4)" (( "(") (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar2 - iVar4) >> 2)" (( "(") (binary_expression "(int)(uVar2 - iVar4) >> 2" (cast_expression "(int)(uVar2 - iVar4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar2 - iVar4)" (( "(") (binary_expression "uVar2 - iVar4" (identifier "uVar2") (- "-") (identifier "iVar4")) () ")"))) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x3b13b13b"))) (; ";")) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" (identifier "iVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" (identifier "iVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (identifier "uVar7") (= "=") (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" (* "*") (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" (( "(") (binary_expression "iVar3 + (uVar5 ^ 1) * 4" (identifier "iVar3") (+ "+") (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" (( "(") (binary_expression "uVar5 ^ 1" (identifier "uVar5") (^ "^") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (* "*") (number_literal "0x34")) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (uVar6 == 0) goto LAB_00059963;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00059963;" (goto "goto") (statement_identifier "LAB_00059963") (; ";"))) (} "}"))) (expression_statement "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;" (assignment_expression "*(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (pointer_expression "*(int *)(param_1[2] + uVar5 * 4)" (* "*") (cast_expression "(int *)(param_1[2] + uVar5 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + uVar5 * 4)" (( "(") (binary_expression "param_1[2] + uVar5 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b" (parenthesized_expression "((int)(uVar7 - iVar4) >> 2)" (( "(") (binary_expression "(int)(uVar7 - iVar4) >> 2" (cast_expression "(int)(uVar7 - iVar4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar7 - iVar4)" (( "(") (binary_expression "uVar7 - iVar4" (identifier "uVar7") (- "-") (identifier "iVar4")) () ")"))) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x3b13b13b"))) (; ";")) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" (identifier "iVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" (identifier "iVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;" (assignment_expression "uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (identifier "uVar2") (= "=") (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4" (binary_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34" (pointer_expression "*(int *)(iVar3 + (uVar5 ^ 1) * 4)" (* "*") (cast_expression "(int *)(iVar3 + (uVar5 ^ 1) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (uVar5 ^ 1) * 4)" (( "(") (binary_expression "iVar3 + (uVar5 ^ 1) * 4" (identifier "iVar3") (+ "+") (binary_expression "(uVar5 ^ 1) * 4" (parenthesized_expression "(uVar5 ^ 1)" (( "(") (binary_expression "uVar5 ^ 1" (identifier "uVar5") (^ "^") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (* "*") (number_literal "0x34")) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_00059963:\n    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" (statement_identifier "LAB_00059963") (: ":") (expression_statement "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);" (assignment_expression "*param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (call_expression "(uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0)" (( "(") (binary_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0" (pointer_expression "*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" (* "*") (cast_expression "(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34)" (( "(") (binary_expression "iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34" (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) (+ "+") (binary_expression "*(int *)(iVar3 + 4) * 0x34" (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (* "*") (number_literal "0x34"))) () ")")))) (== "==") (number_literal "0")) () ")")))) (; ";"))) (expression_statement "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);" (assignment_expression "uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*(int *)(iVar1 + 0xc) + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0xc) + 0xb)" (( "(") (binary_expression "*(int *)(iVar1 + 0xc) + 0xb" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0xb")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00153870();\n  }" ({ "{") (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" (identifier "FUN_00153870") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pMerger,int *pbEof)

{
  type_2 *pSVar1;
  type_3 var_4;
  type_4 *var_5;
  int *piVar4;
  int var_6;
  type_3 var_3;
  type_4 *var_7;
  type_4 *var_8;
  int var_1;
  int bCached;
  int var_9;
  
  pSVar1 = pMerger->pTask;
  var_9 = *(int *)(var_1 + 0x14);
  var_3 = pMerger->aTree[1];
  var_4 = var_2(pMerger->aReadr + var_3);
  if (var_4 == 0) {
    var_6 = var_3 + pMerger->nTree;
    var_5 = pMerger->aReadr;
    bCached = 0;
    var_8 = var_5 + (var_3 & 0xfffe);
    var_7 = var_5 + (var_3 | 1);
    if (var_6 < 2) {
      piVar4 = pMerger->aTree;
    }
    else {
      var_3 = var_6 / 2;
      do {
        while (var_4 = (int)var_3 >> 1, var_8->pFd != (type_5 *)0x0) {
          if (var_7->pFd != (type_5 *)0x0) {
            var_6 = (*pSVar1->xCompare)(pSVar1,&bCached,var_8->aKey,var_8->nKey,var_7->aKey,
                                        var_7->nKey);
            var_5 = pMerger->aReadr;
            if ((-1 < var_6) && ((var_6 != 0 || (var_7 <= var_8)))) {
              if (var_8->pFd != (type_5 *)0x0) {
                bCached = 0;
              }
              break;
            }
          }
          pMerger->aTree[var_3] = ((int)var_8 - (int)var_5 >> 2) * -0x3b13b13b;
          piVar4 = pMerger->aTree;
          var_5 = pMerger->aReadr;
          bCached = 0;
          var_7 = var_5 + piVar4[var_3 ^ 1];
          var_3 = var_4;
          if (var_4 == 0) goto LAB_00059963;
        }
        pMerger->aTree[var_3] = ((int)var_7 - (int)var_5 >> 2) * -0x3b13b13b;
        piVar4 = pMerger->aTree;
        var_5 = pMerger->aReadr;
        var_8 = var_5 + piVar4[var_3 ^ 1];
        var_3 = var_4;
      } while (var_4 != 0);
    }
LAB_00059963:
    *pbEof = (type_3)(var_5[piVar4[1]].pFd == (type_5 *)0x0);
    var_4 = (type_3)pSVar1->pUnpacked->errCode;
  }
  if (var_9 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_10();
  }
  return var_4;
}


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

uint __regparm3 MASKED(int *param_1,uint *param_2)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  
  iVar1 = param_1[1];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar5 = *(uint *)(param_1[2] + 4);
  uVar2 = FUN_00059290();
  if (uVar2 == 0) {
    iVar4 = param_1[3];
    local_24 = 0;
    uVar2 = (uVar5 & 0xfffe) * 0x34 + iVar4;
    uVar7 = (uVar5 | 1) * 0x34 + iVar4;
    if ((int)(uVar5 + *param_1) < 2) {
      iVar3 = param_1[2];
    }
    else {
      uVar5 = (int)(uVar5 + *param_1) / 2;
      do {
        while (uVar6 = (int)uVar5 >> 1, *(int *)(uVar2 + 0x18) != 0) {
          if (*(int *)(uVar7 + 0x18) != 0) {
            iVar3 = (**(code **)(iVar1 + 0x20))
                              (iVar1,&local_24,*(undefined4 *)(uVar2 + 0x20),
                               *(undefined4 *)(uVar2 + 0x14),*(undefined4 *)(uVar7 + 0x20),
                               *(undefined4 *)(uVar7 + 0x14));
            iVar4 = param_1[3];
            if ((-1 < iVar3) && ((iVar3 != 0 || (uVar7 <= uVar2)))) {
              if (*(int *)(uVar2 + 0x18) != 0) {
                local_24 = 0;
              }
              break;
            }
          }
          *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar2 - iVar4) >> 2) * -0x3b13b13b;
          iVar3 = param_1[2];
          iVar4 = param_1[3];
          local_24 = 0;
          uVar7 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;
          uVar5 = uVar6;
          if (uVar6 == 0) goto LAB_00059963;
        }
        *(int *)(param_1[2] + uVar5 * 4) = ((int)(uVar7 - iVar4) >> 2) * -0x3b13b13b;
        iVar3 = param_1[2];
        iVar4 = param_1[3];
        uVar2 = *(int *)(iVar3 + (uVar5 ^ 1) * 4) * 0x34 + iVar4;
        uVar5 = uVar6;
      } while (uVar6 != 0);
    }
LAB_00059963:
    *param_2 = (uint)(*(int *)(iVar4 + 0x18 + *(int *)(iVar3 + 4) * 0x34) == 0);
    uVar2 = (uint)*(byte *)(*(int *)(iVar1 + 0xc) + 0xb);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00153870();
  }
  return uVar2;
}

