
int sqlite3VdbeMemFromBtree(BtCursor *pCur,u32 offset,u32 amt,Mem *pMem)

{
  longlong lVar1;
  int iVar2;
  BtShared *pBVar3;
  uchar *pBuf;
  
  pBVar3 = pCur->pBt;
  pMem->flags = 1;
  lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage;
  if ((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))) {
                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");
    return iVar2;
  }
  if (pMem->szMalloc < (int)(amt + 1)) {
    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);
    if (iVar2 != 0) {
      return iVar2;
    }
    pBuf = (uchar *)pMem->z;
  }
  else {
    pBuf = (uchar *)pMem->zMalloc;
    pMem->z = (char *)pBuf;
  }
  iVar2 = accessPayload(pCur,offset,amt,pBuf,0);
  if (iVar2 != 0) {
    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {
      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);
    }
    return iVar2;
  }
  pMem->z[amt] = '\0';
  pMem->n = amt;
  pMem->flags = 0x10;
  return 0;
}



int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)

{
  longlong lVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = *(int *)(param_1 + 0x14);
  *(undefined2 *)(param_4 + 8) = 1;
  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);
  if ((lVar1 < 0) ||
     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {
    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");
    return iVar2;
  }
  if (*(int *)(param_4 + 0x18) < param_3 + 1) {
    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);
    if (iVar2 != 0) {
      return iVar2;
    }
    uVar3 = *(undefined4 *)(param_4 + 0x10);
  }
  else {
    uVar3 = *(undefined4 *)(param_4 + 0x14);
    *(undefined4 *)(param_4 + 0x10) = uVar3;
  }
  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);
  if (iVar2 != 0) {
    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {
      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);
    }
    return iVar2;
  }
  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;
  *(int *)(param_4 + 0xc) = param_3;
  *(undefined2 *)(param_4 + 8) = 0x10;
  return 0;
}


