
int __regparm3 sqlite3VdbeMemGrow(Mem *pMem,int n,int bPreserve)

{
  ushort uVar1;
  sqlite3 *psVar2;
  char *pcVar3;
  uint uVar4;
  int extraout_ECX;
  int iVar5;
  int unaff_EDI;
  undefined8 uVar6;
  u64 in_stack_ffffffd4;
  
  uVar6 = __x86_get_pc_thunk_di();
  psVar2 = *(sqlite3 **)((int)uVar6 + 0x20);
  if (pMem->szMalloc < 1) {
LAB_0003082b:
    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);
    pMem->zMalloc = pcVar3;
    iVar5 = extraout_ECX;
  }
  else {
    pcVar3 = pMem->zMalloc;
    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {
      sqlite3DbFreeNN(psVar2,pcVar3);
      psVar2 = pMem->db;
      goto LAB_0003082b;
    }
    if (psVar2 == (sqlite3 *)0x0) {
      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);
      pMem->zMalloc = pcVar3;
      if (pcVar3 == (char *)0x0) {
        sqlite3_free(pMem->z);
        pcVar3 = pMem->zMalloc;
      }
      pMem->z = pcVar3;
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      pcVar3 = (char *)sqlite3DbReallocOrFree
                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))
      ;
      pMem->zMalloc = pcVar3;
      pMem->z = pcVar3;
    }
  }
  if (pcVar3 == (char *)0x0) {
    if ((pMem->flags & 0x2400) == 0) {
      pMem->flags = 1;
    }
    else {
      vdbeMemClearExternAndSetNull(pMem);
    }
    pMem->z = (char *)0x0;
    pMem->szMalloc = 0;
    return 7;
  }
  psVar2 = pMem->db;
  if ((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)) {
    uVar4 = 0x80;
    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;
    if ((psVar2->lookaside).pStart <= pcVar3) {
      uVar4 = (uint)(psVar2->lookaside).szTrue;
      goto LAB_00030859;
    }
  }
  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3);
LAB_00030859:
  pMem->szMalloc = uVar4;
  if ((iVar5 != 0) && (pMem->z != (char *)0x0)) {
    memcpy(pMem->zMalloc,pMem->z,pMem->n);
  }
  uVar1 = pMem->flags;
  if ((uVar1 & 0x400) != 0) {
    (*pMem->xDel)(pMem->z);
    uVar1 = pMem->flags;
  }
  pMem->flags = uVar1 & 0xe3ff;
  pMem->z = pMem->zMalloc;
  return 0;
}



undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)

{
  ushort uVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int extraout_ECX;
  int iVar5;
  int unaff_EDI;
  undefined8 uVar6;
  
  uVar6 = FUN_000a94ff();
  if (*(int *)(param_1 + 0x18) < 1) {
LAB_0003082b:
    uVar3 = FUN_0002e3d0();
    *(uint *)(param_1 + 0x14) = uVar3;
    iVar5 = extraout_ECX;
  }
  else {
    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {
      FUN_00024720();
      goto LAB_0003082b;
    }
    if (*(int *)((int)uVar6 + 0x20) == 0) {
      uVar3 = FUN_0002cd30();
      *(uint *)(param_1 + 0x14) = uVar3;
      if (uVar3 == 0) {
        sqlite3_free(*(undefined4 *)(param_1 + 0x10));
        uVar3 = *(uint *)(param_1 + 0x14);
      }
      *(uint *)(param_1 + 0x10) = uVar3;
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);
      *(uint *)(param_1 + 0x14) = uVar3;
      *(uint *)(param_1 + 0x10) = uVar3;
    }
  }
  if (uVar3 == 0) {
    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
      *(undefined2 *)(param_1 + 8) = 1;
    }
    else {
      FUN_000248e0();
    }
    *(undefined4 *)(param_1 + 0x10) = 0;
    *(undefined4 *)(param_1 + 0x18) = 0;
    return 7;
  }
  iVar2 = *(int *)(param_1 + 0x20);
  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {
    uVar4 = 0x80;
    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;
    if (*(uint *)(iVar2 + 0x140) <= uVar3) {
      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);
      goto LAB_00030859;
    }
  }
  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);
LAB_00030859:
  *(uint *)(param_1 + 0x18) = uVar4;
  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {
    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));
  }
  uVar1 = *(ushort *)(param_1 + 8);
  if ((uVar1 & 0x400) != 0) {
    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));
    uVar1 = *(ushort *)(param_1 + 8);
  }
  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);
  return 0;
}


