
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

int sessionStat1Old(void *pCtx,int iCol,sqlite3_value **ppVal)

{
  int iVar1;
  undefined4 *puVar2;
  sqlite3_value *psVar3;
  undefined4 *puVar4;
  undefined *puVar5;
  sqlite3_value **ppsVar6;
  int *piVar7;
  undefined *puVar8;
  sqlite3_value *psStack_58;
  sqlite3_value *psStack_20;
  undefined4 *puStack_1c;
  
  puVar8 = PTR___stack_chk_guard_00190e24;
  ppsVar6 = &psStack_20;
                    /* WARNING: Load size is inaccurate */
  psStack_20 = (sqlite3_value *)0x0;
  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  puVar5 = (undefined *)iCol;
  iVar1 = (**(code **)((int)pCtx + 4))(*pCtx);
  psVar3 = psStack_20;
  if ((iVar1 == 0) && (iCol == 1)) {
    ppsVar6 = (sqlite3_value **)&DAT_00000005;
    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;
    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {
      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);
    }
  }
  *ppVal = psVar3;
  if (puStack_1c == *(undefined4 **)puVar8) {
    return iVar1;
  }
  puVar4 = puStack_1c;
  puVar8 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  piVar7 = *(int **)(puVar8 + 0x14a648);
  psStack_58 = (sqlite3_value *)0x0;
  puVar2 = (undefined4 *)*piVar7;
  iVar1 = (*(code *)puVar4[2])(*puVar4);
  if (iVar1 == 0) {
    if ((puVar5 == (undefined *)0x1) &&
       (psStack_58 = (sqlite3_value *)0x0,
       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {
      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);
    }
  }
  else {
    psStack_58 = (sqlite3_value *)0x0;
  }
  *ppsVar6 = psStack_58;
  if (puVar2 != (undefined4 *)*piVar7) {
    (**(code **)(puVar8 + 0x14a61c))();
                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)puVar2[3])(*puVar2);
    return iVar1;
  }
  return iVar1;
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined *puVar5;
  int *piVar6;
  int *piVar7;
  undefined *puVar8;
  int local_58;
  int local_20;
  undefined4 *local_1c;
  
  puVar8 = PTR___stack_chk_guard_00190e24;
  piVar6 = &local_20;
  local_20 = 0;
  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  puVar5 = param_2;
  iVar1 = (*(code *)param_1[1])(*param_1);
  iVar3 = local_20;
  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {
    piVar6 = (int *)&DAT_00000005;
    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;
    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {
      iVar3 = *(int *)(param_1[5] + 0x20);
    }
  }
  *param_3 = iVar3;
  if (local_1c == *(undefined4 **)puVar8) {
    return;
  }
  puVar4 = local_1c;
  puVar8 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  piVar7 = *(int **)(puVar8 + 0x14a648);
  local_58 = 0;
  puVar2 = (undefined4 *)*piVar7;
  iVar3 = (*(code *)puVar4[2])(*puVar4);
  if (iVar3 == 0) {
    if ((puVar5 == (undefined *)0x1) &&
       (local_58 = 0,
       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {
      local_58 = *(int *)(puVar4[5] + 0x20);
    }
  }
  else {
    local_58 = 0;
  }
  *piVar6 = local_58;
  if (puVar2 != (undefined4 *)*piVar7) {
    (**(code **)(puVar8 + 0x14a61c))();
                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)puVar2[3])(*puVar2);
    return;
  }
  return;
}