lui gp,0x8
addiu gp,gp,-0x6b48
addu gp,gp,t9
addiu sp,sp,-0x40
lw v1,0x14(a0)
li v0,0x1
sw gp,0x18(sp)
sw ra,0x3c(sp)
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
sw s0,0x2c(sp)
sh v0,0x8(a3)
lw v0,0x24(v1)
lw v1,0x30(v1)
multu v0,v1
mfhi v0
bltz v0,0x00083f04
_addu t0,a1,a2
beq v0,zero,0x00083ef8
_mflo v1
lw v0,0x18(a3)
or s3,a1,zero
addiu a1,a2,0x1
or s1,a2,zero
slt v0,v0,a1
or s0,a3,zero
bne v0,zero,0x00083ed4
_or s2,a0,zero
lw a3,0x14(a3)
sw a3,0x10(s0)
lw t9,-0x7fac(gp)
or a2,s1,zero
sw zero,0x10(sp)
or a1,s3,zero
addiu t9,t9,0x25f8
bal 0x000825f8
_or a0,s2,zero
beq v0,zero,0x00083f30
_lw gp,0x18(sp)
lhu v1,0x8(s0)
andi v1,v1,0x2400
bne v1,zero,0x00083ea4
_lw t9,-0x7fb4(gp)
lw v1,0x18(s0)
beq v1,zero,0x00083ebc
_lw ra,0x3c(sp)
or a0,s0,zero
addiu t9,t9,-0x70e4
jalr t9
_sw v0,0x24(sp)
lw v0,0x24(sp)
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7fb8(gp)
or a2,zero,zero
addiu t9,t9,-0x5ae8
jalr t9
_or a0,a3,zero
bne v0,zero,0x00083eb8
_lw gp,0x18(sp)
b 0x00083e64
_lw a3,0x10(s0)
sltu t0,v1,t0
beq t0,zero,0x00083e3c
_nop
lw t9,-0x7fb8(gp)
lui a0,0x1
lw ra,0x3c(sp)
lw s3,0x38(sp)
addiu a0,a0,0x2cd7
lw s2,0x34(sp)
addiu t9,t9,0x4904
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr t9
_addiu sp,sp,0x40
lw v1,0x10(s0)
addu v1,v1,s1
sb zero,0x0(v1)
li v1,0x10
sw s1,0xc(s0)
sh v1,0x8(s0)
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}\n\n" (function_definition "int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" primitive_type (function_declarator "FUN_00083de8(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(param_4 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 1" (pointer_expression "*(undefined2 *)(param_4 + 8)" * (cast_expression "(undefined2 *)(param_4 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);" (assignment_expression "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" identifier = (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24)" (parenthesized_expression "(ulonglong)" ( identifier )) * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) * (parenthesized_expression "(ulonglong)" ( identifier ))) * (cast_expression "(uint *)(iVar2 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" if (parenthesized_expression "((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))))" ( (binary_expression "(lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" ( (parenthesized_expression "((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))" ( (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))" (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0" (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) && (parenthesized_expression "((uint)lVar1 < (uint)(param_2 + param_3))" ( (binary_expression "(uint)lVar1 < (uint)(param_2 + param_3)" (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier) < (call_expression "(uint)(param_2 + param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ))) )) ))) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + 0x4904)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + 0x4904)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + 0x4904)" ( (binary_expression "PTR_LAB_000f52e8 + 0x4904" identifier + number_literal) )))) )) (argument_list "("me")" ( (string_literal ""me"" " string_content ") )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x18) < param_3 + 1)" ( (binary_expression "*(int *)(param_4 + 0x18) < param_3 + 1" (pointer_expression "*(int *)(param_4 + 0x18)" * (cast_expression "(int *)(param_4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) < (binary_expression "param_3 + 1" identifier + number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x5ae8)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x5ae8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + -0x5ae8)" ( (binary_expression "PTR_LAB_000f52e8 + -0x5ae8" identifier + number_literal) )))) )) (argument_list "(param_4,param_3 + 1,0)" ( identifier , (binary_expression "param_3 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x10)" * (cast_expression "(undefined4 *)(param_4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" else (compound_statement "{\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x14);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x14)" * (cast_expression "(undefined4 *)(param_4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_4 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_4 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_4 + 0x10)" * (cast_expression "(undefined4 *)(param_4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);" (assignment_expression "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0)" identifier = (call_expression "FUN_000825f8(param_1,param_2,param_3,uVar3,0)" identifier (argument_list "(param_1,param_2,param_3,uVar3,0)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" { (if_statement "if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" if (parenthesized_expression "(((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_4 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_4 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_4 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_4 + 8)" * (cast_expression "(ushort *)(param_4 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(param_4 + 0x18) != 0)" ( (binary_expression "*(int *)(param_4 + 0x18) != 0" (pointer_expression "*(int *)(param_4 + 0x18)" * (cast_expression "(int *)(param_4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x70e4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x70e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x70e4)" ( (binary_expression "PTR_LAB_000f52ec + -0x70e4" identifier + number_literal) )))) )) (argument_list "(param_4)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" * (cast_expression "(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_4 + 0x10) + param_3)" ( (binary_expression "*(int *)(param_4 + 0x10) + param_3" (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_4 + 0xc) = param_3;" (assignment_expression "*(int *)(param_4 + 0xc) = param_3" (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_4 + 8) = 0x10;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 0x10" (pointer_expression "*(undefined2 *)(param_4 + 8)" * (cast_expression "(undefined2 *)(param_4 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3VdbeMemFromBtree(BtCursor *pCur,u32 offset,u32 amt,Mem *pMem)\n\n{\n  longlong lVar1;\n  int iVar2;\n  BtShared *pBVar3;\n  uchar *pBuf;\n  \n  pBVar3 = pCur->pBt;\n  pMem->flags = 1;\n  lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage;\n  if ((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))) {\n                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (pMem->szMalloc < (int)(amt + 1)) {\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    pBuf = (uchar *)pMem->z;\n  }\n  else {\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }\n  iVar2 = accessPayload(pCur,offset,amt,pBuf,0);\n  if (iVar2 != 0) {\n    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }\n    return iVar2;\n  }\n  pMem->z[amt] = '\0';\n  pMem->n = amt;\n  pMem->flags = 0x10;\n  return 0;\n}\n\n" (function_definition "int sqlite3VdbeMemFromBtree(BtCursor *pCur,u32 offset,u32 amt,Mem *pMem)\n\n{\n  longlong lVar1;\n  int iVar2;\n  BtShared *pBVar3;\n  uchar *pBuf;\n  \n  pBVar3 = pCur->pBt;\n  pMem->flags = 1;\n  lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage;\n  if ((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))) {\n                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (pMem->szMalloc < (int)(amt + 1)) {\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    pBuf = (uchar *)pMem->z;\n  }\n  else {\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }\n  iVar2 = accessPayload(pCur,offset,amt,pBuf,0);\n  if (iVar2 != 0) {\n    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }\n    return iVar2;\n  }\n  pMem->z[amt] = '\0';\n  pMem->n = amt;\n  pMem->flags = 0x10;\n  return 0;\n}" primitive_type (function_declarator "sqlite3VdbeMemFromBtree(BtCursor *pCur,u32 offset,u32 amt,Mem *pMem)" identifier (parameter_list "(BtCursor *pCur,u32 offset,u32 amt,Mem *pMem)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "u32 offset" type_identifier identifier) , (parameter_declaration "u32 amt" type_identifier identifier) , (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  BtShared *pBVar3;\n  uchar *pBuf;\n  \n  pBVar3 = pCur->pBt;\n  pMem->flags = 1;\n  lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage;\n  if ((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))) {\n                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (pMem->szMalloc < (int)(amt + 1)) {\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    pBuf = (uchar *)pMem->z;\n  }\n  else {\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }\n  iVar2 = accessPayload(pCur,offset,amt,pBuf,0);\n  if (iVar2 != 0) {\n    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }\n    return iVar2;\n  }\n  pMem->z[amt] = '\0';\n  pMem->n = amt;\n  pMem->flags = 0x10;\n  return 0;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "BtShared *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "uchar *pBuf;" type_identifier (pointer_declarator "*pBuf" * identifier) ;) (expression_statement "pBVar3 = pCur->pBt;" (assignment_expression "pBVar3 = pCur->pBt" identifier = (field_expression "pCur->pBt" identifier -> field_identifier)) ;) (expression_statement "pMem->flags = 1;" (assignment_expression "pMem->flags = 1" (field_expression "pMem->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage;" (assignment_expression "lVar1 = (ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage" identifier = (binary_expression "(ulonglong)pBVar3->pageSize * (ulonglong)pBVar3->nPage" (cast_expression "(ulonglong)pBVar3->pageSize" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "pBVar3->pageSize" identifier -> field_identifier)) * (cast_expression "(ulonglong)pBVar3->nPage" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "pBVar3->nPage" identifier -> field_identifier)))) ;) (if_statement "if ((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))) {\n                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" if (parenthesized_expression "((lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt))))" ( (binary_expression "(lVar1 < 0) || (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))" (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)))" ( (parenthesized_expression "((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt))" ( (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < offset + amt)" (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0" (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) && (parenthesized_expression "((uint)lVar1 < offset + amt)" ( (binary_expression "(uint)lVar1 < offset + amt" (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier) < (binary_expression "offset + amt" identifier + identifier)) ))) )) ))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" { comment comment (expression_statement "iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me");" (assignment_expression "iVar2 = (*(code *)(PTR_DAT_000f52e8 + 0x4904))("me")" identifier = (call_expression "(*(code *)(PTR_DAT_000f52e8 + 0x4904))("me")" (parenthesized_expression "(*(code *)(PTR_DAT_000f52e8 + 0x4904))" ( (pointer_expression "*(code *)(PTR_DAT_000f52e8 + 0x4904)" * (cast_expression "(code *)(PTR_DAT_000f52e8 + 0x4904)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52e8 + 0x4904)" ( (binary_expression "PTR_DAT_000f52e8 + 0x4904" identifier + number_literal) )))) )) (argument_list "("me")" ( (string_literal ""me"" " string_content ") )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (pMem->szMalloc < (int)(amt + 1)) {\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    pBuf = (uchar *)pMem->z;\n  }\n  else {\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }" if (parenthesized_expression "(pMem->szMalloc < (int)(amt + 1))" ( (binary_expression "pMem->szMalloc < (int)(amt + 1)" (field_expression "pMem->szMalloc" identifier -> field_identifier) < (cast_expression "(int)(amt + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(amt + 1)" ( (binary_expression "amt + 1" identifier + number_literal) )))) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    pBuf = (uchar *)pMem->z;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0);" (assignment_expression "iVar2 = (*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0)" identifier = (call_expression "(*(code *)(PTR_DAT_000f52e8 + -0x5ae8))(pMem,amt + 1,0)" (parenthesized_expression "(*(code *)(PTR_DAT_000f52e8 + -0x5ae8))" ( (pointer_expression "*(code *)(PTR_DAT_000f52e8 + -0x5ae8)" * (cast_expression "(code *)(PTR_DAT_000f52e8 + -0x5ae8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52e8 + -0x5ae8)" ( (binary_expression "PTR_DAT_000f52e8 + -0x5ae8" identifier + number_literal) )))) )) (argument_list "(pMem,amt + 1,0)" ( identifier , (binary_expression "amt + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "pBuf = (uchar *)pMem->z;" (assignment_expression "pBuf = (uchar *)pMem->z" identifier = (cast_expression "(uchar *)pMem->z" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMem->z" identifier -> field_identifier))) ;) }) (else_clause "else {\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }" else (compound_statement "{\n    pBuf = (uchar *)pMem->zMalloc;\n    pMem->z = (char *)pBuf;\n  }" { (expression_statement "pBuf = (uchar *)pMem->zMalloc;" (assignment_expression "pBuf = (uchar *)pMem->zMalloc" identifier = (cast_expression "(uchar *)pMem->zMalloc" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMem->zMalloc" identifier -> field_identifier))) ;) (expression_statement "pMem->z = (char *)pBuf;" (assignment_expression "pMem->z = (char *)pBuf" (field_expression "pMem->z" identifier -> field_identifier) = (cast_expression "(char *)pBuf" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "iVar2 = accessPayload(pCur,offset,amt,pBuf,0);" (assignment_expression "iVar2 = accessPayload(pCur,offset,amt,pBuf,0)" identifier = (call_expression "accessPayload(pCur,offset,amt,pBuf,0)" identifier (argument_list "(pCur,offset,amt,pBuf,0)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }\n    return iVar2;\n  }" { (if_statement "if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }" if (parenthesized_expression "(((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0))" ( (binary_expression "((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)" (parenthesized_expression "((pMem->flags & 0x2400) != 0)" ( (binary_expression "(pMem->flags & 0x2400) != 0" (parenthesized_expression "(pMem->flags & 0x2400)" ( (binary_expression "pMem->flags & 0x2400" (field_expression "pMem->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) || (parenthesized_expression "(pMem->szMalloc != 0)" ( (binary_expression "pMem->szMalloc != 0" (field_expression "pMem->szMalloc" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(pMem)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x70e4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x70e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x70e4)" ( (binary_expression "PTR_LAB_000f52ec + -0x70e4" identifier + number_literal) )))) )) (argument_list "(pMem)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "pMem->z[amt] = '\0';" (assignment_expression "pMem->z[amt] = '\0'" (subscript_expression "pMem->z[amt]" (field_expression "pMem->z" identifier -> field_identifier) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pMem->n = amt;" (assignment_expression "pMem->n = amt" (field_expression "pMem->n" identifier -> field_identifier) = identifier) ;) (expression_statement "pMem->flags = 0x10;" (assignment_expression "pMem->flags = 0x10" (field_expression "pMem->flags" identifier -> field_identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}\n\n" (function_definition "int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" primitive_type (function_declarator "FUN_00083de8(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(param_4 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 1" (pointer_expression "*(undefined2 *)(param_4 + 8)" * (cast_expression "(undefined2 *)(param_4 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);" (assignment_expression "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" identifier = (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24)" (parenthesized_expression "(ulonglong)" ( identifier )) * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) * (parenthesized_expression "(ulonglong)" ( identifier ))) * (cast_expression "(uint *)(iVar2 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" if (parenthesized_expression "((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))))" ( (binary_expression "(lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" ( (parenthesized_expression "((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))" ( (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))" (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0" (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) && (parenthesized_expression "((uint)lVar1 < (uint)(param_2 + param_3))" ( (binary_expression "(uint)lVar1 < (uint)(param_2 + param_3)" (cast_expression "(uint)lVar1" ( (type_descriptor "uint" type_identifier) ) identifier) < (call_expression "(uint)(param_2 + param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ))) )) ))) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + 0x4904)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + 0x4904)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + 0x4904)" ( (binary_expression "PTR_LAB_000f52e8 + 0x4904" identifier + number_literal) )))) )) (argument_list "("me")" ( (string_literal ""me"" " string_content ") )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x18) < param_3 + 1)" ( (binary_expression "*(int *)(param_4 + 0x18) < param_3 + 1" (pointer_expression "*(int *)(param_4 + 0x18)" * (cast_expression "(int *)(param_4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) < (binary_expression "param_3 + 1" identifier + number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x5ae8)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x5ae8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + -0x5ae8)" ( (binary_expression "PTR_LAB_000f52e8 + -0x5ae8" identifier + number_literal) )))) )) (argument_list "(param_4,param_3 + 1,0)" ( identifier , (binary_expression "param_3 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x10)" * (cast_expression "(undefined4 *)(param_4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" else (compound_statement "{\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x14);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x14)" * (cast_expression "(undefined4 *)(param_4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_4 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_4 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_4 + 0x10)" * (cast_expression "(undefined4 *)(param_4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);" (assignment_expression "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0)" identifier = (call_expression "FUN_000825f8(param_1,param_2,param_3,uVar3,0)" identifier (argument_list "(param_1,param_2,param_3,uVar3,0)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" { (if_statement "if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" if (parenthesized_expression "(((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_4 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_4 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_4 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_4 + 8)" * (cast_expression "(ushort *)(param_4 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(param_4 + 0x18) != 0)" ( (binary_expression "*(int *)(param_4 + 0x18) != 0" (pointer_expression "*(int *)(param_4 + 0x18)" * (cast_expression "(int *)(param_4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x70e4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x70e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x70e4)" ( (binary_expression "PTR_LAB_000f52ec + -0x70e4" identifier + number_literal) )))) )) (argument_list "(param_4)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" * (cast_expression "(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_4 + 0x10) + param_3)" ( (binary_expression "*(int *)(param_4 + 0x10) + param_3" (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_4 + 0xc) = param_3;" (assignment_expression "*(int *)(param_4 + 0xc) = param_3" (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_4 + 8) = 0x10;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 0x10" (pointer_expression "*(undefined2 *)(param_4 + 8)" * (cast_expression "(undefined2 *)(param_4 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (string_literal " string_content ") )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (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) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00083de8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00083de8(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_00083de8") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  *(undefined2 *)(param_4 + 8) = 1;\n  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);\n  if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }\n  if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }\n  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);\n  if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }\n  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;\n  *(int *)(param_4 + 0xc) = param_3;\n  *(undefined2 *)(param_4 + 8) = 0x10;\n  return 0;\n}" ({ "{") (declaration "longlong lVar1;" (type_identifier "longlong") (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 1" (pointer_expression "*(undefined2 *)(param_4 + 8)" (* "*") (cast_expression "(undefined2 *)(param_4 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);" (assignment_expression "lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" (identifier "lVar1") (= "=") (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)" (binary_expression "(ulonglong)*(uint *)(iVar2 + 0x24)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (* "*") (cast_expression "(uint *)(iVar2 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) (* "*") (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")"))) (* "*") (cast_expression "(uint *)(iVar2 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if ((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" (if "if") (parenthesized_expression "((lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))))" (( "(") (binary_expression "(lVar1 < 0) ||\n     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" (parenthesized_expression "(lVar1 < 0)" (( "(") (binary_expression "lVar1 < 0" (identifier "lVar1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))" (( "(") (parenthesized_expression "((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3)))" (( "(") (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))" (binary_expression "(int)((ulonglong)lVar1 >> 0x20) == 0" (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar1")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "((uint)lVar1 < (uint)(param_2 + param_3))" (( "(") (binary_expression "(uint)lVar1 < (uint)(param_2 + param_3)" (cast_expression "(uint)lVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar1")) (< "<") (call_expression "(uint)(param_2 + param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 + param_3)" (( "(") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) () ")")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" (identifier "iVar2") (= "=") (call_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))("me")" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + 0x4904))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52e8 + 0x4904)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52e8 + 0x4904)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52e8 + 0x4904)" (( "(") (binary_expression "PTR_LAB_000f52e8 + 0x4904" (identifier "PTR_LAB_000f52e8") (+ "+") (number_literal "0x4904")) () ")")))) () ")")) (argument_list "("me")" (( "(") (string_literal ""me"" (" """) (string_content "me") (" """)) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_4 + 0x18) < param_3 + 1) {\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }\n  else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_4 + 0x18) < param_3 + 1)" (( "(") (binary_expression "*(int *)(param_4 + 0x18) < param_3 + 1" (pointer_expression "*(int *)(param_4 + 0x18)" (* "*") (cast_expression "(int *)(param_4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x18)" (( "(") (binary_expression "param_4 + 0x18" (identifier "param_4") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    uVar3 = *(undefined4 *)(param_4 + 0x10);\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x5ae8))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x5ae8)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x5ae8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52e8 + -0x5ae8)" (( "(") (binary_expression "PTR_LAB_000f52e8 + -0x5ae8" (identifier "PTR_LAB_000f52e8") (+ "+") (number_literal "-0x5ae8")) () ")")))) () ")")) (argument_list "(param_4,param_3 + 1,0)" (( "(") (identifier "param_4") (, ",") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar2;\n    }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_4 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x10)" (( "(") (binary_expression "param_4 + 0x10" (identifier "param_4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" (else "else") (compound_statement "{\n    uVar3 = *(undefined4 *)(param_4 + 0x14);\n    *(undefined4 *)(param_4 + 0x10) = uVar3;\n  }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(param_4 + 0x14);" (assignment_expression "uVar3 = *(undefined4 *)(param_4 + 0x14)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_4 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_4 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_4 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_4 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x10)" (( "(") (binary_expression "param_4 + 0x10" (identifier "param_4") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);" (assignment_expression "iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0)" (identifier "iVar2") (= "=") (call_expression "FUN_000825f8(param_1,param_2,param_3,uVar3,0)" (identifier "FUN_000825f8") (argument_list "(param_1,param_2,param_3,uVar3,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "uVar3") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }\n    return iVar2;\n  }" ({ "{") (if_statement "if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" (if "if") (parenthesized_expression "(((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0))" (( "(") (binary_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_4 + 8) & 0x2400) != 0)" (( "(") (binary_expression "(*(ushort *)(param_4 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_4 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(param_4 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_4 + 8)" (* "*") (cast_expression "(ushort *)(param_4 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_4 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(param_4 + 0x18) != 0" (pointer_expression "*(int *)(param_4 + 0x18)" (* "*") (cast_expression "(int *)(param_4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x18)" (( "(") (binary_expression "param_4 + 0x18" (identifier "param_4") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);\n    }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x70e4))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x70e4)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52ec + -0x70e4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52ec + -0x70e4)" (( "(") (binary_expression "PTR_LAB_000f52ec + -0x70e4" (identifier "PTR_LAB_000f52ec") (+ "+") (number_literal "-0x70e4")) () ")")))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" (* "*") (cast_expression "(undefined1 *)(*(int *)(param_4 + 0x10) + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_4 + 0x10) + param_3)" (( "(") (binary_expression "*(int *)(param_4 + 0x10) + param_3" (pointer_expression "*(int *)(param_4 + 0x10)" (* "*") (cast_expression "(int *)(param_4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x10)" (( "(") (binary_expression "param_4 + 0x10" (identifier "param_4") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_4 + 0xc) = param_3;" (assignment_expression "*(int *)(param_4 + 0xc) = param_3" (pointer_expression "*(int *)(param_4 + 0xc)" (* "*") (cast_expression "(int *)(param_4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 8) = 0x10;" (assignment_expression "*(undefined2 *)(param_4 + 8) = 0x10" (pointer_expression "*(undefined2 *)(param_4 + 8)" (* "*") (cast_expression "(undefined2 *)(param_4 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0x10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pCur,type_2 var_2,type_2 var_3,type_3 *pMem)

{
  type_4 var_1;
  int var_5;
  type_5 *pBVar3;
  type_6 *pBuf;
  
  pBVar3 = pCur->pBt;
  pMem->flags = 1;
  var_1 = (type_7)pBVar3->pageSize * (type_7)pBVar3->nPage;
  if ((var_1 < 0) || (((int)((type_7)var_1 >> 0x20) == 0 && ((type_8)var_1 < var_2 + var_3)))) {
                    /* WARNING: Could not recover jumptable at 0x00083f28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    var_5 = (*(type_9 *)(var_4 + 0x4904))("me");
    return var_5;
  }
  if (pMem->szMalloc < (int)(var_3 + 1)) {
    var_5 = (*(type_9 *)(var_4 + -0x5ae8))(pMem,var_3 + 1,0);
    if (var_5 != 0) {
      return var_5;
    }
    pBuf = (type_6 *)pMem->z;
  }
  else {
    pBuf = (type_6 *)pMem->zMalloc;
    pMem->z = (char *)pBuf;
  }
  var_5 = var_6(pCur,var_2,var_3,pBuf,0);
  if (var_5 != 0) {
    if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {
      (*(type_9 *)(var_7 + -0x70e4))(pMem);
    }
    return var_5;
  }
  pMem->z[var_3] = '\0';
  pMem->n = var_3;
  pMem->flags = 0x10;
  return 0;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (string_literal (string_content)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (identifier)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))))

int MASKED(int param_1,int param_2,int param_3,int param_4)

{
  longlong lVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = *(int *)(param_1 + 0x14);
  *(undefined2 *)(param_4 + 8) = 1;
  lVar1 = (ulonglong)*(uint *)(iVar2 + 0x24) * (ulonglong)*(uint *)(iVar2 + 0x30);
  if ((lVar1 < 0) ||
     (((int)((ulonglong)lVar1 >> 0x20) == 0 && ((uint)lVar1 < (uint)(param_2 + param_3))))) {
    iVar2 = (*(code *)(PTR_LAB_000f52e8 + 0x4904))("me");
    return iVar2;
  }
  if (*(int *)(param_4 + 0x18) < param_3 + 1) {
    iVar2 = (*(code *)(PTR_LAB_000f52e8 + -0x5ae8))(param_4,param_3 + 1,0);
    if (iVar2 != 0) {
      return iVar2;
    }
    uVar3 = *(undefined4 *)(param_4 + 0x10);
  }
  else {
    uVar3 = *(undefined4 *)(param_4 + 0x14);
    *(undefined4 *)(param_4 + 0x10) = uVar3;
  }
  iVar2 = FUN_000825f8(param_1,param_2,param_3,uVar3,0);
  if (iVar2 != 0) {
    if (((*(ushort *)(param_4 + 8) & 0x2400) != 0) || (*(int *)(param_4 + 0x18) != 0)) {
      (*(code *)(PTR_LAB_000f52ec + -0x70e4))(param_4);
    }
    return iVar2;
  }
  *(undefined1 *)(*(int *)(param_4 + 0x10) + param_3) = 0;
  *(int *)(param_4 + 0xc) = param_3;
  *(undefined2 *)(param_4 + 8) = 0x10;
  return 0;
}

