
int sqlite3VdbeMemSetRowSet(Mem *pMem)

{
  char *pcVar1;
  int iVar2;
  undefined2 uVar3;
  sqlite3 *db;
  undefined1 *puVar4;
  undefined4 in_stack_ffffffec;
  
  puVar4 = &_gp;
  db = pMem->db;
  if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {
    vdbeMemClear(pMem);
  }
  pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec));
  if (pcVar1 == (char *)0x0) {
    return 7;
  }
  iVar2 = *(int *)(puVar4 + -0x7fe4);
  if ((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))
  {
    uVar3 = 6;
    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;
    iVar2 = *(int *)(puVar4 + -0x7fe4);
    if ((db->lookaside).pStart <= pcVar1) {
      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);
      goto LAB_00038480;
    }
  }
  iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1);
  uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);
LAB_00038480:
  *(undefined2 *)(pcVar1 + 0x18) = uVar3;
  *(sqlite3 **)(pcVar1 + 4) = db;
  pcVar1[0x1a] = '\0';
  pcVar1[0x1b] = '\x01';
  pcVar1[0] = '\0';
  pcVar1[1] = '\0';
  pcVar1[2] = '\0';
  pcVar1[3] = '\0';
  pcVar1[8] = '\0';
  pcVar1[9] = '\0';
  pcVar1[10] = '\0';
  pcVar1[0xb] = '\0';
  pcVar1[0xc] = '\0';
  pcVar1[0xd] = '\0';
  pcVar1[0xe] = '\0';
  pcVar1[0xf] = '\0';
  pcVar1[0x14] = '\0';
  pcVar1[0x15] = '\0';
  pcVar1[0x16] = '\0';
  pcVar1[0x17] = '\0';
  *(char **)(pcVar1 + 0x10) = pcVar1 + 0x20;
  pcVar1[0x1c] = '\0';
  pcVar1[0x1d] = '\0';
  pcVar1[0x1e] = '\0';
  pcVar1[0x1f] = '\0';
  pMem->flags = 0x410;
  iVar2 = *(int *)(puVar4 + -0x7fb8);
  pMem->z = pcVar1;
  pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8);
  return 0;
}



undefined4 FUN_000383f8(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  int iVar2;
  undefined2 uVar4;
  undefined *puVar3;
  int iVar5;
  
  iVar5 = *(int *)(param_1 + 0x20);
  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {
    FUN_00028f1c(param_1);
  }
  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);
  if (puVar1 == (undefined4 *)0x0) {
    return 7;
  }
  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {
    uVar4 = 6;
    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;
    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {
      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);
      goto LAB_00038480;
    }
  }
  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);
  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);
LAB_00038480:
  *(undefined2 *)(puVar1 + 6) = uVar4;
  puVar1[1] = iVar5;
  *(undefined2 *)((int)puVar1 + 0x1a) = 1;
  *puVar1 = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[5] = 0;
  puVar1[4] = puVar1 + 8;
  puVar1[7] = 0;
  *(undefined2 *)(param_1 + 8) = 0x410;
  puVar3 = PTR_LAB_000f52e8 + 0x13e8;
  *(undefined4 **)(param_1 + 0x10) = puVar1;
  *(undefined **)(param_1 + 0x24) = puVar3;
  return 0;
}