lui gp,0x15
addiu gp,gp,0x221c
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x28(sp)
sw gp,0x10(sp)
sw s3,0x30(sp)
or s3,a1,zero
sw s2,0x2c(sp)
or s2,a2,zero
sw s0,0x24(sp)
or s0,a0,zero
sw ra,0x34(sp)
addiu a2,sp,0x18
lw s1,-0x7afc(gp)
lw t9,0x4(a0)
lw a0,0x0(a0)
sw zero,0x18(sp)
lw v0,0x0(s1)
sw v0,0x1c(sp)
jalr t9
_nop
beq v0,zero,0x00046794
_lw gp,0x10(sp)
lw v1,0x18(sp)
lw a0,0x1c(sp)
sw v1,0x0(s2)
lw v1,0x0(s1)
bne a0,v1,0x000467d0
_lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
li a0,0x1
bne s3,a0,0x00046768
_lw v1,0x18(sp)
lw a1,-0x7fc4(gp)
li a2,0x5
lhu a0,0x8(v1)
addiu a1,a1,0x6a8c
andi a0,a0,0x1f
addu a0,a0,a1
lbu a0,0x0(a0)
bne a0,a2,0x00046768
_nop
lw v1,0x14(s0)
b 0x00046768
_lw v1,0x20(v1)
lw t9,-0x7b28(gp)
jalr t9
_nop
lui gp,0x15
addiu gp,gp,0x2144
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x28(sp)
sw gp,0x10(sp)
sw s3,0x30(sp)
or s3,a1,zero
sw s2,0x2c(sp)
or s2,a2,zero
sw s0,0x24(sp)
or s0,a0,zero
sw ra,0x34(sp)
addiu a2,sp,0x18
lw s1,-0x7afc(gp)
lw t9,0x8(a0)
lw a0,0x0(a0)
sw zero,0x18(sp)
lw v0,0x0(s1)
sw v0,0x1c(sp)
jalr t9
_nop
beq v0,zero,0x0004686c
_lw gp,0x10(sp)
lw v1,0x18(sp)
lw a0,0x1c(sp)
sw v1,0x0(s2)
lw v1,0x0(s1)
bne a0,v1,0x000468a8
_lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
li a0,0x1
bne s3,a0,0x00046840
_lw v1,0x18(sp)
lw a1,-0x7fc4(gp)
li a2,0x5
lhu a0,0x8(v1)
addiu a1,a1,0x6a8c
andi a0,a0,0x1f
addu a0,a0,a1
lbu a0,0x0(a0)
bne a0,a2,0x00046840
_nop
lw v1,0x14(s0)
b 0x00046840
_lw v1,0x20(v1)
lw t9,-0x7b28(gp)
jalr t9
_nop
lw t9,0xc(a0)
jr t9
_lw a0,0x0(a0)
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar8 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "piVar6 = &local_20;" (assignment_expression "piVar6 = &local_20" identifier = (pointer_expression "&local_20" & identifier)) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)param_1[1])(*param_1);" (assignment_expression "iVar1 = (*(code *)param_1[1])(*param_1)" identifier = (call_expression "(*(code *)param_1[1])(*param_1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "iVar3 = local_20;" (assignment_expression "iVar3 = local_20" identifier = identifier) ;) (if_statement "if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_2 == (undefined *)0x1))" ( (binary_expression "(iVar1 == 0) && (param_2 == (undefined *)0x1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 == (undefined *)0x1)" ( (binary_expression "param_2 == (undefined *)0x1" identifier == (cast_expression "(undefined *)0x1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" { (expression_statement "piVar6 = (int *)&DAT_00000005;" (assignment_expression "piVar6 = (int *)&DAT_00000005" identifier = (cast_expression "(int *)&DAT_00000005" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000005" & identifier))) ;) (expression_statement "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;" (assignment_expression "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier + number_literal)) ;) (if_statement "if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" if (parenthesized_expression "(puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05')" ( (binary_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05'" (subscript_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f]" identifier [ (binary_expression "*(ushort *)(local_20 + 8) & 0x1f" (pointer_expression "*(ushort *)(local_20 + 8)" * (cast_expression "(ushort *)(local_20 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 8)" ( (binary_expression "local_20 + 8" identifier + number_literal) )))) & number_literal) ]) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" { (expression_statement "iVar3 = *(int *)(param_1[5] + 0x20);" (assignment_expression "iVar3 = *(int *)(param_1[5] + 0x20)" identifier = (pointer_expression "*(int *)(param_1[5] + 0x20)" * (cast_expression "(int *)(param_1[5] + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))))) ;) })) })) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(undefined4 **)puVar8)" ( (binary_expression "local_1c == *(undefined4 **)puVar8" identifier == (pointer_expression "*(undefined4 **)puVar8" * (cast_expression "(undefined4 **)puVar8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = local_1c;" (assignment_expression "puVar4 = local_1c" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar8 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar8 + 0x14a648);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0x14a648)" identifier = (pointer_expression "*(int **)(puVar8 + 0x14a648)" * (cast_expression "(int **)(puVar8 + 0x14a648)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a648)" ( (binary_expression "puVar8 + 0x14a648" identifier + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)*piVar7;" (assignment_expression "puVar2 = (undefined4 *)*piVar7" identifier = (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "iVar3 = (*(code *)puVar4[2])(*puVar4);" (assignment_expression "iVar3 = (*(code *)puVar4[2])(*puVar4)" identifier = (call_expression "(*(code *)puVar4[2])(*puVar4)" (parenthesized_expression "(*(code *)puVar4[2])" ( (pointer_expression "*(code *)puVar4[2]" * (cast_expression "(code *)puVar4[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[2]" identifier [ number_literal ]))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }" { (if_statement "if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" if (parenthesized_expression "((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'))" ( (binary_expression "(puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" (parenthesized_expression "(puVar5 == (undefined *)0x1)" ( (binary_expression "puVar5 == (undefined *)0x1" identifier == (cast_expression "(undefined *)0x1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" ( (comma_expression "local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (assignment_expression "local_58 = 0" identifier = number_literal) , (binary_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (pointer_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" * (cast_expression "(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c" (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180)" (parenthesized_expression "(_DAT_00000008 & 0x1f)" ( (binary_expression "_DAT_00000008 & 0x1f" identifier & number_literal) )) + (pointer_expression "*(int *)(puVar8 + 0x14a180)" * (cast_expression "(int *)(puVar8 + 0x14a180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14a180)" ( (binary_expression "puVar8 + 0x14a180" identifier + number_literal) ))))) + number_literal) )))) == (char_literal "'\x05'" ' escape_sequence '))) ))) )) (compound_statement "{\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" { (expression_statement "local_58 = *(int *)(puVar4[5] + 0x20);" (assignment_expression "local_58 = *(int *)(puVar4[5] + 0x20)" identifier = (pointer_expression "*(int *)(puVar4[5] + 0x20)" * (cast_expression "(int *)(puVar4[5] + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4[5] + 0x20)" ( (binary_expression "puVar4[5] + 0x20" (subscript_expression "puVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) })) }) (else_clause "else {\n    local_58 = 0;\n  }" else (compound_statement "{\n    local_58 = 0;\n  }" { (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) }))) (expression_statement "*piVar6 = local_58;" (assignment_expression "*piVar6 = local_58" (pointer_expression "*piVar6" * identifier) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)*piVar7)" ( (binary_expression "puVar2 != (undefined4 *)*piVar7" identifier != (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" { (expression_statement "(**(code **)(puVar8 + 0x14a61c))();" (call_expression "(**(code **)(puVar8 + 0x14a61c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x14a61c))" ( (pointer_expression "**(code **)(puVar8 + 0x14a61c)" * (pointer_expression "*(code **)(puVar8 + 0x14a61c)" * (cast_expression "(code **)(puVar8 + 0x14a61c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a61c)" ( (binary_expression "puVar8 + 0x14a61c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "(*(code *)puVar2[3])(*puVar2);" (call_expression "(*(code *)puVar2[3])(*puVar2)" (parenthesized_expression "(*(code *)puVar2[3])" ( (pointer_expression "*(code *)puVar2[3]" * (cast_expression "(code *)puVar2[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nint sessionStat1Old(void *pCtx,int iCol,sqlite3_value **ppVal)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  sqlite3_value *psVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  sqlite3_value **ppsVar6;\n  int *piVar7;\n  undefined *puVar8;\n  sqlite3_value *psStack_58;\n  sqlite3_value *psStack_20;\n  undefined4 *puStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  ppsVar6 = &psStack_20;\n                    /* WARNING: Load size is inaccurate */\n  psStack_20 = (sqlite3_value *)0x0;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = (undefined *)iCol;\n  iVar1 = (**(code **)((int)pCtx + 4))(*pCtx);\n  psVar3 = psStack_20;\n  if ((iVar1 == 0) && (iCol == 1)) {\n    ppsVar6 = (sqlite3_value **)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }\n  }\n  *ppVal = psVar3;\n  if (puStack_1c == *(undefined4 **)puVar8) {\n    return iVar1;\n  }\n  puVar4 = puStack_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  psStack_58 = (sqlite3_value *)0x0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar1 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar1 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    psStack_58 = (sqlite3_value *)0x0;\n  }\n  *ppsVar6 = psStack_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)puVar2[3])(*puVar2);\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int sessionStat1Old(void *pCtx,int iCol,sqlite3_value **ppVal)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  sqlite3_value *psVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  sqlite3_value **ppsVar6;\n  int *piVar7;\n  undefined *puVar8;\n  sqlite3_value *psStack_58;\n  sqlite3_value *psStack_20;\n  undefined4 *puStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  ppsVar6 = &psStack_20;\n                    /* WARNING: Load size is inaccurate */\n  psStack_20 = (sqlite3_value *)0x0;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = (undefined *)iCol;\n  iVar1 = (**(code **)((int)pCtx + 4))(*pCtx);\n  psVar3 = psStack_20;\n  if ((iVar1 == 0) && (iCol == 1)) {\n    ppsVar6 = (sqlite3_value **)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }\n  }\n  *ppVal = psVar3;\n  if (puStack_1c == *(undefined4 **)puVar8) {\n    return iVar1;\n  }\n  puVar4 = puStack_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  psStack_58 = (sqlite3_value *)0x0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar1 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar1 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    psStack_58 = (sqlite3_value *)0x0;\n  }\n  *ppsVar6 = psStack_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)puVar2[3])(*puVar2);\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sessionStat1Old(void *pCtx,int iCol,sqlite3_value **ppVal)" identifier (parameter_list "(void *pCtx,int iCol,sqlite3_value **ppVal)" ( (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int iCol" primitive_type identifier) , (parameter_declaration "sqlite3_value **ppVal" type_identifier (pointer_declarator "**ppVal" * (pointer_declarator "*ppVal" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  sqlite3_value *psVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  sqlite3_value **ppsVar6;\n  int *piVar7;\n  undefined *puVar8;\n  sqlite3_value *psStack_58;\n  sqlite3_value *psStack_20;\n  undefined4 *puStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  ppsVar6 = &psStack_20;\n                    /* WARNING: Load size is inaccurate */\n  psStack_20 = (sqlite3_value *)0x0;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = (undefined *)iCol;\n  iVar1 = (**(code **)((int)pCtx + 4))(*pCtx);\n  psVar3 = psStack_20;\n  if ((iVar1 == 0) && (iCol == 1)) {\n    ppsVar6 = (sqlite3_value **)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }\n  }\n  *ppVal = psVar3;\n  if (puStack_1c == *(undefined4 **)puVar8) {\n    return iVar1;\n  }\n  puVar4 = puStack_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  psStack_58 = (sqlite3_value *)0x0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar1 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar1 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    psStack_58 = (sqlite3_value *)0x0;\n  }\n  *ppsVar6 = psStack_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)puVar2[3])(*puVar2);\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "sqlite3_value *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "sqlite3_value **ppsVar6;" type_identifier (pointer_declarator "**ppsVar6" * (pointer_declarator "*ppsVar6" * identifier)) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "sqlite3_value *psStack_58;" type_identifier (pointer_declarator "*psStack_58" * identifier) ;) (declaration "sqlite3_value *psStack_20;" type_identifier (pointer_declarator "*psStack_20" * identifier) ;) (declaration "undefined4 *puStack_1c;" type_identifier (pointer_declarator "*puStack_1c" * identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar8 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "ppsVar6 = &psStack_20;" (assignment_expression "ppsVar6 = &psStack_20" identifier = (pointer_expression "&psStack_20" & identifier)) ;) comment (expression_statement "psStack_20 = (sqlite3_value *)0x0;" (assignment_expression "psStack_20 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar5 = (undefined *)iCol;" (assignment_expression "puVar5 = (undefined *)iCol" identifier = (cast_expression "(undefined *)iCol" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar1 = (**(code **)((int)pCtx + 4))(*pCtx);" (assignment_expression "iVar1 = (**(code **)((int)pCtx + 4))(*pCtx)" identifier = (call_expression "(**(code **)((int)pCtx + 4))(*pCtx)" (parenthesized_expression "(**(code **)((int)pCtx + 4))" ( (pointer_expression "**(code **)((int)pCtx + 4)" * (pointer_expression "*(code **)((int)pCtx + 4)" * (cast_expression "(code **)((int)pCtx + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pCtx + 4)" ( (binary_expression "(int)pCtx + 4" (cast_expression "(int)pCtx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (argument_list "(*pCtx)" ( (pointer_expression "*pCtx" * identifier) )))) ;) (expression_statement "psVar3 = psStack_20;" (assignment_expression "psVar3 = psStack_20" identifier = identifier) ;) (if_statement "if ((iVar1 == 0) && (iCol == 1)) {\n    ppsVar6 = (sqlite3_value **)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (iCol == 1))" ( (binary_expression "(iVar1 == 0) && (iCol == 1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iCol == 1)" ( (binary_expression "iCol == 1" identifier == number_literal) ))) )) (compound_statement "{\n    ppsVar6 = (sqlite3_value **)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }\n  }" { (expression_statement "ppsVar6 = (sqlite3_value **)&DAT_00000005;" (assignment_expression "ppsVar6 = (sqlite3_value **)&DAT_00000005" identifier = (cast_expression "(sqlite3_value **)&DAT_00000005" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00000005" & identifier))) ;) (expression_statement "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;" (assignment_expression "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier + number_literal)) ;) (if_statement "if (puVar5[psStack_20->flags & 0x1f] == '\x05') {\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }" if (parenthesized_expression "(puVar5[psStack_20->flags & 0x1f] == '\x05')" ( (binary_expression "puVar5[psStack_20->flags & 0x1f] == '\x05'" (subscript_expression "puVar5[psStack_20->flags & 0x1f]" identifier [ (binary_expression "psStack_20->flags & 0x1f" (field_expression "psStack_20->flags" identifier -> field_identifier) & number_literal) ]) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);\n    }" { (expression_statement "psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20);" (assignment_expression "psVar3 = *(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20)" identifier = (pointer_expression "*(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20)" * (cast_expression "(sqlite3_value **)(*(int *)((int)pCtx + 0x14) + 0x20)" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)pCtx + 0x14) + 0x20)" ( (binary_expression "*(int *)((int)pCtx + 0x14) + 0x20" (pointer_expression "*(int *)((int)pCtx + 0x14)" * (cast_expression "(int *)((int)pCtx + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCtx + 0x14)" ( (binary_expression "(int)pCtx + 0x14" (cast_expression "(int)pCtx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) })) })) (expression_statement "*ppVal = psVar3;" (assignment_expression "*ppVal = psVar3" (pointer_expression "*ppVal" * identifier) = identifier) ;) (if_statement "if (puStack_1c == *(undefined4 **)puVar8) {\n    return iVar1;\n  }" if (parenthesized_expression "(puStack_1c == *(undefined4 **)puVar8)" ( (binary_expression "puStack_1c == *(undefined4 **)puVar8" identifier == (pointer_expression "*(undefined4 **)puVar8" * (cast_expression "(undefined4 **)puVar8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "puVar4 = puStack_1c;" (assignment_expression "puVar4 = puStack_1c" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar8 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar8 + 0x14a648);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0x14a648)" identifier = (pointer_expression "*(int **)(puVar8 + 0x14a648)" * (cast_expression "(int **)(puVar8 + 0x14a648)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a648)" ( (binary_expression "puVar8 + 0x14a648" identifier + number_literal) ))))) ;) (expression_statement "psStack_58 = (sqlite3_value *)0x0;" (assignment_expression "psStack_58 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)*piVar7;" (assignment_expression "puVar2 = (undefined4 *)*piVar7" identifier = (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "iVar1 = (*(code *)puVar4[2])(*puVar4);" (assignment_expression "iVar1 = (*(code *)puVar4[2])(*puVar4)" identifier = (call_expression "(*(code *)puVar4[2])(*puVar4)" (parenthesized_expression "(*(code *)puVar4[2])" ( (pointer_expression "*(code *)puVar4[2]" * (cast_expression "(code *)puVar4[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[2]" identifier [ number_literal ]))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    psStack_58 = (sqlite3_value *)0x0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }\n  }" { (if_statement "if ((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }" if (parenthesized_expression "((puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'))" ( (binary_expression "(puVar5 == (undefined *)0x1) &&\n       (psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" (parenthesized_expression "(puVar5 == (undefined *)0x1)" ( (binary_expression "puVar5 == (undefined *)0x1" identifier == (cast_expression "(undefined *)0x1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" ( (comma_expression "psStack_58 = (sqlite3_value *)0x0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (assignment_expression "psStack_58 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (pointer_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" * (cast_expression "(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c" (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180)" (parenthesized_expression "(_DAT_00000008 & 0x1f)" ( (binary_expression "_DAT_00000008 & 0x1f" identifier & number_literal) )) + (pointer_expression "*(int *)(puVar8 + 0x14a180)" * (cast_expression "(int *)(puVar8 + 0x14a180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14a180)" ( (binary_expression "puVar8 + 0x14a180" identifier + number_literal) ))))) + number_literal) )))) == (char_literal "'\x05'" ' escape_sequence '))) ))) )) (compound_statement "{\n      psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);\n    }" { (expression_statement "psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20);" (assignment_expression "psStack_58 = *(sqlite3_value **)(puVar4[5] + 0x20)" identifier = (pointer_expression "*(sqlite3_value **)(puVar4[5] + 0x20)" * (cast_expression "(sqlite3_value **)(puVar4[5] + 0x20)" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[5] + 0x20)" ( (binary_expression "puVar4[5] + 0x20" (subscript_expression "puVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) })) }) (else_clause "else {\n    psStack_58 = (sqlite3_value *)0x0;\n  }" else (compound_statement "{\n    psStack_58 = (sqlite3_value *)0x0;\n  }" { (expression_statement "psStack_58 = (sqlite3_value *)0x0;" (assignment_expression "psStack_58 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "*ppsVar6 = psStack_58;" (assignment_expression "*ppsVar6 = psStack_58" (pointer_expression "*ppsVar6" * identifier) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)puVar2[3])(*puVar2);\n    return iVar1;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)*piVar7)" ( (binary_expression "puVar2 != (undefined4 *)*piVar7" identifier != (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar8 + 0x14a61c))();\n                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)puVar2[3])(*puVar2);\n    return iVar1;\n  }" { (expression_statement "(**(code **)(puVar8 + 0x14a61c))();" (call_expression "(**(code **)(puVar8 + 0x14a61c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x14a61c))" ( (pointer_expression "**(code **)(puVar8 + 0x14a61c)" * (pointer_expression "*(code **)(puVar8 + 0x14a61c)" * (cast_expression "(code **)(puVar8 + 0x14a61c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a61c)" ( (binary_expression "puVar8 + 0x14a61c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "iVar1 = (*(code *)puVar2[3])(*puVar2);" (assignment_expression "iVar1 = (*(code *)puVar2[3])(*puVar2)" identifier = (call_expression "(*(code *)puVar2[3])(*puVar2)" (parenthesized_expression "(*(code *)puVar2[3])" ( (pointer_expression "*(code *)puVar2[3]" * (cast_expression "(code *)puVar2[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar8 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "piVar6 = &local_20;" (assignment_expression "piVar6 = &local_20" identifier = (pointer_expression "&local_20" & identifier)) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)param_1[1])(*param_1);" (assignment_expression "iVar1 = (*(code *)param_1[1])(*param_1)" identifier = (call_expression "(*(code *)param_1[1])(*param_1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "iVar3 = local_20;" (assignment_expression "iVar3 = local_20" identifier = identifier) ;) (if_statement "if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_2 == (undefined *)0x1))" ( (binary_expression "(iVar1 == 0) && (param_2 == (undefined *)0x1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 == (undefined *)0x1)" ( (binary_expression "param_2 == (undefined *)0x1" identifier == (cast_expression "(undefined *)0x1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" { (expression_statement "piVar6 = (int *)&DAT_00000005;" (assignment_expression "piVar6 = (int *)&DAT_00000005" identifier = (cast_expression "(int *)&DAT_00000005" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000005" & identifier))) ;) (expression_statement "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;" (assignment_expression "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" identifier + number_literal)) ;) (if_statement "if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" if (parenthesized_expression "(puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05')" ( (binary_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05'" (subscript_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f]" identifier [ (binary_expression "*(ushort *)(local_20 + 8) & 0x1f" (pointer_expression "*(ushort *)(local_20 + 8)" * (cast_expression "(ushort *)(local_20 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 8)" ( (binary_expression "local_20 + 8" identifier + number_literal) )))) & number_literal) ]) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" { (expression_statement "iVar3 = *(int *)(param_1[5] + 0x20);" (assignment_expression "iVar3 = *(int *)(param_1[5] + 0x20)" identifier = (pointer_expression "*(int *)(param_1[5] + 0x20)" * (cast_expression "(int *)(param_1[5] + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))))) ;) })) })) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(undefined4 **)puVar8)" ( (binary_expression "local_1c == *(undefined4 **)puVar8" identifier == (pointer_expression "*(undefined4 **)puVar8" * (cast_expression "(undefined4 **)puVar8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = local_1c;" (assignment_expression "puVar4 = local_1c" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar8 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar8 + 0x14a648);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0x14a648)" identifier = (pointer_expression "*(int **)(puVar8 + 0x14a648)" * (cast_expression "(int **)(puVar8 + 0x14a648)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a648)" ( (binary_expression "puVar8 + 0x14a648" identifier + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)*piVar7;" (assignment_expression "puVar2 = (undefined4 *)*piVar7" identifier = (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "iVar3 = (*(code *)puVar4[2])(*puVar4);" (assignment_expression "iVar3 = (*(code *)puVar4[2])(*puVar4)" identifier = (call_expression "(*(code *)puVar4[2])(*puVar4)" (parenthesized_expression "(*(code *)puVar4[2])" ( (pointer_expression "*(code *)puVar4[2]" * (cast_expression "(code *)puVar4[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[2]" identifier [ number_literal ]))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }" { (if_statement "if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" if (parenthesized_expression "((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'))" ( (binary_expression "(puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" (parenthesized_expression "(puVar5 == (undefined *)0x1)" ( (binary_expression "puVar5 == (undefined *)0x1" identifier == (cast_expression "(undefined *)0x1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" ( (comma_expression "local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (assignment_expression "local_58 = 0" identifier = number_literal) , (binary_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (pointer_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" * (cast_expression "(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" ( (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c" (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180)" (parenthesized_expression "(_DAT_00000008 & 0x1f)" ( (binary_expression "_DAT_00000008 & 0x1f" identifier & number_literal) )) + (pointer_expression "*(int *)(puVar8 + 0x14a180)" * (cast_expression "(int *)(puVar8 + 0x14a180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x14a180)" ( (binary_expression "puVar8 + 0x14a180" identifier + number_literal) ))))) + number_literal) )))) == (char_literal "'\x05'" ' escape_sequence '))) ))) )) (compound_statement "{\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" { (expression_statement "local_58 = *(int *)(puVar4[5] + 0x20);" (assignment_expression "local_58 = *(int *)(puVar4[5] + 0x20)" identifier = (pointer_expression "*(int *)(puVar4[5] + 0x20)" * (cast_expression "(int *)(puVar4[5] + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4[5] + 0x20)" ( (binary_expression "puVar4[5] + 0x20" (subscript_expression "puVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) })) }) (else_clause "else {\n    local_58 = 0;\n  }" else (compound_statement "{\n    local_58 = 0;\n  }" { (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) }))) (expression_statement "*piVar6 = local_58;" (assignment_expression "*piVar6 = local_58" (pointer_expression "*piVar6" * identifier) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)*piVar7)" ( (binary_expression "puVar2 != (undefined4 *)*piVar7" identifier != (cast_expression "(undefined4 *)*piVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" { (expression_statement "(**(code **)(puVar8 + 0x14a61c))();" (call_expression "(**(code **)(puVar8 + 0x14a61c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x14a61c))" ( (pointer_expression "**(code **)(puVar8 + 0x14a61c)" * (pointer_expression "*(code **)(puVar8 + 0x14a61c)" * (cast_expression "(code **)(puVar8 + 0x14a61c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x14a61c)" ( (binary_expression "puVar8 + 0x14a61c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)puVar2[3])(*puVar2);" (call_expression "(*(code *)puVar2[3])(*puVar2)" (parenthesized_expression "(*(code *)puVar2[3])" ( (pointer_expression "*(code *)puVar2[3]" * (cast_expression "(code *)puVar2[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00046704(undefined4 *param_1,undefined *param_2,int *param_3)" (identifier "FUN_00046704") (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined *param_2" (type_identifier "undefined") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined *puVar8;\n  int local_58;\n  int local_20;\n  undefined4 *local_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00190e24;\n  piVar6 = &local_20;\n  local_20 = 0;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  puVar5 = param_2;\n  iVar1 = (*(code *)param_1[1])(*param_1);\n  iVar3 = local_20;\n  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }\n  *param_3 = iVar3;\n  if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }\n  puVar4 = local_1c;\n  puVar8 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  piVar7 = *(int **)(puVar8 + 0x14a648);\n  local_58 = 0;\n  puVar2 = (undefined4 *)*piVar7;\n  iVar3 = (*(code *)puVar4[2])(*puVar4);\n  if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }\n  *piVar6 = local_58;\n  if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int local_58;" (primitive_type "int") (identifier "local_58") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 *local_1c;" (type_identifier "undefined4") (pointer_declarator "*local_1c" (* "*") (identifier "local_1c")) (; ";")) (expression_statement "puVar8 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar8 = PTR___stack_chk_guard_00190e24" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "piVar6 = &local_20;" (assignment_expression "piVar6 = &local_20" (identifier "piVar6") (= "=") (pointer_expression "&local_20" (& "&") (identifier "local_20"))) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" (identifier "local_1c") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" (identifier "puVar5") (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar1 = (*(code *)param_1[1])(*param_1);" (assignment_expression "iVar1 = (*(code *)param_1[1])(*param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)param_1[1])(*param_1)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "iVar3 = local_20;" (assignment_expression "iVar3 = local_20" (identifier "iVar3") (= "=") (identifier "local_20")) (; ";")) (if_statement "if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (param_2 == (undefined *)0x1))" (( "(") (binary_expression "(iVar1 == 0) && (param_2 == (undefined *)0x1)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == (undefined *)0x1)" (( "(") (binary_expression "param_2 == (undefined *)0x1" (identifier "param_2") (== "==") (cast_expression "(undefined *)0x1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) () ")"))) () ")")) (compound_statement "{\n    piVar6 = (int *)&DAT_00000005;\n    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;\n    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }\n  }" ({ "{") (expression_statement "piVar6 = (int *)&DAT_00000005;" (assignment_expression "piVar6 = (int *)&DAT_00000005" (identifier "piVar6") (= "=") (cast_expression "(int *)&DAT_00000005" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000005" (& "&") (identifier "DAT_00000005")))) (; ";")) (expression_statement "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;" (assignment_expression "puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" (identifier "puVar5") (= "=") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "0x6a8c"))) (; ";")) (if_statement "if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" (if "if") (parenthesized_expression "(puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05')" (( "(") (binary_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05'" (subscript_expression "puVar5[*(ushort *)(local_20 + 8) & 0x1f]" (identifier "puVar5") ([ "[") (binary_expression "*(ushort *)(local_20 + 8) & 0x1f" (pointer_expression "*(ushort *)(local_20 + 8)" (* "*") (cast_expression "(ushort *)(local_20 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 8)" (( "(") (binary_expression "local_20 + 8" (identifier "local_20") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x1f")) (] "]")) (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = *(int *)(param_1[5] + 0x20);\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1[5] + 0x20);" (assignment_expression "iVar3 = *(int *)(param_1[5] + 0x20)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1[5] + 0x20)" (* "*") (cast_expression "(int *)(param_1[5] + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0x20)" (( "(") (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (local_1c == *(undefined4 **)puVar8) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_1c == *(undefined4 **)puVar8)" (( "(") (binary_expression "local_1c == *(undefined4 **)puVar8" (identifier "local_1c") (== "==") (pointer_expression "*(undefined4 **)puVar8" (* "*") (cast_expression "(undefined4 **)puVar8" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar8")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar4 = local_1c;" (assignment_expression "puVar4 = local_1c" (identifier "puVar4") (= "=") (identifier "local_1c")) (; ";")) (expression_statement "puVar8 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar8 = PTR___stack_chk_fail_00190df8" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_00190df8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar7 = *(int **)(puVar8 + 0x14a648);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0x14a648)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(puVar8 + 0x14a648)" (* "*") (cast_expression "(int **)(puVar8 + 0x14a648)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x14a648)" (( "(") (binary_expression "puVar8 + 0x14a648" (identifier "puVar8") (+ "+") (number_literal "0x14a648")) () ")"))))) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined4 *)*piVar7;" (assignment_expression "puVar2 = (undefined4 *)*piVar7" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*piVar7" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")))) (; ";")) (expression_statement "iVar3 = (*(code *)puVar4[2])(*puVar4);" (assignment_expression "iVar3 = (*(code *)puVar4[2])(*puVar4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)puVar4[2])(*puVar4)" (parenthesized_expression "(*(code *)puVar4[2])" (( "(") (pointer_expression "*(code *)puVar4[2]" (* "*") (cast_expression "(code *)puVar4[2]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")))) () ")")) (argument_list "(*puVar4)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }\n  else {\n    local_58 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }\n  }" ({ "{") (if_statement "if ((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" (if "if") (parenthesized_expression "((puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'))" (( "(") (binary_expression "(puVar5 == (undefined *)0x1) &&\n       (local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" (parenthesized_expression "(puVar5 == (undefined *)0x1)" (( "(") (binary_expression "puVar5 == (undefined *)0x1" (identifier "puVar5") (== "==") (cast_expression "(undefined *)0x1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) () ")")) (&& "&&") (parenthesized_expression "(local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')" (( "(") (comma_expression "local_58 = 0,\n       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (, ",") (binary_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05'" (pointer_expression "*(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" (* "*") (cast_expression "(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c)" (( "(") (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c" (binary_expression "(_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180)" (parenthesized_expression "(_DAT_00000008 & 0x1f)" (( "(") (binary_expression "_DAT_00000008 & 0x1f" (identifier "_DAT_00000008") (& "&") (number_literal "0x1f")) () ")")) (+ "+") (pointer_expression "*(int *)(puVar8 + 0x14a180)" (* "*") (cast_expression "(int *)(puVar8 + 0x14a180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0x14a180)" (( "(") (binary_expression "puVar8 + 0x14a180" (identifier "puVar8") (+ "+") (number_literal "0x14a180")) () ")"))))) (+ "+") (number_literal "0x6a8c")) () ")")))) (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'")))) () ")"))) () ")")) (compound_statement "{\n      local_58 = *(int *)(puVar4[5] + 0x20);\n    }" ({ "{") (expression_statement "local_58 = *(int *)(puVar4[5] + 0x20);" (assignment_expression "local_58 = *(int *)(puVar4[5] + 0x20)" (identifier "local_58") (= "=") (pointer_expression "*(int *)(puVar4[5] + 0x20)" (* "*") (cast_expression "(int *)(puVar4[5] + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4[5] + 0x20)" (( "(") (binary_expression "puVar4[5] + 0x20" (subscript_expression "puVar4[5]" (identifier "puVar4") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_58 = 0;\n  }" (else "else") (compound_statement "{\n    local_58 = 0;\n  }" ({ "{") (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "*piVar6 = local_58;" (assignment_expression "*piVar6 = local_58" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "local_58")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)*piVar7) {\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)*piVar7)" (( "(") (binary_expression "puVar2 != (undefined4 *)*piVar7" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)*piVar7" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")))) () ")")) (compound_statement "{\n    (**(code **)(puVar8 + 0x14a61c))();\n                    \n                    \n    (*(code *)puVar2[3])(*puVar2);\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(puVar8 + 0x14a61c))();" (call_expression "(**(code **)(puVar8 + 0x14a61c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x14a61c))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x14a61c)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x14a61c)" (* "*") (cast_expression "(code **)(puVar8 + 0x14a61c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x14a61c)" (( "(") (binary_expression "puVar8 + 0x14a61c" (identifier "puVar8") (+ "+") (number_literal "0x14a61c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)puVar2[3])(*puVar2);" (call_expression "(*(code *)puVar2[3])(*puVar2)" (parenthesized_expression "(*(code *)puVar2[3])" (( "(") (pointer_expression "*(code *)puVar2[3]" (* "*") (cast_expression "(code *)puVar2[3]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")))) () ")")) (argument_list "(*puVar2)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

int function_1(void *pCtx,int var_2,type_1 **ppVal)

{
  int var_1;
  type_2 *var_8;
  type_1 *psVar3;
  type_2 *puVar4;
  type_3 *var_6;
  type_1 **ppsVar6;
  int *piVar7;
  type_3 *var_5;
  type_1 *psStack_58;
  type_1 *psStack_20;
  type_2 *var_4;
  
  var_5 = PTR___stack_chk_guard_00190e24;
  ppsVar6 = &psStack_20;
                    /* WARNING: Load size is inaccurate */
  psStack_20 = (type_1 *)0x0;
  var_4 = *(type_2 **)PTR___stack_chk_guard_00190e24;
  var_6 = (type_3 *)var_2;
  var_1 = (**(type_4 **)((int)pCtx + 4))(*pCtx);
  psVar3 = psStack_20;
  if ((var_1 == 0) && (var_2 == 1)) {
    ppsVar6 = (type_1 **)&DAT_00000005;
    var_6 = var_3 + 0x6a8c;
    if (var_6[psStack_20->flags & 0x1f] == '\x05') {
      psVar3 = *(type_1 **)(*(int *)((int)pCtx + 0x14) + 0x20);
    }
  }
  *ppVal = psVar3;
  if (var_4 == *(type_2 **)var_5) {
    return var_1;
  }
  puVar4 = var_4;
  var_5 = PTR___stack_chk_fail_00190df8;
  (*(type_4 *)PTR___stack_chk_fail_00190df8)();
  piVar7 = *(int **)(var_5 + 0x14a648);
  psStack_58 = (type_1 *)0x0;
  var_8 = (type_2 *)*piVar7;
  var_1 = (*(type_4 *)puVar4[2])(*puVar4);
  if (var_1 == 0) {
    if ((var_6 == (type_3 *)0x1) &&
       (psStack_58 = (type_1 *)0x0,
       *(char *)((var_7 & 0x1f) + *(int *)(var_5 + 0x14a180) + 0x6a8c) == '\x05')) {
      psStack_58 = *(type_1 **)(puVar4[5] + 0x20);
    }
  }
  else {
    psStack_58 = (type_1 *)0x0;
  }
  *ppsVar6 = psStack_58;
  if (var_8 != (type_2 *)*piVar7) {
    (**(type_4 **)(var_5 + 0x14a61c))();
                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    var_1 = (*(type_4 *)var_8[3])(*var_8);
    return var_1;
  }
  return var_1;
}


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

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void MASKED(undefined4 *param_1,undefined *param_2,int *param_3)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined *puVar5;
  int *piVar6;
  int *piVar7;
  undefined *puVar8;
  int local_58;
  int local_20;
  undefined4 *local_1c;
  
  puVar8 = PTR___stack_chk_guard_00190e24;
  piVar6 = &local_20;
  local_20 = 0;
  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  puVar5 = param_2;
  iVar1 = (*(code *)param_1[1])(*param_1);
  iVar3 = local_20;
  if ((iVar1 == 0) && (param_2 == (undefined *)0x1)) {
    piVar6 = (int *)&DAT_00000005;
    puVar5 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + 0x6a8c;
    if (puVar5[*(ushort *)(local_20 + 8) & 0x1f] == '\x05') {
      iVar3 = *(int *)(param_1[5] + 0x20);
    }
  }
  *param_3 = iVar3;
  if (local_1c == *(undefined4 **)puVar8) {
    return;
  }
  puVar4 = local_1c;
  puVar8 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  piVar7 = *(int **)(puVar8 + 0x14a648);
  local_58 = 0;
  puVar2 = (undefined4 *)*piVar7;
  iVar3 = (*(code *)puVar4[2])(*puVar4);
  if (iVar3 == 0) {
    if ((puVar5 == (undefined *)0x1) &&
       (local_58 = 0,
       *(char *)((_DAT_00000008 & 0x1f) + *(int *)(puVar8 + 0x14a180) + 0x6a8c) == '\x05')) {
      local_58 = *(int *)(puVar4[5] + 0x20);
    }
  }
  else {
    local_58 = 0;
  }
  *piVar6 = local_58;
  if (puVar2 != (undefined4 *)*piVar7) {
    (**(code **)(puVar8 + 0x14a61c))();
                    /* WARNING: Could not recover jumptable at 0x000468b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)puVar2[3])(*puVar2);
    return;
  }
  return;
}

