
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int sqlite3_deserialize(sqlite3 *db,char *zSchema,uchar *pData,sqlite3_int64 szDb,
                       sqlite3_int64 szBuf,uint mFlags)

{
  undefined1 *puVar1;
  int iVar2;
  char *p;
  int iVar3;
  MemFile *pMVar4;
  int in_GS_OFFSET;
  char *pOld;
  sqlite3_stmt **ppStmt;
  char **in_stack_ffffffac;
  sqlite3 *in_stack_ffffffb4;
  u8 uVar5;
  char *in_stack_ffffffb8;
  sqlite3_stmt *pStmt;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pStmt = (sqlite3_stmt *)0x0;
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);
  }
  if (zSchema == (char *)0x0) {
    zSchema = db->aDb->zDbSName;
  }
  iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8);
  if (-1 < iVar2) {
    pOld = "ATTACH x AS %Q";
    ppStmt = (sqlite3_stmt **)zSchema;
    p = sqlite3_mprintf("ATTACH x AS %Q");
    uVar5 = (u8)iVar2;
    iVar2 = sqlite3LockAndPrepare
                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,
                       in_stack_ffffffac);
    sqlite3_free(p);
    if (iVar2 != 0) goto LAB_000e9e6e;
    puVar1 = &(db->init).field_0x6;
    *puVar1 = *puVar1 | 4;
    (db->init).iDb = uVar5;
    iVar3 = sqlite3_step(pStmt);
    puVar1 = &(db->init).field_0x6;
    *puVar1 = *puVar1 & 0xfb;
    if (iVar3 == 0x65) {
      pMVar4 = memdbFromDbSchema(db,zSchema);
      if (pMVar4 != (MemFile *)0x0) {
        pMVar4->aData = pData;
        *(uint *)&pMVar4->szAlloc = (uint)szBuf;
        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;
        *(uint *)&pMVar4->szMax = (uint)szBuf;
        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;
        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;
        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;
        iVar3 = sqlite3Config.mxMemdbSize._4_4_;
        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=
            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,
                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=
            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -
                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {
          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;
          *(int *)((int)&pMVar4->szMax + 4) = iVar3;
        }
        pMVar4->mFlags = mFlags;
        goto LAB_000e9e6e;
      }
    }
  }
  iVar2 = 1;
LAB_000e9e6e:
  sqlite3_finalize(pStmt);
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,
                uint param_6,int param_7,undefined4 param_8)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int unaff_EBP;
  int in_GS_OFFSET;
  undefined1 local_48;
  undefined4 local_24;
  int local_20;
  
  FUN_00036ac9();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));
  }
  if (param_2 == 0) {
    param_2 = **(int **)(param_1 + 0x10);
  }
  iVar3 = FUN_000456a0();
  if (-1 < iVar3) {
    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);
    iVar5 = FUN_000e2920(0x80,0,&local_24,0);
    FUN_00042800(uVar4);
    if (iVar5 != 0) goto LAB_000e9e6e;
    local_48 = (undefined1)iVar3;
    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;
    *(undefined1 *)(param_1 + 0xa0) = local_48;
    iVar3 = FUN_000ccd70(local_24);
    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;
    if (iVar3 == 0x65) {
      iVar3 = FUN_00048f40();
      if (iVar3 != 0) {
        *(undefined4 *)(iVar3 + 0x1c) = param_3;
        *(uint *)(iVar3 + 0xc) = param_6;
        *(undefined4 *)(iVar3 + 8) = param_5;
        *(uint *)(iVar3 + 0x14) = param_6;
        *(undefined4 *)(iVar3 + 4) = param_4;
        *(int *)(iVar3 + 0x10) = param_7;
        *(int *)(iVar3 + 0x18) = param_7;
        iVar1 = *(int *)(unaff_EBP + 0x9273e);
        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));
        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=
            (int)((param_7 - iVar1) - uVar2) < 0) {
          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);
          *(int *)(iVar3 + 0x18) = iVar1;
        }
        *(undefined4 *)(iVar3 + 0x24) = param_8;
        goto LAB_000e9e6e;
      }
    }
  }
  iVar5 = 1;
