
int sqlite3BtreeSetSpillSize(Btree *p,int mxPage)

{
  bool bVar1;
  int iVar2;
  int extraout_v1;
  int extraout_v1_00;
  uint uVar3;
  uint mxPage_00;
  BtShared *pBVar4;
  PCache *pPVar5;
  
  pBVar4 = p->pBt;
  if (p->sharable != '\0') {
    sqlite3BtreeEnter(p);
  }
  pPVar5 = pBVar4->pPager->pPCache;
  if (mxPage == 0) {
    mxPage = pPVar5->szSpill;
  }
  else if (mxPage < 0) {
    (*(code *)PTR___divdi3_0015b6a0)
              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,
               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);
    pPVar5->szSpill = extraout_v1_00;
    mxPage = extraout_v1_00;
  }
  else {
    pPVar5->szSpill = mxPage;
  }
  iVar2 = pPVar5->szCache;
  mxPage_00 = -iVar2;
  if (iVar2 < 0) {
    bVar1 = mxPage_00 != 0;
    uVar3 = mxPage_00 >> 0x16;
    mxPage_00 = iVar2 * -0x400;
    (*(code *)PTR___divdi3_0015b6a0)
              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,
               pPVar5->szPage + pPVar5->szExtra >> 0x1f);
    iVar2 = extraout_v1;
  }
  if (mxPage <= iVar2) {
    mxPage = iVar2;
  }
  if (p->sharable != '\0') {
    sqlite3BtreeSetCacheSize(p,mxPage_00);
  }
  return mxPage;
}



int FUN_00034648(int param_1,int param_2)

{
  int iVar1;
  int extraout_v1;
  int extraout_v1_00;
  int *piVar2;
  int iVar3;
  
  piVar2 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00033dcc();
  }
  iVar3 = *(int *)(*piVar2 + 0xd4);
  if (param_2 == 0) {
    param_2 = *(int *)(iVar3 + 0x14);
  }
  else if (param_2 < 0) {
    (*(code *)PTR_FUN_0015b6a0)
              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,
               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);
    *(int *)(iVar3 + 0x14) = extraout_v1_00;
    param_2 = extraout_v1_00;
  }
  else {
    *(int *)(iVar3 + 0x14) = param_2;
  }
  iVar1 = *(int *)(iVar3 + 0x10);
  if (iVar1 < 0) {
    (*(code *)PTR_FUN_0015b6a0)
              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,
               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);
    iVar1 = extraout_v1;
  }
  if (param_2 <= iVar1) {
    param_2 = iVar1;
  }
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0003452c(param_1);
  }
  return param_2;
}