PUSH EBP
PUSH EDI
MOV EBP,EDX
PUSH ESI
PUSH EBX
MOV ESI,EAX
CALL 0x000a94ff
ADD EDI,0xad813
SUB ESP,0x1c
SAR EBP,0x1f
MOV EBX,ECX
MOV dword ptr [ESP + 0x8],EDI
MOV EDI,EDX
MOV EDX,dword ptr [ESI + 0x18]
MOV EAX,dword ptr [EAX + 0x20]
TEST EDX,EDX
JLE 0x0003082b
MOV ECX,dword ptr [ESI + 0x14]
TEST EBX,EBX
MOV dword ptr [ESP + 0xc],ECX
JZ 0x0003081f
CMP dword ptr [ESI + 0x10],ECX
JZ 0x000308e0
MOV EDX,dword ptr [ESP + 0xc]
CALL 0x00024720
MOV EAX,dword ptr [ESI + 0x20]
MOV EDX,EDI
MOV ECX,EBP
CALL 0x0002e3d0
MOV EDX,EAX
MOV dword ptr [ESI + 0x14],EAX
TEST EDX,EDX
JZ 0x00030908
MOV ECX,dword ptr [ESI + 0x20]
TEST ECX,ECX
JNZ 0x000308b0
SUB ESP,0xc
PUSH EDX
MOV EAX,dword ptr [ESP + 0x18]
CALL dword ptr [EAX + 0x38c]
ADD ESP,0x10
TEST EBX,EBX
MOV dword ptr [ESI + 0x18],EAX
JNZ 0x00030890
MOVZX EAX,word ptr [ESI + 0x8]
TEST AH,0x4
JZ 0x00030879
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
CALL dword ptr [ESI + 0x24]
MOVZX EAX,word ptr [ESI + 0x8]
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x14]
AND AH,0xe3
MOV word ptr [ESI + 0x8],AX
XOR EAX,EAX
MOV dword ptr [ESI + 0x10],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x00030860
SUB ESP,0x4
PUSH dword ptr [ESI + 0xc]
PUSH EAX
PUSH dword ptr [ESI + 0x14]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00016490
ADD ESP,0x10
JMP 0x00030860
CMP dword ptr [ECX + 0x144],EDX
JBE 0x00030848
CMP dword ptr [ECX + 0x13c],EDX
MOV EAX,0x80
JBE 0x00030859
CMP dword ptr [ECX + 0x140],EDX
JA 0x00030848
MOVZX EAX,word ptr [ECX + 0x116]
JMP 0x00030859
TEST EAX,EAX
JZ 0x00030948
SUB ESP,0x8
XOR EBX,EBX
PUSH EBP
PUSH EDI
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x000307a0
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESI + 0x14],EAX
MOV dword ptr [ESI + 0x10],EAX
JMP 0x00030839
TEST word ptr [ESI + 0x8],0x2400
JNZ 0x00030938
MOV EAX,0x1
MOV word ptr [ESI + 0x8],AX
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x18],0x0
ADD ESP,0x1c
POP EBX
MOV EAX,0x7
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
CALL 0x000248e0
JMP 0x00030919
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,EDI
MOV ECX,EBP
CALL 0x0002cd30
TEST EAX,EAX
MOV EDX,EAX
MOV dword ptr [ESI + 0x14],EAX
JZ 0x00030968
MOV dword ptr [ESI + 0x10],EDX
XOR EBX,EBX
JMP 0x00030839
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00016d30
MOV EDX,dword ptr [ESI + 0x14]
ADD ESP,0x10
JMP 0x0003095e
(translation_unit "undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000307e0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = FUN_000a94ff();" (assignment_expression "uVar6 = FUN_000a94ff()" identifier = (call_expression "FUN_000a94ff()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) < 1)" ( (binary_expression "*(int *)(param_1 + 0x18) < 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }" { (labeled_statement "LAB_0003082b:\n    uVar3 = FUN_0002e3d0();" statement_identifier : (expression_statement "uVar3 = FUN_0002e3d0();" (assignment_expression "uVar3 = FUN_0002e3d0()" identifier = (call_expression "FUN_0002e3d0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = extraout_ECX;" (assignment_expression "iVar5 = extraout_ECX" identifier = identifier) ;) }) (else_clause "else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" else (compound_statement "{\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" { (if_statement "if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" if (parenthesized_expression "((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)))" ( (binary_expression "(extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" ( (binary_expression "*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" { (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0003082b;" goto statement_identifier ;) })) (if_statement "if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" if (parenthesized_expression "(*(int *)((int)uVar6 + 0x20) == 0)" ( (binary_expression "*(int *)((int)uVar6 + 0x20) == 0" (pointer_expression "*(int *)((int)uVar6 + 0x20)" * (cast_expression "(int *)((int)uVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)uVar6 + 0x20)" ( (binary_expression "(int)uVar6 + 0x20" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }" { (expression_statement "uVar3 = FUN_0002cd30();" (assignment_expression "uVar3 = FUN_0002cd30()" identifier = (call_expression "FUN_0002cd30()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" { (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0x10));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) })) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);" (assignment_expression "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" identifier = (call_expression "FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" identifier (argument_list "((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" ( (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) }))) (if_statement "if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" { (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(param_1 + 8) = 1;\n    }" { (expression_statement "*(undefined2 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 1" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_000248e0();\n    }" else (compound_statement "{\n      FUN_000248e0();\n    }" { (expression_statement "FUN_000248e0();" (call_expression "FUN_000248e0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144)))" ( (binary_expression "(iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar3 < *(uint *)(iVar2 + 0x144))" ( (binary_expression "uVar3 < *(uint *)(iVar2 + 0x144)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x144)" * (cast_expression "(uint *)(iVar2 + 0x144)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x144)" ( (binary_expression "iVar2 + 0x144" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" { (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (if_statement "if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;" if (parenthesized_expression "(*(uint *)(iVar2 + 0x13c) <= uVar3)" ( (binary_expression "*(uint *)(iVar2 + 0x13c) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x13c)" * (cast_expression "(uint *)(iVar2 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x13c)" ( (binary_expression "iVar2 + 0x13c" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00030859;" goto statement_identifier ;)) (if_statement "if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" if (parenthesized_expression "(*(uint *)(iVar2 + 0x140) <= uVar3)" ( (binary_expression "*(uint *)(iVar2 + 0x140) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x140)" * (cast_expression "(uint *)(iVar2 + 0x140)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x140)" ( (binary_expression "iVar2 + 0x140" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" { (expression_statement "uVar4 = (uint)*(ushort *)(iVar2 + 0x116);" (assignment_expression "uVar4 = (uint)*(ushort *)(iVar2 + 0x116)" identifier = (binary_expression "(uint)*(ushort *)(iVar2 + 0x116)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(iVar2 + 0x116)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x116)" ( (binary_expression "iVar2 + 0x116" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00030859;" goto statement_identifier ;) })) })) (expression_statement "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);" (assignment_expression "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" identifier = (call_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" (parenthesized_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))" ( (pointer_expression "**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (pointer_expression "*(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (cast_expression "(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI + 7" (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI" (string_literal ""cannot UPDATE generated column \"%s\""" " string_content escape_sequence string_content escape_sequence ") + identifier) + number_literal) ))))) )) (argument_list "(uVar3)" ( identifier )))) ;) (labeled_statement "LAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x18) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;)) (if_statement "if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" if (parenthesized_expression "((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0))" ( (binary_expression "(iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" { (expression_statement "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));" (call_expression "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" identifier (argument_list "(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" ( (pointer_expression "*(void **)(param_1 + 0x14)" * (cast_expression "(void **)(param_1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(param_1 + 0xc)" * (cast_expression "(size_t *)(param_1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" { (expression_statement "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(param_1 + 0x24))" ( (pointer_expression "**(code **)(param_1 + 0x24)" * (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xe3ff" identifier & number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 sqlite3VdbeMemGrow(Mem *pMem,int n,int bPreserve)\n\n{\n  ushort uVar1;\n  sqlite3 *psVar2;\n  char *pcVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  psVar2 = *(sqlite3 **)((int)uVar6 + 0x20);\n  if (pMem->szMalloc < 1) {\nLAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);\n    pMem->zMalloc = pcVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }\n  if (pcVar3 == (char *)0x0) {\n    if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }\n    pMem->z = (char *)0x0;\n    pMem->szMalloc = 0;\n    return 7;\n  }\n  psVar2 = pMem->db;\n  if ((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)) {\n    uVar4 = 0x80;\n    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;\n    if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3);\nLAB_00030859:\n  pMem->szMalloc = uVar4;\n  if ((iVar5 != 0) && (pMem->z != (char *)0x0)) {\n    memcpy(pMem->zMalloc,pMem->z,pMem->n);\n  }\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x400) != 0) {\n    (*pMem->xDel)(pMem->z);\n    uVar1 = pMem->flags;\n  }\n  pMem->flags = uVar1 & 0xe3ff;\n  pMem->z = pMem->zMalloc;\n  return 0;\n}\n\n" (function_definition "int __regparm3 sqlite3VdbeMemGrow(Mem *pMem,int n,int bPreserve)\n\n{\n  ushort uVar1;\n  sqlite3 *psVar2;\n  char *pcVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  psVar2 = *(sqlite3 **)((int)uVar6 + 0x20);\n  if (pMem->szMalloc < 1) {\nLAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);\n    pMem->zMalloc = pcVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }\n  if (pcVar3 == (char *)0x0) {\n    if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }\n    pMem->z = (char *)0x0;\n    pMem->szMalloc = 0;\n    return 7;\n  }\n  psVar2 = pMem->db;\n  if ((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)) {\n    uVar4 = 0x80;\n    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;\n    if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3);\nLAB_00030859:\n  pMem->szMalloc = uVar4;\n  if ((iVar5 != 0) && (pMem->z != (char *)0x0)) {\n    memcpy(pMem->zMalloc,pMem->z,pMem->n);\n  }\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x400) != 0) {\n    (*pMem->xDel)(pMem->z);\n    uVar1 = pMem->flags;\n  }\n  pMem->flags = uVar1 & 0xe3ff;\n  pMem->z = pMem->zMalloc;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3VdbeMemGrow(Mem *pMem,int n,int bPreserve)" identifier (parameter_list "(Mem *pMem,int n,int bPreserve)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) , (parameter_declaration "int n" primitive_type identifier) , (parameter_declaration "int bPreserve" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  sqlite3 *psVar2;\n  char *pcVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  psVar2 = *(sqlite3 **)((int)uVar6 + 0x20);\n  if (pMem->szMalloc < 1) {\nLAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);\n    pMem->zMalloc = pcVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }\n  if (pcVar3 == (char *)0x0) {\n    if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }\n    pMem->z = (char *)0x0;\n    pMem->szMalloc = 0;\n    return 7;\n  }\n  psVar2 = pMem->db;\n  if ((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)) {\n    uVar4 = 0x80;\n    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;\n    if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3);\nLAB_00030859:\n  pMem->szMalloc = uVar4;\n  if ((iVar5 != 0) && (pMem->z != (char *)0x0)) {\n    memcpy(pMem->zMalloc,pMem->z,pMem->n);\n  }\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x400) != 0) {\n    (*pMem->xDel)(pMem->z);\n    uVar1 = pMem->flags;\n  }\n  pMem->flags = uVar1 & 0xe3ff;\n  pMem->z = pMem->zMalloc;\n  return 0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "sqlite3 *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "u64 in_stack_ffffffd4;" type_identifier identifier ;) (expression_statement "uVar6 = __x86_get_pc_thunk_di();" (assignment_expression "uVar6 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar2 = *(sqlite3 **)((int)uVar6 + 0x20);" (assignment_expression "psVar2 = *(sqlite3 **)((int)uVar6 + 0x20)" identifier = (pointer_expression "*(sqlite3 **)((int)uVar6 + 0x20)" * (cast_expression "(sqlite3 **)((int)uVar6 + 0x20)" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)uVar6 + 0x20)" ( (binary_expression "(int)uVar6 + 0x20" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (pMem->szMalloc < 1) {\nLAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);\n    pMem->zMalloc = pcVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }" if (parenthesized_expression "(pMem->szMalloc < 1)" ( (binary_expression "pMem->szMalloc < 1" (field_expression "pMem->szMalloc" identifier -> field_identifier) < number_literal) )) (compound_statement "{\nLAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);\n    pMem->zMalloc = pcVar3;\n    iVar5 = extraout_ECX;\n  }" { (labeled_statement "LAB_0003082b:\n    pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);" statement_identifier : (expression_statement "pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4);" (assignment_expression "pcVar3 = (char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4)" identifier = (cast_expression "(char *)sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRaw(psVar2,in_stack_ffffffd4)" identifier (argument_list "(psVar2,in_stack_ffffffd4)" ( identifier , identifier ))))) ;)) (expression_statement "pMem->zMalloc = pcVar3;" (assignment_expression "pMem->zMalloc = pcVar3" (field_expression "pMem->zMalloc" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = extraout_ECX;" (assignment_expression "iVar5 = extraout_ECX" identifier = identifier) ;) }) (else_clause "else {\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }" else (compound_statement "{\n    pcVar3 = pMem->zMalloc;\n    if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }\n    if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }\n  }" { (expression_statement "pcVar3 = pMem->zMalloc;" (assignment_expression "pcVar3 = pMem->zMalloc" identifier = (field_expression "pMem->zMalloc" identifier -> field_identifier)) ;) (if_statement "if ((extraout_ECX == 0) || (pMem->z != pcVar3)) {\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }" if (parenthesized_expression "((extraout_ECX == 0) || (pMem->z != pcVar3))" ( (binary_expression "(extraout_ECX == 0) || (pMem->z != pcVar3)" (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) || (parenthesized_expression "(pMem->z != pcVar3)" ( (binary_expression "pMem->z != pcVar3" (field_expression "pMem->z" identifier -> field_identifier) != identifier) ))) )) (compound_statement "{\n      sqlite3DbFreeNN(psVar2,pcVar3);\n      psVar2 = pMem->db;\n      goto LAB_0003082b;\n    }" { (expression_statement "sqlite3DbFreeNN(psVar2,pcVar3);" (call_expression "sqlite3DbFreeNN(psVar2,pcVar3)" identifier (argument_list "(psVar2,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "psVar2 = pMem->db;" (assignment_expression "psVar2 = pMem->db" identifier = (field_expression "pMem->db" identifier -> field_identifier)) ;) (goto_statement "goto LAB_0003082b;" goto statement_identifier ;) })) (if_statement "if (psVar2 == (sqlite3 *)0x0) {\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }" if (parenthesized_expression "(psVar2 == (sqlite3 *)0x0)" ( (binary_expression "psVar2 == (sqlite3 *)0x0" identifier == (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);\n      pMem->zMalloc = pcVar3;\n      if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }\n      pMem->z = pcVar3;\n      iVar5 = 0;\n    }" { (expression_statement "pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4);" (assignment_expression "pcVar3 = (char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4)" identifier = (cast_expression "(char *)sqlite3Realloc(pcVar3,in_stack_ffffffd4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Realloc(pcVar3,in_stack_ffffffd4)" identifier (argument_list "(pcVar3,in_stack_ffffffd4)" ( identifier , identifier ))))) ;) (expression_statement "pMem->zMalloc = pcVar3;" (assignment_expression "pMem->zMalloc = pcVar3" (field_expression "pMem->zMalloc" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3_free(pMem->z);\n        pcVar3 = pMem->zMalloc;\n      }" { (expression_statement "sqlite3_free(pMem->z);" (call_expression "sqlite3_free(pMem->z)" identifier (argument_list "(pMem->z)" ( (field_expression "pMem->z" identifier -> field_identifier) ))) ;) (expression_statement "pcVar3 = pMem->zMalloc;" (assignment_expression "pcVar3 = pMem->zMalloc" identifier = (field_expression "pMem->zMalloc" identifier -> field_identifier)) ;) })) (expression_statement "pMem->z = pcVar3;" (assignment_expression "pMem->z = pcVar3" (field_expression "pMem->z" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;\n      pMem->zMalloc = pcVar3;\n      pMem->z = pcVar3;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))\n      ;" (assignment_expression "pcVar3 = (char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))" identifier = (cast_expression "(char *)sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbReallocOrFree\n                                 (psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))" identifier (argument_list "(psVar2,pcVar3,CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20)))" ( identifier , identifier , (call_expression "CONCAT44(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20))" identifier (argument_list "(n >> 0x1f,(int)((ulonglong)uVar6 >> 0x20))" ( (binary_expression "n >> 0x1f" identifier >> number_literal) , (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) ))) ))))) ;) (expression_statement "pMem->zMalloc = pcVar3;" (assignment_expression "pMem->zMalloc = pcVar3" (field_expression "pMem->zMalloc" identifier -> field_identifier) = identifier) ;) (expression_statement "pMem->z = pcVar3;" (assignment_expression "pMem->z = pcVar3" (field_expression "pMem->z" identifier -> field_identifier) = identifier) ;) }))) }))) (if_statement "if (pcVar3 == (char *)0x0) {\n    if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }\n    pMem->z = (char *)0x0;\n    pMem->szMalloc = 0;\n    return 7;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }\n    pMem->z = (char *)0x0;\n    pMem->szMalloc = 0;\n    return 7;\n  }" { (if_statement "if ((pMem->flags & 0x2400) == 0) {\n      pMem->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }" if (parenthesized_expression "((pMem->flags & 0x2400) == 0)" ( (binary_expression "(pMem->flags & 0x2400) == 0" (parenthesized_expression "(pMem->flags & 0x2400)" ( (binary_expression "pMem->flags & 0x2400" (field_expression "pMem->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      pMem->flags = 1;\n    }" { (expression_statement "pMem->flags = 1;" (assignment_expression "pMem->flags = 1" (field_expression "pMem->flags" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n      vdbeMemClearExternAndSetNull(pMem);\n    }" else (compound_statement "{\n      vdbeMemClearExternAndSetNull(pMem);\n    }" { (expression_statement "vdbeMemClearExternAndSetNull(pMem);" (call_expression "vdbeMemClearExternAndSetNull(pMem)" identifier (argument_list "(pMem)" ( identifier ))) ;) }))) (expression_statement "pMem->z = (char *)0x0;" (assignment_expression "pMem->z = (char *)0x0" (field_expression "pMem->z" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMem->szMalloc = 0;" (assignment_expression "pMem->szMalloc = 0" (field_expression "pMem->szMalloc" identifier -> field_identifier) = number_literal) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "psVar2 = pMem->db;" (assignment_expression "psVar2 = pMem->db" identifier = (field_expression "pMem->db" identifier -> field_identifier)) ;) (if_statement "if ((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)) {\n    uVar4 = 0x80;\n    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;\n    if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }\n  }" if (parenthesized_expression "((psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd))" ( (binary_expression "(psVar2 != (sqlite3 *)0x0) && (pcVar3 < (psVar2->lookaside).pEnd)" (parenthesized_expression "(psVar2 != (sqlite3 *)0x0)" ( (binary_expression "psVar2 != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar3 < (psVar2->lookaside).pEnd)" ( (binary_expression "pcVar3 < (psVar2->lookaside).pEnd" identifier < (field_expression "(psVar2->lookaside).pEnd" (parenthesized_expression "(psVar2->lookaside)" ( (field_expression "psVar2->lookaside" identifier -> field_identifier) )) . field_identifier)) ))) )) (compound_statement "{\n    uVar4 = 0x80;\n    if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;\n    if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }\n  }" { (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (if_statement "if ((psVar2->lookaside).pMiddle <= pcVar3) goto LAB_00030859;" if (parenthesized_expression "((psVar2->lookaside).pMiddle <= pcVar3)" ( (binary_expression "(psVar2->lookaside).pMiddle <= pcVar3" (field_expression "(psVar2->lookaside).pMiddle" (parenthesized_expression "(psVar2->lookaside)" ( (field_expression "psVar2->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (goto_statement "goto LAB_00030859;" goto statement_identifier ;)) (if_statement "if ((psVar2->lookaside).pStart <= pcVar3) {\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }" if (parenthesized_expression "((psVar2->lookaside).pStart <= pcVar3)" ( (binary_expression "(psVar2->lookaside).pStart <= pcVar3" (field_expression "(psVar2->lookaside).pStart" (parenthesized_expression "(psVar2->lookaside)" ( (field_expression "psVar2->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n      uVar4 = (uint)(psVar2->lookaside).szTrue;\n      goto LAB_00030859;\n    }" { (expression_statement "uVar4 = (uint)(psVar2->lookaside).szTrue;" (assignment_expression "uVar4 = (uint)(psVar2->lookaside).szTrue" identifier = (field_expression "(uint)(psVar2->lookaside).szTrue" (call_expression "(uint)(psVar2->lookaside)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar2->lookaside)" ( (field_expression "psVar2->lookaside" identifier -> field_identifier) ))) . field_identifier)) ;) (goto_statement "goto LAB_00030859;" goto statement_identifier ;) })) })) (expression_statement "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3);" (assignment_expression "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3)" identifier = (call_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(pcVar3)" (parenthesized_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))" ( (pointer_expression "**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (pointer_expression "*(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (cast_expression "(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI + 7" (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI" (string_literal ""cannot UPDATE generated column \"%s\""" " string_content escape_sequence string_content escape_sequence ") + identifier) + number_literal) ))))) )) (argument_list "(pcVar3)" ( identifier )))) ;) (labeled_statement "LAB_00030859:\n  pMem->szMalloc = uVar4;" statement_identifier : (expression_statement "pMem->szMalloc = uVar4;" (assignment_expression "pMem->szMalloc = uVar4" (field_expression "pMem->szMalloc" identifier -> field_identifier) = identifier) ;)) (if_statement "if ((iVar5 != 0) && (pMem->z != (char *)0x0)) {\n    memcpy(pMem->zMalloc,pMem->z,pMem->n);\n  }" if (parenthesized_expression "((iVar5 != 0) && (pMem->z != (char *)0x0))" ( (binary_expression "(iVar5 != 0) && (pMem->z != (char *)0x0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(pMem->z != (char *)0x0)" ( (binary_expression "pMem->z != (char *)0x0" (field_expression "pMem->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    memcpy(pMem->zMalloc,pMem->z,pMem->n);\n  }" { (expression_statement "memcpy(pMem->zMalloc,pMem->z,pMem->n);" (call_expression "memcpy(pMem->zMalloc,pMem->z,pMem->n)" identifier (argument_list "(pMem->zMalloc,pMem->z,pMem->n)" ( (field_expression "pMem->zMalloc" identifier -> field_identifier) , (field_expression "pMem->z" identifier -> field_identifier) , (field_expression "pMem->n" identifier -> field_identifier) ))) ;) })) (expression_statement "uVar1 = pMem->flags;" (assignment_expression "uVar1 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (*pMem->xDel)(pMem->z);\n    uVar1 = pMem->flags;\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (*pMem->xDel)(pMem->z);\n    uVar1 = pMem->flags;\n  }" { (expression_statement "(*pMem->xDel)(pMem->z);" (call_expression "(*pMem->xDel)(pMem->z)" (parenthesized_expression "(*pMem->xDel)" ( (pointer_expression "*pMem->xDel" * (field_expression "pMem->xDel" identifier -> field_identifier)) )) (argument_list "(pMem->z)" ( (field_expression "pMem->z" identifier -> field_identifier) ))) ;) (expression_statement "uVar1 = pMem->flags;" (assignment_expression "uVar1 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) })) (expression_statement "pMem->flags = uVar1 & 0xe3ff;" (assignment_expression "pMem->flags = uVar1 & 0xe3ff" (field_expression "pMem->flags" identifier -> field_identifier) = (binary_expression "uVar1 & 0xe3ff" identifier & number_literal)) ;) (expression_statement "pMem->z = pMem->zMalloc;" (assignment_expression "pMem->z = pMem->zMalloc" (field_expression "pMem->z" identifier -> field_identifier) = (field_expression "pMem->zMalloc" identifier -> field_identifier)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000307e0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = FUN_000a94ff();" (assignment_expression "uVar6 = FUN_000a94ff()" identifier = (call_expression "FUN_000a94ff()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) < 1)" ( (binary_expression "*(int *)(param_1 + 0x18) < 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }" { (labeled_statement "LAB_0003082b:\n    uVar3 = FUN_0002e3d0();" statement_identifier : (expression_statement "uVar3 = FUN_0002e3d0();" (assignment_expression "uVar3 = FUN_0002e3d0()" identifier = (call_expression "FUN_0002e3d0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = extraout_ECX;" (assignment_expression "iVar5 = extraout_ECX" identifier = identifier) ;) }) (else_clause "else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" else (compound_statement "{\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" { (if_statement "if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" if (parenthesized_expression "((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)))" ( (binary_expression "(extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" ( (binary_expression "*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" { (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0003082b;" goto statement_identifier ;) })) (if_statement "if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" if (parenthesized_expression "(*(int *)((int)uVar6 + 0x20) == 0)" ( (binary_expression "*(int *)((int)uVar6 + 0x20) == 0" (pointer_expression "*(int *)((int)uVar6 + 0x20)" * (cast_expression "(int *)((int)uVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)uVar6 + 0x20)" ( (binary_expression "(int)uVar6 + 0x20" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }" { (expression_statement "uVar3 = FUN_0002cd30();" (assignment_expression "uVar3 = FUN_0002cd30()" identifier = (call_expression "FUN_0002cd30()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" { (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0x10));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) })) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);" (assignment_expression "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" identifier = (call_expression "FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" identifier (argument_list "((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" ( (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) }))) (if_statement "if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" { (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(param_1 + 8) = 1;\n    }" { (expression_statement "*(undefined2 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 1" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_000248e0();\n    }" else (compound_statement "{\n      FUN_000248e0();\n    }" { (expression_statement "FUN_000248e0();" (call_expression "FUN_000248e0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144)))" ( (binary_expression "(iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar3 < *(uint *)(iVar2 + 0x144))" ( (binary_expression "uVar3 < *(uint *)(iVar2 + 0x144)" identifier < (pointer_expression "*(uint *)(iVar2 + 0x144)" * (cast_expression "(uint *)(iVar2 + 0x144)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x144)" ( (binary_expression "iVar2 + 0x144" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" { (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (if_statement "if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;" if (parenthesized_expression "(*(uint *)(iVar2 + 0x13c) <= uVar3)" ( (binary_expression "*(uint *)(iVar2 + 0x13c) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x13c)" * (cast_expression "(uint *)(iVar2 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x13c)" ( (binary_expression "iVar2 + 0x13c" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00030859;" goto statement_identifier ;)) (if_statement "if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" if (parenthesized_expression "(*(uint *)(iVar2 + 0x140) <= uVar3)" ( (binary_expression "*(uint *)(iVar2 + 0x140) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x140)" * (cast_expression "(uint *)(iVar2 + 0x140)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x140)" ( (binary_expression "iVar2 + 0x140" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" { (expression_statement "uVar4 = (uint)*(ushort *)(iVar2 + 0x116);" (assignment_expression "uVar4 = (uint)*(ushort *)(iVar2 + 0x116)" identifier = (binary_expression "(uint)*(ushort *)(iVar2 + 0x116)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(iVar2 + 0x116)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x116)" ( (binary_expression "iVar2 + 0x116" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00030859;" goto statement_identifier ;) })) })) (expression_statement "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);" (assignment_expression "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" identifier = (call_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" (parenthesized_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))" ( (pointer_expression "**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (pointer_expression "*(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" * (cast_expression "(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" ( (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI + 7" (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI" (string_literal ""cannot UPDATE generated column \"%s\""" " string_content escape_sequence string_content escape_sequence ") + identifier) + number_literal) ))))) )) (argument_list "(uVar3)" ( identifier )))) ;) (labeled_statement "LAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x18) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;)) (if_statement "if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" if (parenthesized_expression "((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0))" ( (binary_expression "(iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" { (expression_statement "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));" (call_expression "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" identifier (argument_list "(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" ( (pointer_expression "*(void **)(param_1 + 0x14)" * (cast_expression "(void **)(param_1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(param_1 + 0xc)" * (cast_expression "(size_t *)(param_1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" { (expression_statement "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(param_1 + 0x24))" ( (pointer_expression "**(code **)(param_1 + 0x24)" * (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xe3ff" identifier & number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return 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) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (string_literal " string_content escape_sequence string_content escape_sequence ") + IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (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) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (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 IDENT = (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) )))) = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_000307e0(int param_1,int param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000307e0(int param_1,int param_2)" (identifier "FUN_000307e0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int extraout_ECX;\n  int iVar5;\n  int unaff_EDI;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_000a94ff();\n  if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }\n  if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }\n  iVar2 = *(int *)(param_1 + 0x20);\n  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }\n  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);\nLAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;\n  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }\n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }\n  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);\n  return 0;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "uVar6 = FUN_000a94ff();" (assignment_expression "uVar6 = FUN_000a94ff()" (identifier "uVar6") (= "=") (call_expression "FUN_000a94ff()" (identifier "FUN_000a94ff") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x18) < 1) {\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }\n  else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) < 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) < 1" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_0003082b:\n    uVar3 = FUN_0002e3d0();\n    *(uint *)(param_1 + 0x14) = uVar3;\n    iVar5 = extraout_ECX;\n  }" ({ "{") (labeled_statement "LAB_0003082b:\n    uVar3 = FUN_0002e3d0();" (statement_identifier "LAB_0003082b") (: ":") (expression_statement "uVar3 = FUN_0002e3d0();" (assignment_expression "uVar3 = FUN_0002e3d0()" (identifier "uVar3") (= "=") (call_expression "FUN_0002e3d0()" (identifier "FUN_0002e3d0") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar5 = extraout_ECX;" (assignment_expression "iVar5 = extraout_ECX" (identifier "iVar5") (= "=") (identifier "extraout_ECX")) (; ";")) (} "}")) (else_clause "else {\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" (else "else") (compound_statement "{\n    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }\n    if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }\n  }" ({ "{") (if_statement "if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" (if "if") (parenthesized_expression "((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)))" (( "(") (binary_expression "(extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" (parenthesized_expression "(extraout_ECX == 0)" (( "(") (binary_expression "extraout_ECX == 0" (identifier "extraout_ECX") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      FUN_00024720();\n      goto LAB_0003082b;\n    }" ({ "{") (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" (identifier "FUN_00024720") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_0003082b;" (goto "goto") (statement_identifier "LAB_0003082b") (; ";")) (} "}"))) (if_statement "if (*(int *)((int)uVar6 + 0x20) == 0) {\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" (if "if") (parenthesized_expression "(*(int *)((int)uVar6 + 0x20) == 0)" (( "(") (binary_expression "*(int *)((int)uVar6 + 0x20) == 0" (pointer_expression "*(int *)((int)uVar6 + 0x20)" (* "*") (cast_expression "(int *)((int)uVar6 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)uVar6 + 0x20)" (( "(") (binary_expression "(int)uVar6 + 0x20" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_0002cd30();\n      *(uint *)(param_1 + 0x14) = uVar3;\n      if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }\n      *(uint *)(param_1 + 0x10) = uVar3;\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "uVar3 = FUN_0002cd30();" (assignment_expression "uVar3 = FUN_0002cd30()" (identifier "uVar3") (= "=") (call_expression "FUN_0002cd30()" (identifier "FUN_0002cd30") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (uVar3 == 0) {\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        sqlite3_free(*(undefined4 *)(param_1 + 0x10));\n        uVar3 = *(uint *)(param_1 + 0x14);\n      }" ({ "{") (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0x10));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0x10))" (identifier "sqlite3_free") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" (else "else") (compound_statement "{\n      iVar5 = 0;\n      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);\n      *(uint *)(param_1 + 0x14) = uVar3;\n      *(uint *)(param_1 + 0x10) = uVar3;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);" (assignment_expression "uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" (identifier "uVar3") (= "=") (call_expression "FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" (identifier "FUN_000307a0") (argument_list "((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f)" (( "(") (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x20")) () ")"))) (, ",") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x10) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x10) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (} "}")))) (if_statement "if (uVar3 == 0) {\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    return 7;\n  }" ({ "{") (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(param_1 + 8) = 1;\n    }\n    else {\n      FUN_000248e0();\n    }" (if "if") (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined2 *)(param_1 + 8) = 1;\n    }" ({ "{") (expression_statement "*(undefined2 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 1" (pointer_expression "*(undefined2 *)(param_1 + 8)" (* "*") (cast_expression "(undefined2 *)(param_1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      FUN_000248e0();\n    }" (else "else") (compound_statement "{\n      FUN_000248e0();\n    }" ({ "{") (expression_statement "FUN_000248e0();" (call_expression "FUN_000248e0()" (identifier "FUN_000248e0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144)))" (( "(") (binary_expression "(iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar3 < *(uint *)(iVar2 + 0x144))" (( "(") (binary_expression "uVar3 < *(uint *)(iVar2 + 0x144)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(iVar2 + 0x144)" (* "*") (cast_expression "(uint *)(iVar2 + 0x144)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x144)" (( "(") (binary_expression "iVar2 + 0x144" (identifier "iVar2") (+ "+") (number_literal "0x144")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    uVar4 = 0x80;\n    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;\n    if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }\n  }" ({ "{") (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" (identifier "uVar4") (= "=") (number_literal "0x80")) (; ";")) (if_statement "if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;" (if "if") (parenthesized_expression "(*(uint *)(iVar2 + 0x13c) <= uVar3)" (( "(") (binary_expression "*(uint *)(iVar2 + 0x13c) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x13c)" (* "*") (cast_expression "(uint *)(iVar2 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x13c)" (( "(") (binary_expression "iVar2 + 0x13c" (identifier "iVar2") (+ "+") (number_literal "0x13c")) () ")")))) (<= "<=") (identifier "uVar3")) () ")")) (goto_statement "goto LAB_00030859;" (goto "goto") (statement_identifier "LAB_00030859") (; ";"))) (if_statement "if (*(uint *)(iVar2 + 0x140) <= uVar3) {\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" (if "if") (parenthesized_expression "(*(uint *)(iVar2 + 0x140) <= uVar3)" (( "(") (binary_expression "*(uint *)(iVar2 + 0x140) <= uVar3" (pointer_expression "*(uint *)(iVar2 + 0x140)" (* "*") (cast_expression "(uint *)(iVar2 + 0x140)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x140)" (( "(") (binary_expression "iVar2 + 0x140" (identifier "iVar2") (+ "+") (number_literal "0x140")) () ")")))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);\n      goto LAB_00030859;\n    }" ({ "{") (expression_statement "uVar4 = (uint)*(ushort *)(iVar2 + 0x116);" (assignment_expression "uVar4 = (uint)*(ushort *)(iVar2 + 0x116)" (identifier "uVar4") (= "=") (binary_expression "(uint)*(ushort *)(iVar2 + 0x116)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(iVar2 + 0x116)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x116)" (( "(") (binary_expression "iVar2 + 0x116" (identifier "iVar2") (+ "+") (number_literal "0x116")) () ")"))))) (; ";")) (goto_statement "goto LAB_00030859;" (goto "goto") (statement_identifier "LAB_00030859") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);" (assignment_expression "uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" (identifier "uVar4") (= "=") (call_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3)" (parenthesized_expression "(**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))" (( "(") (pointer_expression "**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" (* "*") (pointer_expression "*(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" (* "*") (cast_expression "(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7)" (( "(") (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI + 7" (binary_expression ""cannot UPDATE generated column \"%s\"" + unaff_EDI" (string_literal ""cannot UPDATE generated column \"%s\""" (" """) (string_content "cannot UPDATE generated column ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "7")) () ")"))))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (labeled_statement "LAB_00030859:\n  *(uint *)(param_1 + 0x18) = uVar4;" (statement_identifier "LAB_00030859") (: ":") (expression_statement "*(uint *)(param_1 + 0x18) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar4")) (; ";"))) (if_statement "if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0))" (( "(") (binary_expression "(iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)" (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" (( "(") (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));" (call_expression "memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" (identifier "memcpy") (argument_list "(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc))" (( "(") (pointer_expression "*(void **)(param_1 + 0x14)" (* "*") (cast_expression "(void **)(param_1 + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(size_t *)(param_1 + 0xc)" (* "*") (cast_expression "(size_t *)(param_1 + 0xc)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x400) != 0) {\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x400) != 0)" (( "(") (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" (( "(") (binary_expression "uVar1 & 0x400" (identifier "uVar1") (& "&") (number_literal "0x400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));\n    uVar1 = *(ushort *)(param_1 + 8);\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(param_1 + 0x24))" (( "(") (pointer_expression "**(code **)(param_1 + 0x24)" (* "*") (pointer_expression "*(code **)(param_1 + 0x24)" (* "*") (cast_expression "(code **)(param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 & 0xe3ff" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar1 & 0xe3ff" (identifier "uVar1") (& "&") (number_literal "0xe3ff"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pMem,int var_11,int bPreserve)

{
  type_2 var_16;
  type_3 *var_6;
  char *var_4;
  type_4 uVar4;
  int var_3;
  int var_14;
  int var_13;
  type_5 uVar6;
  type_6 in_stack_ffffffd4;
  
  uVar6 = var_1();
  var_6 = *(type_3 **)((int)uVar6 + 0x20);
  if (pMem->szMalloc < 1) {
LAB_0003082b:
    var_4 = (char *)var_2(var_6,in_stack_ffffffd4);
    pMem->zMalloc = var_4;
    var_14 = var_3;
  }
  else {
    var_4 = pMem->zMalloc;
    if ((var_3 == 0) || (pMem->z != var_4)) {
      var_5(var_6,var_4);
      var_6 = pMem->db;
      goto LAB_0003082b;
    }
    if (var_6 == (type_3 *)0x0) {
      var_4 = (char *)var_7(var_4,in_stack_ffffffd4);
      pMem->zMalloc = var_4;
      if (var_4 == (char *)0x0) {
        var_8(pMem->z);
        var_4 = pMem->zMalloc;
      }
      pMem->z = var_4;
      var_14 = 0;
    }
    else {
      var_14 = 0;
      var_4 = (char *)var_9
                                 (var_6,var_4,var_10(var_11 >> 0x1f,(int)((type_7)uVar6 >> 0x20)))
      ;
      pMem->zMalloc = var_4;
      pMem->z = var_4;
    }
  }
  if (var_4 == (char *)0x0) {
    if ((pMem->flags & 0x2400) == 0) {
      pMem->flags = 1;
    }
    else {
      var_12(pMem);
    }
    pMem->z = (char *)0x0;
    pMem->szMalloc = 0;
    return 7;
  }
  var_6 = pMem->db;
  if ((var_6 != (type_3 *)0x0) && (var_4 < (var_6->lookaside).pEnd)) {
    uVar4 = 0x80;
    if ((var_6->lookaside).pMiddle <= var_4) goto LAB_00030859;
    if ((var_6->lookaside).pStart <= var_4) {
      uVar4 = (type_4)(var_6->lookaside).szTrue;
      goto LAB_00030859;
    }
  }
  uVar4 = (**(type_8 **)("cannot UPDATE generated column \"%s\"" + var_13 + 7))(var_4);
LAB_00030859:
  pMem->szMalloc = uVar4;
  if ((var_14 != 0) && (pMem->z != (char *)0x0)) {
    var_15(pMem->zMalloc,pMem->z,pMem->var_11);
  }
  var_16 = pMem->flags;
  if ((var_16 & 0x400) != 0) {
    (*pMem->xDel)(pMem->z);
    var_16 = pMem->flags;
  }
  pMem->flags = var_16 & 0xe3ff;
  pMem->z = pMem->zMalloc;
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (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: (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (goto_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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) 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: (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))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (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: (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) right: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (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))))))))) (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: (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: (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))))))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(int param_1,int param_2)

{
  ushort uVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int extraout_ECX;
  int iVar5;
  int unaff_EDI;
  undefined8 uVar6;
  
  uVar6 = FUN_000a94ff();
  if (*(int *)(param_1 + 0x18) < 1) {
LAB_0003082b:
    uVar3 = FUN_0002e3d0();
    *(uint *)(param_1 + 0x14) = uVar3;
    iVar5 = extraout_ECX;
  }
  else {
    if ((extraout_ECX == 0) || (*(int *)(param_1 + 0x10) != *(int *)(param_1 + 0x14))) {
      FUN_00024720();
      goto LAB_0003082b;
    }
    if (*(int *)((int)uVar6 + 0x20) == 0) {
      uVar3 = FUN_0002cd30();
      *(uint *)(param_1 + 0x14) = uVar3;
      if (uVar3 == 0) {
        sqlite3_free(*(undefined4 *)(param_1 + 0x10));
        uVar3 = *(uint *)(param_1 + 0x14);
      }
      *(uint *)(param_1 + 0x10) = uVar3;
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      uVar3 = FUN_000307a0((int)((ulonglong)uVar6 >> 0x20),param_2 >> 0x1f);
      *(uint *)(param_1 + 0x14) = uVar3;
      *(uint *)(param_1 + 0x10) = uVar3;
    }
  }
  if (uVar3 == 0) {
    if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
      *(undefined2 *)(param_1 + 8) = 1;
    }
    else {
      FUN_000248e0();
    }
    *(undefined4 *)(param_1 + 0x10) = 0;
    *(undefined4 *)(param_1 + 0x18) = 0;
    return 7;
  }
  iVar2 = *(int *)(param_1 + 0x20);
  if ((iVar2 != 0) && (uVar3 < *(uint *)(iVar2 + 0x144))) {
    uVar4 = 0x80;
    if (*(uint *)(iVar2 + 0x13c) <= uVar3) goto LAB_00030859;
    if (*(uint *)(iVar2 + 0x140) <= uVar3) {
      uVar4 = (uint)*(ushort *)(iVar2 + 0x116);
      goto LAB_00030859;
    }
  }
  uVar4 = (**(code **)("cannot UPDATE generated column \"%s\"" + unaff_EDI + 7))(uVar3);
LAB_00030859:
  *(uint *)(param_1 + 0x18) = uVar4;
  if ((iVar5 != 0) && (*(void **)(param_1 + 0x10) != (void *)0x0)) {
    memcpy(*(void **)(param_1 + 0x14),*(void **)(param_1 + 0x10),*(size_t *)(param_1 + 0xc));
  }
  uVar1 = *(ushort *)(param_1 + 8);
  if ((uVar1 & 0x400) != 0) {
    (**(code **)(param_1 + 0x24))(*(undefined4 *)(param_1 + 0x10));
    uVar1 = *(ushort *)(param_1 + 8);
  }
  *(ushort *)(param_1 + 8) = uVar1 & 0xe3ff;
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_1 + 0x14);
  return 0;
}

