
int walWriteToLog(WalWriter *p,void *pContent,int iAmt,sqlite3_int64 iOffset)

{
  int iVar1;
  int iVar2;
  sqlite3_file *id;
  uint uVar3;
  _func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *UNRECOVERED_JUMPTABLE;
  
  id = p->pFd;
  iVar1 = *(int *)&p->iSyncPoint;
  uVar3 = (uint)p->iSyncPoint;
  UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
  if ((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))) {
    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;
    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {
      iVar2 = uVar3 - iOffset._4_4_;
      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);
      if (iVar1 == 0) {
        id = p->pFd;
        uVar3 = p->syncFlags & 3;
        iOffset = iOffset + iVar2;
        iAmt = iAmt - iVar2;
        pContent = (void *)((int)pContent + iVar2);
        if (uVar3 == 0) {
          if (iAmt != 0) {
            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
            goto LAB_00029a88;
          }
        }
        else {
          iVar1 = sqlite3OsSync(id,uVar3);
          if ((iAmt != 0) && (iVar1 == 0)) {
            id = p->pFd;
            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
            goto LAB_00029a88;
          }
        }
      }
      return iVar1;
    }
  }
LAB_00029a88:
                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);
  return iVar1;
}



void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  code *UNRECOVERED_JUMPTABLE;
  
  piVar3 = *(int **)(param_1 + 4);
  iVar1 = *(int *)(param_1 + 8);
  uVar4 = *(uint *)(param_1 + 0xc);
  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {
    uVar5 = param_3 + param_6;
    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;
    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {
      iVar2 = uVar4 - param_6;
      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);
      if (iVar1 == 0) {
        piVar3 = *(int **)(param_1 + 4);
        param_3 = param_3 - iVar2;
        param_2 = param_2 + iVar2;
        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {
          if (param_3 != 0) {
            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
            goto LAB_00029a88;
          }
        }
        else {
          iVar1 = FUN_0002997c();
          if ((param_3 != 0) && (iVar1 == 0)) {
            piVar3 = *(int **)(param_1 + 4);
            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
            goto LAB_00029a88;
          }
        }
      }
      return;
    }
  }
LAB_00029a88:
                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);
  return;
}


