
int sqlite3VdbeMemFinalize(Mem *pMem,FuncDef *pFunc)

{
  u16 uVar1;
  u8 uVar2;
  u8 uVar3;
  undefined *puVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  Mem *pMVar8;
  undefined4 uVar9;
  Mem *pMVar10;
  Mem *pMVar11;
  Mem t;
  sqlite3_context ctx;
  
  puVar4 = PTR___stack_chk_guard_0015ba2c;
  t.u.nZero = 0;
  t.u.i._4_4_ = 0;
  t.flags = 1;
  t.enc = '\0';
  t.eSubtype = '\0';
  t.db = pMem->db;
  t.n = 0;
  t.z = (char *)0x0;
  t.zMalloc = (char *)0x0;
  t.szMalloc = 0;
  t.uTemp = 0;
  ctx.pVdbe = (Vdbe *)0x0;
  ctx.iOp = 0;
  ctx.isError = 0;
  ctx.skipFlag = '\0';
  ctx.argc = '\0';
  ctx._26_2_ = 0;
  ctx.argv[0] = (sqlite3_value *)0x0;
  t.xDel = (_func_void_void_ptr *)0x0;
  iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c;
  ctx.pOut = &t;
  ctx.pFunc = pFunc;
  ctx.pMem = pMem;
  (*pFunc->xFinalize)(&ctx);
  if (0 < pMem->szMalloc) {
                    /* WARNING: Subroutine does not return */
    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);
  }
  pMVar11 = &t;
  do {
    pMVar10 = pMVar11;
    pMVar8 = pMem;
    pMVar11 = (Mem *)&pMVar10->z;
    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);
    uVar1 = pMVar10->flags;
    uVar2 = pMVar10->enc;
    uVar3 = pMVar10->eSubtype;
    iVar6 = pMVar10->n;
    (pMVar8->u).nZero = (pMVar10->u).nZero;
    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;
    pMVar8->flags = uVar1;
    pMVar8->enc = uVar2;
    pMVar8->eSubtype = uVar3;
    pMVar8->n = iVar6;
    pMem = (Mem *)&pMVar8->z;
  } while (pMVar11 != (Mem *)&t.db);
  pcVar7 = pMVar10->zMalloc;
  pMVar8->z = *(char **)pMVar11;
  pMVar8->zMalloc = pcVar7;
  if (iVar5 == *(int *)puVar4) {
    return ctx.isError;
  }
  iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)();
  return iVar5;
}



undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)

