
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
createCollation(sqlite3 *db,char *zName,u8 enc,void *pCtx,
               _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)

{
  byte bVar1;
  Vdbe *pVVar2;
  char *pcVar3;
  HashElem *pHVar4;
  CollSeq *pHash;
  void *pvVar5;
  code *extraout_EDX;
  code *extraout_EDX_00;
  code *extraout_EDX_01;
  code *err_code;
  code *extraout_EDX_02;
  code *extraout_EDX_03;
  Hash *in_stack_ffffffd4;
  char *pcVar6;
  
  if ((enc - 4 & 0xfb) == 0) {
    pcVar3 = (char *)0x2;
  }
  else {
    pcVar3 = (char *)(uint)enc;
    if ((char *)0x2 < pcVar3 + -1) {
      pcVar3 = sqlite3_sourceid();
      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);
      return 0x15;
    }
  }
  if (zName == (char *)0x0) {
    pHash = db->pDfltColl;
    if (pHash == (CollSeq *)0x0) {
      return 7;
    }
    err_code = (code *)0x0;
    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;
LAB_00052433:
    if (db->nVdbeActive != 0) {
      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"
                         );
      return 5;
    }
    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {
      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;
    }
    bVar1 = pHash->enc;
    err_code = (code *)0x0;
    if ((char *)(bVar1 & 0xf7) == pcVar3) {
      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);
      pvVar5 = pHVar4->data;
      err_code = extraout_EDX_00;
      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {
        err_code = *(code **)((int)pvVar5 + 0x10);
        if (err_code != (code *)0x0) {
          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));
          err_code = extraout_EDX_03;
        }
        *(undefined4 *)((int)pvVar5 + 0xc) = 0;
      }
      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {
        err_code = *(code **)((int)pvVar5 + 0x24);
        if (err_code != (code *)0x0) {
          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));
          err_code = extraout_EDX_02;
        }
        *(undefined4 *)((int)pvVar5 + 0x20) = 0;
      }
      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {
        err_code = *(code **)((int)pvVar5 + 0x38);
        if (err_code != (code *)0x0) {
          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));
          err_code = extraout_EDX_01;
        }
        *(undefined4 *)((int)pvVar5 + 0x34) = 0;
      }
    }
    if (zName != (char *)0x0) goto LAB_00052487;
    pHash = db->pDfltColl;
  }
  else {
    pcVar6 = pcVar3;
    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);
    if (((pHVar4->data != (void *)0x0) &&
        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),
        pHash != (CollSeq *)0x0)) &&
       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;
LAB_00052487:
    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);
    err_code = extraout_EDX;
  }
  if (pHash == (CollSeq *)0x0) {
    return 7;
  }