LAB_000e9e6e:
  FUN_000a96f0(local_24);
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
CALL 0x00036ac9
ADD EBP,0x92082
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x58]
MOV EDX,dword ptr [ESP + 0x60]
MOV EBX,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x68]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0xc]
MOV dword ptr [ESP + 0x28],0x0
TEST EAX,EAX
JZ 0x000e9e0a
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EBP + 0x614]
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000e9ee8
MOV EDX,EDI
MOV EAX,EBX
CALL 0x000456a0
MOV dword ptr [ESP + 0x4],EAX
TEST EAX,EAX
JS 0x000e9edd
SUB ESP,0x8
LEA EAX,[EBP + 0xfffa586a]
PUSH EDI
PUSH EAX
CALL 0x0008ff90
PUSH 0x0
MOV ECX,0xffffffff
MOV ESI,EAX
MOV EDX,ESI
LEA EAX,[ESP + 0x3c]
PUSH EAX
MOV EAX,EBX
PUSH 0x0
PUSH 0x80
MOV dword ptr [ESP + 0x2c],ESI
CALL 0x000e2920
ADD ESP,0x14
PUSH dword ptr [ESP + 0x18]
MOV ESI,EAX
CALL 0x00042800
ADD ESP,0x10
TEST ESI,ESI
JZ 0x000e9eb0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
CALL 0x000a96f0
MOV EAX,dword ptr [EBX + 0xc]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000e9e91
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EBP + 0x61c]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000e9f56
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ESP + 0x4]
OR byte ptr [EBX + 0xa2],0x4
SUB ESP,0xc
MOV byte ptr [EBX + 0xa0],AL
PUSH dword ptr [ESP + 0x34]
CALL 0x000ccd70
AND byte ptr [EBX + 0xa2],0xfb
ADD ESP,0x10
CMP EAX,0x65
JZ 0x000e9ef8
MOV ESI,0x1
JMP 0x000e9e6e
MOV EAX,dword ptr [EBX + 0x10]
MOV EDI,dword ptr [EAX]
JMP 0x000e9e12
MOV EDX,EDI
MOV EAX,EBX
CALL 0x00048f40
TEST EAX,EAX
JZ 0x000e9edd
MOV ECX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x1c],ECX
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX + 0xc],EDI
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x14],EDI
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0x18],ECX
MOV ECX,dword ptr [EBP + 0x6b8]
MOV EDX,dword ptr [EBP + 0x6bc]
CMP EDI,ECX
MOV EDI,dword ptr [ESP + 0x8]
SBB EDI,EDX
JGE 0x000e9f4a
MOV dword ptr [EAX + 0x14],ECX
MOV dword ptr [EAX + 0x18],EDX
MOV EDX,dword ptr [ESP + 0x6c]
MOV dword ptr [EAX + 0x24],EDX
JMP 0x000e9e6e
CALL 0x00116110
(translation_unit "int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" (function_definition "int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_48;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_00036ac9();" (call_expression "FUN_00036ac9()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x92696))" ( (pointer_expression "**(code **)(unaff_EBP + 0x92696)" * (pointer_expression "*(code **)(unaff_EBP + 0x92696)" * (cast_expression "(code **)(unaff_EBP + 0x92696)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x92696)" ( (binary_expression "unaff_EBP + 0x92696" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = **(int **)(param_1 + 0x10);\n  }" { (expression_statement "param_2 = **(int **)(param_1 + 0x10);" (assignment_expression "param_2 = **(int **)(param_1 + 0x10)" identifier = (pointer_expression "**(int **)(param_1 + 0x10)" * (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))))) ;) })) (expression_statement "iVar3 = FUN_000456a0();" (assignment_expression "iVar3 = FUN_000456a0()" identifier = (call_expression "FUN_000456a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" { (expression_statement "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);" (assignment_expression "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" identifier = (call_expression "FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" identifier (argument_list "(&UNK_000378ec + unaff_EBP,param_2)" ( (binary_expression "&UNK_000378ec + unaff_EBP" (pointer_expression "&UNK_000378ec" & identifier) + identifier) , identifier )))) ;) (expression_statement "iVar5 = FUN_000e2920(0x80,0,&local_24,0);" (assignment_expression "iVar5 = FUN_000e2920(0x80,0,&local_24,0)" identifier = (call_expression "FUN_000e2920(0x80,0,&local_24,0)" identifier (argument_list "(0x80,0,&local_24,0)" ( number_literal , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (expression_statement "FUN_00042800(uVar4);" (call_expression "FUN_00042800(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar5 != 0) goto LAB_000e9e6e;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;)) (expression_statement "local_48 = (undefined1)iVar3;" (assignment_expression "local_48 = (undefined1)iVar3" identifier = (cast_expression "(undefined1)iVar3" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = local_48;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = local_48" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_000ccd70(local_24);" (assignment_expression "iVar3 = FUN_000ccd70(local_24)" identifier = (call_expression "FUN_000ccd70(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" { (expression_statement "iVar3 = FUN_00048f40();" (assignment_expression "iVar3 = FUN_00048f40()" identifier = (call_expression "FUN_00048f40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" { (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar3 + 0xc) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0xc) = param_6" (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 8) = param_5;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = param_5" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar3 + 0x14) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0x14) = param_6" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = param_4;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = param_4" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x10) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x10) = param_7" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x18) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x18) = param_7" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x9273e);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x9273e)" identifier = (pointer_expression "*(int *)(unaff_EBP + 0x9273e)" * (cast_expression "(int *)(unaff_EBP + 0x9273e)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273e)" ( (binary_expression "unaff_EBP + 0x9273e" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));" (assignment_expression "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" identifier = (call_expression "(uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_6 < *(uint *)(unaff_EBP + 0x9273a))" ( (binary_expression "param_6 < *(uint *)(unaff_EBP + 0x9273a)" identifier < (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" * (cast_expression "(uint *)(unaff_EBP + 0x9273a)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273a)" ( (binary_expression "unaff_EBP + 0x9273a" identifier + number_literal) ))))) )))) ;) (if_statement "if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" if (parenthesized_expression "((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0)" ( (binary_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0" (parenthesized_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2))" ( (binary_expression "SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)" (call_expression "SBORROW4(param_7,iVar1)" identifier (argument_list "(param_7,iVar1)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_7 - iVar1,uVar2)" identifier (argument_list "(param_7 - iVar1,uVar2)" ( (binary_expression "param_7 - iVar1" identifier - identifier) , identifier )))) )) != (binary_expression "(int)((param_7 - iVar1) - uVar2) < 0" (cast_expression "(int)((param_7 - iVar1) - uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_7 - iVar1) - uVar2)" ( (binary_expression "(param_7 - iVar1) - uVar2" (parenthesized_expression "(param_7 - iVar1)" ( (binary_expression "param_7 - iVar1" identifier - identifier) )) - identifier) ))) < number_literal)) )) (compound_statement "{\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" { (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a)" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" * (cast_expression "(uint *)(unaff_EBP + 0x9273a)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273a)" ( (binary_expression "unaff_EBP + 0x9273a" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x24) = param_8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x24) = param_8" (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" * (cast_expression "(undefined4 *)(iVar3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;) })) })) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000e9e6e:\n  FUN_000a96f0(local_24);" statement_identifier : (expression_statement "FUN_000a96f0(local_24);" (call_expression "FUN_000a96f0(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x9269e))" ( (pointer_expression "**(code **)(unaff_EBP + 0x9269e)" * (pointer_expression "*(code **)(unaff_EBP + 0x9269e)" * (cast_expression "(code **)(unaff_EBP + 0x9269e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x9269e)" ( (binary_expression "unaff_EBP + 0x9269e" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nint sqlite3_deserialize(sqlite3 *db,char *zSchema,uchar *pData,sqlite3_int64 szDb,\n                       sqlite3_int64 szBuf,uint mFlags)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  char *p;\n  int iVar3;\n  MemFile *pMVar4;\n  int in_GS_OFFSET;\n  char *pOld;\n  sqlite3_stmt **ppStmt;\n  char **in_stack_ffffffac;\n  sqlite3 *in_stack_ffffffb4;\n  u8 uVar5;\n  char *in_stack_ffffffb8;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pStmt = (sqlite3_stmt *)0x0;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (zSchema == (char *)0x0) {\n    zSchema = db->aDb->zDbSName;\n  }\n  iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8);\n  if (-1 < iVar2) {\n    pOld = "ATTACH x AS %Q";\n    ppStmt = (sqlite3_stmt **)zSchema;\n    p = sqlite3_mprintf("ATTACH x AS %Q");\n    uVar5 = (u8)iVar2;\n    iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);\n    sqlite3_free(p);\n    if (iVar2 != 0) goto LAB_000e9e6e;\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    (db->init).iDb = uVar5;\n    iVar3 = sqlite3_step(pStmt);\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 & 0xfb;\n    if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_000e9e6e:\n  sqlite3_finalize(pStmt);\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int sqlite3_deserialize(sqlite3 *db,char *zSchema,uchar *pData,sqlite3_int64 szDb,\n                       sqlite3_int64 szBuf,uint mFlags)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  char *p;\n  int iVar3;\n  MemFile *pMVar4;\n  int in_GS_OFFSET;\n  char *pOld;\n  sqlite3_stmt **ppStmt;\n  char **in_stack_ffffffac;\n  sqlite3 *in_stack_ffffffb4;\n  u8 uVar5;\n  char *in_stack_ffffffb8;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pStmt = (sqlite3_stmt *)0x0;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (zSchema == (char *)0x0) {\n    zSchema = db->aDb->zDbSName;\n  }\n  iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8);\n  if (-1 < iVar2) {\n    pOld = "ATTACH x AS %Q";\n    ppStmt = (sqlite3_stmt **)zSchema;\n    p = sqlite3_mprintf("ATTACH x AS %Q");\n    uVar5 = (u8)iVar2;\n    iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);\n    sqlite3_free(p);\n    if (iVar2 != 0) goto LAB_000e9e6e;\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    (db->init).iDb = uVar5;\n    iVar3 = sqlite3_step(pStmt);\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 & 0xfb;\n    if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_000e9e6e:\n  sqlite3_finalize(pStmt);\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "sqlite3_deserialize(sqlite3 *db,char *zSchema,uchar *pData,sqlite3_int64 szDb,\n                       sqlite3_int64 szBuf,uint mFlags)" identifier (parameter_list "(sqlite3 *db,char *zSchema,uchar *pData,sqlite3_int64 szDb,\n                       sqlite3_int64 szBuf,uint mFlags)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zSchema" primitive_type (pointer_declarator "*zSchema" * identifier)) , (parameter_declaration "uchar *pData" type_identifier (pointer_declarator "*pData" * identifier)) , (parameter_declaration "sqlite3_int64 szDb" type_identifier identifier) , (parameter_declaration "sqlite3_int64 szBuf" type_identifier identifier) , (parameter_declaration "uint mFlags" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  char *p;\n  int iVar3;\n  MemFile *pMVar4;\n  int in_GS_OFFSET;\n  char *pOld;\n  sqlite3_stmt **ppStmt;\n  char **in_stack_ffffffac;\n  sqlite3 *in_stack_ffffffb4;\n  u8 uVar5;\n  char *in_stack_ffffffb8;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pStmt = (sqlite3_stmt *)0x0;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (zSchema == (char *)0x0) {\n    zSchema = db->aDb->zDbSName;\n  }\n  iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8);\n  if (-1 < iVar2) {\n    pOld = "ATTACH x AS %Q";\n    ppStmt = (sqlite3_stmt **)zSchema;\n    p = sqlite3_mprintf("ATTACH x AS %Q");\n    uVar5 = (u8)iVar2;\n    iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);\n    sqlite3_free(p);\n    if (iVar2 != 0) goto LAB_000e9e6e;\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    (db->init).iDb = uVar5;\n    iVar3 = sqlite3_step(pStmt);\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 & 0xfb;\n    if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_000e9e6e:\n  sqlite3_finalize(pStmt);\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "MemFile *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *pOld;" primitive_type (pointer_declarator "*pOld" * identifier) ;) (declaration "sqlite3_stmt **ppStmt;" type_identifier (pointer_declarator "**ppStmt" * (pointer_declarator "*ppStmt" * identifier)) ;) (declaration "char **in_stack_ffffffac;" primitive_type (pointer_declarator "**in_stack_ffffffac" * (pointer_declarator "*in_stack_ffffffac" * identifier)) ;) (declaration "sqlite3 *in_stack_ffffffb4;" type_identifier (pointer_declarator "*in_stack_ffffffb4" * identifier) ;) (declaration "u8 uVar5;" type_identifier identifier ;) (declaration "char *in_stack_ffffffb8;" primitive_type (pointer_declarator "*in_stack_ffffffb8" * identifier) ;) (declaration "sqlite3_stmt *pStmt;" type_identifier (pointer_declarator "*pStmt" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pStmt = (sqlite3_stmt *)0x0;" (assignment_expression "pStmt = (sqlite3_stmt *)0x0" identifier = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(db->mutex);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(db->mutex)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexEnter)" ( (pointer_expression "*sqlite3Config.mutex.xMutexEnter" * (field_expression "sqlite3Config.mutex.xMutexEnter" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (if_statement "if (zSchema == (char *)0x0) {\n    zSchema = db->aDb->zDbSName;\n  }" if (parenthesized_expression "(zSchema == (char *)0x0)" ( (binary_expression "zSchema == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    zSchema = db->aDb->zDbSName;\n  }" { (expression_statement "zSchema = db->aDb->zDbSName;" (assignment_expression "zSchema = db->aDb->zDbSName" identifier = (field_expression "db->aDb->zDbSName" (field_expression "db->aDb" identifier -> field_identifier) -> field_identifier)) ;) })) (expression_statement "iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8);" (assignment_expression "iVar2 = sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8)" identifier = (call_expression "sqlite3FindDbName(in_stack_ffffffb4,in_stack_ffffffb8)" identifier (argument_list "(in_stack_ffffffb4,in_stack_ffffffb8)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n    pOld = "ATTACH x AS %Q";\n    ppStmt = (sqlite3_stmt **)zSchema;\n    p = sqlite3_mprintf("ATTACH x AS %Q");\n    uVar5 = (u8)iVar2;\n    iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);\n    sqlite3_free(p);\n    if (iVar2 != 0) goto LAB_000e9e6e;\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    (db->init).iDb = uVar5;\n    iVar3 = sqlite3_step(pStmt);\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 & 0xfb;\n    if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    pOld = "ATTACH x AS %Q";\n    ppStmt = (sqlite3_stmt **)zSchema;\n    p = sqlite3_mprintf("ATTACH x AS %Q");\n    uVar5 = (u8)iVar2;\n    iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);\n    sqlite3_free(p);\n    if (iVar2 != 0) goto LAB_000e9e6e;\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 | 4;\n    (db->init).iDb = uVar5;\n    iVar3 = sqlite3_step(pStmt);\n    puVar1 = &(db->init).field_0x6;\n    *puVar1 = *puVar1 & 0xfb;\n    if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" { (expression_statement "pOld = "ATTACH x AS %Q";" (assignment_expression "pOld = "ATTACH x AS %Q"" identifier = (string_literal ""ATTACH x AS %Q"" " string_content ")) ;) (expression_statement "ppStmt = (sqlite3_stmt **)zSchema;" (assignment_expression "ppStmt = (sqlite3_stmt **)zSchema" identifier = (cast_expression "(sqlite3_stmt **)zSchema" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (expression_statement "p = sqlite3_mprintf("ATTACH x AS %Q");" (assignment_expression "p = sqlite3_mprintf("ATTACH x AS %Q")" identifier = (call_expression "sqlite3_mprintf("ATTACH x AS %Q")" identifier (argument_list "("ATTACH x AS %Q")" ( (string_literal ""ATTACH x AS %Q"" " string_content ") )))) ;) (expression_statement "uVar5 = (u8)iVar2;" (assignment_expression "uVar5 = (u8)iVar2" identifier = (cast_expression "(u8)iVar2" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac);" (assignment_expression "iVar2 = sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac)" identifier = (call_expression "sqlite3LockAndPrepare\n                      ((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac)" identifier (argument_list "((sqlite3 *)0x80,(char *)0x0,(int)&pStmt,0,(Vdbe *)pOld,ppStmt,\n                       in_stack_ffffffac)" ( (cast_expression "(sqlite3 *)0x80" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int)&pStmt" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pStmt" & identifier)) , number_literal , (cast_expression "(Vdbe *)pOld" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier )))) ;) (expression_statement "sqlite3_free(p);" (call_expression "sqlite3_free(p)" identifier (argument_list "(p)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) goto LAB_000e9e6e;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;)) (expression_statement "puVar1 = &(db->init).field_0x6;" (assignment_expression "puVar1 = &(db->init).field_0x6" identifier = (pointer_expression "&(db->init).field_0x6" & (field_expression "(db->init).field_0x6" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 4;" (assignment_expression "*puVar1 = *puVar1 | 4" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 4" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "(db->init).iDb = uVar5;" (assignment_expression "(db->init).iDb = uVar5" (field_expression "(db->init).iDb" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "iVar3 = sqlite3_step(pStmt);" (assignment_expression "iVar3 = sqlite3_step(pStmt)" identifier = (call_expression "sqlite3_step(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (expression_statement "puVar1 = &(db->init).field_0x6;" (assignment_expression "puVar1 = &(db->init).field_0x6" identifier = (pointer_expression "&(db->init).field_0x6" & (field_expression "(db->init).field_0x6" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 & 0xfb;" (assignment_expression "*puVar1 = *puVar1 & 0xfb" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 & 0xfb" (pointer_expression "*puVar1" * identifier) & number_literal)) ;) (if_statement "if (iVar3 == 0x65) {\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n      pMVar4 = memdbFromDbSchema(db,zSchema);\n      if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }\n    }" { (expression_statement "pMVar4 = memdbFromDbSchema(db,zSchema);" (assignment_expression "pMVar4 = memdbFromDbSchema(db,zSchema)" identifier = (call_expression "memdbFromDbSchema(db,zSchema)" identifier (argument_list "(db,zSchema)" ( identifier , identifier )))) ;) (if_statement "if (pMVar4 != (MemFile *)0x0) {\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }" if (parenthesized_expression "(pMVar4 != (MemFile *)0x0)" ( (binary_expression "pMVar4 != (MemFile *)0x0" identifier != (cast_expression "(MemFile *)0x0" ( (type_descriptor "MemFile *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar4->aData = pData;\n        *(uint *)&pMVar4->szAlloc = (uint)szBuf;\n        *(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;\n        *(uint *)&pMVar4->szMax = (uint)szBuf;\n        *(undefined4 *)&pMVar4->sz = (undefined4)szDb;\n        *(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;\n        *(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;\n        iVar3 = sqlite3Config.mxMemdbSize._4_4_;\n        if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }\n        pMVar4->mFlags = mFlags;\n        goto LAB_000e9e6e;\n      }" { (expression_statement "pMVar4->aData = pData;" (assignment_expression "pMVar4->aData = pData" (field_expression "pMVar4->aData" identifier -> field_identifier) = identifier) ;) (expression_statement "*(uint *)&pMVar4->szAlloc = (uint)szBuf;" (assignment_expression "*(uint *)&pMVar4->szAlloc = (uint)szBuf" (pointer_expression "*(uint *)&pMVar4->szAlloc" * (cast_expression "(uint *)&pMVar4->szAlloc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar4->szAlloc" & (field_expression "pMVar4->szAlloc" identifier -> field_identifier)))) = (cast_expression "(uint)szBuf" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_;" (assignment_expression "*(undefined4 *)((int)&pMVar4->sz + 4) = szDb._4_4_" (pointer_expression "*(undefined4 *)((int)&pMVar4->sz + 4)" * (cast_expression "(undefined4 *)((int)&pMVar4->sz + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar4->sz + 4)" ( (binary_expression "(int)&pMVar4->sz + 4" (cast_expression "(int)&pMVar4->sz" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar4->sz" & (field_expression "pMVar4->sz" identifier -> field_identifier))) + number_literal) )))) = (field_expression "szDb._4_4_" identifier . field_identifier)) ;) (expression_statement "*(uint *)&pMVar4->szMax = (uint)szBuf;" (assignment_expression "*(uint *)&pMVar4->szMax = (uint)szBuf" (pointer_expression "*(uint *)&pMVar4->szMax" * (cast_expression "(uint *)&pMVar4->szMax" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar4->szMax" & (field_expression "pMVar4->szMax" identifier -> field_identifier)))) = (cast_expression "(uint)szBuf" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)&pMVar4->sz = (undefined4)szDb;" (assignment_expression "*(undefined4 *)&pMVar4->sz = (undefined4)szDb" (pointer_expression "*(undefined4 *)&pMVar4->sz" * (cast_expression "(undefined4 *)&pMVar4->sz" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar4->sz" & (field_expression "pMVar4->sz" identifier -> field_identifier)))) = (cast_expression "(undefined4)szDb" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "*(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_;" (assignment_expression "*(int *)((int)&pMVar4->szAlloc + 4) = szBuf._4_4_" (pointer_expression "*(int *)((int)&pMVar4->szAlloc + 4)" * (cast_expression "(int *)((int)&pMVar4->szAlloc + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar4->szAlloc + 4)" ( (binary_expression "(int)&pMVar4->szAlloc + 4" (cast_expression "(int)&pMVar4->szAlloc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar4->szAlloc" & (field_expression "pMVar4->szAlloc" identifier -> field_identifier))) + number_literal) )))) = (field_expression "szBuf._4_4_" identifier . field_identifier)) ;) (expression_statement "*(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_;" (assignment_expression "*(int *)((int)&pMVar4->szMax + 4) = szBuf._4_4_" (pointer_expression "*(int *)((int)&pMVar4->szMax + 4)" * (cast_expression "(int *)((int)&pMVar4->szMax + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar4->szMax + 4)" ( (binary_expression "(int)&pMVar4->szMax + 4" (cast_expression "(int)&pMVar4->szMax" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar4->szMax" & (field_expression "pMVar4->szMax" identifier -> field_identifier))) + number_literal) )))) = (field_expression "szBuf._4_4_" identifier . field_identifier)) ;) (expression_statement "iVar3 = sqlite3Config.mxMemdbSize._4_4_;" (assignment_expression "iVar3 = sqlite3Config.mxMemdbSize._4_4_" identifier = (field_expression "sqlite3Config.mxMemdbSize._4_4_" (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier) . field_identifier)) ;) (if_statement "if ((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0) {\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }" if (parenthesized_expression "((SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0)" ( (binary_expression "(SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))) !=\n            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0" (parenthesized_expression "(SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)))" ( (binary_expression "SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=\n            SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))" (call_expression "SBORROW4(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_)" identifier (argument_list "(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_)" ( (field_expression "szBuf._4_4_" identifier . field_identifier) , (field_expression "sqlite3Config.mxMemdbSize._4_4_" (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier) . field_identifier) ))) != (call_expression "SBORROW4(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))" identifier (argument_list "(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,\n                     (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))" ( (binary_expression "szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_" (field_expression "szBuf._4_4_" identifier . field_identifier) - (field_expression "sqlite3Config.mxMemdbSize._4_4_" (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier) . field_identifier)) , (call_expression "(uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)" ( (binary_expression "(uint)szBuf < (uint)sqlite3Config.mxMemdbSize" (cast_expression "(uint)szBuf" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)sqlite3Config.mxMemdbSize" ( (type_descriptor "uint" type_identifier) ) (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier))) ))) )))) )) != (binary_expression "(int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)) < 0" (cast_expression "(int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize))" ( (binary_expression "(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -\n                 (uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)" (parenthesized_expression "(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_)" ( (binary_expression "szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_" (field_expression "szBuf._4_4_" identifier . field_identifier) - (field_expression "sqlite3Config.mxMemdbSize._4_4_" (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier) . field_identifier)) )) - (call_expression "(uint)((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)szBuf < (uint)sqlite3Config.mxMemdbSize)" ( (binary_expression "(uint)szBuf < (uint)sqlite3Config.mxMemdbSize" (cast_expression "(uint)szBuf" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)sqlite3Config.mxMemdbSize" ( (type_descriptor "uint" type_identifier) ) (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier))) )))) ))) < number_literal)) )) (compound_statement "{\n          *(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;\n          *(int *)((int)&pMVar4->szMax + 4) = iVar3;\n        }" { (expression_statement "*(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize;" (assignment_expression "*(uint *)&pMVar4->szMax = (uint)sqlite3Config.mxMemdbSize" (pointer_expression "*(uint *)&pMVar4->szMax" * (cast_expression "(uint *)&pMVar4->szMax" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar4->szMax" & (field_expression "pMVar4->szMax" identifier -> field_identifier)))) = (cast_expression "(uint)sqlite3Config.mxMemdbSize" ( (type_descriptor "uint" type_identifier) ) (field_expression "sqlite3Config.mxMemdbSize" identifier . field_identifier))) ;) (expression_statement "*(int *)((int)&pMVar4->szMax + 4) = iVar3;" (assignment_expression "*(int *)((int)&pMVar4->szMax + 4) = iVar3" (pointer_expression "*(int *)((int)&pMVar4->szMax + 4)" * (cast_expression "(int *)((int)&pMVar4->szMax + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar4->szMax + 4)" ( (binary_expression "(int)&pMVar4->szMax + 4" (cast_expression "(int)&pMVar4->szMax" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar4->szMax" & (field_expression "pMVar4->szMax" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) })) (expression_statement "pMVar4->mFlags = mFlags;" (assignment_expression "pMVar4->mFlags = mFlags" (field_expression "pMVar4->mFlags" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;) })) })) })) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000e9e6e:\n  sqlite3_finalize(pStmt);" statement_identifier : (expression_statement "sqlite3_finalize(pStmt);" (call_expression "sqlite3_finalize(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;)) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(db->mutex);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(db->mutex)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_48;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_00036ac9();" (call_expression "FUN_00036ac9()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x92696))" ( (pointer_expression "**(code **)(unaff_EBP + 0x92696)" * (pointer_expression "*(code **)(unaff_EBP + 0x92696)" * (cast_expression "(code **)(unaff_EBP + 0x92696)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x92696)" ( (binary_expression "unaff_EBP + 0x92696" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = **(int **)(param_1 + 0x10);\n  }" { (expression_statement "param_2 = **(int **)(param_1 + 0x10);" (assignment_expression "param_2 = **(int **)(param_1 + 0x10)" identifier = (pointer_expression "**(int **)(param_1 + 0x10)" * (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))))) ;) })) (expression_statement "iVar3 = FUN_000456a0();" (assignment_expression "iVar3 = FUN_000456a0()" identifier = (call_expression "FUN_000456a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" { (expression_statement "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);" (assignment_expression "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" identifier = (call_expression "FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" identifier (argument_list "(&UNK_000378ec + unaff_EBP,param_2)" ( (binary_expression "&UNK_000378ec + unaff_EBP" (pointer_expression "&UNK_000378ec" & identifier) + identifier) , identifier )))) ;) (expression_statement "iVar5 = FUN_000e2920(0x80,0,&local_24,0);" (assignment_expression "iVar5 = FUN_000e2920(0x80,0,&local_24,0)" identifier = (call_expression "FUN_000e2920(0x80,0,&local_24,0)" identifier (argument_list "(0x80,0,&local_24,0)" ( number_literal , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (expression_statement "FUN_00042800(uVar4);" (call_expression "FUN_00042800(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar5 != 0) goto LAB_000e9e6e;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;)) (expression_statement "local_48 = (undefined1)iVar3;" (assignment_expression "local_48 = (undefined1)iVar3" identifier = (cast_expression "(undefined1)iVar3" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = local_48;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = local_48" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_000ccd70(local_24);" (assignment_expression "iVar3 = FUN_000ccd70(local_24)" identifier = (call_expression "FUN_000ccd70(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" * (cast_expression "(byte *)(param_1 + 0xa2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa2)" ( (binary_expression "param_1 + 0xa2" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" { (expression_statement "iVar3 = FUN_00048f40();" (assignment_expression "iVar3 = FUN_00048f40()" identifier = (call_expression "FUN_00048f40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" { (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar3 + 0xc) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0xc) = param_6" (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 8) = param_5;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = param_5" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar3 + 0x14) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0x14) = param_6" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = param_4;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = param_4" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x10) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x10) = param_7" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x18) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x18) = param_7" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x9273e);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x9273e)" identifier = (pointer_expression "*(int *)(unaff_EBP + 0x9273e)" * (cast_expression "(int *)(unaff_EBP + 0x9273e)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273e)" ( (binary_expression "unaff_EBP + 0x9273e" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));" (assignment_expression "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" identifier = (call_expression "(uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_6 < *(uint *)(unaff_EBP + 0x9273a))" ( (binary_expression "param_6 < *(uint *)(unaff_EBP + 0x9273a)" identifier < (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" * (cast_expression "(uint *)(unaff_EBP + 0x9273a)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273a)" ( (binary_expression "unaff_EBP + 0x9273a" identifier + number_literal) ))))) )))) ;) (if_statement "if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" if (parenthesized_expression "((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0)" ( (binary_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0" (parenthesized_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2))" ( (binary_expression "SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)" (call_expression "SBORROW4(param_7,iVar1)" identifier (argument_list "(param_7,iVar1)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_7 - iVar1,uVar2)" identifier (argument_list "(param_7 - iVar1,uVar2)" ( (binary_expression "param_7 - iVar1" identifier - identifier) , identifier )))) )) != (binary_expression "(int)((param_7 - iVar1) - uVar2) < 0" (cast_expression "(int)((param_7 - iVar1) - uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_7 - iVar1) - uVar2)" ( (binary_expression "(param_7 - iVar1) - uVar2" (parenthesized_expression "(param_7 - iVar1)" ( (binary_expression "param_7 - iVar1" identifier - identifier) )) - identifier) ))) < number_literal)) )) (compound_statement "{\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" { (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a)" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" * (cast_expression "(uint *)(unaff_EBP + 0x9273a)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x9273a)" ( (binary_expression "unaff_EBP + 0x9273a" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x24) = param_8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x24) = param_8" (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" * (cast_expression "(undefined4 *)(iVar3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_000e9e6e;" goto statement_identifier ;) })) })) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000e9e6e:\n  FUN_000a96f0(local_24);" statement_identifier : (expression_statement "FUN_000a96f0(local_24);" (call_expression "FUN_000a96f0(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x9269e))" ( (pointer_expression "**(code **)(unaff_EBP + 0x9269e)" * (pointer_expression "*(code **)(unaff_EBP + 0x9269e)" * (cast_expression "(code **)(unaff_EBP + 0x9269e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x9269e)" ( (binary_expression "unaff_EBP + 0x9269e" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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 (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , IDENT )))) )) != (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - IDENT) ))) < LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "int") (function_declarator "FUN_000e9da0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" (identifier "FUN_000e9da0") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n                uint param_6,int param_7,undefined4 param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  undefined1 local_48;\n  undefined4 local_24;\n  int local_20;\n  \n  FUN_00036ac9();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }\n  if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }\n  iVar3 = FUN_000456a0();\n  if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }\n  iVar5 = 1;\nLAB_000e9e6e:\n  FUN_000a96f0(local_24);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_48;" (type_identifier "undefined1") (identifier "local_48") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "FUN_00036ac9();" (call_expression "FUN_00036ac9()" (identifier "FUN_00036ac9") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x92696))" (( "(") (pointer_expression "**(code **)(unaff_EBP + 0x92696)" (* "*") (pointer_expression "*(code **)(unaff_EBP + 0x92696)" (* "*") (cast_expression "(code **)(unaff_EBP + 0x92696)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0x92696)" (( "(") (binary_expression "unaff_EBP + 0x92696" (identifier "unaff_EBP") (+ "+") (number_literal "0x92696")) () ")"))))) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    param_2 = **(int **)(param_1 + 0x10);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = **(int **)(param_1 + 0x10);\n  }" ({ "{") (expression_statement "param_2 = **(int **)(param_1 + 0x10);" (assignment_expression "param_2 = **(int **)(param_1 + 0x10)" (identifier "param_2") (= "=") (pointer_expression "**(int **)(param_1 + 0x10)" (* "*") (pointer_expression "*(int **)(param_1 + 0x10)" (* "*") (cast_expression "(int **)(param_1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_000456a0();" (assignment_expression "iVar3 = FUN_000456a0()" (identifier "iVar3") (= "=") (call_expression "FUN_000456a0()" (identifier "FUN_000456a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (-1 < iVar3) {\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);\n    iVar5 = FUN_000e2920(0x80,0,&local_24,0);\n    FUN_00042800(uVar4);\n    if (iVar5 != 0) goto LAB_000e9e6e;\n    local_48 = (undefined1)iVar3;\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;\n    *(undefined1 *)(param_1 + 0xa0) = local_48;\n    iVar3 = FUN_000ccd70(local_24);\n    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;\n    if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);" (assignment_expression "uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" (identifier "uVar4") (= "=") (call_expression "FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2)" (identifier "FUN_0008ff90") (argument_list "(&UNK_000378ec + unaff_EBP,param_2)" (( "(") (binary_expression "&UNK_000378ec + unaff_EBP" (pointer_expression "&UNK_000378ec" (& "&") (identifier "UNK_000378ec")) (+ "+") (identifier "unaff_EBP")) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar5 = FUN_000e2920(0x80,0,&local_24,0);" (assignment_expression "iVar5 = FUN_000e2920(0x80,0,&local_24,0)" (identifier "iVar5") (= "=") (call_expression "FUN_000e2920(0x80,0,&local_24,0)" (identifier "FUN_000e2920") (argument_list "(0x80,0,&local_24,0)" (( "(") (number_literal "0x80") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_00042800(uVar4);" (call_expression "FUN_00042800(uVar4)" (identifier "FUN_00042800") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (iVar5 != 0) goto LAB_000e9e6e;" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000e9e6e;" (goto "goto") (statement_identifier "LAB_000e9e6e") (; ";"))) (expression_statement "local_48 = (undefined1)iVar3;" (assignment_expression "local_48 = (undefined1)iVar3" (identifier "local_48") (= "=") (cast_expression "(undefined1)iVar3" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "iVar3"))) (; ";")) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" (* "*") (cast_expression "(byte *)(param_1 + 0xa2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa2)" (( "(") (binary_expression "param_1 + 0xa2" (identifier "param_1") (+ "+") (number_literal "0xa2")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0xa2) | 4" (pointer_expression "*(byte *)(param_1 + 0xa2)" (* "*") (cast_expression "(byte *)(param_1 + 0xa2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa2)" (( "(") (binary_expression "param_1 + 0xa2" (identifier "param_1") (+ "+") (number_literal "0xa2")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = local_48;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = local_48" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (identifier "local_48")) (; ";")) (expression_statement "iVar3 = FUN_000ccd70(local_24);" (assignment_expression "iVar3 = FUN_000ccd70(local_24)" (identifier "iVar3") (= "=") (call_expression "FUN_000ccd70(local_24)" (identifier "FUN_000ccd70") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (expression_statement "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" (* "*") (cast_expression "(byte *)(param_1 + 0xa2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa2)" (( "(") (binary_expression "param_1 + 0xa2" (identifier "param_1") (+ "+") (number_literal "0xa2")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0xa2) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0xa2)" (* "*") (cast_expression "(byte *)(param_1 + 0xa2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa2)" (( "(") (binary_expression "param_1 + 0xa2" (identifier "param_1") (+ "+") (number_literal "0xa2")) () ")")))) (& "&") (number_literal "0xfb"))) (; ";")) (if_statement "if (iVar3 == 0x65) {\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 == 0x65)" (( "(") (binary_expression "iVar3 == 0x65" (identifier "iVar3") (== "==") (number_literal "0x65")) () ")")) (compound_statement "{\n      iVar3 = FUN_00048f40();\n      if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_00048f40();" (assignment_expression "iVar3 = FUN_00048f40()" (identifier "iVar3") (= "=") (call_expression "FUN_00048f40()" (identifier "FUN_00048f40") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(iVar3 + 0x1c) = param_3;\n        *(uint *)(iVar3 + 0xc) = param_6;\n        *(undefined4 *)(iVar3 + 8) = param_5;\n        *(uint *)(iVar3 + 0x14) = param_6;\n        *(undefined4 *)(iVar3 + 4) = param_4;\n        *(int *)(iVar3 + 0x10) = param_7;\n        *(int *)(iVar3 + 0x18) = param_7;\n        iVar1 = *(int *)(unaff_EBP + 0x9273e);\n        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));\n        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }\n        *(undefined4 *)(iVar3 + 0x24) = param_8;\n        goto LAB_000e9e6e;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(uint *)(iVar3 + 0xc) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0xc) = param_6" (pointer_expression "*(uint *)(iVar3 + 0xc)" (* "*") (cast_expression "(uint *)(iVar3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 8) = param_5;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = param_5" (pointer_expression "*(undefined4 *)(iVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(uint *)(iVar3 + 0x14) = param_6;" (assignment_expression "*(uint *)(iVar3 + 0x14) = param_6" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 4) = param_4;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = param_4" (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x10) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x10) = param_7" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x18) = param_7;" (assignment_expression "*(int *)(iVar3 + 0x18) = param_7" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x9273e);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x9273e)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(unaff_EBP + 0x9273e)" (* "*") (cast_expression "(int *)(unaff_EBP + 0x9273e)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x9273e)" (( "(") (binary_expression "unaff_EBP + 0x9273e" (identifier "unaff_EBP") (+ "+") (number_literal "0x9273e")) () ")"))))) (; ";")) (expression_statement "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));" (assignment_expression "uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" (identifier "uVar2") (= "=") (call_expression "(uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_6 < *(uint *)(unaff_EBP + 0x9273a))" (( "(") (binary_expression "param_6 < *(uint *)(unaff_EBP + 0x9273a)" (identifier "param_6") (< "<") (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" (* "*") (cast_expression "(uint *)(unaff_EBP + 0x9273a)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x9273a)" (( "(") (binary_expression "unaff_EBP + 0x9273a" (identifier "unaff_EBP") (+ "+") (number_literal "0x9273a")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0) {\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" (if "if") (parenthesized_expression "((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0)" (( "(") (binary_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=\n            (int)((param_7 - iVar1) - uVar2) < 0" (parenthesized_expression "(SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2))" (( "(") (binary_expression "SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)" (call_expression "SBORROW4(param_7,iVar1)" (identifier "SBORROW4") (argument_list "(param_7,iVar1)" (( "(") (identifier "param_7") (, ",") (identifier "iVar1") () ")"))) (!= "!=") (call_expression "SBORROW4(param_7 - iVar1,uVar2)" (identifier "SBORROW4") (argument_list "(param_7 - iVar1,uVar2)" (( "(") (binary_expression "param_7 - iVar1" (identifier "param_7") (- "-") (identifier "iVar1")) (, ",") (identifier "uVar2") () ")")))) () ")")) (!= "!=") (binary_expression "(int)((param_7 - iVar1) - uVar2) < 0" (cast_expression "(int)((param_7 - iVar1) - uVar2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((param_7 - iVar1) - uVar2)" (( "(") (binary_expression "(param_7 - iVar1) - uVar2" (parenthesized_expression "(param_7 - iVar1)" (( "(") (binary_expression "param_7 - iVar1" (identifier "param_7") (- "-") (identifier "iVar1")) () ")")) (- "-") (identifier "uVar2")) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);\n          *(int *)(iVar3 + 0x18) = iVar1;\n        }" ({ "{") (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a)" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (pointer_expression "*(uint *)(unaff_EBP + 0x9273a)" (* "*") (cast_expression "(uint *)(unaff_EBP + 0x9273a)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x9273a)" (( "(") (binary_expression "unaff_EBP + 0x9273a" (identifier "unaff_EBP") (+ "+") (number_literal "0x9273a")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0x24) = param_8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x24) = param_8" (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_8")) (; ";")) (goto_statement "goto LAB_000e9e6e;" (goto "goto") (statement_identifier "LAB_000e9e6e") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_000e9e6e:\n  FUN_000a96f0(local_24);" (statement_identifier "LAB_000e9e6e") (: ":") (expression_statement "FUN_000a96f0(local_24);" (call_expression "FUN_000a96f0(local_24)" (identifier "FUN_000a96f0") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";"))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EBP + 0x9269e))" (( "(") (pointer_expression "**(code **)(unaff_EBP + 0x9269e)" (* "*") (pointer_expression "*(code **)(unaff_EBP + 0x9269e)" (* "*") (cast_expression "(code **)(unaff_EBP + 0x9269e)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0x9269e)" (( "(") (binary_expression "unaff_EBP + 0x9269e" (identifier "unaff_EBP") (+ "+") (number_literal "0x9269e")) () ")"))))) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int function_1(type_1 *db,char *var_2,type_2 *pData,type_3 szDb,
                       type_3 szBuf,type_4 mFlags)

{
  type_5 *puVar1;
  int var_4;
  char *p;
  int var_9;
  type_6 *var_11;
  int var_1;
  char *pOld;
  type_7 **ppStmt;
  char **in_stack_ffffffac;
  type_1 *in_stack_ffffffb4;
  type_8 uVar5;
  char *in_stack_ffffffb8;
  type_7 *pStmt;
  int var_14;
  
  var_14 = *(int *)(var_1 + 0x14);
  pStmt = (type_7 *)0x0;
  if (db->mutex != (type_9 *)0x0) {
    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);
  }
  if (var_2 == (char *)0x0) {
    var_2 = db->aDb->zDbSName;
  }
  var_4 = var_3(in_stack_ffffffb4,in_stack_ffffffb8);
  if (-1 < var_4) {
    pOld = "ATTACH x AS %Q";
    ppStmt = (type_7 **)var_2;
    p = var_5("ATTACH x AS %Q");
    uVar5 = (type_8)var_4;
    var_4 = var_6
                      ((type_1 *)0x80,(char *)0x0,(int)&pStmt,0,(type_10 *)pOld,ppStmt,
                       in_stack_ffffffac);
    var_7(p);
    if (var_4 != 0) goto LAB_000e9e6e;
    puVar1 = &(db->init).field_0x6;
    *puVar1 = *puVar1 | 4;
    (db->init).iDb = uVar5;
    var_9 = var_8(pStmt);
    puVar1 = &(db->init).field_0x6;
    *puVar1 = *puVar1 & 0xfb;
    if (var_9 == 0x65) {
      var_11 = var_10(db,var_2);
      if (var_11 != (type_6 *)0x0) {
        var_11->aData = pData;
        *(type_4 *)&var_11->szAlloc = (type_4)szBuf;
        *(type_11 *)((int)&var_11->sz + 4) = szDb._4_4_;
        *(type_4 *)&var_11->szMax = (type_4)szBuf;
        *(type_11 *)&var_11->sz = (type_11)szDb;
        *(int *)((int)&var_11->szAlloc + 4) = szBuf._4_4_;
        *(int *)((int)&var_11->szMax + 4) = szBuf._4_4_;
        var_9 = sqlite3Config.mxMemdbSize._4_4_;
        if ((var_12(szBuf._4_4_,sqlite3Config.mxMemdbSize._4_4_) !=
            var_12(szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_,
                     (type_4)((type_4)szBuf < (type_4)sqlite3Config.mxMemdbSize))) !=
            (int)((szBuf._4_4_ - sqlite3Config.mxMemdbSize._4_4_) -
                 (type_4)((type_4)szBuf < (type_4)sqlite3Config.mxMemdbSize)) < 0) {
          *(type_4 *)&var_11->szMax = (type_4)sqlite3Config.mxMemdbSize;
          *(int *)((int)&var_11->szMax + 4) = var_9;
        }
        var_11->mFlags = mFlags;
        goto LAB_000e9e6e;
      }
    }
  }
  var_4 = 1;
LAB_000e9e6e:
  var_13(pStmt);
  if (db->mutex != (type_9 *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);
  }
  if (var_14 == *(int *)(var_1 + 0x14)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


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

int MASKED(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,
                uint param_6,int param_7,undefined4 param_8)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int unaff_EBP;
  int in_GS_OFFSET;
  undefined1 local_48;
  undefined4 local_24;
  int local_20;
  
  FUN_00036ac9();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EBP + 0x92696))(*(int *)(param_1 + 0xc));
  }
  if (param_2 == 0) {
    param_2 = **(int **)(param_1 + 0x10);
  }
  iVar3 = FUN_000456a0();
  if (-1 < iVar3) {
    uVar4 = FUN_0008ff90(&UNK_000378ec + unaff_EBP,param_2);
    iVar5 = FUN_000e2920(0x80,0,&local_24,0);
    FUN_00042800(uVar4);
    if (iVar5 != 0) goto LAB_000e9e6e;
    local_48 = (undefined1)iVar3;
    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) | 4;
    *(undefined1 *)(param_1 + 0xa0) = local_48;
    iVar3 = FUN_000ccd70(local_24);
    *(byte *)(param_1 + 0xa2) = *(byte *)(param_1 + 0xa2) & 0xfb;
    if (iVar3 == 0x65) {
      iVar3 = FUN_00048f40();
      if (iVar3 != 0) {
        *(undefined4 *)(iVar3 + 0x1c) = param_3;
        *(uint *)(iVar3 + 0xc) = param_6;
        *(undefined4 *)(iVar3 + 8) = param_5;
        *(uint *)(iVar3 + 0x14) = param_6;
        *(undefined4 *)(iVar3 + 4) = param_4;
        *(int *)(iVar3 + 0x10) = param_7;
        *(int *)(iVar3 + 0x18) = param_7;
        iVar1 = *(int *)(unaff_EBP + 0x9273e);
        uVar2 = (uint)(param_6 < *(uint *)(unaff_EBP + 0x9273a));
        if ((SBORROW4(param_7,iVar1) != SBORROW4(param_7 - iVar1,uVar2)) !=
            (int)((param_7 - iVar1) - uVar2) < 0) {
          *(uint *)(iVar3 + 0x14) = *(uint *)(unaff_EBP + 0x9273a);
          *(int *)(iVar3 + 0x18) = iVar1;
        }
        *(undefined4 *)(iVar3 + 0x24) = param_8;
        goto LAB_000e9e6e;
      }
    }
  }
  iVar5 = 1;
LAB_000e9e6e:
  FUN_000a96f0(local_24);
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EBP + 0x9269e))(*(int *)(param_1 + 0xc));
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