lui gp,0x13
addiu gp,gp,-0x1098
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
lbu v0,0x9(a0)
beq v0,zero,0x00034694
_lw s2,0x4(a0)
lw t9,-0x7ed8(gp)
addiu t9,t9,0x3dcc
bal 0x00033dcc
_nop
lw gp,0x10(sp)
lw v0,0x0(s2)
bne s0,zero,0x00034724
_lw s2,0xd4(v0)
lw s0,0x14(s2)
lw v1,0x10(s2)
bgez v1,0x000346e8
_subu a1,zero,v1
lw a3,0x18(s2)
lw v0,0x1c(s2)
srl v1,v1,0x1f
sltu a0,zero,a1
lw t9,-0x7f10(gp)
subu v1,v1,a0
addu a3,a3,v0
srl a0,a1,0x16
sll v1,v1,0xa
sra a2,a3,0x1f
sll a1,a1,0xa
jalr t9
_or a0,a0,v1
lw gp,0x10(sp)
lbu a0,0x9(s1)
slt v0,v1,s0
beq a0,zero,0x00034708
_movz s0,v1,v0
lw t9,-0x7ed8(gp)
addiu t9,t9,0x452c
bal 0x0003452c
_or a0,s1,zero
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
bltz s0,0x00034734
_subu a1,zero,s0
b 0x000346a4
_sw s0,0x14(s2)
lw a3,0x18(s2)
lw v0,0x1c(s2)
srl s0,s0,0x1f
sltu a0,zero,a1
lw t9,-0x7f10(gp)
subu s0,s0,a0
addu a3,a3,v0
srl a0,a1,0x16
sll s0,s0,0xa
sra a2,a3,0x1f
sll a1,a1,0xa
jalr t9
_or a0,a0,s0
or s0,v1,zero
lw gp,0x10(sp)
b 0x000346a4
_sw s0,0x14(s2)
(translation_unit "int FUN_00034648(int param_1,int param_2)\n\n{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_00034648(int param_1,int param_2)\n\n{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_00034648(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_v1;" primitive_type identifier ;) (declaration "int extraout_v1_00;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = *(int **)(param_1 + 4);" (assignment_expression "piVar2 = *(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) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00033dcc();\n  }" { (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(*piVar2 + 0xd4);" (assignment_expression "iVar3 = *(int *)(*piVar2 + 0xd4)" identifier = (pointer_expression "*(int *)(*piVar2 + 0xd4)" * (cast_expression "(int *)(*piVar2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0xd4)" ( (binary_expression "*piVar2 + 0xd4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)(iVar3 + 0x14);\n  }" { (expression_statement "param_2 = *(int *)(iVar3 + 0x14);" (assignment_expression "param_2 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" else (if_statement "if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }" { (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" ( (pointer_expression "*(code *)PTR_FUN_0015b6a0" * (cast_expression "(code *)PTR_FUN_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" ( (binary_expression "(uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal) | (binary_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f))" ( (binary_expression "-(uint)(-param_2 != 0) - (param_2 >> 0x1f)" (unary_expression "-(uint)(-param_2 != 0)" - (call_expression "(uint)(-param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(-param_2 != 0)" ( (binary_expression "-param_2 != 0" (unary_expression "-param_2" - identifier) != number_literal) )))) - (parenthesized_expression "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , (binary_expression "param_2 * -0x400" identifier * number_literal) , (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) >> number_literal) ))) ;) (expression_statement "*(int *)(iVar3 + 0x14) = extraout_v1_00;" (assignment_expression "*(int *)(iVar3 + 0x14) = extraout_v1_00" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_2 = extraout_v1_00;" (assignment_expression "param_2 = extraout_v1_00" identifier = identifier) ;) }) (else_clause "else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(iVar3 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_2" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "iVar1 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" { (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" ( (pointer_expression "*(code *)PTR_FUN_0015b6a0" * (cast_expression "(code *)PTR_FUN_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" ( (binary_expression "(uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (binary_expression "(uint)-iVar1 >> 0x16" (binary_expression "(uint)-iVar1" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal) | (binary_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f))" ( (binary_expression "-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)" (unary_expression "-(uint)(-iVar1 != 0)" - (call_expression "(uint)(-iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(-iVar1 != 0)" ( (binary_expression "-iVar1 != 0" (unary_expression "-iVar1" - identifier) != number_literal) )))) - (parenthesized_expression "(iVar1 >> 0x1f)" ( (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , (binary_expression "iVar1 * -0x400" identifier * number_literal) , (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) >> number_literal) ))) ;) (expression_statement "iVar1 = extraout_v1;" (assignment_expression "iVar1 = extraout_v1" identifier = identifier) ;) })) (if_statement "if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n    param_2 = iVar1;\n  }" { (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" identifier = identifier) ;) })) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" { (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "int sqlite3BtreeSetSpillSize(Btree *p,int mxPage)\n\n{\n  bool bVar1;\n  int iVar2;\n  int extraout_v1;\n  int extraout_v1_00;\n  uint uVar3;\n  uint mxPage_00;\n  BtShared *pBVar4;\n  PCache *pPVar5;\n  \n  pBVar4 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar5 = pBVar4->pPager->pPCache;\n  if (mxPage == 0) {\n    mxPage = pPVar5->szSpill;\n  }\n  else if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }\n  iVar2 = pPVar5->szCache;\n  mxPage_00 = -iVar2;\n  if (iVar2 < 0) {\n    bVar1 = mxPage_00 != 0;\n    uVar3 = mxPage_00 >> 0x16;\n    mxPage_00 = iVar2 * -0x400;\n    (*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    iVar2 = extraout_v1;\n  }\n  if (mxPage <= iVar2) {\n    mxPage = iVar2;\n  }\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return mxPage;\n}\n\n" (function_definition "int sqlite3BtreeSetSpillSize(Btree *p,int mxPage)\n\n{\n  bool bVar1;\n  int iVar2;\n  int extraout_v1;\n  int extraout_v1_00;\n  uint uVar3;\n  uint mxPage_00;\n  BtShared *pBVar4;\n  PCache *pPVar5;\n  \n  pBVar4 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar5 = pBVar4->pPager->pPCache;\n  if (mxPage == 0) {\n    mxPage = pPVar5->szSpill;\n  }\n  else if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }\n  iVar2 = pPVar5->szCache;\n  mxPage_00 = -iVar2;\n  if (iVar2 < 0) {\n    bVar1 = mxPage_00 != 0;\n    uVar3 = mxPage_00 >> 0x16;\n    mxPage_00 = iVar2 * -0x400;\n    (*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    iVar2 = extraout_v1;\n  }\n  if (mxPage <= iVar2) {\n    mxPage = iVar2;\n  }\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return mxPage;\n}" primitive_type (function_declarator "sqlite3BtreeSetSpillSize(Btree *p,int mxPage)" identifier (parameter_list "(Btree *p,int mxPage)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int mxPage" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int extraout_v1;\n  int extraout_v1_00;\n  uint uVar3;\n  uint mxPage_00;\n  BtShared *pBVar4;\n  PCache *pPVar5;\n  \n  pBVar4 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar5 = pBVar4->pPager->pPCache;\n  if (mxPage == 0) {\n    mxPage = pPVar5->szSpill;\n  }\n  else if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }\n  iVar2 = pPVar5->szCache;\n  mxPage_00 = -iVar2;\n  if (iVar2 < 0) {\n    bVar1 = mxPage_00 != 0;\n    uVar3 = mxPage_00 >> 0x16;\n    mxPage_00 = iVar2 * -0x400;\n    (*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    iVar2 = extraout_v1;\n  }\n  if (mxPage <= iVar2) {\n    mxPage = iVar2;\n  }\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return mxPage;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int extraout_v1;" primitive_type identifier ;) (declaration "int extraout_v1_00;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint mxPage_00;" type_identifier identifier ;) (declaration "BtShared *pBVar4;" type_identifier (pointer_declarator "*pBVar4" * identifier) ;) (declaration "PCache *pPVar5;" type_identifier (pointer_declarator "*pPVar5" * identifier) ;) (expression_statement "pBVar4 = p->pBt;" (assignment_expression "pBVar4 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_identifier)) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeEnter(p);\n  }" { (expression_statement "sqlite3BtreeEnter(p);" (call_expression "sqlite3BtreeEnter(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (expression_statement "pPVar5 = pBVar4->pPager->pPCache;" (assignment_expression "pPVar5 = pBVar4->pPager->pPCache" identifier = (field_expression "pBVar4->pPager->pPCache" (field_expression "pBVar4->pPager" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (mxPage == 0) {\n    mxPage = pPVar5->szSpill;\n  }\n  else if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }" if (parenthesized_expression "(mxPage == 0)" ( (binary_expression "mxPage == 0" identifier == number_literal) )) (compound_statement "{\n    mxPage = pPVar5->szSpill;\n  }" { (expression_statement "mxPage = pPVar5->szSpill;" (assignment_expression "mxPage = pPVar5->szSpill" identifier = (field_expression "pPVar5->szSpill" identifier -> field_identifier)) ;) }) (else_clause "else if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }" else (if_statement "if (mxPage < 0) {\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }\n  else {\n    pPVar5->szSpill = mxPage;\n  }" if (parenthesized_expression "(mxPage < 0)" ( (binary_expression "mxPage < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    pPVar5->szSpill = extraout_v1_00;\n    mxPage = extraout_v1_00;\n  }" { (expression_statement "(*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);" (call_expression "(*(code *)PTR___divdi3_0015b6a0)\n              ((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f)" (parenthesized_expression "(*(code *)PTR___divdi3_0015b6a0)" ( (pointer_expression "*(code *)PTR___divdi3_0015b6a0" * (cast_expression "(code *)PTR___divdi3_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400,\n               mxPage * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f)" ( (binary_expression "(uint)-mxPage >> 0x16 | (-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400" (binary_expression "(uint)-mxPage >> 0x16" (binary_expression "(uint)-mxPage" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal) | (binary_expression "(-(uint)(-mxPage != 0) - (mxPage >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-mxPage != 0) - (mxPage >> 0x1f))" ( (binary_expression "-(uint)(-mxPage != 0) - (mxPage >> 0x1f)" (unary_expression "-(uint)(-mxPage != 0)" - (call_expression "(uint)(-mxPage != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(-mxPage != 0)" ( (binary_expression "-mxPage != 0" (unary_expression "-mxPage" - identifier) != number_literal) )))) - (parenthesized_expression "(mxPage >> 0x1f)" ( (binary_expression "mxPage >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , (binary_expression "mxPage * -0x400" identifier * number_literal) , (binary_expression "pPVar5->szPage + pPVar5->szExtra >> 0x1f" (binary_expression "pPVar5->szPage + pPVar5->szExtra" (field_expression "pPVar5->szPage" identifier -> field_identifier) + (field_expression "pPVar5->szExtra" identifier -> field_identifier)) >> number_literal) ))) ;) (expression_statement "pPVar5->szSpill = extraout_v1_00;" (assignment_expression "pPVar5->szSpill = extraout_v1_00" (field_expression "pPVar5->szSpill" identifier -> field_identifier) = identifier) ;) (expression_statement "mxPage = extraout_v1_00;" (assignment_expression "mxPage = extraout_v1_00" identifier = identifier) ;) }) (else_clause "else {\n    pPVar5->szSpill = mxPage;\n  }" else (compound_statement "{\n    pPVar5->szSpill = mxPage;\n  }" { (expression_statement "pPVar5->szSpill = mxPage;" (assignment_expression "pPVar5->szSpill = mxPage" (field_expression "pPVar5->szSpill" identifier -> field_identifier) = identifier) ;) }))))) (expression_statement "iVar2 = pPVar5->szCache;" (assignment_expression "iVar2 = pPVar5->szCache" identifier = (field_expression "pPVar5->szCache" identifier -> field_identifier)) ;) (expression_statement "mxPage_00 = -iVar2;" (assignment_expression "mxPage_00 = -iVar2" identifier = (unary_expression "-iVar2" - identifier)) ;) (if_statement "if (iVar2 < 0) {\n    bVar1 = mxPage_00 != 0;\n    uVar3 = mxPage_00 >> 0x16;\n    mxPage_00 = iVar2 * -0x400;\n    (*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    iVar2 = extraout_v1;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    bVar1 = mxPage_00 != 0;\n    uVar3 = mxPage_00 >> 0x16;\n    mxPage_00 = iVar2 * -0x400;\n    (*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);\n    iVar2 = extraout_v1;\n  }" { (expression_statement "bVar1 = mxPage_00 != 0;" (assignment_expression "bVar1 = mxPage_00 != 0" identifier = (binary_expression "mxPage_00 != 0" identifier != number_literal)) ;) (expression_statement "uVar3 = mxPage_00 >> 0x16;" (assignment_expression "uVar3 = mxPage_00 >> 0x16" identifier = (binary_expression "mxPage_00 >> 0x16" identifier >> number_literal)) ;) (expression_statement "mxPage_00 = iVar2 * -0x400;" (assignment_expression "mxPage_00 = iVar2 * -0x400" identifier = (binary_expression "iVar2 * -0x400" identifier * number_literal)) ;) (expression_statement "(*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f);" (call_expression "(*(code *)PTR___divdi3_0015b6a0)\n              (uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f)" (parenthesized_expression "(*(code *)PTR___divdi3_0015b6a0)" ( (pointer_expression "*(code *)PTR___divdi3_0015b6a0" * (cast_expression "(code *)PTR___divdi3_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400,mxPage_00,\n               pPVar5->szPage + pPVar5->szExtra >> 0x1f)" ( (binary_expression "uVar3 | (-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400" identifier | (binary_expression "(-(uint)bVar1 - (iVar2 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)bVar1 - (iVar2 >> 0x1f))" ( (binary_expression "-(uint)bVar1 - (iVar2 >> 0x1f)" (unary_expression "-(uint)bVar1" - (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) - (parenthesized_expression "(iVar2 >> 0x1f)" ( (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , identifier , (binary_expression "pPVar5->szPage + pPVar5->szExtra >> 0x1f" (binary_expression "pPVar5->szPage + pPVar5->szExtra" (field_expression "pPVar5->szPage" identifier -> field_identifier) + (field_expression "pPVar5->szExtra" identifier -> field_identifier)) >> number_literal) ))) ;) (expression_statement "iVar2 = extraout_v1;" (assignment_expression "iVar2 = extraout_v1" identifier = identifier) ;) })) (if_statement "if (mxPage <= iVar2) {\n    mxPage = iVar2;\n  }" if (parenthesized_expression "(mxPage <= iVar2)" ( (binary_expression "mxPage <= iVar2" identifier <= identifier) )) (compound_statement "{\n    mxPage = iVar2;\n  }" { (expression_statement "mxPage = iVar2;" (assignment_expression "mxPage = iVar2" identifier = identifier) ;) })) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }" { (expression_statement "sqlite3BtreeSetCacheSize(p,mxPage_00);" (call_expression "sqlite3BtreeSetCacheSize(p,mxPage_00)" identifier (argument_list "(p,mxPage_00)" ( identifier , identifier ))) ;) })) (return_statement "return mxPage;" return identifier ;) })))
(translation_unit "int FUN_00034648(int param_1,int param_2)\n\n{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_00034648(int param_1,int param_2)\n\n{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_00034648(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_v1;" primitive_type identifier ;) (declaration "int extraout_v1_00;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = *(int **)(param_1 + 4);" (assignment_expression "piVar2 = *(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) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00033dcc();\n  }" { (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(*piVar2 + 0xd4);" (assignment_expression "iVar3 = *(int *)(*piVar2 + 0xd4)" identifier = (pointer_expression "*(int *)(*piVar2 + 0xd4)" * (cast_expression "(int *)(*piVar2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0xd4)" ( (binary_expression "*piVar2 + 0xd4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)(iVar3 + 0x14);\n  }" { (expression_statement "param_2 = *(int *)(iVar3 + 0x14);" (assignment_expression "param_2 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" else (if_statement "if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }" { (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" ( (pointer_expression "*(code *)PTR_FUN_0015b6a0" * (cast_expression "(code *)PTR_FUN_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" ( (binary_expression "(uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal) | (binary_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f))" ( (binary_expression "-(uint)(-param_2 != 0) - (param_2 >> 0x1f)" (unary_expression "-(uint)(-param_2 != 0)" - (call_expression "(uint)(-param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(-param_2 != 0)" ( (binary_expression "-param_2 != 0" (unary_expression "-param_2" - identifier) != number_literal) )))) - (parenthesized_expression "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , (binary_expression "param_2 * -0x400" identifier * number_literal) , (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) >> number_literal) ))) ;) (expression_statement "*(int *)(iVar3 + 0x14) = extraout_v1_00;" (assignment_expression "*(int *)(iVar3 + 0x14) = extraout_v1_00" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_2 = extraout_v1_00;" (assignment_expression "param_2 = extraout_v1_00" identifier = identifier) ;) }) (else_clause "else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(iVar3 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_2" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "iVar1 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" { (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" ( (pointer_expression "*(code *)PTR_FUN_0015b6a0" * (cast_expression "(code *)PTR_FUN_0015b6a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" ( (binary_expression "(uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (binary_expression "(uint)-iVar1 >> 0x16" (binary_expression "(uint)-iVar1" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal) | (binary_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f))" ( (binary_expression "-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)" (unary_expression "-(uint)(-iVar1 != 0)" - (call_expression "(uint)(-iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(-iVar1 != 0)" ( (binary_expression "-iVar1 != 0" (unary_expression "-iVar1" - identifier) != number_literal) )))) - (parenthesized_expression "(iVar1 >> 0x1f)" ( (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) ))) )) * number_literal)) , (binary_expression "iVar1 * -0x400" identifier * number_literal) , (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) >> number_literal) ))) ;) (expression_statement "iVar1 = extraout_v1;" (assignment_expression "iVar1 = extraout_v1" identifier = identifier) ;) })) (if_statement "if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n    param_2 = iVar1;\n  }" { (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" identifier = identifier) ;) })) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" { (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (unary_expression - IDENT) != LIT) )))) - (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) )) * LIT)) , (binary_expression IDENT * LIT) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> 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 = IDENT) ;) }) (else_clause else (compound_statement { (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (unary_expression - IDENT) != LIT) )))) - (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) )) * LIT)) , (binary_expression IDENT * LIT) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00034648(int param_1,int param_2)\n\n{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_00034648(int param_1,int param_2)" (identifier "FUN_00034648") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int extraout_v1;\n  int extraout_v1_00;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar3 = *(int *)(*piVar2 + 0xd4);\n  if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }\n  iVar1 = *(int *)(iVar3 + 0x10);\n  if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }\n  if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return param_2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int extraout_v1;" (primitive_type "int") (identifier "extraout_v1") (; ";")) (declaration "int extraout_v1_00;" (primitive_type "int") (identifier "extraout_v1_00") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 4);" (assignment_expression "piVar2 = *(int **)(param_1 + 4)" (identifier "piVar2") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00033dcc();\n  }" ({ "{") (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" (identifier "FUN_00033dcc") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(*piVar2 + 0xd4);" (assignment_expression "iVar3 = *(int *)(*piVar2 + 0xd4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*piVar2 + 0xd4)" (* "*") (cast_expression "(int *)(*piVar2 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0xd4)" (( "(") (binary_expression "*piVar2 + 0xd4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0xd4")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(iVar3 + 0x14);\n  }\n  else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = *(int *)(iVar3 + 0x14);\n  }" ({ "{") (expression_statement "param_2 = *(int *)(iVar3 + 0x14);" (assignment_expression "param_2 = *(int *)(iVar3 + 0x14)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" (else "else") (if_statement "if (param_2 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }\n  else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    *(int *)(iVar3 + 0x14) = extraout_v1_00;\n    param_2 = extraout_v1_00;\n  }" ({ "{") (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" (( "(") (pointer_expression "*(code *)PTR_FUN_0015b6a0" (* "*") (cast_expression "(code *)PTR_FUN_0015b6a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0015b6a0"))) () ")")) (argument_list "((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,\n               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (( "(") (binary_expression "(uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "param_2")) (>> ">>") (number_literal "0x16")) (| "|") (binary_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-param_2 != 0) - (param_2 >> 0x1f))" (( "(") (binary_expression "-(uint)(-param_2 != 0) - (param_2 >> 0x1f)" (unary_expression "-(uint)(-param_2 != 0)" (- "-") (call_expression "(uint)(-param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(-param_2 != 0)" (( "(") (binary_expression "-param_2 != 0" (unary_expression "-param_2" (- "-") (identifier "param_2")) (!= "!=") (number_literal "0")) () ")")))) (- "-") (parenthesized_expression "(param_2 >> 0x1f)" (( "(") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) () ")"))) () ")")) (* "*") (number_literal "0x400"))) (, ",") (binary_expression "param_2 * -0x400" (identifier "param_2") (* "*") (number_literal "-0x400")) (, ",") (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (>> ">>") (number_literal "0x1f")) () ")"))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x14) = extraout_v1_00;" (assignment_expression "*(int *)(iVar3 + 0x14) = extraout_v1_00" (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "extraout_v1_00")) (; ";")) (expression_statement "param_2 = extraout_v1_00;" (assignment_expression "param_2 = extraout_v1_00" (identifier "param_2") (= "=") (identifier "extraout_v1_00")) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" (else "else") (compound_statement "{\n    *(int *)(iVar3 + 0x14) = param_2;\n  }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_2" (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")))))) (expression_statement "iVar1 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (iVar1 < 0) {\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);\n    iVar1 = extraout_v1;\n  }" ({ "{") (expression_statement "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);" (call_expression "(*(code *)PTR_FUN_0015b6a0)\n              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_FUN_0015b6a0)" (( "(") (pointer_expression "*(code *)PTR_FUN_0015b6a0" (* "*") (cast_expression "(code *)PTR_FUN_0015b6a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0015b6a0"))) () ")")) (argument_list "((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,\n               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f)" (( "(") (binary_expression "(uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (binary_expression "(uint)-iVar1 >> 0x16" (binary_expression "(uint)-iVar1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar1")) (>> ">>") (number_literal "0x16")) (| "|") (binary_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400" (parenthesized_expression "(-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f))" (( "(") (binary_expression "-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)" (unary_expression "-(uint)(-iVar1 != 0)" (- "-") (call_expression "(uint)(-iVar1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(-iVar1 != 0)" (( "(") (binary_expression "-iVar1 != 0" (unary_expression "-iVar1" (- "-") (identifier "iVar1")) (!= "!=") (number_literal "0")) () ")")))) (- "-") (parenthesized_expression "(iVar1 >> 0x1f)" (( "(") (binary_expression "iVar1 >> 0x1f" (identifier "iVar1") (>> ">>") (number_literal "0x1f")) () ")"))) () ")")) (* "*") (number_literal "0x400"))) (, ",") (binary_expression "iVar1 * -0x400" (identifier "iVar1") (* "*") (number_literal "-0x400")) (, ",") (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f" (binary_expression "*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c)" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (>> ">>") (number_literal "0x1f")) () ")"))) (; ";")) (expression_statement "iVar1 = extraout_v1;" (assignment_expression "iVar1 = extraout_v1" (identifier "iVar1") (= "=") (identifier "extraout_v1")) (; ";")) (} "}"))) (if_statement "if (param_2 <= iVar1) {\n    param_2 = iVar1;\n  }" (if "if") (parenthesized_expression "(param_2 <= iVar1)" (( "(") (binary_expression "param_2 <= iVar1" (identifier "param_2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n    param_2 = iVar1;\n  }" ({ "{") (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" (identifier "param_2") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" ({ "{") (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" (identifier "FUN_0003452c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

int function_1(type_1 *p,int var_2)

{
  bool bVar1;
  int var_3;
  int extraout_v1;
  int extraout_v1_00;
  type_2 var_5;
  type_2 var_4;
  type_3 *pBVar4;
  type_4 *pPVar5;
  
  pBVar4 = p->pBt;
  if (p->sharable != '\0') {
    var_1(p);
  }
  pPVar5 = pBVar4->pPager->pPCache;
  if (var_2 == 0) {
    var_2 = pPVar5->szSpill;
  }
  else if (var_2 < 0) {
    (*(type_5 *)PTR___divdi3_0015b6a0)
              ((type_2)-var_2 >> 0x16 | (-(type_2)(-var_2 != 0) - (var_2 >> 0x1f)) * 0x400,
               var_2 * -0x400,pPVar5->szPage + pPVar5->szExtra >> 0x1f);
    pPVar5->szSpill = extraout_v1_00;
    var_2 = extraout_v1_00;
  }
  else {
    pPVar5->szSpill = var_2;
  }
  var_3 = pPVar5->szCache;
  var_4 = -var_3;
  if (var_3 < 0) {
    bVar1 = var_4 != 0;
    var_5 = var_4 >> 0x16;
    var_4 = var_3 * -0x400;
    (*(type_5 *)PTR___divdi3_0015b6a0)
              (var_5 | (-(type_2)bVar1 - (var_3 >> 0x1f)) * 0x400,var_4,
               pPVar5->szPage + pPVar5->szExtra >> 0x1f);
    var_3 = extraout_v1;
  }
  if (var_2 <= var_3) {
    var_2 = var_3;
  }
  if (p->sharable != '\0') {
    var_6(p,var_4);
  }
  return var_2;
}


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

int MASKED(int param_1,int param_2)

{
  int iVar1;
  int extraout_v1;
  int extraout_v1_00;
  int *piVar2;
  int iVar3;
  
  piVar2 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00033dcc();
  }
  iVar3 = *(int *)(*piVar2 + 0xd4);
  if (param_2 == 0) {
    param_2 = *(int *)(iVar3 + 0x14);
  }
  else if (param_2 < 0) {
    (*(code *)PTR_FUN_0015b6a0)
              ((uint)-param_2 >> 0x16 | (-(uint)(-param_2 != 0) - (param_2 >> 0x1f)) * 0x400,
               param_2 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);
    *(int *)(iVar3 + 0x14) = extraout_v1_00;
    param_2 = extraout_v1_00;
  }
  else {
    *(int *)(iVar3 + 0x14) = param_2;
  }
  iVar1 = *(int *)(iVar3 + 0x10);
  if (iVar1 < 0) {
    (*(code *)PTR_FUN_0015b6a0)
              ((uint)-iVar1 >> 0x16 | (-(uint)(-iVar1 != 0) - (iVar1 >> 0x1f)) * 0x400,
               iVar1 * -0x400,*(int *)(iVar3 + 0x18) + *(int *)(iVar3 + 0x1c) >> 0x1f);
    iVar1 = extraout_v1;
  }
  if (param_2 <= iVar1) {
    param_2 = iVar1;
  }
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0003452c(param_1);
  }
  return param_2;
}