lui gp,0xc
addiu gp,gp,0x4ea8
addu gp,gp,t9
addiu sp,sp,-0x28
lhu v0,0x8(a0)
andi v0,v0,0x2400
sw gp,0x10(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw ra,0x24(sp)
sw s0,0x18(sp)
bne v0,zero,0x000384e0
_lw s2,0x20(a0)
lw v0,0x18(a0)
bne v0,zero,0x000384e4
_lw t9,-0x7fb4(gp)
lw t9,-0x7fb4(gp)
li a3,0x20
or a2,zero,zero
addiu t9,t9,0x6c00
bal 0x00036c00
_or a0,s2,zero
lw gp,0x10(sp)
beq v0,zero,0x000384f8
_or s0,v0,zero
bne s2,zero,0x00038514
_lw v0,-0x7fe4(gp)
lw t9,0x40cc(v0)
jalr t9
_or a0,s0,zero
addiu v0,v0,-0x20
lw gp,0x10(sp)
ext v1,v0,0x4,0x10
sh v1,0x18(s0)
li v1,0x1
addiu a0,s0,0x20
sw s2,0x4(s0)
sh v1,0x1a(s0)
li v1,0x410
sw zero,0x0(s0)
or v0,zero,zero
sw zero,0x8(s0)
sw zero,0xc(s0)
sw zero,0x14(s0)
sw a0,0x10(s0)
sw zero,0x1c(s0)
sh v1,0x8(s1)
lw v1,-0x7fb8(gp)
lw ra,0x24(sp)
lw s2,0x20(sp)
addiu v1,v1,0x13e8
sw s0,0x10(s1)
lw s0,0x18(sp)
sw v1,0x24(s1)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x70e4
bal 0x00028f1c
_or a0,s1,zero
b 0x0003843c
_lw gp,0x10(sp)
lw ra,0x24(sp)
li v0,0x7
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x14c(s2)
sltu v0,s0,v0
beq v0,zero,0x00038468
_lw v0,-0x7fe4(gp)
lw v0,0x144(s2)
sltu v0,s0,v0
beq v0,zero,0x00038480
_li v1,0x6
lw v0,0x148(s2)
sltu v0,s0,v0
bne v0,zero,0x00038468
_lw v0,-0x7fe4(gp)
lhu v1,0x11e(s2)
addiu v1,v1,-0x20
b 0x00038480
_ext v1,v1,0x4,0x10
(translation_unit "undefined4 FUN_000383f8(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000383f8(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" type_identifier (function_declarator "FUN_000383f8(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined2 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" { (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);" (assignment_expression "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" identifier = (cast_expression "(undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(iVar5,param_2,0,0x20)" identifier (argument_list "(iVar5,param_2,0,0x20)" ( identifier , identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" if (parenthesized_expression "((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c)))" ( (binary_expression "(iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar1 < *(undefined4 **)(iVar5 + 0x14c))" ( (binary_expression "puVar1 < *(undefined4 **)(iVar5 + 0x14c)" identifier < (pointer_expression "*(undefined4 **)(iVar5 + 0x14c)" * (cast_expression "(undefined4 **)(iVar5 + 0x14c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14c)" ( (binary_expression "iVar5 + 0x14c" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" { (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) (if_statement "if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;" if (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x144) <= puVar1)" ( (binary_expression "*(undefined4 **)(iVar5 + 0x144) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x144)" * (cast_expression "(undefined4 **)(iVar5 + 0x144)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x144)" ( (binary_expression "iVar5 + 0x144" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00038480;" goto statement_identifier ;)) (if_statement "if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" if (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x148) <= puVar1)" ( (binary_expression "*(undefined4 **)(iVar5 + 0x148) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x148)" * (cast_expression "(undefined4 **)(iVar5 + 0x148)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x148)" ( (binary_expression "iVar5 + 0x148" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" { (expression_statement "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);" (assignment_expression "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" identifier = (call_expression "(undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" ( (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10" (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000" (parenthesized_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20)" ( (binary_expression "*(ushort *)(iVar5 + 0x11e) - 0x20" (pointer_expression "*(ushort *)(iVar5 + 0x11e)" * (cast_expression "(ushort *)(iVar5 + 0x11e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x11e)" ( (binary_expression "iVar5 + 0x11e" identifier + number_literal) )))) - number_literal) )) * number_literal) >> number_literal) )))) ;) (goto_statement "goto LAB_00038480;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);" (assignment_expression "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) (expression_statement "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);" (assignment_expression "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" identifier = (call_expression "(undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" ( (binary_expression "(uint)((iVar2 + -0x20) * 0x1000) >> 0x10" (call_expression "(uint)((iVar2 + -0x20) * 0x1000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((iVar2 + -0x20) * 0x1000)" ( (binary_expression "(iVar2 + -0x20) * 0x1000" (parenthesized_expression "(iVar2 + -0x20)" ( (binary_expression "iVar2 + -0x20" identifier + number_literal) )) * number_literal) ))) >> number_literal) )))) ;) (labeled_statement "LAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;" statement_identifier : (expression_statement "*(undefined2 *)(puVar1 + 6) = uVar4;" (assignment_expression "*(undefined2 *)(puVar1 + 6) = uVar4" (pointer_expression "*(undefined2 *)(puVar1 + 6)" * (cast_expression "(undefined2 *)(puVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 6)" ( (binary_expression "puVar1 + 6" identifier + number_literal) )))) = identifier) ;)) (expression_statement "puVar1[1] = iVar5;" (assignment_expression "puVar1[1] = iVar5" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)((int)puVar1 + 0x1a) = 1;" (assignment_expression "*(undefined2 *)((int)puVar1 + 0x1a) = 1" (pointer_expression "*(undefined2 *)((int)puVar1 + 0x1a)" * (cast_expression "(undefined2 *)((int)puVar1 + 0x1a)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0x1a)" ( (binary_expression "(int)puVar1 + 0x1a" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = puVar1 + 8;" (assignment_expression "puVar1[4] = puVar1 + 8" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 8) = 0x410;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 0x410" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3 = PTR_LAB_000f52e8 + 0x13e8;" (assignment_expression "puVar3 = PTR_LAB_000f52e8 + 0x13e8" identifier = (binary_expression "PTR_LAB_000f52e8 + 0x13e8" identifier + number_literal)) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined **)(param_1 + 0x24) = puVar3;" (assignment_expression "*(undefined **)(param_1 + 0x24) = puVar3" (pointer_expression "*(undefined **)(param_1 + 0x24)" * (cast_expression "(undefined **)(param_1 + 0x24)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3VdbeMemSetRowSet(Mem *pMem)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined2 uVar3;\n  sqlite3 *db;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffec;\n  \n  puVar4 = &_gp;\n  db = pMem->db;\n  if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n    vdbeMemClear(pMem);\n  }\n  pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec));\n  if (pcVar1 == (char *)0x0) {\n    return 7;\n  }\n  iVar2 = *(int *)(puVar4 + -0x7fe4);\n  if ((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))\n  {\n    uVar3 = 6;\n    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;\n    iVar2 = *(int *)(puVar4 + -0x7fe4);\n    if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1);\n  uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(pcVar1 + 0x18) = uVar3;\n  *(sqlite3 **)(pcVar1 + 4) = db;\n  pcVar1[0x1a] = '\0';\n  pcVar1[0x1b] = '\x01';\n  pcVar1[0] = '\0';\n  pcVar1[1] = '\0';\n  pcVar1[2] = '\0';\n  pcVar1[3] = '\0';\n  pcVar1[8] = '\0';\n  pcVar1[9] = '\0';\n  pcVar1[10] = '\0';\n  pcVar1[0xb] = '\0';\n  pcVar1[0xc] = '\0';\n  pcVar1[0xd] = '\0';\n  pcVar1[0xe] = '\0';\n  pcVar1[0xf] = '\0';\n  pcVar1[0x14] = '\0';\n  pcVar1[0x15] = '\0';\n  pcVar1[0x16] = '\0';\n  pcVar1[0x17] = '\0';\n  *(char **)(pcVar1 + 0x10) = pcVar1 + 0x20;\n  pcVar1[0x1c] = '\0';\n  pcVar1[0x1d] = '\0';\n  pcVar1[0x1e] = '\0';\n  pcVar1[0x1f] = '\0';\n  pMem->flags = 0x410;\n  iVar2 = *(int *)(puVar4 + -0x7fb8);\n  pMem->z = pcVar1;\n  pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8);\n  return 0;\n}\n\n" (function_definition "int sqlite3VdbeMemSetRowSet(Mem *pMem)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined2 uVar3;\n  sqlite3 *db;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffec;\n  \n  puVar4 = &_gp;\n  db = pMem->db;\n  if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n    vdbeMemClear(pMem);\n  }\n  pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec));\n  if (pcVar1 == (char *)0x0) {\n    return 7;\n  }\n  iVar2 = *(int *)(puVar4 + -0x7fe4);\n  if ((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))\n  {\n    uVar3 = 6;\n    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;\n    iVar2 = *(int *)(puVar4 + -0x7fe4);\n    if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1);\n  uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(pcVar1 + 0x18) = uVar3;\n  *(sqlite3 **)(pcVar1 + 4) = db;\n  pcVar1[0x1a] = '\0';\n  pcVar1[0x1b] = '\x01';\n  pcVar1[0] = '\0';\n  pcVar1[1] = '\0';\n  pcVar1[2] = '\0';\n  pcVar1[3] = '\0';\n  pcVar1[8] = '\0';\n  pcVar1[9] = '\0';\n  pcVar1[10] = '\0';\n  pcVar1[0xb] = '\0';\n  pcVar1[0xc] = '\0';\n  pcVar1[0xd] = '\0';\n  pcVar1[0xe] = '\0';\n  pcVar1[0xf] = '\0';\n  pcVar1[0x14] = '\0';\n  pcVar1[0x15] = '\0';\n  pcVar1[0x16] = '\0';\n  pcVar1[0x17] = '\0';\n  *(char **)(pcVar1 + 0x10) = pcVar1 + 0x20;\n  pcVar1[0x1c] = '\0';\n  pcVar1[0x1d] = '\0';\n  pcVar1[0x1e] = '\0';\n  pcVar1[0x1f] = '\0';\n  pMem->flags = 0x410;\n  iVar2 = *(int *)(puVar4 + -0x7fb8);\n  pMem->z = pcVar1;\n  pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8);\n  return 0;\n}" primitive_type (function_declarator "sqlite3VdbeMemSetRowSet(Mem *pMem)" identifier (parameter_list "(Mem *pMem)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined2 uVar3;\n  sqlite3 *db;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffec;\n  \n  puVar4 = &_gp;\n  db = pMem->db;\n  if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n    vdbeMemClear(pMem);\n  }\n  pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec));\n  if (pcVar1 == (char *)0x0) {\n    return 7;\n  }\n  iVar2 = *(int *)(puVar4 + -0x7fe4);\n  if ((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))\n  {\n    uVar3 = 6;\n    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;\n    iVar2 = *(int *)(puVar4 + -0x7fe4);\n    if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1);\n  uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(pcVar1 + 0x18) = uVar3;\n  *(sqlite3 **)(pcVar1 + 4) = db;\n  pcVar1[0x1a] = '\0';\n  pcVar1[0x1b] = '\x01';\n  pcVar1[0] = '\0';\n  pcVar1[1] = '\0';\n  pcVar1[2] = '\0';\n  pcVar1[3] = '\0';\n  pcVar1[8] = '\0';\n  pcVar1[9] = '\0';\n  pcVar1[10] = '\0';\n  pcVar1[0xb] = '\0';\n  pcVar1[0xc] = '\0';\n  pcVar1[0xd] = '\0';\n  pcVar1[0xe] = '\0';\n  pcVar1[0xf] = '\0';\n  pcVar1[0x14] = '\0';\n  pcVar1[0x15] = '\0';\n  pcVar1[0x16] = '\0';\n  pcVar1[0x17] = '\0';\n  *(char **)(pcVar1 + 0x10) = pcVar1 + 0x20;\n  pcVar1[0x1c] = '\0';\n  pcVar1[0x1d] = '\0';\n  pcVar1[0x1e] = '\0';\n  pcVar1[0x1f] = '\0';\n  pMem->flags = 0x410;\n  iVar2 = *(int *)(puVar4 + -0x7fb8);\n  pMem->z = pcVar1;\n  pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8);\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined2 uVar3;" type_identifier identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (expression_statement "puVar4 = &_gp;" (assignment_expression "puVar4 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "db = pMem->db;" (assignment_expression "db = pMem->db" identifier = (field_expression "pMem->db" identifier -> field_identifier)) ;) (if_statement "if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {\n    vdbeMemClear(pMem);\n  }" if (parenthesized_expression "(((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0))" ( (binary_expression "((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)" (parenthesized_expression "((pMem->flags & 0x2400) != 0)" ( (binary_expression "(pMem->flags & 0x2400) != 0" (parenthesized_expression "(pMem->flags & 0x2400)" ( (binary_expression "pMem->flags & 0x2400" (field_expression "pMem->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) || (parenthesized_expression "(pMem->szMalloc != 0)" ( (binary_expression "pMem->szMalloc != 0" (field_expression "pMem->szMalloc" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    vdbeMemClear(pMem);\n  }" { (expression_statement "vdbeMemClear(pMem);" (call_expression "vdbeMemClear(pMem)" identifier (argument_list "(pMem)" ( identifier ))) ;) })) (expression_statement "pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec));" (assignment_expression "pcVar1 = (char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec))" identifier = (cast_expression "(char *)sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(puVar4,in_stack_ffffffec))" identifier (argument_list "(db,CONCAT44(puVar4,in_stack_ffffffec))" ( identifier , (call_expression "CONCAT44(puVar4,in_stack_ffffffec)" identifier (argument_list "(puVar4,in_stack_ffffffec)" ( identifier , identifier ))) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    return 7;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7fe4);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7fe4)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7fe4)" * (cast_expression "(int *)(puVar4 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7fe4)" ( (binary_expression "puVar4 + -0x7fe4" identifier + number_literal) ))))) ;) (if_statement "if ((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))\n  {\n    uVar3 = 6;\n    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;\n    iVar2 = *(int *)(puVar4 + -0x7fe4);\n    if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" if (parenthesized_expression "((db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd))" ( (binary_expression "(db != (sqlite3 *)0x0) && (iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd)" (parenthesized_expression "(db != (sqlite3 *)0x0)" ( (binary_expression "db != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd)" ( (comma_expression "iVar2 = *(int *)(puVar4 + -0x7fe4), pcVar1 < (db->lookaside).pEnd" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7fe4)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7fe4)" * (cast_expression "(int *)(puVar4 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7fe4)" ( (binary_expression "puVar4 + -0x7fe4" identifier + number_literal) ))))) , (binary_expression "pcVar1 < (db->lookaside).pEnd" identifier < (field_expression "(db->lookaside).pEnd" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier))) ))) )) (compound_statement "{\n    uVar3 = 6;\n    if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;\n    iVar2 = *(int *)(puVar4 + -0x7fe4);\n    if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" { (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" identifier = number_literal) ;) (if_statement "if ((db->lookaside).pMiddle <= pcVar1) goto LAB_00038480;" if (parenthesized_expression "((db->lookaside).pMiddle <= pcVar1)" ( (binary_expression "(db->lookaside).pMiddle <= pcVar1" (field_expression "(db->lookaside).pMiddle" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (goto_statement "goto LAB_00038480;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7fe4);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7fe4)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7fe4)" * (cast_expression "(int *)(puVar4 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7fe4)" ( (binary_expression "puVar4 + -0x7fe4" identifier + number_literal) ))))) ;) (if_statement "if ((db->lookaside).pStart <= pcVar1) {\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" if (parenthesized_expression "((db->lookaside).pStart <= pcVar1)" ( (binary_expression "(db->lookaside).pStart <= pcVar1" (field_expression "(db->lookaside).pStart" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n      uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" { (expression_statement "uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);" (assignment_expression "uVar3 = (undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10)" identifier = (call_expression "(undefined2)(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "(((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10)" ( (binary_expression "((db->lookaside).szTrue - 0x20) * 0x1000 >> 0x10" (binary_expression "((db->lookaside).szTrue - 0x20) * 0x1000" (parenthesized_expression "((db->lookaside).szTrue - 0x20)" ( (binary_expression "(db->lookaside).szTrue - 0x20" (field_expression "(db->lookaside).szTrue" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier) - number_literal) )) * number_literal) >> number_literal) )))) ;) (goto_statement "goto LAB_00038480;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1);" (assignment_expression "iVar2 = (**(code **)(iVar2 + 0x40cc))(pcVar1)" identifier = (call_expression "(**(code **)(iVar2 + 0x40cc))(pcVar1)" (parenthesized_expression "(**(code **)(iVar2 + 0x40cc))" ( (pointer_expression "**(code **)(iVar2 + 0x40cc)" * (pointer_expression "*(code **)(iVar2 + 0x40cc)" * (cast_expression "(code **)(iVar2 + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x40cc)" ( (binary_expression "iVar2 + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);" (assignment_expression "uVar3 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" identifier = (call_expression "(undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" ( (binary_expression "(uint)((iVar2 + -0x20) * 0x1000) >> 0x10" (call_expression "(uint)((iVar2 + -0x20) * 0x1000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((iVar2 + -0x20) * 0x1000)" ( (binary_expression "(iVar2 + -0x20) * 0x1000" (parenthesized_expression "(iVar2 + -0x20)" ( (binary_expression "iVar2 + -0x20" identifier + number_literal) )) * number_literal) ))) >> number_literal) )))) ;) (labeled_statement "LAB_00038480:\n  *(undefined2 *)(pcVar1 + 0x18) = uVar3;" statement_identifier : (expression_statement "*(undefined2 *)(pcVar1 + 0x18) = uVar3;" (assignment_expression "*(undefined2 *)(pcVar1 + 0x18) = uVar3" (pointer_expression "*(undefined2 *)(pcVar1 + 0x18)" * (cast_expression "(undefined2 *)(pcVar1 + 0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 0x18)" ( (binary_expression "pcVar1 + 0x18" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(sqlite3 **)(pcVar1 + 4) = db;" (assignment_expression "*(sqlite3 **)(pcVar1 + 4) = db" (pointer_expression "*(sqlite3 **)(pcVar1 + 4)" * (cast_expression "(sqlite3 **)(pcVar1 + 4)" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar1 + 4)" ( (binary_expression "pcVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar1[0x1a] = '\0';" (assignment_expression "pcVar1[0x1a] = '\0'" (subscript_expression "pcVar1[0x1a]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x1b] = '\x01';" (assignment_expression "pcVar1[0x1b] = '\x01'" (subscript_expression "pcVar1[0x1b]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0] = '\0';" (assignment_expression "pcVar1[0] = '\0'" (subscript_expression "pcVar1[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[1] = '\0';" (assignment_expression "pcVar1[1] = '\0'" (subscript_expression "pcVar1[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[2] = '\0';" (assignment_expression "pcVar1[2] = '\0'" (subscript_expression "pcVar1[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[3] = '\0';" (assignment_expression "pcVar1[3] = '\0'" (subscript_expression "pcVar1[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[8] = '\0';" (assignment_expression "pcVar1[8] = '\0'" (subscript_expression "pcVar1[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[9] = '\0';" (assignment_expression "pcVar1[9] = '\0'" (subscript_expression "pcVar1[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[10] = '\0';" (assignment_expression "pcVar1[10] = '\0'" (subscript_expression "pcVar1[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0xb] = '\0';" (assignment_expression "pcVar1[0xb] = '\0'" (subscript_expression "pcVar1[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0xc] = '\0';" (assignment_expression "pcVar1[0xc] = '\0'" (subscript_expression "pcVar1[0xc]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0xd] = '\0';" (assignment_expression "pcVar1[0xd] = '\0'" (subscript_expression "pcVar1[0xd]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0xe] = '\0';" (assignment_expression "pcVar1[0xe] = '\0'" (subscript_expression "pcVar1[0xe]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0xf] = '\0';" (assignment_expression "pcVar1[0xf] = '\0'" (subscript_expression "pcVar1[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x14] = '\0';" (assignment_expression "pcVar1[0x14] = '\0'" (subscript_expression "pcVar1[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x15] = '\0';" (assignment_expression "pcVar1[0x15] = '\0'" (subscript_expression "pcVar1[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x16] = '\0';" (assignment_expression "pcVar1[0x16] = '\0'" (subscript_expression "pcVar1[0x16]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x17] = '\0';" (assignment_expression "pcVar1[0x17] = '\0'" (subscript_expression "pcVar1[0x17]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(char **)(pcVar1 + 0x10) = pcVar1 + 0x20;" (assignment_expression "*(char **)(pcVar1 + 0x10) = pcVar1 + 0x20" (pointer_expression "*(char **)(pcVar1 + 0x10)" * (cast_expression "(char **)(pcVar1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar1 + 0x10)" ( (binary_expression "pcVar1 + 0x10" identifier + number_literal) )))) = (binary_expression "pcVar1 + 0x20" identifier + number_literal)) ;) (expression_statement "pcVar1[0x1c] = '\0';" (assignment_expression "pcVar1[0x1c] = '\0'" (subscript_expression "pcVar1[0x1c]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x1d] = '\0';" (assignment_expression "pcVar1[0x1d] = '\0'" (subscript_expression "pcVar1[0x1d]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x1e] = '\0';" (assignment_expression "pcVar1[0x1e] = '\0'" (subscript_expression "pcVar1[0x1e]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar1[0x1f] = '\0';" (assignment_expression "pcVar1[0x1f] = '\0'" (subscript_expression "pcVar1[0x1f]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pMem->flags = 0x410;" (assignment_expression "pMem->flags = 0x410" (field_expression "pMem->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7fb8);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7fb8)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7fb8)" * (cast_expression "(int *)(puVar4 + -0x7fb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7fb8)" ( (binary_expression "puVar4 + -0x7fb8" identifier + number_literal) ))))) ;) (expression_statement "pMem->z = pcVar1;" (assignment_expression "pMem->z = pcVar1" (field_expression "pMem->z" identifier -> field_identifier) = identifier) ;) (expression_statement "pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8);" (assignment_expression "pMem->xDel = (_func_void_void_ptr *)(iVar2 + 0x13e8)" (field_expression "pMem->xDel" identifier -> field_identifier) = (cast_expression "(_func_void_void_ptr *)(iVar2 + 0x13e8)" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x13e8)" ( (binary_expression "iVar2 + 0x13e8" identifier + number_literal) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000383f8(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000383f8(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" type_identifier (function_declarator "FUN_000383f8(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined2 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" { (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);" (assignment_expression "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" identifier = (cast_expression "(undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(iVar5,param_2,0,0x20)" identifier (argument_list "(iVar5,param_2,0,0x20)" ( identifier , identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" if (parenthesized_expression "((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c)))" ( (binary_expression "(iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar1 < *(undefined4 **)(iVar5 + 0x14c))" ( (binary_expression "puVar1 < *(undefined4 **)(iVar5 + 0x14c)" identifier < (pointer_expression "*(undefined4 **)(iVar5 + 0x14c)" * (cast_expression "(undefined4 **)(iVar5 + 0x14c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14c)" ( (binary_expression "iVar5 + 0x14c" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" { (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) (if_statement "if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;" if (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x144) <= puVar1)" ( (binary_expression "*(undefined4 **)(iVar5 + 0x144) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x144)" * (cast_expression "(undefined4 **)(iVar5 + 0x144)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x144)" ( (binary_expression "iVar5 + 0x144" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00038480;" goto statement_identifier ;)) (if_statement "if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" if (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x148) <= puVar1)" ( (binary_expression "*(undefined4 **)(iVar5 + 0x148) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x148)" * (cast_expression "(undefined4 **)(iVar5 + 0x148)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x148)" ( (binary_expression "iVar5 + 0x148" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" { (expression_statement "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);" (assignment_expression "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" identifier = (call_expression "(undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" ( (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10" (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000" (parenthesized_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20)" ( (binary_expression "*(ushort *)(iVar5 + 0x11e) - 0x20" (pointer_expression "*(ushort *)(iVar5 + 0x11e)" * (cast_expression "(ushort *)(iVar5 + 0x11e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x11e)" ( (binary_expression "iVar5 + 0x11e" identifier + number_literal) )))) - number_literal) )) * number_literal) >> number_literal) )))) ;) (goto_statement "goto LAB_00038480;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);" (assignment_expression "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) (expression_statement "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);" (assignment_expression "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" identifier = (call_expression "(undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" ( (binary_expression "(uint)((iVar2 + -0x20) * 0x1000) >> 0x10" (call_expression "(uint)((iVar2 + -0x20) * 0x1000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((iVar2 + -0x20) * 0x1000)" ( (binary_expression "(iVar2 + -0x20) * 0x1000" (parenthesized_expression "(iVar2 + -0x20)" ( (binary_expression "iVar2 + -0x20" identifier + number_literal) )) * number_literal) ))) >> number_literal) )))) ;) (labeled_statement "LAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;" statement_identifier : (expression_statement "*(undefined2 *)(puVar1 + 6) = uVar4;" (assignment_expression "*(undefined2 *)(puVar1 + 6) = uVar4" (pointer_expression "*(undefined2 *)(puVar1 + 6)" * (cast_expression "(undefined2 *)(puVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 6)" ( (binary_expression "puVar1 + 6" identifier + number_literal) )))) = identifier) ;)) (expression_statement "puVar1[1] = iVar5;" (assignment_expression "puVar1[1] = iVar5" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)((int)puVar1 + 0x1a) = 1;" (assignment_expression "*(undefined2 *)((int)puVar1 + 0x1a) = 1" (pointer_expression "*(undefined2 *)((int)puVar1 + 0x1a)" * (cast_expression "(undefined2 *)((int)puVar1 + 0x1a)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0x1a)" ( (binary_expression "(int)puVar1 + 0x1a" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = puVar1 + 8;" (assignment_expression "puVar1[4] = puVar1 + 8" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 8) = 0x410;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 0x410" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3 = PTR_LAB_000f52e8 + 0x13e8;" (assignment_expression "puVar3 = PTR_LAB_000f52e8 + 0x13e8" identifier = (binary_expression "PTR_LAB_000f52e8 + 0x13e8" identifier + number_literal)) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined **)(param_1 + 0x24) = puVar3;" (assignment_expression "*(undefined **)(param_1 + 0x24) = puVar3" (pointer_expression "*(undefined **)(param_1 + 0x24)" * (cast_expression "(undefined **)(param_1 + 0x24)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) )) * LIT) >> LIT) )))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))) >> LIT) )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000383f8(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000383f8(int param_1,undefined4 param_2)" (identifier "FUN_000383f8") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined2 uVar4;\n  undefined *puVar3;\n  int iVar5;\n  \n  iVar5 = *(int *)(param_1 + 0x20);\n  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);\n  if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }\n  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }\n  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);\n  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);\nLAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;\n  puVar1[1] = iVar5;\n  *(undefined2 *)((int)puVar1 + 0x1a) = 1;\n  *puVar1 = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  puVar1[5] = 0;\n  puVar1[4] = puVar1 + 8;\n  puVar1[7] = 0;\n  *(undefined2 *)(param_1 + 8) = 0x410;\n  puVar3 = PTR_LAB_000f52e8 + 0x13e8;\n  *(undefined4 **)(param_1 + 0x10) = puVar1;\n  *(undefined **)(param_1 + 0x24) = puVar3;\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined2 uVar4;" (type_identifier "undefined2") (identifier "uVar4") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x20)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {\n    FUN_00028f1c(param_1);\n  }" (if "if") (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0))" (( "(") (binary_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) != 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" ({ "{") (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" (identifier "FUN_00028f1c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);" (assignment_expression "puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036c00(iVar5,param_2,0,0x20)" (identifier "FUN_00036c00") (argument_list "(iVar5,param_2,0,0x20)" (( "(") (identifier "iVar5") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0x20") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    return 7;\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 7;\n  }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (if_statement "if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" (if "if") (parenthesized_expression "((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c)))" (( "(") (binary_expression "(iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))" (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar1 < *(undefined4 **)(iVar5 + 0x14c))" (( "(") (binary_expression "puVar1 < *(undefined4 **)(iVar5 + 0x14c)" (identifier "puVar1") (< "<") (pointer_expression "*(undefined4 **)(iVar5 + 0x14c)" (* "*") (cast_expression "(undefined4 **)(iVar5 + 0x14c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x14c)" (( "(") (binary_expression "iVar5 + 0x14c" (identifier "iVar5") (+ "+") (number_literal "0x14c")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    uVar4 = 6;\n    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;\n    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }\n  }" ({ "{") (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" (identifier "uVar4") (= "=") (number_literal "6")) (; ";")) (if_statement "if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;" (if "if") (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x144) <= puVar1)" (( "(") (binary_expression "*(undefined4 **)(iVar5 + 0x144) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x144)" (* "*") (cast_expression "(undefined4 **)(iVar5 + 0x144)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x144)" (( "(") (binary_expression "iVar5 + 0x144" (identifier "iVar5") (+ "+") (number_literal "0x144")) () ")")))) (<= "<=") (identifier "puVar1")) () ")")) (goto_statement "goto LAB_00038480;" (goto "goto") (statement_identifier "LAB_00038480") (; ";"))) (if_statement "if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" (if "if") (parenthesized_expression "(*(undefined4 **)(iVar5 + 0x148) <= puVar1)" (( "(") (binary_expression "*(undefined4 **)(iVar5 + 0x148) <= puVar1" (pointer_expression "*(undefined4 **)(iVar5 + 0x148)" (* "*") (cast_expression "(undefined4 **)(iVar5 + 0x148)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x148)" (( "(") (binary_expression "iVar5 + 0x148" (identifier "iVar5") (+ "+") (number_literal "0x148")) () ")")))) (<= "<=") (identifier "puVar1")) () ")")) (compound_statement "{\n      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);\n      goto LAB_00038480;\n    }" ({ "{") (expression_statement "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);" (assignment_expression "uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" (identifier "uVar4") (= "=") (call_expression "(undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" (parenthesized_expression "(undefined2)" (( "(") (identifier "undefined2") () ")")) (argument_list "((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10)" (( "(") (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10" (binary_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000" (parenthesized_expression "(*(ushort *)(iVar5 + 0x11e) - 0x20)" (( "(") (binary_expression "*(ushort *)(iVar5 + 0x11e) - 0x20" (pointer_expression "*(ushort *)(iVar5 + 0x11e)" (* "*") (cast_expression "(ushort *)(iVar5 + 0x11e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x11e)" (( "(") (binary_expression "iVar5 + 0x11e" (identifier "iVar5") (+ "+") (number_literal "0x11e")) () ")")))) (- "-") (number_literal "0x20")) () ")")) (* "*") (number_literal "0x1000")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (goto_statement "goto LAB_00038480;" (goto "goto") (statement_identifier "LAB_00038480") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);" (assignment_expression "iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" (( "(") (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x40cc" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x40cc")) () ")"))))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")")))) (; ";")) (expression_statement "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);" (assignment_expression "uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (identifier "uVar4") (= "=") (call_expression "(undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (parenthesized_expression "(undefined2)" (( "(") (identifier "undefined2") () ")")) (argument_list "((uint)((iVar2 + -0x20) * 0x1000) >> 0x10)" (( "(") (binary_expression "(uint)((iVar2 + -0x20) * 0x1000) >> 0x10" (call_expression "(uint)((iVar2 + -0x20) * 0x1000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((iVar2 + -0x20) * 0x1000)" (( "(") (binary_expression "(iVar2 + -0x20) * 0x1000" (parenthesized_expression "(iVar2 + -0x20)" (( "(") (binary_expression "iVar2 + -0x20" (identifier "iVar2") (+ "+") (number_literal "-0x20")) () ")")) (* "*") (number_literal "0x1000")) () ")"))) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (labeled_statement "LAB_00038480:\n  *(undefined2 *)(puVar1 + 6) = uVar4;" (statement_identifier "LAB_00038480") (: ":") (expression_statement "*(undefined2 *)(puVar1 + 6) = uVar4;" (assignment_expression "*(undefined2 *)(puVar1 + 6) = uVar4" (pointer_expression "*(undefined2 *)(puVar1 + 6)" (* "*") (cast_expression "(undefined2 *)(puVar1 + 6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 6)" (( "(") (binary_expression "puVar1 + 6" (identifier "puVar1") (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "uVar4")) (; ";"))) (expression_statement "puVar1[1] = iVar5;" (assignment_expression "puVar1[1] = iVar5" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined2 *)((int)puVar1 + 0x1a) = 1;" (assignment_expression "*(undefined2 *)((int)puVar1 + 0x1a) = 1" (pointer_expression "*(undefined2 *)((int)puVar1 + 0x1a)" (* "*") (cast_expression "(undefined2 *)((int)puVar1 + 0x1a)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 0x1a)" (( "(") (binary_expression "(int)puVar1 + 0x1a" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "0x1a")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = puVar1 + 8;" (assignment_expression "puVar1[4] = puVar1 + 8" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 8) = 0x410;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 0x410" (pointer_expression "*(undefined2 *)(param_1 + 8)" (* "*") (cast_expression "(undefined2 *)(param_1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0x410")) (; ";")) (expression_statement "puVar3 = PTR_LAB_000f52e8 + 0x13e8;" (assignment_expression "puVar3 = PTR_LAB_000f52e8 + 0x13e8" (identifier "puVar3") (= "=") (binary_expression "PTR_LAB_000f52e8 + 0x13e8" (identifier "PTR_LAB_000f52e8") (+ "+") (number_literal "0x13e8"))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(undefined **)(param_1 + 0x24) = puVar3;" (assignment_expression "*(undefined **)(param_1 + 0x24) = puVar3" (pointer_expression "*(undefined **)(param_1 + 0x24)" (* "*") (cast_expression "(undefined **)(param_1 + 0x24)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pMem)

{
  char *var_4;
  int var_7;
  type_2 uVar3;
  type_3 *var_6;
  type_4 *var_5;
  type_5 in_stack_ffffffec;
  
  var_5 = &_gp;
  var_6 = pMem->var_6;
  if (((pMem->flags & 0x2400) != 0) || (pMem->szMalloc != 0)) {
    var_1(pMem);
  }
  var_4 = (char *)var_2(var_6,var_3(var_5,in_stack_ffffffec));
  if (var_4 == (char *)0x0) {
    return 7;
  }
  var_7 = *(int *)(var_5 + -0x7fe4);
  if ((var_6 != (type_3 *)0x0) && (var_7 = *(int *)(var_5 + -0x7fe4), var_4 < (var_6->lookaside).pEnd))
  {
    uVar3 = 6;
    if ((var_6->lookaside).pMiddle <= var_4) goto LAB_00038480;
    var_7 = *(int *)(var_5 + -0x7fe4);
    if ((var_6->lookaside).pStart <= var_4) {
      uVar3 = (type_2)(((var_6->lookaside).szTrue - 0x20) * 0x1000 >> 0x10);
      goto LAB_00038480;
    }
  }
  var_7 = (**(type_6 **)(var_7 + 0x40cc))(var_4);
  uVar3 = (type_2)((uint)((var_7 + -0x20) * 0x1000) >> 0x10);
LAB_00038480:
  *(type_2 *)(var_4 + 0x18) = uVar3;
  *(type_3 **)(var_4 + 4) = var_6;
  var_4[0x1a] = '\0';
  var_4[0x1b] = '\x01';
  var_4[0] = '\0';
  var_4[1] = '\0';
  var_4[2] = '\0';
  var_4[3] = '\0';
  var_4[8] = '\0';
  var_4[9] = '\0';
  var_4[10] = '\0';
  var_4[0xb] = '\0';
  var_4[0xc] = '\0';
  var_4[0xd] = '\0';
  var_4[0xe] = '\0';
  var_4[0xf] = '\0';
  var_4[0x14] = '\0';
  var_4[0x15] = '\0';
  var_4[0x16] = '\0';
  var_4[0x17] = '\0';
  *(char **)(var_4 + 0x10) = var_4 + 0x20;
  var_4[0x1c] = '\0';
  var_4[0x1d] = '\0';
  var_4[0x1e] = '\0';
  var_4[0x1f] = '\0';
  pMem->flags = 0x410;
  var_7 = *(int *)(var_5 + -0x7fb8);
  pMem->z = var_4;
  pMem->xDel = (type_7 *)(var_7 + 0x13e8);
  return 0;
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  int iVar2;
  undefined2 uVar4;
  undefined *puVar3;
  int iVar5;
  
  iVar5 = *(int *)(param_1 + 0x20);
  if (((*(ushort *)(param_1 + 8) & 0x2400) != 0) || (*(int *)(param_1 + 0x18) != 0)) {
    FUN_00028f1c(param_1);
  }
  puVar1 = (undefined4 *)FUN_00036c00(iVar5,param_2,0,0x20);
  if (puVar1 == (undefined4 *)0x0) {
    return 7;
  }
  if ((iVar5 != 0) && (puVar1 < *(undefined4 **)(iVar5 + 0x14c))) {
    uVar4 = 6;
    if (*(undefined4 **)(iVar5 + 0x144) <= puVar1) goto LAB_00038480;
    if (*(undefined4 **)(iVar5 + 0x148) <= puVar1) {
      uVar4 = (undefined2)((*(ushort *)(iVar5 + 0x11e) - 0x20) * 0x1000 >> 0x10);
      goto LAB_00038480;
    }
  }
  iVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar1);
  uVar4 = (undefined2)((uint)((iVar2 + -0x20) * 0x1000) >> 0x10);
LAB_00038480:
  *(undefined2 *)(puVar1 + 6) = uVar4;
  puVar1[1] = iVar5;
  *(undefined2 *)((int)puVar1 + 0x1a) = 1;
  *puVar1 = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[5] = 0;
  puVar1[4] = puVar1 + 8;
  puVar1[7] = 0;
  *(undefined2 *)(param_1 + 8) = 0x410;
  puVar3 = PTR_LAB_000f52e8 + 0x13e8;
  *(undefined4 **)(param_1 + 0x10) = puVar1;
  *(undefined **)(param_1 + 0x24) = puVar3;
  return 0;
}