{
  ushort uVar1;
  undefined *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  undefined4 local_60;
  undefined4 local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 *local_34;
  int local_30;
  undefined4 *local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_14;
  
  puVar2 = PTR___stack_chk_guard_0015ba2c;
  local_60 = 0;
  local_5c = 0;
  local_58 = 0x10000;
  local_40 = param_1[8];
  local_54 = 0;
  local_50 = 0;
  local_4c = 0;
  local_48 = 0;
  local_44 = 0;
  local_28 = 0;
  local_24 = 0;
  local_20 = 0;
  local_1c = 0;
  local_18 = 0;
  local_3c = 0;
  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;
  local_34 = &local_60;
  local_30 = param_2;
  local_2c = param_1;
  (**(code **)(param_2 + 0x14))(&local_34);
  if (0 < (int)param_1[6]) {
    FUN_0002a924(param_1[8],param_1[5]);
  }
  puVar8 = &local_60;
  do {
    puVar7 = puVar8;
    puVar5 = param_1;
    puVar8 = puVar7 + 4;
    uVar6 = puVar7[1];
    uVar4 = puVar7[2];
    uVar3 = puVar7[3];
    *puVar5 = *puVar7;
    puVar5[1] = uVar6;
    puVar5[2] = uVar4;
    puVar5[3] = uVar3;
    param_1 = puVar5 + 4;
  } while (puVar8 != &local_40);
  uVar3 = puVar7[5];
  *param_1 = *puVar8;
  puVar5[5] = uVar3;
  if (local_14 == *(int *)puVar2) {
    return local_20;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  uVar1 = *(ushort *)(param_1 + 2);
  if ((uVar1 & 0x2000) != 0) {
    FUN_0002a9c8();
    uVar1 = *(ushort *)(param_1 + 2);
  }
  if ((uVar1 & 0x400) != 0) {
    (*(code *)param_1[9])(param_1[4]);
  }
  *(undefined2 *)(param_1 + 2) = 1;
  return 1;
}


lui gp,0x14
addiu gp,gp,-0x7418
addu gp,gp,t9
addiu sp,sp,-0x78
li v0,0x1
sw s2,0x70(sp)
sw s1,0x6c(sp)
addiu s1,sp,0x18
sw s0,0x68(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu a0,sp,0x44
sw ra,0x74(sp)
sw zero,0x20(sp)
sw zero,0x18(sp)
sw zero,0x4(s1)
sh v0,0x20(sp)
lw s2,-0x7b84(gp)
lw v1,0x20(s0)
lw t9,0x14(a1)
sw zero,0xc(s1)
sw zero,0x10(s1)
sw zero,0x14(s1)
sw zero,0x18(s1)
sw zero,0x1c(s1)
sw zero,0x50(sp)
sw zero,0x54(sp)
sw zero,0x58(sp)
sw zero,0x5c(sp)
sw zero,0x60(sp)
sw zero,0x24(s1)
sw s1,0x44(sp)
sw s0,0x4c(sp)
sw a1,0x48(sp)
sw v1,0x38(sp)
lw v0,0x0(s2)
sw v0,0x64(sp)
jalr t9
_nop
lw v0,0x18(s0)
bgtz v0,0x0002aaf4
_lw gp,0x10(sp)
addiu a3,sp,0x38
or a0,s0,zero
lw a2,0x0(s1)
addiu s1,s1,0x10
lw a1,-0xc(s1)
lw v1,-0x8(s1)
lw v0,-0x4(s1)
swl a2,0x0(a0)
swr a2,0x3(a0)
swl a1,0x4(a0)
swr a1,0x7(a0)
swl v1,0x8(a0)
swr v1,0xb(a0)
swl v0,0xc(a0)
swr v0,0xf(a0)
bne s1,a3,0x0002aa78
_addiu a0,a0,0x10
lw v1,0x0(s1)
lw v0,0x4(s1)
lw a1,0x64(sp)
swl v1,0x0(a0)
swr v1,0x3(a0)
swl v0,0x4(a0)
swr v0,0x7(a0)
lw v1,0x0(s2)
bne a1,v1,0x0002ab10
_lw v0,0x58(sp)
lw ra,0x74(sp)
lw s2,0x70(sp)
lw s1,0x6c(sp)
lw s0,0x68(sp)
jr ra
_addiu sp,sp,0x78
lw t9,-0x7ed8(gp)
lw a1,0x14(s0)
addiu t9,t9,-0x56dc
bal 0x0002a924
_lw a0,0x20(s0)
b 0x0002aa70
_lw gp,0x10(sp)
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0002a9c8(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0x10000;" (assignment_expression "local_58 = 0x10000" identifier = number_literal) ;) (expression_statement "local_40 = param_1[8];" (assignment_expression "local_40 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_34 = &local_60;" (assignment_expression "local_34 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (expression_statement "(**(code **)(param_2 + 0x14))(&local_34);" (call_expression "(**(code **)(param_2 + 0x14))(&local_34)" (parenthesized_expression "(**(code **)(param_2 + 0x14))" ( (pointer_expression "**(code **)(param_2 + 0x14)" * (pointer_expression "*(code **)(param_2 + 0x14)" * (cast_expression "(code **)(param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) )) (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))) ;) (if_statement "if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" if (parenthesized_expression "(0 < (int)param_1[6])" ( (binary_expression "0 < (int)param_1[6]" number_literal < (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" { (expression_statement "FUN_0002a924(param_1[8],param_1[5]);" (call_expression "FUN_0002a924(param_1[8],param_1[5])" identifier (argument_list "(param_1[8],param_1[5])" ( (subscript_expression "param_1[8]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) })) (expression_statement "puVar8 = &local_60;" (assignment_expression "puVar8 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (do_statement "do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);" do (compound_statement "{\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  }" { (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" identifier = identifier) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (expression_statement "puVar8 = puVar7 + 4;" (assignment_expression "puVar8 = puVar7 + 4" identifier = (binary_expression "puVar7 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = puVar7[1];" (assignment_expression "uVar6 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = puVar7[2];" (assignment_expression "uVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" identifier = (subscript_expression "puVar7[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = *puVar7;" (assignment_expression "*puVar5 = *puVar7" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[2] = uVar4;" (assignment_expression "puVar5[2] = uVar4" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[3] = uVar3;" (assignment_expression "puVar5[3] = uVar3" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1 = puVar5 + 4;" (assignment_expression "param_1 = puVar5 + 4" identifier = (binary_expression "puVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar8 != &local_40)" ( (binary_expression "puVar8 != &local_40" identifier != (pointer_expression "&local_40" & identifier)) )) ;) (expression_statement "uVar3 = puVar7[5];" (assignment_expression "uVar3 = puVar7[5]" identifier = (subscript_expression "puVar7[5]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *puVar8;" (assignment_expression "*param_1 = *puVar8" (pointer_expression "*param_1" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar5[5] = uVar3;" (assignment_expression "puVar5[5] = uVar3" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar2)" ( (binary_expression "local_14 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_20;\n  }" { (return_statement "return local_20;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" if (parenthesized_expression "((uVar1 & 0x2000) != 0)" ( (binary_expression "(uVar1 & 0x2000) != 0" (parenthesized_expression "(uVar1 & 0x2000)" ( (binary_expression "uVar1 & 0x2000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" { (expression_statement "FUN_0002a9c8();" (call_expression "FUN_0002a9c8()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (*(code *)param_1[9])(param_1[4]);\n  }" { (expression_statement "(*(code *)param_1[9])(param_1[4]);" (call_expression "(*(code *)param_1[9])(param_1[4])" (parenthesized_expression "(*(code *)param_1[9])" ( (pointer_expression "*(code *)param_1[9]" * (cast_expression "(code *)param_1[9]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) )) (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*(undefined2 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 1" (pointer_expression "*(undefined2 *)(param_1 + 2)" * (cast_expression "(undefined2 *)(param_1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int sqlite3VdbeMemFinalize(Mem *pMem,FuncDef *pFunc)\n\n{\n  u16 uVar1;\n  u8 uVar2;\n  u8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  Mem *pMVar8;\n  undefined4 uVar9;\n  Mem *pMVar10;\n  Mem *pMVar11;\n  Mem t;\n  sqlite3_context ctx;\n  \n  puVar4 = PTR___stack_chk_guard_0015ba2c;\n  t.u.nZero = 0;\n  t.u.i._4_4_ = 0;\n  t.flags = 1;\n  t.enc = '\0';\n  t.eSubtype = '\0';\n  t.db = pMem->db;\n  t.n = 0;\n  t.z = (char *)0x0;\n  t.zMalloc = (char *)0x0;\n  t.szMalloc = 0;\n  t.uTemp = 0;\n  ctx.pVdbe = (Vdbe *)0x0;\n  ctx.iOp = 0;\n  ctx.isError = 0;\n  ctx.skipFlag = '\0';\n  ctx.argc = '\0';\n  ctx._26_2_ = 0;\n  ctx.argv[0] = (sqlite3_value *)0x0;\n  t.xDel = (_func_void_void_ptr *)0x0;\n  iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  ctx.pOut = &t;\n  ctx.pFunc = pFunc;\n  ctx.pMem = pMem;\n  (*pFunc->xFinalize)(&ctx);\n  if (0 < pMem->szMalloc) {\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);\n  }\n  pMVar11 = &t;\n  do {\n    pMVar10 = pMVar11;\n    pMVar8 = pMem;\n    pMVar11 = (Mem *)&pMVar10->z;\n    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);\n    uVar1 = pMVar10->flags;\n    uVar2 = pMVar10->enc;\n    uVar3 = pMVar10->eSubtype;\n    iVar6 = pMVar10->n;\n    (pMVar8->u).nZero = (pMVar10->u).nZero;\n    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;\n    pMVar8->flags = uVar1;\n    pMVar8->enc = uVar2;\n    pMVar8->eSubtype = uVar3;\n    pMVar8->n = iVar6;\n    pMem = (Mem *)&pMVar8->z;\n  } while (pMVar11 != (Mem *)&t.db);\n  pcVar7 = pMVar10->zMalloc;\n  pMVar8->z = *(char **)pMVar11;\n  pMVar8->zMalloc = pcVar7;\n  if (iVar5 == *(int *)puVar4) {\n    return ctx.isError;\n  }\n  iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)();\n  return iVar5;\n}\n\n" (function_definition "int sqlite3VdbeMemFinalize(Mem *pMem,FuncDef *pFunc)\n\n{\n  u16 uVar1;\n  u8 uVar2;\n  u8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  Mem *pMVar8;\n  undefined4 uVar9;\n  Mem *pMVar10;\n  Mem *pMVar11;\n  Mem t;\n  sqlite3_context ctx;\n  \n  puVar4 = PTR___stack_chk_guard_0015ba2c;\n  t.u.nZero = 0;\n  t.u.i._4_4_ = 0;\n  t.flags = 1;\n  t.enc = '\0';\n  t.eSubtype = '\0';\n  t.db = pMem->db;\n  t.n = 0;\n  t.z = (char *)0x0;\n  t.zMalloc = (char *)0x0;\n  t.szMalloc = 0;\n  t.uTemp = 0;\n  ctx.pVdbe = (Vdbe *)0x0;\n  ctx.iOp = 0;\n  ctx.isError = 0;\n  ctx.skipFlag = '\0';\n  ctx.argc = '\0';\n  ctx._26_2_ = 0;\n  ctx.argv[0] = (sqlite3_value *)0x0;\n  t.xDel = (_func_void_void_ptr *)0x0;\n  iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  ctx.pOut = &t;\n  ctx.pFunc = pFunc;\n  ctx.pMem = pMem;\n  (*pFunc->xFinalize)(&ctx);\n  if (0 < pMem->szMalloc) {\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);\n  }\n  pMVar11 = &t;\n  do {\n    pMVar10 = pMVar11;\n    pMVar8 = pMem;\n    pMVar11 = (Mem *)&pMVar10->z;\n    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);\n    uVar1 = pMVar10->flags;\n    uVar2 = pMVar10->enc;\n    uVar3 = pMVar10->eSubtype;\n    iVar6 = pMVar10->n;\n    (pMVar8->u).nZero = (pMVar10->u).nZero;\n    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;\n    pMVar8->flags = uVar1;\n    pMVar8->enc = uVar2;\n    pMVar8->eSubtype = uVar3;\n    pMVar8->n = iVar6;\n    pMem = (Mem *)&pMVar8->z;\n  } while (pMVar11 != (Mem *)&t.db);\n  pcVar7 = pMVar10->zMalloc;\n  pMVar8->z = *(char **)pMVar11;\n  pMVar8->zMalloc = pcVar7;\n  if (iVar5 == *(int *)puVar4) {\n    return ctx.isError;\n  }\n  iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)();\n  return iVar5;\n}" primitive_type (function_declarator "sqlite3VdbeMemFinalize(Mem *pMem,FuncDef *pFunc)" identifier (parameter_list "(Mem *pMem,FuncDef *pFunc)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) , (parameter_declaration "FuncDef *pFunc" type_identifier (pointer_declarator "*pFunc" * identifier)) ))) (compound_statement "{\n  u16 uVar1;\n  u8 uVar2;\n  u8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  Mem *pMVar8;\n  undefined4 uVar9;\n  Mem *pMVar10;\n  Mem *pMVar11;\n  Mem t;\n  sqlite3_context ctx;\n  \n  puVar4 = PTR___stack_chk_guard_0015ba2c;\n  t.u.nZero = 0;\n  t.u.i._4_4_ = 0;\n  t.flags = 1;\n  t.enc = '\0';\n  t.eSubtype = '\0';\n  t.db = pMem->db;\n  t.n = 0;\n  t.z = (char *)0x0;\n  t.zMalloc = (char *)0x0;\n  t.szMalloc = 0;\n  t.uTemp = 0;\n  ctx.pVdbe = (Vdbe *)0x0;\n  ctx.iOp = 0;\n  ctx.isError = 0;\n  ctx.skipFlag = '\0';\n  ctx.argc = '\0';\n  ctx._26_2_ = 0;\n  ctx.argv[0] = (sqlite3_value *)0x0;\n  t.xDel = (_func_void_void_ptr *)0x0;\n  iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  ctx.pOut = &t;\n  ctx.pFunc = pFunc;\n  ctx.pMem = pMem;\n  (*pFunc->xFinalize)(&ctx);\n  if (0 < pMem->szMalloc) {\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);\n  }\n  pMVar11 = &t;\n  do {\n    pMVar10 = pMVar11;\n    pMVar8 = pMem;\n    pMVar11 = (Mem *)&pMVar10->z;\n    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);\n    uVar1 = pMVar10->flags;\n    uVar2 = pMVar10->enc;\n    uVar3 = pMVar10->eSubtype;\n    iVar6 = pMVar10->n;\n    (pMVar8->u).nZero = (pMVar10->u).nZero;\n    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;\n    pMVar8->flags = uVar1;\n    pMVar8->enc = uVar2;\n    pMVar8->eSubtype = uVar3;\n    pMVar8->n = iVar6;\n    pMem = (Mem *)&pMVar8->z;\n  } while (pMVar11 != (Mem *)&t.db);\n  pcVar7 = pMVar10->zMalloc;\n  pMVar8->z = *(char **)pMVar11;\n  pMVar8->zMalloc = pcVar7;\n  if (iVar5 == *(int *)puVar4) {\n    return ctx.isError;\n  }\n  iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)();\n  return iVar5;\n}" { (declaration "u16 uVar1;" type_identifier identifier ;) (declaration "u8 uVar2;" type_identifier identifier ;) (declaration "u8 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "Mem *pMVar8;" type_identifier (pointer_declarator "*pMVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "Mem *pMVar10;" type_identifier (pointer_declarator "*pMVar10" * identifier) ;) (declaration "Mem *pMVar11;" type_identifier (pointer_declarator "*pMVar11" * identifier) ;) (declaration "Mem t;" type_identifier identifier ;) (declaration "sqlite3_context ctx;" type_identifier identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "t.u.nZero = 0;" (assignment_expression "t.u.nZero = 0" (field_expression "t.u.nZero" (field_expression "t.u" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "t.u.i._4_4_ = 0;" (assignment_expression "t.u.i._4_4_ = 0" (field_expression "t.u.i._4_4_" (field_expression "t.u.i" (field_expression "t.u" identifier . field_identifier) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "t.flags = 1;" (assignment_expression "t.flags = 1" (field_expression "t.flags" identifier . field_identifier) = number_literal) ;) (expression_statement "t.enc = '\0';" (assignment_expression "t.enc = '\0'" (field_expression "t.enc" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "t.eSubtype = '\0';" (assignment_expression "t.eSubtype = '\0'" (field_expression "t.eSubtype" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "t.db = pMem->db;" (assignment_expression "t.db = pMem->db" (field_expression "t.db" identifier . field_identifier) = (field_expression "pMem->db" identifier -> field_identifier)) ;) (expression_statement "t.n = 0;" (assignment_expression "t.n = 0" (field_expression "t.n" identifier . field_identifier) = number_literal) ;) (expression_statement "t.z = (char *)0x0;" (assignment_expression "t.z = (char *)0x0" (field_expression "t.z" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "t.zMalloc = (char *)0x0;" (assignment_expression "t.zMalloc = (char *)0x0" (field_expression "t.zMalloc" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "t.szMalloc = 0;" (assignment_expression "t.szMalloc = 0" (field_expression "t.szMalloc" identifier . field_identifier) = number_literal) ;) (expression_statement "t.uTemp = 0;" (assignment_expression "t.uTemp = 0" (field_expression "t.uTemp" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.pVdbe = (Vdbe *)0x0;" (assignment_expression "ctx.pVdbe = (Vdbe *)0x0" (field_expression "ctx.pVdbe" identifier . field_identifier) = (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ctx.iOp = 0;" (assignment_expression "ctx.iOp = 0" (field_expression "ctx.iOp" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.isError = 0;" (assignment_expression "ctx.isError = 0" (field_expression "ctx.isError" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.skipFlag = '\0';" (assignment_expression "ctx.skipFlag = '\0'" (field_expression "ctx.skipFlag" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ctx.argc = '\0';" (assignment_expression "ctx.argc = '\0'" (field_expression "ctx.argc" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ctx._26_2_ = 0;" (assignment_expression "ctx._26_2_ = 0" (field_expression "ctx._26_2_" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.argv[0] = (sqlite3_value *)0x0;" (assignment_expression "ctx.argv[0] = (sqlite3_value *)0x0" (subscript_expression "ctx.argv[0]" (field_expression "ctx.argv" identifier . field_identifier) [ number_literal ]) = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "t.xDel = (_func_void_void_ptr *)0x0;" (assignment_expression "t.xDel = (_func_void_void_ptr *)0x0" (field_expression "t.xDel" identifier . field_identifier) = (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "ctx.pOut = &t;" (assignment_expression "ctx.pOut = &t" (field_expression "ctx.pOut" identifier . field_identifier) = (pointer_expression "&t" & identifier)) ;) (expression_statement "ctx.pFunc = pFunc;" (assignment_expression "ctx.pFunc = pFunc" (field_expression "ctx.pFunc" identifier . field_identifier) = identifier) ;) (expression_statement "ctx.pMem = pMem;" (assignment_expression "ctx.pMem = pMem" (field_expression "ctx.pMem" identifier . field_identifier) = identifier) ;) (expression_statement "(*pFunc->xFinalize)(&ctx);" (call_expression "(*pFunc->xFinalize)(&ctx)" (parenthesized_expression "(*pFunc->xFinalize)" ( (pointer_expression "*pFunc->xFinalize" * (field_expression "pFunc->xFinalize" identifier -> field_identifier)) )) (argument_list "(&ctx)" ( (pointer_expression "&ctx" & identifier) ))) ;) (if_statement "if (0 < pMem->szMalloc) {\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);\n  }" if (parenthesized_expression "(0 < pMem->szMalloc)" ( (binary_expression "0 < pMem->szMalloc" number_literal < (field_expression "pMem->szMalloc" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(pMem->db,pMem->zMalloc);\n  }" { comment (expression_statement "sqlite3DbFreeNN(pMem->db,pMem->zMalloc);" (call_expression "sqlite3DbFreeNN(pMem->db,pMem->zMalloc)" identifier (argument_list "(pMem->db,pMem->zMalloc)" ( (field_expression "pMem->db" identifier -> field_identifier) , (field_expression "pMem->zMalloc" identifier -> field_identifier) ))) ;) })) (expression_statement "pMVar11 = &t;" (assignment_expression "pMVar11 = &t" identifier = (pointer_expression "&t" & identifier)) ;) (do_statement "do {\n    pMVar10 = pMVar11;\n    pMVar8 = pMem;\n    pMVar11 = (Mem *)&pMVar10->z;\n    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);\n    uVar1 = pMVar10->flags;\n    uVar2 = pMVar10->enc;\n    uVar3 = pMVar10->eSubtype;\n    iVar6 = pMVar10->n;\n    (pMVar8->u).nZero = (pMVar10->u).nZero;\n    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;\n    pMVar8->flags = uVar1;\n    pMVar8->enc = uVar2;\n    pMVar8->eSubtype = uVar3;\n    pMVar8->n = iVar6;\n    pMem = (Mem *)&pMVar8->z;\n  } while (pMVar11 != (Mem *)&t.db);" do (compound_statement "{\n    pMVar10 = pMVar11;\n    pMVar8 = pMem;\n    pMVar11 = (Mem *)&pMVar10->z;\n    uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);\n    uVar1 = pMVar10->flags;\n    uVar2 = pMVar10->enc;\n    uVar3 = pMVar10->eSubtype;\n    iVar6 = pMVar10->n;\n    (pMVar8->u).nZero = (pMVar10->u).nZero;\n    *(undefined4 *)((int)&pMVar8->u + 4) = uVar9;\n    pMVar8->flags = uVar1;\n    pMVar8->enc = uVar2;\n    pMVar8->eSubtype = uVar3;\n    pMVar8->n = iVar6;\n    pMem = (Mem *)&pMVar8->z;\n  }" { (expression_statement "pMVar10 = pMVar11;" (assignment_expression "pMVar10 = pMVar11" identifier = identifier) ;) (expression_statement "pMVar8 = pMem;" (assignment_expression "pMVar8 = pMem" identifier = identifier) ;) (expression_statement "pMVar11 = (Mem *)&pMVar10->z;" (assignment_expression "pMVar11 = (Mem *)&pMVar10->z" identifier = (cast_expression "(Mem *)&pMVar10->z" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar10->z" & (field_expression "pMVar10->z" identifier -> field_identifier)))) ;) (expression_statement "uVar9 = *(undefined4 *)((int)&pMVar10->u + 4);" (assignment_expression "uVar9 = *(undefined4 *)((int)&pMVar10->u + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&pMVar10->u + 4)" * (cast_expression "(undefined4 *)((int)&pMVar10->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar10->u + 4)" ( (binary_expression "(int)&pMVar10->u + 4" (cast_expression "(int)&pMVar10->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar10->u" & (field_expression "pMVar10->u" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar1 = pMVar10->flags;" (assignment_expression "uVar1 = pMVar10->flags" identifier = (field_expression "pMVar10->flags" identifier -> field_identifier)) ;) (expression_statement "uVar2 = pMVar10->enc;" (assignment_expression "uVar2 = pMVar10->enc" identifier = (field_expression "pMVar10->enc" identifier -> field_identifier)) ;) (expression_statement "uVar3 = pMVar10->eSubtype;" (assignment_expression "uVar3 = pMVar10->eSubtype" identifier = (field_expression "pMVar10->eSubtype" identifier -> field_identifier)) ;) (expression_statement "iVar6 = pMVar10->n;" (assignment_expression "iVar6 = pMVar10->n" identifier = (field_expression "pMVar10->n" identifier -> field_identifier)) ;) (expression_statement "(pMVar8->u).nZero = (pMVar10->u).nZero;" (assignment_expression "(pMVar8->u).nZero = (pMVar10->u).nZero" (field_expression "(pMVar8->u).nZero" (parenthesized_expression "(pMVar8->u)" ( (field_expression "pMVar8->u" identifier -> field_identifier) )) . field_identifier) = (field_expression "(pMVar10->u).nZero" (parenthesized_expression "(pMVar10->u)" ( (field_expression "pMVar10->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&pMVar8->u + 4) = uVar9;" (assignment_expression "*(undefined4 *)((int)&pMVar8->u + 4) = uVar9" (pointer_expression "*(undefined4 *)((int)&pMVar8->u + 4)" * (cast_expression "(undefined4 *)((int)&pMVar8->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar8->u + 4)" ( (binary_expression "(int)&pMVar8->u + 4" (cast_expression "(int)&pMVar8->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar8->u" & (field_expression "pMVar8->u" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "pMVar8->flags = uVar1;" (assignment_expression "pMVar8->flags = uVar1" (field_expression "pMVar8->flags" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar8->enc = uVar2;" (assignment_expression "pMVar8->enc = uVar2" (field_expression "pMVar8->enc" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar8->eSubtype = uVar3;" (assignment_expression "pMVar8->eSubtype = uVar3" (field_expression "pMVar8->eSubtype" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar8->n = iVar6;" (assignment_expression "pMVar8->n = iVar6" (field_expression "pMVar8->n" identifier -> field_identifier) = identifier) ;) (expression_statement "pMem = (Mem *)&pMVar8->z;" (assignment_expression "pMem = (Mem *)&pMVar8->z" identifier = (cast_expression "(Mem *)&pMVar8->z" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar8->z" & (field_expression "pMVar8->z" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "(pMVar11 != (Mem *)&t.db)" ( (binary_expression "pMVar11 != (Mem *)&t.db" identifier != (cast_expression "(Mem *)&t.db" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&t.db" & (field_expression "t.db" identifier . field_identifier)))) )) ;) (expression_statement "pcVar7 = pMVar10->zMalloc;" (assignment_expression "pcVar7 = pMVar10->zMalloc" identifier = (field_expression "pMVar10->zMalloc" identifier -> field_identifier)) ;) (expression_statement "pMVar8->z = *(char **)pMVar11;" (assignment_expression "pMVar8->z = *(char **)pMVar11" (field_expression "pMVar8->z" identifier -> field_identifier) = (pointer_expression "*(char **)pMVar11" * (cast_expression "(char **)pMVar11" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pMVar8->zMalloc = pcVar7;" (assignment_expression "pMVar8->zMalloc = pcVar7" (field_expression "pMVar8->zMalloc" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar5 == *(int *)puVar4) {\n    return ctx.isError;\n  }" if (parenthesized_expression "(iVar5 == *(int *)puVar4)" ( (binary_expression "iVar5 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return ctx.isError;\n  }" { (return_statement "return ctx.isError;" return (field_expression "ctx.isError" identifier . field_identifier) ;) })) (expression_statement "iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)();" (assignment_expression "iVar5 = (*(code *)PTR___stack_chk_fail_0015ba10)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0002a9c8(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0x10000;" (assignment_expression "local_58 = 0x10000" identifier = number_literal) ;) (expression_statement "local_40 = param_1[8];" (assignment_expression "local_40 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_34 = &local_60;" (assignment_expression "local_34 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (expression_statement "(**(code **)(param_2 + 0x14))(&local_34);" (call_expression "(**(code **)(param_2 + 0x14))(&local_34)" (parenthesized_expression "(**(code **)(param_2 + 0x14))" ( (pointer_expression "**(code **)(param_2 + 0x14)" * (pointer_expression "*(code **)(param_2 + 0x14)" * (cast_expression "(code **)(param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) )) (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))) ;) (if_statement "if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" if (parenthesized_expression "(0 < (int)param_1[6])" ( (binary_expression "0 < (int)param_1[6]" number_literal < (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" { (expression_statement "FUN_0002a924(param_1[8],param_1[5]);" (call_expression "FUN_0002a924(param_1[8],param_1[5])" identifier (argument_list "(param_1[8],param_1[5])" ( (subscript_expression "param_1[8]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) })) (expression_statement "puVar8 = &local_60;" (assignment_expression "puVar8 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (do_statement "do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);" do (compound_statement "{\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  }" { (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" identifier = identifier) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (expression_statement "puVar8 = puVar7 + 4;" (assignment_expression "puVar8 = puVar7 + 4" identifier = (binary_expression "puVar7 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = puVar7[1];" (assignment_expression "uVar6 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = puVar7[2];" (assignment_expression "uVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" identifier = (subscript_expression "puVar7[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = *puVar7;" (assignment_expression "*puVar5 = *puVar7" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[2] = uVar4;" (assignment_expression "puVar5[2] = uVar4" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[3] = uVar3;" (assignment_expression "puVar5[3] = uVar3" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1 = puVar5 + 4;" (assignment_expression "param_1 = puVar5 + 4" identifier = (binary_expression "puVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar8 != &local_40)" ( (binary_expression "puVar8 != &local_40" identifier != (pointer_expression "&local_40" & identifier)) )) ;) (expression_statement "uVar3 = puVar7[5];" (assignment_expression "uVar3 = puVar7[5]" identifier = (subscript_expression "puVar7[5]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *puVar8;" (assignment_expression "*param_1 = *puVar8" (pointer_expression "*param_1" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar5[5] = uVar3;" (assignment_expression "puVar5[5] = uVar3" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar2)" ( (binary_expression "local_14 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_20;\n  }" { (return_statement "return local_20;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" if (parenthesized_expression "((uVar1 & 0x2000) != 0)" ( (binary_expression "(uVar1 & 0x2000) != 0" (parenthesized_expression "(uVar1 & 0x2000)" ( (binary_expression "uVar1 & 0x2000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" { (expression_statement "FUN_0002a9c8();" (call_expression "FUN_0002a9c8()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (*(code *)param_1[9])(param_1[4]);\n  }" { (expression_statement "(*(code *)param_1[9])(param_1[4]);" (call_expression "(*(code *)param_1[9])(param_1[4])" (parenthesized_expression "(*(code *)param_1[9])" ( (pointer_expression "*(code *)param_1[9]" * (cast_expression "(code *)param_1[9]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) )) (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*(undefined2 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 1" (pointer_expression "*(undefined2 *)(param_1 + 2)" * (cast_expression "(undefined2 *)(param_1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0002a9c8(undefined4 *param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0002a9c8(undefined4 *param_1,int param_2)" (identifier "FUN_0002a9c8") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined4 local_58;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 *local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  local_60 = 0;\n  local_5c = 0;\n  local_58 = 0x10000;\n  local_40 = param_1[8];\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_28 = 0;\n  local_24 = 0;\n  local_20 = 0;\n  local_1c = 0;\n  local_18 = 0;\n  local_3c = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_34 = &local_60;\n  local_30 = param_2;\n  local_2c = param_1;\n  (**(code **)(param_2 + 0x14))(&local_34);\n  if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }\n  puVar8 = &local_60;\n  do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);\n  uVar3 = puVar7[5];\n  *param_1 = *puVar8;\n  puVar5[5] = uVar3;\n  if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  uVar1 = *(ushort *)(param_1 + 2);\n  if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }\n  if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }\n  *(undefined2 *)(param_1 + 2) = 1;\n  return 1;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 local_60;" (type_identifier "undefined4") (identifier "local_60") (; ";")) (declaration "undefined4 local_5c;" (type_identifier "undefined4") (identifier "local_5c") (; ";")) (declaration "undefined4 local_58;" (type_identifier "undefined4") (identifier "local_58") (; ";")) (declaration "undefined4 local_54;" (type_identifier "undefined4") (identifier "local_54") (; ";")) (declaration "undefined4 local_50;" (type_identifier "undefined4") (identifier "local_50") (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "undefined4 *local_34;" (type_identifier "undefined4") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 *local_2c;" (type_identifier "undefined4") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" (identifier "local_60") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" (identifier "local_5c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_58 = 0x10000;" (assignment_expression "local_58 = 0x10000" (identifier "local_58") (= "=") (number_literal "0x10000")) (; ";")) (expression_statement "local_40 = param_1[8];" (assignment_expression "local_40 = param_1[8]" (identifier "local_40") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" (identifier "local_54") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" (identifier "local_1c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "local_34 = &local_60;" (assignment_expression "local_34 = &local_60" (identifier "local_34") (= "=") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (; ";")) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" (identifier "local_30") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" (identifier "local_2c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "(**(code **)(param_2 + 0x14))(&local_34);" (call_expression "(**(code **)(param_2 + 0x14))(&local_34)" (parenthesized_expression "(**(code **)(param_2 + 0x14))" (( "(") (pointer_expression "**(code **)(param_2 + 0x14)" (* "*") (pointer_expression "*(code **)(param_2 + 0x14)" (* "*") (cast_expression "(code **)(param_2 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(&local_34)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))) (; ";")) (if_statement "if (0 < (int)param_1[6]) {\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" (if "if") (parenthesized_expression "(0 < (int)param_1[6])" (( "(") (binary_expression "0 < (int)param_1[6]" (number_literal "0") (< "<") (cast_expression "(int)param_1[6]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n    FUN_0002a924(param_1[8],param_1[5]);\n  }" ({ "{") (expression_statement "FUN_0002a924(param_1[8],param_1[5]);" (call_expression "FUN_0002a924(param_1[8],param_1[5])" (identifier "FUN_0002a924") (argument_list "(param_1[8],param_1[5])" (( "(") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar8 = &local_60;" (assignment_expression "puVar8 = &local_60" (identifier "puVar8") (= "=") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (; ";")) (do_statement "do {\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  } while (puVar8 != &local_40);" (do "do") (compound_statement "{\n    puVar7 = puVar8;\n    puVar5 = param_1;\n    puVar8 = puVar7 + 4;\n    uVar6 = puVar7[1];\n    uVar4 = puVar7[2];\n    uVar3 = puVar7[3];\n    *puVar5 = *puVar7;\n    puVar5[1] = uVar6;\n    puVar5[2] = uVar4;\n    puVar5[3] = uVar3;\n    param_1 = puVar5 + 4;\n  }" ({ "{") (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" (identifier "puVar7") (= "=") (identifier "puVar8")) (; ";")) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" (identifier "puVar5") (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar8 = puVar7 + 4;" (assignment_expression "puVar8 = puVar7 + 4" (identifier "puVar8") (= "=") (binary_expression "puVar7 + 4" (identifier "puVar7") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar6 = puVar7[1];" (assignment_expression "uVar6 = puVar7[1]" (identifier "uVar6") (= "=") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar4 = puVar7[2];" (assignment_expression "uVar4 = puVar7[2]" (identifier "uVar4") (= "=") (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" (identifier "uVar3") (= "=") (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar5 = *puVar7;" (assignment_expression "*puVar5 = *puVar7" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar5[2] = uVar4;" (assignment_expression "puVar5[2] = uVar4" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar5[3] = uVar3;" (assignment_expression "puVar5[3] = uVar3" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_1 = puVar5 + 4;" (assignment_expression "param_1 = puVar5 + 4" (identifier "param_1") (= "=") (binary_expression "puVar5 + 4" (identifier "puVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar8 != &local_40)" (( "(") (binary_expression "puVar8 != &local_40" (identifier "puVar8") (!= "!=") (pointer_expression "&local_40" (& "&") (identifier "local_40"))) () ")")) (; ";")) (expression_statement "uVar3 = puVar7[5];" (assignment_expression "uVar3 = puVar7[5]" (identifier "uVar3") (= "=") (subscript_expression "puVar7[5]" (identifier "puVar7") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "*param_1 = *puVar8;" (assignment_expression "*param_1 = *puVar8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar5[5] = uVar3;" (assignment_expression "puVar5[5] = uVar3" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (local_14 == *(int *)puVar2) {\n    return local_20;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar2)" (( "(") (binary_expression "local_14 == *(int *)puVar2" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    return local_20;\n  }" ({ "{") (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 2)" (* "*") (cast_expression "(ushort *)(param_1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x2000) != 0) {\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x2000) != 0)" (( "(") (binary_expression "(uVar1 & 0x2000) != 0" (parenthesized_expression "(uVar1 & 0x2000)" (( "(") (binary_expression "uVar1 & 0x2000" (identifier "uVar1") (& "&") (number_literal "0x2000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002a9c8();\n    uVar1 = *(ushort *)(param_1 + 2);\n  }" ({ "{") (expression_statement "FUN_0002a9c8();" (call_expression "FUN_0002a9c8()" (identifier "FUN_0002a9c8") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 2)" (* "*") (cast_expression "(ushort *)(param_1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (*(code *)param_1[9])(param_1[4]);\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x400) != 0)" (( "(") (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" (( "(") (binary_expression "uVar1 & 0x400" (identifier "uVar1") (& "&") (number_literal "0x400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)param_1[9])(param_1[4]);\n  }" ({ "{") (expression_statement "(*(code *)param_1[9])(param_1[4]);" (call_expression "(*(code *)param_1[9])(param_1[4])" (parenthesized_expression "(*(code *)param_1[9])" (( "(") (pointer_expression "*(code *)param_1[9]" (* "*") (cast_expression "(code *)param_1[9]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")))) () ")")) (argument_list "(param_1[4])" (( "(") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined2 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 1" (pointer_expression "*(undefined2 *)(param_1 + 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (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 (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (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))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  ushort uVar1;
  undefined *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  undefined4 local_60;
  undefined4 local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 *local_34;
  int local_30;
  undefined4 *local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_14;
  
  puVar2 = PTR___stack_chk_guard_0015ba2c;
  local_60 = 0;
  local_5c = 0;
  local_58 = 0x10000;
  local_40 = param_1[8];
  local_54 = 0;
  local_50 = 0;
  local_4c = 0;
  local_48 = 0;
  local_44 = 0;
  local_28 = 0;
  local_24 = 0;
  local_20 = 0;
  local_1c = 0;
  local_18 = 0;
  local_3c = 0;
  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;
  local_34 = &local_60;
  local_30 = param_2;
  local_2c = param_1;
  (**(code **)(param_2 + 0x14))(&local_34);
  if (0 < (int)param_1[6]) {
    FUN_0002a924(param_1[8],param_1[5]);
  }
  puVar8 = &local_60;
  do {
    puVar7 = puVar8;
    puVar5 = param_1;
    puVar8 = puVar7 + 4;
    uVar6 = puVar7[1];
    uVar4 = puVar7[2];
    uVar3 = puVar7[3];
    *puVar5 = *puVar7;
    puVar5[1] = uVar6;
    puVar5[2] = uVar4;
    puVar5[3] = uVar3;
    param_1 = puVar5 + 4;
  } while (puVar8 != &local_40);
  uVar3 = puVar7[5];
  *param_1 = *puVar8;
  puVar5[5] = uVar3;
  if (local_14 == *(int *)puVar2) {
    return local_20;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  uVar1 = *(ushort *)(param_1 + 2);
  if ((uVar1 & 0x2000) != 0) {
    MASKED();
    uVar1 = *(ushort *)(param_1 + 2);
  }
  if ((uVar1 & 0x400) != 0) {
    (*(code *)param_1[9])(param_1[4]);
  }
  *(undefined2 *)(param_1 + 2) = 1;
  return 1;
}