lui gp,0x14
addiu gp,gp,-0x646c
addu gp,gp,t9
addiu sp,sp,-0x40
sw s5,0x38(sp)
or s5,a1,zero
sw s3,0x30(sp)
or s3,a2,zero
sw s2,0x2c(sp)
sw s1,0x28(sp)
or s1,a0,zero
sw s0,0x24(sp)
sw gp,0x18(sp)
sw ra,0x3c(sp)
sw s4,0x34(sp)
lw a0,0x4(a0)
lw s0,0x50(sp)
lw v0,0x8(s1)
lw s2,0x54(sp)
lw a1,0x0(a0)
slt v1,s0,v0
lw a2,0xc(s1)
bne v1,zero,0x00029ac0
_lw t9,0xc(a1)
beq v0,s0,0x00029ab8
_sltu v1,s2,a2
lw ra,0x3c(sp)
or a2,s3,zero
lw s4,0x34(sp)
or a1,s5,zero
lw s3,0x30(sp)
lw s5,0x38(sp)
lw s1,0x28(sp)
sw s0,0x50(sp)
sw s2,0x54(sp)
lw s0,0x24(sp)
lw s2,0x2c(sp)
jr t9
_addiu sp,sp,0x40
beq v1,zero,0x00029a88
_lw ra,0x3c(sp)
sra v1,s3,0x1f
addu a3,s3,s2
addu v1,v1,s0
sltu a1,a3,s3
addu v1,a1,v1
slt a1,v1,v0
bne a1,zero,0x00029a88
_lw ra,0x3c(sp)
beq v0,v1,0x00029b4c
_sltu a3,a3,a2
subu s4,a2,s2
sw s0,0x10(sp)
sw s2,0x14(sp)
or a1,s5,zero
jalr t9
_or a2,s4,zero
bne v0,zero,0x00029b7c
_lw gp,0x18(sp)
sra v1,s4,0x1f
lw a1,0x10(s1)
addu a2,s2,s4
lw a0,0x4(s1)
addu s0,s0,v1
sltu s2,a2,s2
andi a1,a1,0x3
addu s0,s2,s0
subu s3,s3,s4
or s2,a2,zero
bne a1,zero,0x00029b5c
_addu s5,s5,s4
beq s3,zero,0x00029b80
_lw ra,0x3c(sp)
lw v0,0x0(a0)
b 0x00029a88
_lw t9,0xc(v0)
bne a3,zero,0x00029a88
_lw ra,0x3c(sp)
b 0x00029aec
_subu s4,a2,s2
lw t9,-0x7ed8(gp)
addiu t9,t9,-0x6684
bal 0x0002997c
_nop
beq s3,zero,0x00029b7c
_lw gp,0x18(sp)
beq v0,zero,0x00029ba0
_nop
lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw a0,0x4(s1)
lw v0,0x0(a0)
b 0x00029a84
_lw t9,0xc(v0)
(translation_unit "void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "code *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (if_statement "if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" if (parenthesized_expression "((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4))))" ( (binary_expression "(param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))" (parenthesized_expression "(param_5 < iVar1)" ( (binary_expression "param_5 < iVar1" identifier < identifier) )) || (parenthesized_expression "((iVar1 == param_5 && (param_6 < uVar4)))" ( (parenthesized_expression "(iVar1 == param_5 && (param_6 < uVar4))" ( (binary_expression "iVar1 == param_5 && (param_6 < uVar4)" (binary_expression "iVar1 == param_5" identifier == identifier) && (parenthesized_expression "(param_6 < uVar4)" ( (binary_expression "param_6 < uVar4" identifier < identifier) ))) )) ))) )) (compound_statement "{\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" { (expression_statement "uVar5 = param_3 + param_6;" (assignment_expression "uVar5 = param_3 + param_6" identifier = (binary_expression "param_3 + param_6" identifier + identifier)) ;) (expression_statement "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;" (assignment_expression "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" identifier = (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f)" (call_expression "(uint)(uVar5 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < param_3)" ( (binary_expression "uVar5 < param_3" identifier < identifier) ))) + (parenthesized_expression "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + identifier)) ;) (if_statement "if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" if (parenthesized_expression "((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4))))" ( (binary_expression "(iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))" (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) && (parenthesized_expression "((iVar1 != iVar2 || (uVar5 >= uVar4)))" ( (parenthesized_expression "(iVar1 != iVar2 || (uVar5 >= uVar4))" ( (binary_expression "iVar1 != iVar2 || (uVar5 >= uVar4)" (binary_expression "iVar1 != iVar2" identifier != identifier) || (parenthesized_expression "(uVar5 >= uVar4)" ( (binary_expression "uVar5 >= uVar4" identifier >= identifier) ))) )) ))) )) (compound_statement "{\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" { (expression_statement "iVar2 = uVar4 - param_6;" (assignment_expression "iVar2 = uVar4 - param_6" identifier = (binary_expression "uVar4 - param_6" identifier - identifier)) ;) (expression_statement "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);" (assignment_expression "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" ( identifier , identifier , identifier , (binary_expression "uVar5 < uVar4" identifier < identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" { (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" identifier = (binary_expression "param_3 - iVar2" identifier - identifier)) ;) (expression_statement "param_2 = param_2 + iVar2;" (assignment_expression "param_2 = param_2 + iVar2" identifier = (binary_expression "param_2 + iVar2" identifier + identifier)) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 3) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & 3) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 3)" ( (binary_expression "*(uint *)(param_1 + 0x10) & 3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" { (if_statement "if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" { (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }) (else_clause "else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" else (compound_statement "{\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" { (expression_statement "iVar1 = FUN_0002997c();" (assignment_expression "iVar1 = FUN_0002997c()" identifier = (call_expression "FUN_0002997c()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "((param_3 != 0) && (iVar1 == 0))" ( (binary_expression "(param_3 != 0) && (iVar1 == 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" { (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }))) })) (return_statement "return;" return ;) })) })) (labeled_statement "LAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" statement_identifier : comment comment (expression_statement "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(piVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "int walWriteToLog(WalWriter *p,void *pContent,int iAmt,sqlite3_int64 iOffset)\n\n{\n  int iVar1;\n  int iVar2;\n  sqlite3_file *id;\n  uint uVar3;\n  _func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *UNRECOVERED_JUMPTABLE;\n  \n  id = p->pFd;\n  iVar1 = *(int *)&p->iSyncPoint;\n  uVar3 = (uint)p->iSyncPoint;\n  UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n  if ((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))) {\n    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);\n  return iVar1;\n}\n\n" (function_definition "int walWriteToLog(WalWriter *p,void *pContent,int iAmt,sqlite3_int64 iOffset)\n\n{\n  int iVar1;\n  int iVar2;\n  sqlite3_file *id;\n  uint uVar3;\n  _func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *UNRECOVERED_JUMPTABLE;\n  \n  id = p->pFd;\n  iVar1 = *(int *)&p->iSyncPoint;\n  uVar3 = (uint)p->iSyncPoint;\n  UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n  if ((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))) {\n    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);\n  return iVar1;\n}" primitive_type (function_declarator "walWriteToLog(WalWriter *p,void *pContent,int iAmt,sqlite3_int64 iOffset)" identifier (parameter_list "(WalWriter *p,void *pContent,int iAmt,sqlite3_int64 iOffset)" ( (parameter_declaration "WalWriter *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "void *pContent" primitive_type (pointer_declarator "*pContent" * identifier)) , (parameter_declaration "int iAmt" primitive_type identifier) , (parameter_declaration "sqlite3_int64 iOffset" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  sqlite3_file *id;\n  uint uVar3;\n  _func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *UNRECOVERED_JUMPTABLE;\n  \n  id = p->pFd;\n  iVar1 = *(int *)&p->iSyncPoint;\n  uVar3 = (uint)p->iSyncPoint;\n  UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n  if ((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))) {\n    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }\n  }\nLAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sqlite3_file *id;" type_identifier (pointer_declarator "*id" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (expression_statement "id = p->pFd;" (assignment_expression "id = p->pFd" identifier = (field_expression "p->pFd" identifier -> field_identifier)) ;) (expression_statement "iVar1 = *(int *)&p->iSyncPoint;" (assignment_expression "iVar1 = *(int *)&p->iSyncPoint" identifier = (pointer_expression "*(int *)&p->iSyncPoint" * (cast_expression "(int *)&p->iSyncPoint" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->iSyncPoint" & (field_expression "p->iSyncPoint" identifier -> field_identifier))))) ;) (expression_statement "uVar3 = (uint)p->iSyncPoint;" (assignment_expression "uVar3 = (uint)p->iSyncPoint" identifier = (cast_expression "(uint)p->iSyncPoint" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->iSyncPoint" identifier -> field_identifier))) ;) (expression_statement "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;" (assignment_expression "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite" identifier = (field_expression "id->pMethods->xWrite" (field_expression "id->pMethods" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if ((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))) {\n    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3))))" ( (binary_expression "(iOffset._0_4_ < iVar1) || ((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))" (parenthesized_expression "(iOffset._0_4_ < iVar1)" ( (binary_expression "iOffset._0_4_ < iVar1" (field_expression "iOffset._0_4_" identifier . field_identifier) < identifier) )) || (parenthesized_expression "((iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)))" ( (parenthesized_expression "(iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3))" ( (binary_expression "iVar1 == iOffset._0_4_ && (iOffset._4_4_ < uVar3)" (binary_expression "iVar1 == iOffset._0_4_" identifier == (field_expression "iOffset._0_4_" identifier . field_identifier)) && (parenthesized_expression "(iOffset._4_4_ < uVar3)" ( (binary_expression "iOffset._4_4_ < uVar3" (field_expression "iOffset._4_4_" identifier . field_identifier) < identifier) ))) )) ))) )) (compound_statement "{\n    iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_;" (assignment_expression "iVar2 = (uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_" identifier = (binary_expression "(uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f) + iOffset._0_4_" (binary_expression "(uint)(iAmt + iOffset._4_4_ < (uint)iAmt) + (iAmt >> 0x1f)" (call_expression "(uint)(iAmt + iOffset._4_4_ < (uint)iAmt)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iAmt + iOffset._4_4_ < (uint)iAmt)" ( (binary_expression "iAmt + iOffset._4_4_ < (uint)iAmt" (binary_expression "iAmt + iOffset._4_4_" identifier + (field_expression "iOffset._4_4_" identifier . field_identifier)) < (cast_expression "(uint)iAmt" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) + (parenthesized_expression "(iAmt >> 0x1f)" ( (binary_expression "iAmt >> 0x1f" identifier >> number_literal) ))) + (field_expression "iOffset._0_4_" identifier . field_identifier))) ;) (if_statement "if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))) {\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }" if (parenthesized_expression "((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_))))" ( (binary_expression "(iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))" (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) && (parenthesized_expression "((iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)))" ( (parenthesized_expression "(iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_))" ( (binary_expression "iVar1 != iVar2 || (uVar3 <= iAmt + iOffset._4_4_)" (binary_expression "iVar1 != iVar2" identifier != identifier) || (parenthesized_expression "(uVar3 <= iAmt + iOffset._4_4_)" ( (binary_expression "uVar3 <= iAmt + iOffset._4_4_" identifier <= (binary_expression "iAmt + iOffset._4_4_" identifier + (field_expression "iOffset._4_4_" identifier . field_identifier))) ))) )) ))) )) (compound_statement "{\n      iVar2 = uVar3 - iOffset._4_4_;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);\n      if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return iVar1;\n    }" { (expression_statement "iVar2 = uVar3 - iOffset._4_4_;" (assignment_expression "iVar2 = uVar3 - iOffset._4_4_" identifier = (binary_expression "uVar3 - iOffset._4_4_" identifier - (field_expression "iOffset._4_4_" identifier . field_identifier))) ;) (expression_statement "iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset);" (assignment_expression "iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset)" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)(id,pContent,iVar2,iOffset)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(id,pContent,iVar2,iOffset)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        id = p->pFd;\n        uVar3 = p->syncFlags & 3;\n        iOffset = iOffset + iVar2;\n        iAmt = iAmt - iVar2;\n        pContent = (void *)((int)pContent + iVar2);\n        if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n      }" { (expression_statement "id = p->pFd;" (assignment_expression "id = p->pFd" identifier = (field_expression "p->pFd" identifier -> field_identifier)) ;) (expression_statement "uVar3 = p->syncFlags & 3;" (assignment_expression "uVar3 = p->syncFlags & 3" identifier = (binary_expression "p->syncFlags & 3" (field_expression "p->syncFlags" identifier -> field_identifier) & number_literal)) ;) (expression_statement "iOffset = iOffset + iVar2;" (assignment_expression "iOffset = iOffset + iVar2" identifier = (binary_expression "iOffset + iVar2" identifier + identifier)) ;) (expression_statement "iAmt = iAmt - iVar2;" (assignment_expression "iAmt = iAmt - iVar2" identifier = (binary_expression "iAmt - iVar2" identifier - identifier)) ;) (expression_statement "pContent = (void *)((int)pContent + iVar2);" (assignment_expression "pContent = (void *)((int)pContent + iVar2)" identifier = (cast_expression "(void *)((int)pContent + iVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pContent + iVar2)" ( (binary_expression "(int)pContent + iVar2" (cast_expression "(int)pContent" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (if_statement "if (uVar3 == 0) {\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }" { (if_statement "if (iAmt != 0) {\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "(iAmt != 0)" ( (binary_expression "iAmt != 0" identifier != number_literal) )) (compound_statement "{\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }" { (expression_statement "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;" (assignment_expression "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite" identifier = (field_expression "id->pMethods->xWrite" (field_expression "id->pMethods" identifier -> field_identifier) -> field_identifier)) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }) (else_clause "else {\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }" else (compound_statement "{\n          iVar1 = sqlite3OsSync(id,uVar3);\n          if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }\n        }" { (expression_statement "iVar1 = sqlite3OsSync(id,uVar3);" (assignment_expression "iVar1 = sqlite3OsSync(id,uVar3)" identifier = (call_expression "sqlite3OsSync(id,uVar3)" identifier (argument_list "(id,uVar3)" ( identifier , identifier )))) ;) (if_statement "if ((iAmt != 0) && (iVar1 == 0)) {\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "((iAmt != 0) && (iVar1 == 0))" ( (binary_expression "(iAmt != 0) && (iVar1 == 0)" (parenthesized_expression "(iAmt != 0)" ( (binary_expression "iAmt != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n            id = p->pFd;\n            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;\n            goto LAB_00029a88;\n          }" { (expression_statement "id = p->pFd;" (assignment_expression "id = p->pFd" identifier = (field_expression "p->pFd" identifier -> field_identifier)) ;) (expression_statement "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;" (assignment_expression "UNRECOVERED_JUMPTABLE = id->pMethods->xWrite" identifier = (field_expression "id->pMethods->xWrite" (field_expression "id->pMethods" identifier -> field_identifier) -> field_identifier)) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }))) })) (return_statement "return iVar1;" return identifier ;) })) })) (labeled_statement "LAB_00029a88:\n                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);" statement_identifier : comment comment (expression_statement "iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset);" (assignment_expression "iVar1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset)" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)(id,pContent,iAmt,iOffset)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(id,pContent,iAmt,iOffset)" ( identifier , identifier , identifier , identifier )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "code *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (if_statement "if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" if (parenthesized_expression "((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4))))" ( (binary_expression "(param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))" (parenthesized_expression "(param_5 < iVar1)" ( (binary_expression "param_5 < iVar1" identifier < identifier) )) || (parenthesized_expression "((iVar1 == param_5 && (param_6 < uVar4)))" ( (parenthesized_expression "(iVar1 == param_5 && (param_6 < uVar4))" ( (binary_expression "iVar1 == param_5 && (param_6 < uVar4)" (binary_expression "iVar1 == param_5" identifier == identifier) && (parenthesized_expression "(param_6 < uVar4)" ( (binary_expression "param_6 < uVar4" identifier < identifier) ))) )) ))) )) (compound_statement "{\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" { (expression_statement "uVar5 = param_3 + param_6;" (assignment_expression "uVar5 = param_3 + param_6" identifier = (binary_expression "param_3 + param_6" identifier + identifier)) ;) (expression_statement "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;" (assignment_expression "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" identifier = (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f)" (call_expression "(uint)(uVar5 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < param_3)" ( (binary_expression "uVar5 < param_3" identifier < identifier) ))) + (parenthesized_expression "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + identifier)) ;) (if_statement "if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" if (parenthesized_expression "((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4))))" ( (binary_expression "(iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))" (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) && (parenthesized_expression "((iVar1 != iVar2 || (uVar5 >= uVar4)))" ( (parenthesized_expression "(iVar1 != iVar2 || (uVar5 >= uVar4))" ( (binary_expression "iVar1 != iVar2 || (uVar5 >= uVar4)" (binary_expression "iVar1 != iVar2" identifier != identifier) || (parenthesized_expression "(uVar5 >= uVar4)" ( (binary_expression "uVar5 >= uVar4" identifier >= identifier) ))) )) ))) )) (compound_statement "{\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" { (expression_statement "iVar2 = uVar4 - param_6;" (assignment_expression "iVar2 = uVar4 - param_6" identifier = (binary_expression "uVar4 - param_6" identifier - identifier)) ;) (expression_statement "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);" (assignment_expression "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" ( identifier , identifier , identifier , (binary_expression "uVar5 < uVar4" identifier < identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" { (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" identifier = (binary_expression "param_3 - iVar2" identifier - identifier)) ;) (expression_statement "param_2 = param_2 + iVar2;" (assignment_expression "param_2 = param_2 + iVar2" identifier = (binary_expression "param_2 + iVar2" identifier + identifier)) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 3) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & 3) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 3)" ( (binary_expression "*(uint *)(param_1 + 0x10) & 3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" { (if_statement "if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" { (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }) (else_clause "else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" else (compound_statement "{\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" { (expression_statement "iVar1 = FUN_0002997c();" (assignment_expression "iVar1 = FUN_0002997c()" identifier = (call_expression "FUN_0002997c()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" if (parenthesized_expression "((param_3 != 0) && (iVar1 == 0))" ( (binary_expression "(param_3 != 0) && (iVar1 == 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" { (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar3 + 0xc)" * (cast_expression "(code **)(*piVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00029a88;" goto statement_identifier ;) })) }))) })) (return_statement "return;" return ;) })) })) (labeled_statement "LAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" statement_identifier : (expression_statement "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "(piVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) || (parenthesized_expression ( (binary_expression IDENT >= IDENT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT < IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) })) (return_statement return ;) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00029a1c(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" (identifier "FUN_00029a1c") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  code *UNRECOVERED_JUMPTABLE;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = *(int *)(param_1 + 8);\n  uVar4 = *(uint *)(param_1 + 0xc);\n  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }\nLAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "code *UNRECOVERED_JUMPTABLE;" (type_identifier "code") (pointer_declarator "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0xc)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" (identifier "UNRECOVERED_JUMPTABLE") (= "=") (pointer_expression "*(code **)(*piVar3 + 0xc)" (* "*") (cast_expression "(code **)(*piVar3 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0xc)" (( "(") (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4))))" (( "(") (binary_expression "(param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))" (parenthesized_expression "(param_5 < iVar1)" (( "(") (binary_expression "param_5 < iVar1" (identifier "param_5") (< "<") (identifier "iVar1")) () ")")) (|| "||") (parenthesized_expression "((iVar1 == param_5 && (param_6 < uVar4)))" (( "(") (parenthesized_expression "(iVar1 == param_5 && (param_6 < uVar4))" (( "(") (binary_expression "iVar1 == param_5 && (param_6 < uVar4)" (binary_expression "iVar1 == param_5" (identifier "iVar1") (== "==") (identifier "param_5")) (&& "&&") (parenthesized_expression "(param_6 < uVar4)" (( "(") (binary_expression "param_6 < uVar4" (identifier "param_6") (< "<") (identifier "uVar4")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar5 = param_3 + param_6;\n    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;\n    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }\n  }" ({ "{") (expression_statement "uVar5 = param_3 + param_6;" (assignment_expression "uVar5 = param_3 + param_6" (identifier "uVar5") (= "=") (binary_expression "param_3 + param_6" (identifier "param_3") (+ "+") (identifier "param_6"))) (; ";")) (expression_statement "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;" (assignment_expression "iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" (identifier "iVar2") (= "=") (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5" (binary_expression "(uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f)" (call_expression "(uint)(uVar5 < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < param_3)" (( "(") (binary_expression "uVar5 < param_3" (identifier "uVar5") (< "<") (identifier "param_3")) () ")"))) (+ "+") (parenthesized_expression "((int)param_3 >> 0x1f)" (( "(") (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (identifier "param_5"))) (; ";")) (if_statement "if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" (if "if") (parenthesized_expression "((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4))))" (( "(") (binary_expression "(iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))" (parenthesized_expression "(iVar1 <= iVar2)" (( "(") (binary_expression "iVar1 <= iVar2" (identifier "iVar1") (<= "<=") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "((iVar1 != iVar2 || (uVar5 >= uVar4)))" (( "(") (parenthesized_expression "(iVar1 != iVar2 || (uVar5 >= uVar4))" (( "(") (binary_expression "iVar1 != iVar2 || (uVar5 >= uVar4)" (binary_expression "iVar1 != iVar2" (identifier "iVar1") (!= "!=") (identifier "iVar2")) (|| "||") (parenthesized_expression "(uVar5 >= uVar4)" (( "(") (binary_expression "uVar5 >= uVar4" (identifier "uVar5") (>= ">=") (identifier "uVar4")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      iVar2 = uVar4 - param_6;\n      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);\n      if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }\n      return;\n    }" ({ "{") (expression_statement "iVar2 = uVar4 - param_6;" (assignment_expression "iVar2 = uVar4 - param_6" (identifier "iVar2") (= "=") (binary_expression "uVar4 - param_6" (identifier "uVar4") (- "-") (identifier "param_6"))) (; ";")) (expression_statement "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);" (assignment_expression "iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" (identifier "iVar1") (= "=") (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" (( "(") (pointer_expression "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) () ")")) (argument_list "(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6)" (( "(") (identifier "piVar3") (, ",") (identifier "param_2") (, ",") (identifier "iVar2") (, ",") (binary_expression "uVar5 < uVar4" (identifier "uVar5") (< "<") (identifier "uVar4")) (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        piVar3 = *(int **)(param_1 + 4);\n        param_3 = param_3 - iVar2;\n        param_2 = param_2 + iVar2;\n        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n      }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar2" (identifier "param_3") (- "-") (identifier "iVar2"))) (; ";")) (expression_statement "param_2 = param_2 + iVar2;" (assignment_expression "param_2 = param_2 + iVar2" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar2" (identifier "param_2") (+ "+") (identifier "iVar2"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x10) & 3) == 0) {\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }\n        else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 3) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x10) & 3) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x10) & 3" (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" ({ "{") (if_statement "if (param_3 != 0) {\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" ({ "{") (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" (identifier "UNRECOVERED_JUMPTABLE") (= "=") (pointer_expression "*(code **)(*piVar3 + 0xc)" (* "*") (cast_expression "(code **)(*piVar3 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0xc)" (( "(") (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (goto_statement "goto LAB_00029a88;" (goto "goto") (statement_identifier "LAB_00029a88") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" (else "else") (compound_statement "{\n          iVar1 = FUN_0002997c();\n          if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }\n        }" ({ "{") (expression_statement "iVar1 = FUN_0002997c();" (assignment_expression "iVar1 = FUN_0002997c()" (identifier "iVar1") (= "=") (call_expression "FUN_0002997c()" (identifier "FUN_0002997c") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((param_3 != 0) && (iVar1 == 0)) {\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" (if "if") (parenthesized_expression "((param_3 != 0) && (iVar1 == 0))" (( "(") (binary_expression "(param_3 != 0) && (iVar1 == 0)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 4);\n            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);\n            goto LAB_00029a88;\n          }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);" (assignment_expression "UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc)" (identifier "UNRECOVERED_JUMPTABLE") (= "=") (pointer_expression "*(code **)(*piVar3 + 0xc)" (* "*") (cast_expression "(code **)(*piVar3 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0xc)" (( "(") (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (goto_statement "goto LAB_00029a88;" (goto "goto") (statement_identifier "LAB_00029a88") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00029a88:\n                    \n                    \n  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" (statement_identifier "LAB_00029a88") (: ":") (expression_statement "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);" (call_expression "(*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3)" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" (( "(") (pointer_expression "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) () ")")) (argument_list "(piVar3,param_2,param_3)" (( "(") (identifier "piVar3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *p,void *pContent,int var_3,type_2 var_5)

{
  int var_1;
  int var_4;
  type_3 *id;
  type_4 var_2;
  type_5 *UNRECOVERED_JUMPTABLE;
  
  id = p->pFd;
  var_1 = *(int *)&p->iSyncPoint;
  var_2 = (type_4)p->iSyncPoint;
  UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
  if ((var_5._0_4_ < var_1) || ((var_1 == var_5._0_4_ && (var_5._4_4_ < var_2)))) {
    var_4 = (type_4)(var_3 + var_5._4_4_ < (type_4)var_3) + (var_3 >> 0x1f) + var_5._0_4_;
    if ((var_1 <= var_4) && ((var_1 != var_4 || (var_2 <= var_3 + var_5._4_4_)))) {
      var_4 = var_2 - var_5._4_4_;
      var_1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,var_4,var_5);
      if (var_1 == 0) {
        id = p->pFd;
        var_2 = p->syncFlags & 3;
        var_5 = var_5 + var_4;
        var_3 = var_3 - var_4;
        pContent = (void *)((int)pContent + var_4);
        if (var_2 == 0) {
          if (var_3 != 0) {
            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
            goto LAB_00029a88;
          }
        }
        else {
          var_1 = var_6(id,var_2);
          if ((var_3 != 0) && (var_1 == 0)) {
            id = p->pFd;
            UNRECOVERED_JUMPTABLE = id->pMethods->xWrite;
            goto LAB_00029a88;
          }
        }
      }
      return var_1;
    }
  }
LAB_00029a88:
                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  var_1 = (*UNRECOVERED_JUMPTABLE)(id,pContent,var_3,var_5);
  return var_1;
}


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

void MASKED(int param_1,int param_2,uint param_3,undefined4 param_4,int param_5,uint param_6)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  code *UNRECOVERED_JUMPTABLE;
  
  piVar3 = *(int **)(param_1 + 4);
  iVar1 = *(int *)(param_1 + 8);
  uVar4 = *(uint *)(param_1 + 0xc);
  UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
  if ((param_5 < iVar1) || ((iVar1 == param_5 && (param_6 < uVar4)))) {
    uVar5 = param_3 + param_6;
    iVar2 = (uint)(uVar5 < param_3) + ((int)param_3 >> 0x1f) + param_5;
    if ((iVar1 <= iVar2) && ((iVar1 != iVar2 || (uVar5 >= uVar4)))) {
      iVar2 = uVar4 - param_6;
      iVar1 = (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,iVar2,uVar5 < uVar4,param_5,param_6);
      if (iVar1 == 0) {
        piVar3 = *(int **)(param_1 + 4);
        param_3 = param_3 - iVar2;
        param_2 = param_2 + iVar2;
        if ((*(uint *)(param_1 + 0x10) & 3) == 0) {
          if (param_3 != 0) {
            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
            goto LAB_00029a88;
          }
        }
        else {
          iVar1 = FUN_0002997c();
          if ((param_3 != 0) && (iVar1 == 0)) {
            piVar3 = *(int **)(param_1 + 4);
            UNRECOVERED_JUMPTABLE = *(code **)(*piVar3 + 0xc);
            goto LAB_00029a88;
          }
        }
      }
      return;
    }
  }
LAB_00029a88:
                    /* WARNING: Could not recover jumptable at 0x00029ab0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*UNRECOVERED_JUMPTABLE)(piVar3,param_2,param_3);
  return;
}