LAB_000524a2:
  pHash->xCmp = xCompare;
  pHash->pUser = pCtx;
  pHash->xDel = xDel;
  pHash->enc = (byte)pcVar3 | enc & 8;
  db->errCode = 0;
  if (db->pErr == (sqlite3_value *)0x0) {
    return 0;
  }
  sqlite3ErrorFinish(db,(int)err_code);
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
FUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uint local_28;
  
  if ((param_3 - 4 & 0xfb) == 0) {
    local_28 = 2;
  }
  else {
    local_28 = (uint)param_3;
    if (2 < local_28 - 1) {
      iVar2 = sqlite3_sourceid();
      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);
      return 0x15;
    }
  }
  if (param_2 == 0) {
    iVar2 = *(int *)(param_1 + 8);
    if (iVar2 == 0) {
      return 7;
    }
    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;
LAB_00052433:
    if (*(int *)(param_1 + 0xa8) != 0) {
      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");
      return 5;
    }
    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {
      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;
    }
    bVar1 = *(byte *)(iVar2 + 4);
    if ((bVar1 & 0xf7) == local_28) {
      iVar3 = FUN_000277e0();
      iVar3 = *(int *)(iVar3 + 8);
      if (bVar1 == *(byte *)(iVar3 + 4)) {
        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {
          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));
        }
        *(undefined4 *)(iVar3 + 0xc) = 0;
      }
      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {
        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {
          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));
        }
        *(undefined4 *)(iVar3 + 0x20) = 0;
      }
      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {
        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {
          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));
        }
        *(undefined4 *)(iVar3 + 0x34) = 0;
      }
    }
    if (param_2 != 0) goto LAB_00052487;
    iVar2 = *(int *)(param_1 + 8);
  }
  else {
    iVar2 = FUN_000277e0();
    if (((*(int *)(iVar2 + 8) != 0) &&
        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&
       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;
LAB_00052487:
    iVar2 = FUN_0004a680(1);
  }
  if (iVar2 == 0) {
    return 7;
  }
LAB_000524a2:
  *(undefined4 *)(iVar2 + 0xc) = param_5;
  *(undefined4 *)(iVar2 + 8) = param_4;
  *(undefined4 *)(iVar2 + 0x10) = param_6;
  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;
  *(undefined4 *)(param_1 + 0x3c) = 0;
  if (*(int *)(param_1 + 0x104) == 0) {
    return 0;
  }
  FUN_0002ae60();
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
LEA EAX,[ECX + -0x4]
PUSH EBX
CALL 0x0001ddf0
ADD EBX,0xb3c72
SUB ESP,0x1c
TEST AL,0xfb
MOV EBP,EDX
MOV ESI,ECX
JZ 0x000523f0
MOVZX ECX,CL
LEA EAX,[ECX + -0x1]
CMP EAX,0x2
JBE 0x00052508
CALL 0x00016620
SUB ESP,0xc
ADD EAX,0x14
PUSH EAX
LEA EAX,[EBX + 0xfffcb71c]
PUSH 0x27f22
PUSH EAX
LEA EAX,[EBX + 0xfffcb64f]
PUSH EAX
PUSH 0x15
CALL 0x00016ab0
ADD ESP,0x20
MOV EBX,0x15
ADD ESP,0x1c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x4],0x2
MOV ECX,0x2
TEST EBP,EBP
MOV dword ptr [ESP + 0x8],ECX
JZ 0x000524f0
LEA EAX,[EDI + 0x18c]
MOV EDX,EBP
CALL 0x000277e0
MOV EAX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x00052487
LEA EDX,[ECX + ECX*0x4]
LEA ECX,[EAX + EDX*0x4 + -0x14]
TEST ECX,ECX
JZ 0x00052487
MOV EDX,dword ptr [ECX + 0xc]
TEST EDX,EDX
JZ 0x00052487
MOV EAX,dword ptr [EDI + 0xa8]
TEST EAX,EAX
JNZ 0x00052530
MOV EDX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JZ 0x0005246a
NOP
LEA ESI,[ESI]
MOVZX EAX,byte ptr [EDX + 0x8e]
AND EAX,0xfffffffc
OR EAX,0x1
MOV byte ptr [EDX + 0x8e],AL
MOV EDX,dword ptr [EDX + 0x8]
TEST EDX,EDX
JNZ 0x00052450
MOVZX EBX,byte ptr [ECX + 0x4]
MOV EAX,EBX
AND EAX,0xf7
CMP EAX,dword ptr [ESP + 0x4]
JZ 0x00052550
TEST EBP,EBP
JZ 0x00052518
SUB ESP,0xc
MOV ECX,EBP
MOV EAX,EDI
PUSH 0x1
MOV EDX,dword ptr [ESP + 0x14]
CALL 0x0004a680
ADD ESP,0x10
MOV ECX,EAX
TEST ECX,ECX
JZ 0x00052520
MOV EAX,dword ptr [ESP + 0x34]
AND ESI,0x8
XOR EBX,EBX
MOV dword ptr [ECX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ECX + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ECX + 0x10],EAX
MOVZX EAX,byte ptr [ESP + 0x4]
OR EAX,ESI
MOV byte ptr [ECX + 0x4],AL
MOV ECX,dword ptr [EDI + 0x104]
MOV dword ptr [EDI + 0x3c],0x0
TEST ECX,ECX
JZ 0x000523dc
MOV EAX,EDI
CALL 0x0002ae60
ADD ESP,0x1c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EDI + 0x8]
TEST ECX,ECX
JZ 0x00052520
MOV EAX,dword ptr [ECX + 0xc]
TEST EAX,EAX
JZ 0x000524a2
JMP 0x00052433
MOV dword ptr [ESP + 0x4],ECX
JMP 0x000523fd
MOV ECX,dword ptr [EDI + 0x8]
JMP 0x0005249e
ADD ESP,0x1c
MOV EBX,0x7
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffcdfdc]
SUB ESP,0x4
MOV EBX,0x5
PUSH EAX
PUSH 0x5
PUSH EDI
CALL 0x00050420
ADD ESP,0x10
JMP 0x000523dc
LEA EAX,[EDI + 0x18c]
MOV EDX,EBP
MOV dword ptr [ESP + 0x8],ECX
CALL 0x000277e0
MOV EAX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [ESP + 0x8]
CMP BL,byte ptr [EAX + 0x4]
JZ 0x000525e0
MOVZX EBX,byte ptr [EAX + 0x18]
CMP byte ptr [ECX + 0x4],BL
JZ 0x000525b0
MOVZX EBX,byte ptr [ECX + 0x4]
CMP byte ptr [EAX + 0x2c],BL
JNZ 0x0005247f
MOV EDX,dword ptr [EAX + 0x38]
TEST EDX,EDX
JZ 0x0005259d
SUB ESP,0xc
PUSH dword ptr [EAX + 0x30]
MOV dword ptr [ESP + 0x18],EAX
CALL EDX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x34],0x0
JMP 0x0005247f
MOV EDX,dword ptr [EAX + 0x24]
TEST EDX,EDX
JZ 0x000525d2
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH dword ptr [EAX + 0x1c]
MOV dword ptr [ESP + 0x18],EAX
CALL EDX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0x20],0x0
JMP 0x00052576
MOV EDX,dword ptr [EAX + 0x10]
TEST EDX,EDX
JZ 0x00052602
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x18],EAX
CALL EDX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0xc],0x0
JMP 0x0005256d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (if_statement "if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" if (parenthesized_expression "((param_3 - 4 & 0xfb) == 0)" ( (binary_expression "(param_3 - 4 & 0xfb) == 0" (parenthesized_expression "(param_3 - 4 & 0xfb)" ( (binary_expression "param_3 - 4 & 0xfb" (binary_expression "param_3 - 4" identifier - number_literal) & number_literal) )) == number_literal) )) (compound_statement "{\n    local_28 = 2;\n  }" { (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" else (compound_statement "{\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" { (expression_statement "local_28 = (uint)param_3;" (assignment_expression "local_28 = (uint)param_3" identifier = (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" if (parenthesized_expression "(2 < local_28 - 1)" ( (binary_expression "2 < local_28 - 1" number_literal < (binary_expression "local_28 - 1" identifier - number_literal)) )) (compound_statement "{\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" { (expression_statement "iVar2 = sqlite3_sourceid();" (assignment_expression "iVar2 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);" (call_expression "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (binary_expression "iVar2 + 0x14" identifier + number_literal) ))) ;) (return_statement "return 0x15;" return number_literal ;) })) }))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n      return 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;" if (parenthesized_expression "(*(int *)(iVar2 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000524a2;" goto statement_identifier ;)) (labeled_statement "LAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xa8) != 0)" ( (binary_expression "*(int *)(param_1 + 0xa8) != 0" (pointer_expression "*(int *)(param_1 + 0xa8)" * (cast_expression "(int *)(param_1 + 0xa8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" { (expression_statement "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");" (call_expression "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements")" identifier (argument_list "(param_1,5,"unable to delete/modify collation sequence due to active statements")" ( identifier , number_literal , (string_literal ""unable to delete/modify collation sequence due to active statements"" " string_content ") ))) ;) (return_statement "return 5;" return number_literal ;) }))) (for_statement "for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" for ( (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" { (expression_statement "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;" (assignment_expression "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1" (pointer_expression "*(byte *)(iVar3 + 0x8e)" * (cast_expression "(byte *)(iVar3 + 0x8e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8e)" ( (binary_expression "iVar3 + 0x8e" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc | 1" (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc" (pointer_expression "*(byte *)(iVar3 + 0x8e)" * (cast_expression "(byte *)(iVar3 + 0x8e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8e)" ( (binary_expression "iVar3 + 0x8e" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "bVar1 = *(byte *)(iVar2 + 4);" (assignment_expression "bVar1 = *(byte *)(iVar2 + 4)" identifier = (pointer_expression "*(byte *)(iVar2 + 4)" * (cast_expression "(byte *)(iVar2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" if (parenthesized_expression "((bVar1 & 0xf7) == local_28)" ( (binary_expression "(bVar1 & 0xf7) == local_28" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) == identifier) )) (compound_statement "{\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" { (expression_statement "iVar3 = FUN_000277e0();" (assignment_expression "iVar3 = FUN_000277e0()" identifier = (call_expression "FUN_000277e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 8);" (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" if (parenthesized_expression "(bVar1 == *(byte *)(iVar3 + 4))" ( (binary_expression "bVar1 == *(byte *)(iVar3 + 4)" identifier == (pointer_expression "*(byte *)(iVar3 + 4)" * (cast_expression "(byte *)(iVar3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));" (call_expression "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8))" (parenthesized_expression "(**(code **)(iVar3 + 0x10))" ( (pointer_expression "**(code **)(iVar3 + 0x10)" * (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 8))" ( (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) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18))" ( (binary_expression "*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)" (pointer_expression "*(char *)(iVar2 + 4)" * (cast_expression "(char *)(iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) == (pointer_expression "*(char *)(iVar3 + 0x18)" * (cast_expression "(char *)(iVar3 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x24) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x24) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x24)" * (cast_expression "(code **)(iVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));" (call_expression "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c))" (parenthesized_expression "(**(code **)(iVar3 + 0x24))" ( (pointer_expression "**(code **)(iVar3 + 0x24)" * (pointer_expression "*(code **)(iVar3 + 0x24)" * (cast_expression "(code **)(iVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 0x1c))" ( (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) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20)" * (cast_expression "(undefined4 *)(iVar3 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4))" ( (binary_expression "*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)" (pointer_expression "*(char *)(iVar3 + 0x2c)" * (cast_expression "(char *)(iVar3 + 0x2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x2c)" ( (binary_expression "iVar3 + 0x2c" identifier + number_literal) )))) == (pointer_expression "*(char *)(iVar2 + 4)" * (cast_expression "(char *)(iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x38) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x38) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));" (call_expression "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30))" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" ( (pointer_expression "**(code **)(iVar3 + 0x38)" * (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 0x30))" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" * (cast_expression "(undefined4 *)(iVar3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) = number_literal) ;) })) })) (if_statement "if (param_2 != 0) goto LAB_00052487;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00052487;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" else (compound_statement "{\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" { (expression_statement "iVar2 = FUN_000277e0();" (assignment_expression "iVar2 = FUN_000277e0()" identifier = (call_expression "FUN_000277e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;" if (parenthesized_expression "(((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0))" ( (binary_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)" (parenthesized_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0))" ( (binary_expression "(*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0" (assignment_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" identifier = (binary_expression "*(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" (binary_expression "*(int *)(iVar2 + 8) + -0x14" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) + number_literal) + (binary_expression "local_28 * 0x14" identifier * number_literal))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_00052433;" goto statement_identifier ;)) (labeled_statement "LAB_00052487:\n    iVar2 = FUN_0004a680(1);" statement_identifier : (expression_statement "iVar2 = FUN_0004a680(1);" (assignment_expression "iVar2 = FUN_0004a680(1)" identifier = (call_expression "FUN_0004a680(1)" identifier (argument_list "(1)" ( number_literal )))) ;)) }))) (if_statement "if (iVar2 == 0) {\n    return 7;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (labeled_statement "LAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;" statement_identifier : (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)(iVar2 + 8) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_6;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_6" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;" (assignment_expression "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8" (pointer_expression "*(byte *)(iVar2 + 4)" * (cast_expression "(byte *)(iVar2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "(byte)local_28 | param_3 & 8" (cast_expression "(byte)local_28" ( (type_descriptor "byte" type_identifier) ) identifier) | (binary_expression "param_3 & 8" identifier & number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3c)" * (cast_expression "(undefined4 *)(param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x104) == 0)" ( (binary_expression "*(int *)(param_1 + 0x104) == 0" (pointer_expression "*(int *)(param_1 + 0x104)" * (cast_expression "(int *)(param_1 + 0x104)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x104)" ( (binary_expression "param_1 + 0x104" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0002ae60();" (call_expression "FUN_0002ae60()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\ncreateCollation(sqlite3 *db,char *zName,u8 enc,void *pCtx,\n               _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)\n\n{\n  byte bVar1;\n  Vdbe *pVVar2;\n  char *pcVar3;\n  HashElem *pHVar4;\n  CollSeq *pHash;\n  void *pvVar5;\n  code *extraout_EDX;\n  code *extraout_EDX_00;\n  code *extraout_EDX_01;\n  code *err_code;\n  code *extraout_EDX_02;\n  code *extraout_EDX_03;\n  Hash *in_stack_ffffffd4;\n  char *pcVar6;\n  \n  if ((enc - 4 & 0xfb) == 0) {\n    pcVar3 = (char *)0x2;\n  }\n  else {\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }\n  if (zName == (char *)0x0) {\n    pHash = db->pDfltColl;\n    if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }\n    err_code = (code *)0x0;\n    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;\nLAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }\n    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }\n    bVar1 = pHash->enc;\n    err_code = (code *)0x0;\n    if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }\n    if (zName != (char *)0x0) goto LAB_00052487;\n    pHash = db->pDfltColl;\n  }\n  else {\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }\n  if (pHash == (CollSeq *)0x0) {\n    return 7;\n  }\nLAB_000524a2:\n  pHash->xCmp = xCompare;\n  pHash->pUser = pCtx;\n  pHash->xDel = xDel;\n  pHash->enc = (byte)pcVar3 | enc & 8;\n  db->errCode = 0;\n  if (db->pErr == (sqlite3_value *)0x0) {\n    return 0;\n  }\n  sqlite3ErrorFinish(db,(int)err_code);\n  return 0;\n}\n\n" comment (function_definition "int __regparm3\ncreateCollation(sqlite3 *db,char *zName,u8 enc,void *pCtx,\n               _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)\n\n{\n  byte bVar1;\n  Vdbe *pVVar2;\n  char *pcVar3;\n  HashElem *pHVar4;\n  CollSeq *pHash;\n  void *pvVar5;\n  code *extraout_EDX;\n  code *extraout_EDX_00;\n  code *extraout_EDX_01;\n  code *err_code;\n  code *extraout_EDX_02;\n  code *extraout_EDX_03;\n  Hash *in_stack_ffffffd4;\n  char *pcVar6;\n  \n  if ((enc - 4 & 0xfb) == 0) {\n    pcVar3 = (char *)0x2;\n  }\n  else {\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }\n  if (zName == (char *)0x0) {\n    pHash = db->pDfltColl;\n    if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }\n    err_code = (code *)0x0;\n    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;\nLAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }\n    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }\n    bVar1 = pHash->enc;\n    err_code = (code *)0x0;\n    if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }\n    if (zName != (char *)0x0) goto LAB_00052487;\n    pHash = db->pDfltColl;\n  }\n  else {\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }\n  if (pHash == (CollSeq *)0x0) {\n    return 7;\n  }\nLAB_000524a2:\n  pHash->xCmp = xCompare;\n  pHash->pUser = pCtx;\n  pHash->xDel = xDel;\n  pHash->enc = (byte)pcVar3 | enc & 8;\n  db->errCode = 0;\n  if (db->pErr == (sqlite3_value *)0x0) {\n    return 0;\n  }\n  sqlite3ErrorFinish(db,(int)err_code);\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "createCollation(sqlite3 *db,char *zName,u8 enc,void *pCtx,\n               _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)" identifier (parameter_list "(sqlite3 *db,char *zName,u8 enc,void *pCtx,\n               _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "u8 enc" type_identifier identifier) , (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "_func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare" type_identifier (pointer_declarator "*xCompare" * identifier)) , (parameter_declaration "_func_void_void_ptr *xDel" type_identifier (pointer_declarator "*xDel" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  Vdbe *pVVar2;\n  char *pcVar3;\n  HashElem *pHVar4;\n  CollSeq *pHash;\n  void *pvVar5;\n  code *extraout_EDX;\n  code *extraout_EDX_00;\n  code *extraout_EDX_01;\n  code *err_code;\n  code *extraout_EDX_02;\n  code *extraout_EDX_03;\n  Hash *in_stack_ffffffd4;\n  char *pcVar6;\n  \n  if ((enc - 4 & 0xfb) == 0) {\n    pcVar3 = (char *)0x2;\n  }\n  else {\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }\n  if (zName == (char *)0x0) {\n    pHash = db->pDfltColl;\n    if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }\n    err_code = (code *)0x0;\n    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;\nLAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }\n    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }\n    bVar1 = pHash->enc;\n    err_code = (code *)0x0;\n    if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }\n    if (zName != (char *)0x0) goto LAB_00052487;\n    pHash = db->pDfltColl;\n  }\n  else {\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }\n  if (pHash == (CollSeq *)0x0) {\n    return 7;\n  }\nLAB_000524a2:\n  pHash->xCmp = xCompare;\n  pHash->pUser = pCtx;\n  pHash->xDel = xDel;\n  pHash->enc = (byte)pcVar3 | enc & 8;\n  db->errCode = 0;\n  if (db->pErr == (sqlite3_value *)0x0) {\n    return 0;\n  }\n  sqlite3ErrorFinish(db,(int)err_code);\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "Vdbe *pVVar2;" type_identifier (pointer_declarator "*pVVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "HashElem *pHVar4;" type_identifier (pointer_declarator "*pHVar4" * identifier) ;) (declaration "CollSeq *pHash;" type_identifier (pointer_declarator "*pHash" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "code *extraout_EDX;" type_identifier (pointer_declarator "*extraout_EDX" * identifier) ;) (declaration "code *extraout_EDX_00;" type_identifier (pointer_declarator "*extraout_EDX_00" * identifier) ;) (declaration "code *extraout_EDX_01;" type_identifier (pointer_declarator "*extraout_EDX_01" * identifier) ;) (declaration "code *err_code;" type_identifier (pointer_declarator "*err_code" * identifier) ;) (declaration "code *extraout_EDX_02;" type_identifier (pointer_declarator "*extraout_EDX_02" * identifier) ;) (declaration "code *extraout_EDX_03;" type_identifier (pointer_declarator "*extraout_EDX_03" * identifier) ;) (declaration "Hash *in_stack_ffffffd4;" type_identifier (pointer_declarator "*in_stack_ffffffd4" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if ((enc - 4 & 0xfb) == 0) {\n    pcVar3 = (char *)0x2;\n  }\n  else {\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }" if (parenthesized_expression "((enc - 4 & 0xfb) == 0)" ( (binary_expression "(enc - 4 & 0xfb) == 0" (parenthesized_expression "(enc - 4 & 0xfb)" ( (binary_expression "enc - 4 & 0xfb" (binary_expression "enc - 4" identifier - number_literal) & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar3 = (char *)0x2;\n  }" { (expression_statement "pcVar3 = (char *)0x2;" (assignment_expression "pcVar3 = (char *)0x2" identifier = (cast_expression "(char *)0x2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }" else (compound_statement "{\n    pcVar3 = (char *)(uint)enc;\n    if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }\n  }" { (expression_statement "pcVar3 = (char *)(uint)enc;" (assignment_expression "pcVar3 = (char *)(uint)enc" identifier = (cast_expression "(char *)(uint)enc" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)enc" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if ((char *)0x2 < pcVar3 + -1) {\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }" if (parenthesized_expression "((char *)0x2 < pcVar3 + -1)" ( (binary_expression "(char *)0x2 < pcVar3 + -1" (cast_expression "(char *)0x2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) < (binary_expression "pcVar3 + -1" identifier + number_literal)) )) (compound_statement "{\n      pcVar3 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);\n      return 0x15;\n    }" { (expression_statement "pcVar3 = sqlite3_sourceid();" (assignment_expression "pcVar3 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14);" (call_expression "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14)" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,pcVar3 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (binary_expression "pcVar3 + 0x14" identifier + number_literal) ))) ;) (return_statement "return 0x15;" return number_literal ;) })) }))) (if_statement "if (zName == (char *)0x0) {\n    pHash = db->pDfltColl;\n    if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }\n    err_code = (code *)0x0;\n    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;\nLAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }\n    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }\n    bVar1 = pHash->enc;\n    err_code = (code *)0x0;\n    if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }\n    if (zName != (char *)0x0) goto LAB_00052487;\n    pHash = db->pDfltColl;\n  }\n  else {\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }" if (parenthesized_expression "(zName == (char *)0x0)" ( (binary_expression "zName == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pHash = db->pDfltColl;\n    if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }\n    err_code = (code *)0x0;\n    if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;\nLAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }\n    for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }\n    bVar1 = pHash->enc;\n    err_code = (code *)0x0;\n    if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }\n    if (zName != (char *)0x0) goto LAB_00052487;\n    pHash = db->pDfltColl;\n  }" { (expression_statement "pHash = db->pDfltColl;" (assignment_expression "pHash = db->pDfltColl" identifier = (field_expression "db->pDfltColl" identifier -> field_identifier)) ;) (if_statement "if (pHash == (CollSeq *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(pHash == (CollSeq *)0x0)" ( (binary_expression "pHash == (CollSeq *)0x0" identifier == (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "err_code = (code *)0x0;" (assignment_expression "err_code = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0) goto LAB_000524a2;" if (parenthesized_expression "(pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)" ( (binary_expression "pHash->xCmp == (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0" (field_expression "pHash->xCmp" identifier -> field_identifier) == (cast_expression "(_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_int_void_ptr_int_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000524a2;" goto statement_identifier ;)) (labeled_statement "LAB_00052433:\n    if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }" statement_identifier : (if_statement "if (db->nVdbeActive != 0) {\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }" if (parenthesized_expression "(db->nVdbeActive != 0)" ( (binary_expression "db->nVdbeActive != 0" (field_expression "db->nVdbeActive" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );\n      return 5;\n    }" { (expression_statement "sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         );" (call_expression "sqlite3ErrorWithMsg(db,5,"unable to delete/modify collation sequence due to active statements"\n                         )" identifier (argument_list "(db,5,"unable to delete/modify collation sequence due to active statements"\n                         )" ( identifier , number_literal , (string_literal ""unable to delete/modify collation sequence due to active statements"" " string_content ") ))) ;) (return_statement "return 5;" return number_literal ;) }))) (for_statement "for (pVVar2 = db->pVdbe; pVVar2 != (Vdbe *)0x0; pVVar2 = pVVar2->pNext) {\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }" for ( (assignment_expression "pVVar2 = db->pVdbe" identifier = (field_expression "db->pVdbe" identifier -> field_identifier)) ; (binary_expression "pVVar2 != (Vdbe *)0x0" identifier != (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pVVar2 = pVVar2->pNext" identifier = (field_expression "pVVar2->pNext" identifier -> field_identifier)) ) (compound_statement "{\n      pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;\n    }" { (expression_statement "pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1;" (assignment_expression "pVVar2->field_0x8e = pVVar2->field_0x8e & 0xfc | 1" (field_expression "pVVar2->field_0x8e" identifier -> field_identifier) = (binary_expression "pVVar2->field_0x8e & 0xfc | 1" (binary_expression "pVVar2->field_0x8e & 0xfc" (field_expression "pVVar2->field_0x8e" identifier -> field_identifier) & number_literal) | number_literal)) ;) })) (expression_statement "bVar1 = pHash->enc;" (assignment_expression "bVar1 = pHash->enc" identifier = (field_expression "pHash->enc" identifier -> field_identifier)) ;) (expression_statement "err_code = (code *)0x0;" (assignment_expression "err_code = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((char *)(bVar1 & 0xf7) == pcVar3) {\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }" if (parenthesized_expression "((char *)(bVar1 & 0xf7) == pcVar3)" ( (binary_expression "(char *)(bVar1 & 0xf7) == pcVar3" (cast_expression "(char *)(bVar1 & 0xf7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) ))) == identifier) )) (compound_statement "{\n      pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);\n      pvVar5 = pHVar4->data;\n      err_code = extraout_EDX_00;\n      if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }\n      if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }\n      if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }\n    }" { (expression_statement "pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash);" (assignment_expression "pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash)" identifier = (call_expression "findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pHash)" identifier (argument_list "(in_stack_ffffffd4,pcVar3,(uint *)pHash)" ( identifier , identifier , (cast_expression "(uint *)pHash" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pvVar5 = pHVar4->data;" (assignment_expression "pvVar5 = pHVar4->data" identifier = (field_expression "pHVar4->data" identifier -> field_identifier)) ;) (expression_statement "err_code = extraout_EDX_00;" (assignment_expression "err_code = extraout_EDX_00" identifier = identifier) ;) (if_statement "if (bVar1 == *(byte *)((int)pvVar5 + 4)) {\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }" if (parenthesized_expression "(bVar1 == *(byte *)((int)pvVar5 + 4))" ( (binary_expression "bVar1 == *(byte *)((int)pvVar5 + 4)" identifier == (pointer_expression "*(byte *)((int)pvVar5 + 4)" * (cast_expression "(byte *)((int)pvVar5 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 4)" ( (binary_expression "(int)pvVar5 + 4" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        err_code = *(code **)((int)pvVar5 + 0x10);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }\n        *(undefined4 *)((int)pvVar5 + 0xc) = 0;\n      }" { (expression_statement "err_code = *(code **)((int)pvVar5 + 0x10);" (assignment_expression "err_code = *(code **)((int)pvVar5 + 0x10)" identifier = (pointer_expression "*(code **)((int)pvVar5 + 0x10)" * (cast_expression "(code **)((int)pvVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar5 + 0x10)" ( (binary_expression "(int)pvVar5 + 0x10" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }" if (parenthesized_expression "(err_code != (code *)0x0)" ( (binary_expression "err_code != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 8));\n          err_code = extraout_EDX_03;\n        }" { (expression_statement "(*err_code)(*(undefined4 *)((int)pvVar5 + 8));" (call_expression "(*err_code)(*(undefined4 *)((int)pvVar5 + 8))" (parenthesized_expression "(*err_code)" ( (pointer_expression "*err_code" * identifier) )) (argument_list "(*(undefined4 *)((int)pvVar5 + 8))" ( (pointer_expression "*(undefined4 *)((int)pvVar5 + 8)" * (cast_expression "(undefined4 *)((int)pvVar5 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 8)" ( (binary_expression "(int)pvVar5 + 8" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "err_code = extraout_EDX_03;" (assignment_expression "err_code = extraout_EDX_03" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)((int)pvVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar5 + 0xc)" * (cast_expression "(undefined4 *)((int)pvVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0xc)" ( (binary_expression "(int)pvVar5 + 0xc" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (pHash->enc == *(u8 *)((int)pvVar5 + 0x18)) {\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }" if (parenthesized_expression "(pHash->enc == *(u8 *)((int)pvVar5 + 0x18))" ( (binary_expression "pHash->enc == *(u8 *)((int)pvVar5 + 0x18)" (field_expression "pHash->enc" identifier -> field_identifier) == (pointer_expression "*(u8 *)((int)pvVar5 + 0x18)" * (cast_expression "(u8 *)((int)pvVar5 + 0x18)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x18)" ( (binary_expression "(int)pvVar5 + 0x18" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        err_code = *(code **)((int)pvVar5 + 0x24);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x20) = 0;\n      }" { (expression_statement "err_code = *(code **)((int)pvVar5 + 0x24);" (assignment_expression "err_code = *(code **)((int)pvVar5 + 0x24)" identifier = (pointer_expression "*(code **)((int)pvVar5 + 0x24)" * (cast_expression "(code **)((int)pvVar5 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar5 + 0x24)" ( (binary_expression "(int)pvVar5 + 0x24" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }" if (parenthesized_expression "(err_code != (code *)0x0)" ( (binary_expression "err_code != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));\n          err_code = extraout_EDX_02;\n        }" { (expression_statement "(*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c));" (call_expression "(*err_code)(*(undefined4 *)((int)pvVar5 + 0x1c))" (parenthesized_expression "(*err_code)" ( (pointer_expression "*err_code" * identifier) )) (argument_list "(*(undefined4 *)((int)pvVar5 + 0x1c))" ( (pointer_expression "*(undefined4 *)((int)pvVar5 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar5 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x1c)" ( (binary_expression "(int)pvVar5 + 0x1c" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "err_code = extraout_EDX_02;" (assignment_expression "err_code = extraout_EDX_02" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)((int)pvVar5 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar5 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar5 + 0x20)" * (cast_expression "(undefined4 *)((int)pvVar5 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x20)" ( (binary_expression "(int)pvVar5 + 0x20" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc) {\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }" if (parenthesized_expression "(*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc)" ( (binary_expression "*(u8 *)((int)pvVar5 + 0x2c) == pHash->enc" (pointer_expression "*(u8 *)((int)pvVar5 + 0x2c)" * (cast_expression "(u8 *)((int)pvVar5 + 0x2c)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x2c)" ( (binary_expression "(int)pvVar5 + 0x2c" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (field_expression "pHash->enc" identifier -> field_identifier)) )) (compound_statement "{\n        err_code = *(code **)((int)pvVar5 + 0x38);\n        if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }\n        *(undefined4 *)((int)pvVar5 + 0x34) = 0;\n      }" { (expression_statement "err_code = *(code **)((int)pvVar5 + 0x38);" (assignment_expression "err_code = *(code **)((int)pvVar5 + 0x38)" identifier = (pointer_expression "*(code **)((int)pvVar5 + 0x38)" * (cast_expression "(code **)((int)pvVar5 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar5 + 0x38)" ( (binary_expression "(int)pvVar5 + 0x38" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (err_code != (code *)0x0) {\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }" if (parenthesized_expression "(err_code != (code *)0x0)" ( (binary_expression "err_code != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));\n          err_code = extraout_EDX_01;\n        }" { (expression_statement "(*err_code)(*(undefined4 *)((int)pvVar5 + 0x30));" (call_expression "(*err_code)(*(undefined4 *)((int)pvVar5 + 0x30))" (parenthesized_expression "(*err_code)" ( (pointer_expression "*err_code" * identifier) )) (argument_list "(*(undefined4 *)((int)pvVar5 + 0x30))" ( (pointer_expression "*(undefined4 *)((int)pvVar5 + 0x30)" * (cast_expression "(undefined4 *)((int)pvVar5 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x30)" ( (binary_expression "(int)pvVar5 + 0x30" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "err_code = extraout_EDX_01;" (assignment_expression "err_code = extraout_EDX_01" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)((int)pvVar5 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar5 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)pvVar5 + 0x34)" * (cast_expression "(undefined4 *)((int)pvVar5 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 0x34)" ( (binary_expression "(int)pvVar5 + 0x34" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) })) (if_statement "if (zName != (char *)0x0) goto LAB_00052487;" if (parenthesized_expression "(zName != (char *)0x0)" ( (binary_expression "zName != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00052487;" goto statement_identifier ;)) (expression_statement "pHash = db->pDfltColl;" (assignment_expression "pHash = db->pDfltColl" identifier = (field_expression "db->pDfltColl" identifier -> field_identifier)) ;) }) (else_clause "else {\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }" else (compound_statement "{\n    pcVar6 = pcVar3;\n    pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);\n    if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;\nLAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);\n    err_code = extraout_EDX;\n  }" { (expression_statement "pcVar6 = pcVar3;" (assignment_expression "pcVar6 = pcVar3" identifier = identifier) ;) (expression_statement "pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3);" (assignment_expression "pHVar4 = findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3)" identifier = (call_expression "findElementWithHash(in_stack_ffffffd4,pcVar3,(uint *)pcVar3)" identifier (argument_list "(in_stack_ffffffd4,pcVar3,(uint *)pcVar3)" ( identifier , identifier , (cast_expression "(uint *)pcVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)) goto LAB_00052433;" if (parenthesized_expression "(((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0))" ( (binary_expression "((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)) &&\n       (pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)" (parenthesized_expression "((pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0))" ( (binary_expression "(pHVar4->data != (void *)0x0) &&\n        (pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)" (parenthesized_expression "(pHVar4->data != (void *)0x0)" ( (binary_expression "pHVar4->data != (void *)0x0" (field_expression "pHVar4->data" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0)" ( (comma_expression "pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),\n        pHash != (CollSeq *)0x0" (assignment_expression "pHash = (CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14)" identifier = (cast_expression "(CollSeq *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14)" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14)" ( (binary_expression "(int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14" (binary_expression "(int)pHVar4->data + (int)pcVar6 * 0x14" (cast_expression "(int)pHVar4->data" ( (type_descriptor "int" primitive_type) ) (field_expression "pHVar4->data" identifier -> field_identifier)) + (binary_expression "(int)pcVar6 * 0x14" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal) )))) , (binary_expression "pHash != (CollSeq *)0x0" identifier != (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0)" ( (binary_expression "pHash->xCmp != (_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0" (field_expression "pHash->xCmp" identifier -> field_identifier) != (cast_expression "(_func_int_void_ptr_int_void_ptr_int_void_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_int_void_ptr_int_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (goto_statement "goto LAB_00052433;" goto statement_identifier ;)) (labeled_statement "LAB_00052487:\n    pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);" statement_identifier : (expression_statement "pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1);" (assignment_expression "pHash = sqlite3FindCollSeq(db,(u8)pcVar3,zName,1)" identifier = (call_expression "sqlite3FindCollSeq(db,(u8)pcVar3,zName,1)" identifier (argument_list "(db,(u8)pcVar3,zName,1)" ( identifier , (cast_expression "(u8)pcVar3" ( (type_descriptor "u8" type_identifier) ) identifier) , identifier , number_literal )))) ;)) (expression_statement "err_code = extraout_EDX;" (assignment_expression "err_code = extraout_EDX" identifier = identifier) ;) }))) (if_statement "if (pHash == (CollSeq *)0x0) {\n    return 7;\n  }" if (parenthesized_expression "(pHash == (CollSeq *)0x0)" ( (binary_expression "pHash == (CollSeq *)0x0" identifier == (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (labeled_statement "LAB_000524a2:\n  pHash->xCmp = xCompare;" statement_identifier : (expression_statement "pHash->xCmp = xCompare;" (assignment_expression "pHash->xCmp = xCompare" (field_expression "pHash->xCmp" identifier -> field_identifier) = identifier) ;)) (expression_statement "pHash->pUser = pCtx;" (assignment_expression "pHash->pUser = pCtx" (field_expression "pHash->pUser" identifier -> field_identifier) = identifier) ;) (expression_statement "pHash->xDel = xDel;" (assignment_expression "pHash->xDel = xDel" (field_expression "pHash->xDel" identifier -> field_identifier) = identifier) ;) (expression_statement "pHash->enc = (byte)pcVar3 | enc & 8;" (assignment_expression "pHash->enc = (byte)pcVar3 | enc & 8" (field_expression "pHash->enc" identifier -> field_identifier) = (binary_expression "(byte)pcVar3 | enc & 8" (cast_expression "(byte)pcVar3" ( (type_descriptor "byte" type_identifier) ) identifier) | (binary_expression "enc & 8" identifier & number_literal))) ;) (expression_statement "db->errCode = 0;" (assignment_expression "db->errCode = 0" (field_expression "db->errCode" identifier -> field_identifier) = number_literal) ;) (if_statement "if (db->pErr == (sqlite3_value *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(db->pErr == (sqlite3_value *)0x0)" ( (binary_expression "db->pErr == (sqlite3_value *)0x0" (field_expression "db->pErr" identifier -> field_identifier) == (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sqlite3ErrorFinish(db,(int)err_code);" (call_expression "sqlite3ErrorFinish(db,(int)err_code)" identifier (argument_list "(db,(int)err_code)" ( identifier , (cast_expression "(int)err_code" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (if_statement "if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" if (parenthesized_expression "((param_3 - 4 & 0xfb) == 0)" ( (binary_expression "(param_3 - 4 & 0xfb) == 0" (parenthesized_expression "(param_3 - 4 & 0xfb)" ( (binary_expression "param_3 - 4 & 0xfb" (binary_expression "param_3 - 4" identifier - number_literal) & number_literal) )) == number_literal) )) (compound_statement "{\n    local_28 = 2;\n  }" { (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" else (compound_statement "{\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" { (expression_statement "local_28 = (uint)param_3;" (assignment_expression "local_28 = (uint)param_3" identifier = (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" if (parenthesized_expression "(2 < local_28 - 1)" ( (binary_expression "2 < local_28 - 1" number_literal < (binary_expression "local_28 - 1" identifier - number_literal)) )) (compound_statement "{\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" { (expression_statement "iVar2 = sqlite3_sourceid();" (assignment_expression "iVar2 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);" (call_expression "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (binary_expression "iVar2 + 0x14" identifier + number_literal) ))) ;) (return_statement "return 0x15;" return number_literal ;) })) }))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n      return 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;" if (parenthesized_expression "(*(int *)(iVar2 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000524a2;" goto statement_identifier ;)) (labeled_statement "LAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xa8) != 0)" ( (binary_expression "*(int *)(param_1 + 0xa8) != 0" (pointer_expression "*(int *)(param_1 + 0xa8)" * (cast_expression "(int *)(param_1 + 0xa8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" { (expression_statement "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");" (call_expression "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements")" identifier (argument_list "(param_1,5,"unable to delete/modify collation sequence due to active statements")" ( identifier , number_literal , (string_literal ""unable to delete/modify collation sequence due to active statements"" " string_content ") ))) ;) (return_statement "return 5;" return number_literal ;) }))) (for_statement "for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" for ( (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" { (expression_statement "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;" (assignment_expression "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1" (pointer_expression "*(byte *)(iVar3 + 0x8e)" * (cast_expression "(byte *)(iVar3 + 0x8e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8e)" ( (binary_expression "iVar3 + 0x8e" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc | 1" (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc" (pointer_expression "*(byte *)(iVar3 + 0x8e)" * (cast_expression "(byte *)(iVar3 + 0x8e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x8e)" ( (binary_expression "iVar3 + 0x8e" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "bVar1 = *(byte *)(iVar2 + 4);" (assignment_expression "bVar1 = *(byte *)(iVar2 + 4)" identifier = (pointer_expression "*(byte *)(iVar2 + 4)" * (cast_expression "(byte *)(iVar2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" if (parenthesized_expression "((bVar1 & 0xf7) == local_28)" ( (binary_expression "(bVar1 & 0xf7) == local_28" (parenthesized_expression "(bVar1 & 0xf7)" ( (binary_expression "bVar1 & 0xf7" identifier & number_literal) )) == identifier) )) (compound_statement "{\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" { (expression_statement "iVar3 = FUN_000277e0();" (assignment_expression "iVar3 = FUN_000277e0()" identifier = (call_expression "FUN_000277e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 8);" (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" if (parenthesized_expression "(bVar1 == *(byte *)(iVar3 + 4))" ( (binary_expression "bVar1 == *(byte *)(iVar3 + 4)" identifier == (pointer_expression "*(byte *)(iVar3 + 4)" * (cast_expression "(byte *)(iVar3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));" (call_expression "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8))" (parenthesized_expression "(**(code **)(iVar3 + 0x10))" ( (pointer_expression "**(code **)(iVar3 + 0x10)" * (pointer_expression "*(code **)(iVar3 + 0x10)" * (cast_expression "(code **)(iVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 8))" ( (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) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18))" ( (binary_expression "*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)" (pointer_expression "*(char *)(iVar2 + 4)" * (cast_expression "(char *)(iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) == (pointer_expression "*(char *)(iVar3 + 0x18)" * (cast_expression "(char *)(iVar3 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x24) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x24) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x24)" * (cast_expression "(code **)(iVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));" (call_expression "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c))" (parenthesized_expression "(**(code **)(iVar3 + 0x24))" ( (pointer_expression "**(code **)(iVar3 + 0x24)" * (pointer_expression "*(code **)(iVar3 + 0x24)" * (cast_expression "(code **)(iVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 0x1c))" ( (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) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20)" * (cast_expression "(undefined4 *)(iVar3 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4))" ( (binary_expression "*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)" (pointer_expression "*(char *)(iVar3 + 0x2c)" * (cast_expression "(char *)(iVar3 + 0x2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x2c)" ( (binary_expression "iVar3 + 0x2c" identifier + number_literal) )))) == (pointer_expression "*(char *)(iVar2 + 4)" * (cast_expression "(char *)(iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" { (if_statement "if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" if (parenthesized_expression "(*(code **)(iVar3 + 0x38) != (code *)0x0)" ( (binary_expression "*(code **)(iVar3 + 0x38) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" { (expression_statement "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));" (call_expression "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30))" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" ( (pointer_expression "**(code **)(iVar3 + 0x38)" * (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar3 + 0x30))" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" * (cast_expression "(undefined4 *)(iVar3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) = number_literal) ;) })) })) (if_statement "if (param_2 != 0) goto LAB_00052487;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00052487;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" else (compound_statement "{\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" { (expression_statement "iVar2 = FUN_000277e0();" (assignment_expression "iVar2 = FUN_000277e0()" identifier = (call_expression "FUN_000277e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;" if (parenthesized_expression "(((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0))" ( (binary_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)" (parenthesized_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0))" ( (binary_expression "(*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0" (assignment_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" identifier = (binary_expression "*(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" (binary_expression "*(int *)(iVar2 + 8) + -0x14" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) + number_literal) + (binary_expression "local_28 * 0x14" identifier * number_literal))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_00052433;" goto statement_identifier ;)) (labeled_statement "LAB_00052487:\n    iVar2 = FUN_0004a680(1);" statement_identifier : (expression_statement "iVar2 = FUN_0004a680(1);" (assignment_expression "iVar2 = FUN_0004a680(1)" identifier = (call_expression "FUN_0004a680(1)" identifier (argument_list "(1)" ( number_literal )))) ;)) }))) (if_statement "if (iVar2 == 0) {\n    return 7;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (labeled_statement "LAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;" statement_identifier : (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)(iVar2 + 8) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_6;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_6" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;" (assignment_expression "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8" (pointer_expression "*(byte *)(iVar2 + 4)" * (cast_expression "(byte *)(iVar2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "(byte)local_28 | param_3 & 8" (cast_expression "(byte)local_28" ( (type_descriptor "byte" type_identifier) ) identifier) | (binary_expression "param_3 & 8" identifier & number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3c)" * (cast_expression "(undefined4 *)(param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x104) == 0)" ( (binary_expression "*(int *)(param_1 + 0x104) == 0" (pointer_expression "*(int *)(param_1 + 0x104)" * (cast_expression "(int *)(param_1 + 0x104)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x104)" ( (binary_expression "param_1 + 0x104" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0002ae60();" (call_expression "FUN_0002ae60()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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 IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") ))) ;) (return_statement return LIT ;) }))) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )))) ))) ;) })) (expression_statement (assignment_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 (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) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )))) ))) ;) })) (expression_statement (assignment_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 (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) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )))) ))) ;) })) (expression_statement (assignment_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) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression IDENT * LIT))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (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) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00052380(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_00052380") (parameter_list "(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "byte param_3" (type_identifier "byte") (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 "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint local_28;\n  \n  if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }\n  if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }\n  if (iVar2 == 0) {\n    return 7;\n  }\nLAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;\n  *(undefined4 *)(iVar2 + 8) = param_4;\n  *(undefined4 *)(iVar2 + 0x10) = param_6;\n  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;\n  *(undefined4 *)(param_1 + 0x3c) = 0;\n  if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }\n  FUN_0002ae60();\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (if_statement "if ((param_3 - 4 & 0xfb) == 0) {\n    local_28 = 2;\n  }\n  else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" (if "if") (parenthesized_expression "((param_3 - 4 & 0xfb) == 0)" (( "(") (binary_expression "(param_3 - 4 & 0xfb) == 0" (parenthesized_expression "(param_3 - 4 & 0xfb)" (( "(") (binary_expression "param_3 - 4 & 0xfb" (binary_expression "param_3 - 4" (identifier "param_3") (- "-") (number_literal "4")) (& "&") (number_literal "0xfb")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_28 = 2;\n  }" ({ "{") (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" (identifier "local_28") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" (else "else") (compound_statement "{\n    local_28 = (uint)param_3;\n    if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }\n  }" ({ "{") (expression_statement "local_28 = (uint)param_3;" (assignment_expression "local_28 = (uint)param_3" (identifier "local_28") (= "=") (cast_expression "(uint)param_3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_3"))) (; ";")) (if_statement "if (2 < local_28 - 1) {\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" (if "if") (parenthesized_expression "(2 < local_28 - 1)" (( "(") (binary_expression "2 < local_28 - 1" (number_literal "2") (< "<") (binary_expression "local_28 - 1" (identifier "local_28") (- "-") (number_literal "1"))) () ")")) (compound_statement "{\n      iVar2 = sqlite3_sourceid();\n      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);\n      return 0x15;\n    }" ({ "{") (expression_statement "iVar2 = sqlite3_sourceid();" (assignment_expression "iVar2 = sqlite3_sourceid()" (identifier "iVar2") (= "=") (call_expression "sqlite3_sourceid()" (identifier "sqlite3_sourceid") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);" (call_expression "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" (identifier "sqlite3_log") (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14)" (( "(") (number_literal "0x15") (, ",") (string_literal ""%s at line %d of [%.10s]"" (" """) (string_content "%s at line %d of [%.10s]") (" """)) (, ",") (string_literal ""misuse"" (" """) (string_content "misuse") (" """)) (, ",") (number_literal "0x27f22") (, ",") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))) (; ";")) (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 == 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    if (iVar2 == 0) {\n      return 7;\n    }\n    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;\nLAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }\n    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }\n    bVar1 = *(byte *)(iVar2 + 4);\n    if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }\n    if (param_2 != 0) goto LAB_00052487;\n    iVar2 = *(int *)(param_1 + 8);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 7;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 7;\n    }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000524a2;" (goto "goto") (statement_identifier "LAB_000524a2") (; ";"))) (labeled_statement "LAB_00052433:\n    if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" (statement_identifier "LAB_00052433") (: ":") (if_statement "if (*(int *)(param_1 + 0xa8) != 0) {\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xa8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xa8) != 0" (pointer_expression "*(int *)(param_1 + 0xa8)" (* "*") (cast_expression "(int *)(param_1 + 0xa8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa8)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");\n      return 5;\n    }" ({ "{") (expression_statement "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");" (call_expression "FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements")" (identifier "FUN_00050420") (argument_list "(param_1,5,"unable to delete/modify collation sequence due to active statements")" (( "(") (identifier "param_1") (, ",") (number_literal "5") (, ",") (string_literal ""unable to delete/modify collation sequence due to active statements"" (" """) (string_content "unable to delete/modify collation sequence due to active statements") (" """)) () ")"))) (; ";")) (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}")))) (for_statement "for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" (for "for") (( "(") (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) () ")") (compound_statement "{\n      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;\n    }" ({ "{") (expression_statement "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;" (assignment_expression "*(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1" (pointer_expression "*(byte *)(iVar3 + 0x8e)" (* "*") (cast_expression "(byte *)(iVar3 + 0x8e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x8e)" (( "(") (binary_expression "iVar3 + 0x8e" (identifier "iVar3") (+ "+") (number_literal "0x8e")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc | 1" (binary_expression "*(byte *)(iVar3 + 0x8e) & 0xfc" (pointer_expression "*(byte *)(iVar3 + 0x8e)" (* "*") (cast_expression "(byte *)(iVar3 + 0x8e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x8e)" (( "(") (binary_expression "iVar3 + 0x8e" (identifier "iVar3") (+ "+") (number_literal "0x8e")) () ")")))) (& "&") (number_literal "0xfc")) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "bVar1 = *(byte *)(iVar2 + 4);" (assignment_expression "bVar1 = *(byte *)(iVar2 + 4)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(iVar2 + 4)" (* "*") (cast_expression "(byte *)(iVar2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((bVar1 & 0xf7) == local_28) {\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" (if "if") (parenthesized_expression "((bVar1 & 0xf7) == local_28)" (( "(") (binary_expression "(bVar1 & 0xf7) == local_28" (parenthesized_expression "(bVar1 & 0xf7)" (( "(") (binary_expression "bVar1 & 0xf7" (identifier "bVar1") (& "&") (number_literal "0xf7")) () ")")) (== "==") (identifier "local_28")) () ")")) (compound_statement "{\n      iVar3 = FUN_000277e0();\n      iVar3 = *(int *)(iVar3 + 8);\n      if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }\n      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }\n      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_000277e0();" (assignment_expression "iVar3 = FUN_000277e0()" (identifier "iVar3") (= "=") (call_expression "FUN_000277e0()" (identifier "FUN_000277e0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar3 + 8);" (assignment_expression "iVar3 = *(int *)(iVar3 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (bVar1 == *(byte *)(iVar3 + 4)) {\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" (if "if") (parenthesized_expression "(bVar1 == *(byte *)(iVar3 + 4))" (( "(") (binary_expression "bVar1 == *(byte *)(iVar3 + 4)" (identifier "bVar1") (== "==") (pointer_expression "*(byte *)(iVar3 + 4)" (* "*") (cast_expression "(byte *)(iVar3 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }\n        *(undefined4 *)(iVar3 + 0xc) = 0;\n      }" ({ "{") (if_statement "if (*(code **)(iVar3 + 0x10) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" (if "if") (parenthesized_expression "(*(code **)(iVar3 + 0x10) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar3 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x10)" (* "*") (cast_expression "(code **)(iVar3 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));\n        }" ({ "{") (expression_statement "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));" (call_expression "(**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8))" (parenthesized_expression "(**(code **)(iVar3 + 0x10))" (( "(") (pointer_expression "**(code **)(iVar3 + 0x10)" (* "*") (pointer_expression "*(code **)(iVar3 + 0x10)" (* "*") (cast_expression "(code **)(iVar3 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar3 + 8))" (( "(") (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")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18))" (( "(") (binary_expression "*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)" (pointer_expression "*(char *)(iVar2 + 4)" (* "*") (cast_expression "(char *)(iVar2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (== "==") (pointer_expression "*(char *)(iVar3 + 0x18)" (* "*") (cast_expression "(char *)(iVar3 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }\n        *(undefined4 *)(iVar3 + 0x20) = 0;\n      }" ({ "{") (if_statement "if (*(code **)(iVar3 + 0x24) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" (if "if") (parenthesized_expression "(*(code **)(iVar3 + 0x24) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar3 + 0x24) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x24)" (* "*") (cast_expression "(code **)(iVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));\n        }" ({ "{") (expression_statement "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));" (call_expression "(**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c))" (parenthesized_expression "(**(code **)(iVar3 + 0x24))" (( "(") (pointer_expression "**(code **)(iVar3 + 0x24)" (* "*") (pointer_expression "*(code **)(iVar3 + 0x24)" (* "*") (cast_expression "(code **)(iVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar3 + 0x1c))" (( "(") (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")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4))" (( "(") (binary_expression "*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)" (pointer_expression "*(char *)(iVar3 + 0x2c)" (* "*") (cast_expression "(char *)(iVar3 + 0x2c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x2c)" (( "(") (binary_expression "iVar3 + 0x2c" (identifier "iVar3") (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (pointer_expression "*(char *)(iVar2 + 4)" (* "*") (cast_expression "(char *)(iVar2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }\n        *(undefined4 *)(iVar3 + 0x34) = 0;\n      }" ({ "{") (if_statement "if (*(code **)(iVar3 + 0x38) != (code *)0x0) {\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" (if "if") (parenthesized_expression "(*(code **)(iVar3 + 0x38) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar3 + 0x38) != (code *)0x0" (pointer_expression "*(code **)(iVar3 + 0x38)" (* "*") (cast_expression "(code **)(iVar3 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));\n        }" ({ "{") (expression_statement "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));" (call_expression "(**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30))" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" (( "(") (pointer_expression "**(code **)(iVar3 + 0x38)" (* "*") (pointer_expression "*(code **)(iVar3 + 0x38)" (* "*") (cast_expression "(code **)(iVar3 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar3 + 0x30))" (( "(") (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x30)" (( "(") (binary_expression "iVar3 + 0x30" (identifier "iVar3") (+ "+") (number_literal "0x30")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_2 != 0) goto LAB_00052487;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00052487;" (goto "goto") (statement_identifier "LAB_00052487") (; ";"))) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_000277e0();\n    if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;\nLAB_00052487:\n    iVar2 = FUN_0004a680(1);\n  }" ({ "{") (expression_statement "iVar2 = FUN_000277e0();" (assignment_expression "iVar2 = FUN_000277e0()" (identifier "iVar2") (= "=") (call_expression "FUN_000277e0()" (identifier "FUN_000277e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;" (if "if") (parenthesized_expression "(((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0))" (( "(") (binary_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&\n       (*(int *)(iVar2 + 0xc) != 0)" (parenthesized_expression "((*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0))" (( "(") (binary_expression "(*(int *)(iVar2 + 8) != 0) &&\n        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)" (( "(") (comma_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0" (assignment_expression "iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" (identifier "iVar2") (= "=") (binary_expression "*(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14" (binary_expression "*(int *)(iVar2 + 8) + -0x14" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "-0x14")) (+ "+") (binary_expression "local_28 * 0x14" (identifier "local_28") (* "*") (number_literal "0x14")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00052433;" (goto "goto") (statement_identifier "LAB_00052433") (; ";"))) (labeled_statement "LAB_00052487:\n    iVar2 = FUN_0004a680(1);" (statement_identifier "LAB_00052487") (: ":") (expression_statement "iVar2 = FUN_0004a680(1);" (assignment_expression "iVar2 = FUN_0004a680(1)" (identifier "iVar2") (= "=") (call_expression "FUN_0004a680(1)" (identifier "FUN_0004a680") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";"))) (} "}")))) (if_statement "if (iVar2 == 0) {\n    return 7;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 7;\n  }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (labeled_statement "LAB_000524a2:\n  *(undefined4 *)(iVar2 + 0xc) = param_5;" (statement_identifier "LAB_000524a2") (: ":") (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_5")) (; ";"))) (expression_statement "*(undefined4 *)(iVar2 + 8) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_6;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_6" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;" (assignment_expression "*(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8" (pointer_expression "*(byte *)(iVar2 + 4)" (* "*") (cast_expression "(byte *)(iVar2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "(byte)local_28 | param_3 & 8" (cast_expression "(byte)local_28" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_28")) (| "|") (binary_expression "param_3 & 8" (identifier "param_3") (& "&") (number_literal "8")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x104) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x104) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x104) == 0" (pointer_expression "*(int *)(param_1 + 0x104)" (* "*") (cast_expression "(int *)(param_1 + 0x104)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x104)" (( "(") (binary_expression "param_1 + 0x104" (identifier "param_1") (+ "+") (number_literal "0x104")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0002ae60();" (call_expression "FUN_0002ae60()" (identifier "FUN_0002ae60") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
function_1(type_1 *db,char *var_5,type_2 var_1,void *pCtx,
               type_3 *xCompare,type_4 *xDel)

{
  type_5 var_9;
  type_6 *var_8;
  char *var_2;
  type_7 *pHVar4;
  type_8 *var_6;
  void *pvVar5;
  type_9 *extraout_EDX;
  type_9 *extraout_EDX_00;
  type_9 *extraout_EDX_01;
  type_9 *var_11;
  type_9 *extraout_EDX_02;
  type_9 *extraout_EDX_03;
  type_10 *in_stack_ffffffd4;
  char *pcVar6;
  
  if ((var_1 - 4 & 0xfb) == 0) {
    var_2 = (char *)0x2;
  }
  else {
    var_2 = (char *)(type_11)var_1;
    if ((char *)0x2 < var_2 + -1) {
      var_2 = var_3();
      var_4(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,var_2 + 0x14);
      return 0x15;
    }
  }
  if (var_5 == (char *)0x0) {
    var_6 = db->pDfltColl;
    if (var_6 == (type_8 *)0x0) {
      return 7;
    }
    var_11 = (type_9 *)0x0;
    if (var_6->xCmp == (type_3 *)0x0) goto LAB_000524a2;
LAB_00052433:
    if (db->nVdbeActive != 0) {
      var_7(db,5,"unable to delete/modify collation sequence due to active statements"
                         );
      return 5;
    }
    for (var_8 = db->pVdbe; var_8 != (type_6 *)0x0; var_8 = var_8->pNext) {
      var_8->field_0x8e = var_8->field_0x8e & 0xfc | 1;
    }
    var_9 = var_6->var_1;
    var_11 = (type_9 *)0x0;
    if ((char *)(var_9 & 0xf7) == var_2) {
      pHVar4 = var_10(in_stack_ffffffd4,var_2,(type_11 *)var_6);
      pvVar5 = pHVar4->data;
      var_11 = extraout_EDX_00;
      if (var_9 == *(type_5 *)((int)pvVar5 + 4)) {
        var_11 = *(type_9 **)((int)pvVar5 + 0x10);
        if (var_11 != (type_9 *)0x0) {
          (*var_11)(*(type_12 *)((int)pvVar5 + 8));
          var_11 = extraout_EDX_03;
        }
        *(type_12 *)((int)pvVar5 + 0xc) = 0;
      }
      if (var_6->var_1 == *(type_2 *)((int)pvVar5 + 0x18)) {
        var_11 = *(type_9 **)((int)pvVar5 + 0x24);
        if (var_11 != (type_9 *)0x0) {
          (*var_11)(*(type_12 *)((int)pvVar5 + 0x1c));
          var_11 = extraout_EDX_02;
        }
        *(type_12 *)((int)pvVar5 + 0x20) = 0;
      }
      if (*(type_2 *)((int)pvVar5 + 0x2c) == var_6->var_1) {
        var_11 = *(type_9 **)((int)pvVar5 + 0x38);
        if (var_11 != (type_9 *)0x0) {
          (*var_11)(*(type_12 *)((int)pvVar5 + 0x30));
          var_11 = extraout_EDX_01;
        }
        *(type_12 *)((int)pvVar5 + 0x34) = 0;
      }
    }
    if (var_5 != (char *)0x0) goto LAB_00052487;
    var_6 = db->pDfltColl;
  }
  else {
    pcVar6 = var_2;
    pHVar4 = var_10(in_stack_ffffffd4,var_2,(type_11 *)var_2);
    if (((pHVar4->data != (void *)0x0) &&
        (var_6 = (type_8 *)((int)pHVar4->data + (int)pcVar6 * 0x14 + -0x14),
        var_6 != (type_8 *)0x0)) &&
       (var_6->xCmp != (type_3 *)0x0)) goto LAB_00052433;
LAB_00052487:
    var_6 = var_12(db,(type_2)var_2,var_5,1);
    var_11 = extraout_EDX;
  }
  if (var_6 == (type_8 *)0x0) {
    return 7;
  }
LAB_000524a2:
  var_6->xCmp = xCompare;
  var_6->pUser = pCtx;
  var_6->xDel = xDel;
  var_6->var_1 = (type_5)var_2 | var_1 & 8;
  db->errCode = 0;
  if (db->pErr == (type_13 *)0x0) {
    return 0;
  }
  var_13(db,(int)var_11);
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) 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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_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: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content))))) (return_statement (number_literal))))) (for_statement initializer: (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)))))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (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)))))) body: (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: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (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: (goto_statement label: (statement_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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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 (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
MASKED(int param_1,int param_2,byte param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uint local_28;
  
  if ((param_3 - 4 & 0xfb) == 0) {
    local_28 = 2;
  }
  else {
    local_28 = (uint)param_3;
    if (2 < local_28 - 1) {
      iVar2 = sqlite3_sourceid();
      sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x27f22,iVar2 + 0x14);
      return 0x15;
    }
  }
  if (param_2 == 0) {
    iVar2 = *(int *)(param_1 + 8);
    if (iVar2 == 0) {
      return 7;
    }
    if (*(int *)(iVar2 + 0xc) == 0) goto LAB_000524a2;
LAB_00052433:
    if (*(int *)(param_1 + 0xa8) != 0) {
      FUN_00050420(param_1,5,"unable to delete/modify collation sequence due to active statements");
      return 5;
    }
    for (iVar3 = *(int *)(param_1 + 4); iVar3 != 0; iVar3 = *(int *)(iVar3 + 8)) {
      *(byte *)(iVar3 + 0x8e) = *(byte *)(iVar3 + 0x8e) & 0xfc | 1;
    }
    bVar1 = *(byte *)(iVar2 + 4);
    if ((bVar1 & 0xf7) == local_28) {
      iVar3 = FUN_000277e0();
      iVar3 = *(int *)(iVar3 + 8);
      if (bVar1 == *(byte *)(iVar3 + 4)) {
        if (*(code **)(iVar3 + 0x10) != (code *)0x0) {
          (**(code **)(iVar3 + 0x10))(*(undefined4 *)(iVar3 + 8));
        }
        *(undefined4 *)(iVar3 + 0xc) = 0;
      }
      if (*(char *)(iVar2 + 4) == *(char *)(iVar3 + 0x18)) {
        if (*(code **)(iVar3 + 0x24) != (code *)0x0) {
          (**(code **)(iVar3 + 0x24))(*(undefined4 *)(iVar3 + 0x1c));
        }
        *(undefined4 *)(iVar3 + 0x20) = 0;
      }
      if (*(char *)(iVar3 + 0x2c) == *(char *)(iVar2 + 4)) {
        if (*(code **)(iVar3 + 0x38) != (code *)0x0) {
          (**(code **)(iVar3 + 0x38))(*(undefined4 *)(iVar3 + 0x30));
        }
        *(undefined4 *)(iVar3 + 0x34) = 0;
      }
    }
    if (param_2 != 0) goto LAB_00052487;
    iVar2 = *(int *)(param_1 + 8);
  }
  else {
    iVar2 = FUN_000277e0();
    if (((*(int *)(iVar2 + 8) != 0) &&
        (iVar2 = *(int *)(iVar2 + 8) + -0x14 + local_28 * 0x14, iVar2 != 0)) &&
       (*(int *)(iVar2 + 0xc) != 0)) goto LAB_00052433;
LAB_00052487:
    iVar2 = FUN_0004a680(1);
  }
  if (iVar2 == 0) {
    return 7;
  }
LAB_000524a2:
  *(undefined4 *)(iVar2 + 0xc) = param_5;
  *(undefined4 *)(iVar2 + 8) = param_4;
  *(undefined4 *)(iVar2 + 0x10) = param_6;
  *(byte *)(iVar2 + 4) = (byte)local_28 | param_3 & 8;
  *(undefined4 *)(param_1 + 0x3c) = 0;
  if (*(int *)(param_1 + 0x104) == 0) {
    return 0;
  }
  FUN_0002ae60();
  return 0;
}

