
int sqlite3session_attach(sqlite3_session *pSession,char *zName)

{
  uint uVar1;
  int iVar2;
  SessionTable *pSVar3;
  SessionTable *pSVar4;
  SessionTable *pSVar5;
  int iVar6;
  code *pcVar7;
  
  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();
  }
  if (zName == (char *)0x0) {
    iVar2 = 0;
    pSession->bAutoAttach = 1;
  }
  else {
    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);
    pSVar5 = pSession->pTable;
    uVar1 = uVar1 & 0x3fffffff;
    if (pSVar5 != (SessionTable *)0x0) {
      iVar6 = uVar1 + 1;
      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);
      do {
        if ((pSVar5->zName != (char *)0x0) &&
           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;
        pSVar5 = pSVar5->pNext;
      } while (pSVar5 != (SessionTable *)0x0);
    }
    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();
    if ((iVar2 == 0) &&
       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),
       pSVar5 != (SessionTable *)0x0)) {
      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);
      pSVar5->zName = (char *)(pSVar5 + 1);
      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);
      iVar2 = 0;
      pSVar3 = pSession->pTable;
      if (pSession->pTable == (SessionTable *)0x0) {
        pSession->pTable = pSVar5;
      }
      else {
        do {
          pSVar4 = pSVar3;
          pSVar3 = pSVar4->pNext;
        } while (pSVar3 != (SessionTable *)0x0);
        pSVar4->pNext = pSVar5;
      }
    }
    else {
      iVar2 = 7;
    }
  }
LAB_0015bf10:
  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();
  }
  return iVar2;
}



int sqlite3session_attach(int *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  code *pcVar6;
  
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))();
  }
  if (param_2 == 0) {
    iVar2 = 0;
    param_1[4] = 1;
  }
  else {
    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);
    piVar4 = (int *)param_1[10];
    uVar1 = uVar1 & 0x3fffffff;
    if (piVar4 != (int *)0x0) {
      iVar5 = uVar1 + 1;
      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);
      do {
        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))
        goto LAB_0015bf10;
        piVar4 = (int *)*piVar4;
      } while (piVar4 != (int *)0x0);
    }
    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();
    if ((iVar2 == 0) &&
       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {
      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);
      *(int *)(iVar5 + 4) = iVar5 + 0x24;
      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);
      iVar2 = 0;
      piVar4 = (int *)param_1[10];
      if ((int *)param_1[10] == (int *)0x0) {
        param_1[10] = iVar5;
      }
      else {
        do {
          piVar3 = piVar4;
          piVar4 = (int *)*piVar3;
        } while (piVar4 != (int *)0x0);
        *piVar3 = iVar5;
      }
    }
    else {
      iVar2 = 7;
    }
  }
LAB_0015bf10:
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb14))();
  }
  return iVar2;
}


lui gp,0x4
addiu gp,gp,-0x34ac
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s0,0x18(sp)
lw v0,0x0(a0)
lw a0,0xc(v0)
beq a0,zero,0x0015be20
_or s1,a1,zero
lw v0,-0x7fd8(gp)
lw t9,-0xb1c(v0)
jalr t9
_nop
lw gp,0x10(sp)
beq s1,zero,0x0015bf50
_lw t9,-0x7ba0(gp)
jalr t9
_or a0,s1,zero
lw t1,0x28(s2)
ext s3,v0,0x0,0x1e
beq t1,zero,0x0015be80
_lw gp,0x10(sp)
lw t9,-0x7d78(gp)
addiu t2,s3,0x1
addiu t9,t9,0x27e4
lw v0,0x4(t1)
or a2,t2,zero
or a1,s1,zero
beq v0,zero,0x0015be74
_or a0,v0,zero
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0015bf10
_or s0,v0,zero
lw t1,0x0(t1)
bne t1,zero,0x0015be4c
_nop
lw t9,-0x7d98(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x0015bf60
_or s0,v0,zero
lw t9,-0x7d78(gp)
or a0,zero,zero
addiu t9,t9,-0x2b48
jalr t9
_addiu a1,s3,0x25
lw gp,0x10(sp)
beq v0,zero,0x0015bf60
_or s4,v0,zero
lw t9,-0x7bc8(gp)
li a2,0x24
or a1,zero,zero
jalr t9
_or a0,v0,zero
addiu a0,s4,0x24
lw gp,0x10(sp)
addiu a2,s3,0x1
sw a0,0x4(s4)
lw t9,-0x7af4(gp)
jalr t9
_or a1,s1,zero
lw v1,0x28(s2)
bne v1,zero,0x0015bf00
_lw gp,0x10(sp)
b 0x0015bf68
_addiu v1,s2,0x28
or v1,v0,zero
lw v0,0x0(v1)
bne v0,zero,0x0015befc
_nop
sw s4,0x0(v1)
lw v0,0x0(s2)
lw a0,0xc(v0)
beq a0,zero,0x0015bf2c
_lw v0,-0x7fd8(gp)
lw t9,-0xb14(v0)
jalr t9
_nop
lw ra,0x2c(sp)
or v0,s0,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
li v0,0x1
or s0,zero,zero
b 0x0015bf10
_sw v0,0x10(s2)
b 0x0015bf10
_li s0,0x7
b 0x0015bf10
_sw s4,0x0(v1)
(translation_unit "int sqlite3session_attach(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}\n\n" (function_definition "int sqlite3session_attach(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3session_attach(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    param_1[4] = 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar1 & 0x3fffffff;" (assignment_expression "uVar1 = uVar1 & 0x3fffffff" identifier = (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" { (expression_statement "iVar5 = uVar1 + 1;" (assignment_expression "iVar5 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x27e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x27e4)" ( (binary_expression "PTR_LAB_00190ba8 + 0x27e4" identifier + number_literal) )))) ;) (do_statement "do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" do (compound_statement "{\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      }" { (if_statement "if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;" if (parenthesized_expression "((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))" ( (binary_expression "(piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" (parenthesized_expression "(piVar4[1] != 0)" ( (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" ( (comma_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0" (assignment_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5)" identifier = (call_expression "(*pcVar6)(piVar4[1],param_2,iVar5)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(piVar4[1],param_2,iVar5)" ( (subscript_expression "piVar4[1]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0015bf10;" goto statement_identifier ;)) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_00190b88)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_00190b88)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_00190b88" * (cast_expression "(code *)PTR_sqlite3_initialize_00190b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }" if (parenthesized_expression "((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0))" ( (binary_expression "(iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" ( (comma_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0" (assignment_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(0,uVar1 + 0x25)" ( number_literal , (binary_expression "uVar1 + 0x25" identifier + number_literal) )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24);" (call_expression "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar5 + 4) = iVar5 + 0x24;" (assignment_expression "*(int *)(iVar5 + 4) = iVar5 + 0x24" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = (binary_expression "iVar5 + 0x24" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);" (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 0x24,param_2,uVar1 + 1)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) , identifier , (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" if (parenthesized_expression "((int *)param_1[10] == (int *)0x0)" ( (binary_expression "(int *)param_1[10] == (int *)0x0" (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1[10] = iVar5;\n      }" { (expression_statement "param_1[10] = iVar5;" (assignment_expression "param_1[10] = iVar5" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" else (compound_statement "{\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" { (do_statement "do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);" do (compound_statement "{\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        }" { (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = (int *)*piVar3;" (assignment_expression "piVar4 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar3 = iVar5;" (assignment_expression "*piVar3 = iVar5" (pointer_expression "*piVar3" * identifier) = identifier) ;) }))) }) (else_clause "else {\n      iVar2 = 7;\n    }" else (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" statement_identifier : (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" ( (binary_expression "PTR_DAT_00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int sqlite3session_attach(sqlite3_session *pSession,char *zName)\n\n{\n  uint uVar1;\n  int iVar2;\n  SessionTable *pSVar3;\n  SessionTable *pSVar4;\n  SessionTable *pSVar5;\n  int iVar6;\n  code *pcVar7;\n  \n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  if (zName == (char *)0x0) {\n    iVar2 = 0;\n    pSession->bAutoAttach = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return iVar2;\n}\n\n" (function_definition "int sqlite3session_attach(sqlite3_session *pSession,char *zName)\n\n{\n  uint uVar1;\n  int iVar2;\n  SessionTable *pSVar3;\n  SessionTable *pSVar4;\n  SessionTable *pSVar5;\n  int iVar6;\n  code *pcVar7;\n  \n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  if (zName == (char *)0x0) {\n    iVar2 = 0;\n    pSession->bAutoAttach = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3session_attach(sqlite3_session *pSession,char *zName)" identifier (parameter_list "(sqlite3_session *pSession,char *zName)" ( (parameter_declaration "sqlite3_session *pSession" type_identifier (pointer_declarator "*pSession" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  SessionTable *pSVar3;\n  SessionTable *pSVar4;\n  SessionTable *pSVar5;\n  int iVar6;\n  code *pcVar7;\n  \n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  if (zName == (char *)0x0) {\n    iVar2 = 0;\n    pSession->bAutoAttach = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SessionTable *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "SessionTable *pSVar4;" type_identifier (pointer_declarator "*pSVar4" * identifier) ;) (declaration "SessionTable *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (if_statement "if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(pSession->db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "pSession->db->mutex != (sqlite3_mutex *)0x0" (field_expression "pSession->db->mutex" (field_expression "pSession->db" identifier -> field_identifier) -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (binary_expression "PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (zName == (char *)0x0) {\n    iVar2 = 0;\n    pSession->bAutoAttach = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" if (parenthesized_expression "(zName == (char *)0x0)" ( (binary_expression "zName == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0;\n    pSession->bAutoAttach = 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "pSession->bAutoAttach = 1;" (assignment_expression "pSession->bAutoAttach = 1" (field_expression "pSession->bAutoAttach" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_00190d80)(zName);\n    pSVar5 = pSession->pTable;\n    uVar1 = uVar1 & 0x3fffffff;\n    if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_00190d80)(zName);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_00190d80)(zName)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(zName)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(zName)" ( identifier )))) ;) (expression_statement "pSVar5 = pSession->pTable;" (assignment_expression "pSVar5 = pSession->pTable" identifier = (field_expression "pSession->pTable" identifier -> field_identifier)) ;) (expression_statement "uVar1 = uVar1 & 0x3fffffff;" (assignment_expression "uVar1 = uVar1 & 0x3fffffff" identifier = (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (pSVar5 != (SessionTable *)0x0) {\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }" if (parenthesized_expression "(pSVar5 != (SessionTable *)0x0)" ( (binary_expression "pSVar5 != (SessionTable *)0x0" identifier != (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar6 = uVar1 + 1;\n      pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);\n    }" { (expression_statement "iVar6 = uVar1 + 1;" (assignment_expression "iVar6 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_00190ba8 + 0x27e4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x27e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x27e4)" ( (binary_expression "PTR_LAB_00190ba8 + 0x27e4" identifier + number_literal) )))) ;) (do_statement "do {\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      } while (pSVar5 != (SessionTable *)0x0);" do (compound_statement "{\n        if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;\n        pSVar5 = pSVar5->pNext;\n      }" { (if_statement "if ((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)) goto LAB_0015bf10;" if (parenthesized_expression "((pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0))" ( (binary_expression "(pSVar5->zName != (char *)0x0) &&\n           (iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)" (parenthesized_expression "(pSVar5->zName != (char *)0x0)" ( (binary_expression "pSVar5->zName != (char *)0x0" (field_expression "pSVar5->zName" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0)" ( (comma_expression "iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6), iVar2 == 0" (assignment_expression "iVar2 = (*pcVar7)(pSVar5->zName,zName,iVar6)" identifier = (call_expression "(*pcVar7)(pSVar5->zName,zName,iVar6)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(pSVar5->zName,zName,iVar6)" ( (field_expression "pSVar5->zName" identifier -> field_identifier) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0015bf10;" goto statement_identifier ;)) (expression_statement "pSVar5 = pSVar5->pNext;" (assignment_expression "pSVar5 = pSVar5->pNext" identifier = (field_expression "pSVar5->pNext" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pSVar5 != (SessionTable *)0x0)" ( (binary_expression "pSVar5 != (SessionTable *)0x0" identifier != (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_00190b88)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_00190b88)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_00190b88" * (cast_expression "(code *)PTR_sqlite3_initialize_00190b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)) {\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }" if (parenthesized_expression "((iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0))" ( (binary_expression "(iVar2 == 0) &&\n       (pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0)" ( (comma_expression "pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25),\n       pSVar5 != (SessionTable *)0x0" (assignment_expression "pSVar5 = (SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" identifier = (cast_expression "(SessionTable *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(0,uVar1 + 0x25)" ( number_literal , (binary_expression "uVar1 + 0x25" identifier + number_literal) ))))) , (binary_expression "pSVar5 != (SessionTable *)0x0" identifier != (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);\n      pSVar5->zName = (char *)(pSVar5 + 1);\n      (*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);\n      iVar2 = 0;\n      pSVar3 = pSession->pTable;\n      if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(pSVar5,0,0x24);" (call_expression "(*(code *)PTR_memset_00190d58)(pSVar5,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pSVar5,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pSVar5->zName = (char *)(pSVar5 + 1);" (assignment_expression "pSVar5->zName = (char *)(pSVar5 + 1)" (field_expression "pSVar5->zName" identifier -> field_identifier) = (cast_expression "(char *)(pSVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar5 + 1)" ( (binary_expression "pSVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1);" (call_expression "(*(code *)PTR_memcpy_00190e2c)(pSVar5 + 1,zName,uVar1 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pSVar5 + 1,zName,uVar1 + 1)" ( (binary_expression "pSVar5 + 1" identifier + number_literal) , identifier , (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "pSVar3 = pSession->pTable;" (assignment_expression "pSVar3 = pSession->pTable" identifier = (field_expression "pSession->pTable" identifier -> field_identifier)) ;) (if_statement "if (pSession->pTable == (SessionTable *)0x0) {\n        pSession->pTable = pSVar5;\n      }\n      else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }" if (parenthesized_expression "(pSession->pTable == (SessionTable *)0x0)" ( (binary_expression "pSession->pTable == (SessionTable *)0x0" (field_expression "pSession->pTable" identifier -> field_identifier) == (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pSession->pTable = pSVar5;\n      }" { (expression_statement "pSession->pTable = pSVar5;" (assignment_expression "pSession->pTable = pSVar5" (field_expression "pSession->pTable" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }" else (compound_statement "{\n        do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);\n        pSVar4->pNext = pSVar5;\n      }" { (do_statement "do {\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        } while (pSVar3 != (SessionTable *)0x0);" do (compound_statement "{\n          pSVar4 = pSVar3;\n          pSVar3 = pSVar4->pNext;\n        }" { (expression_statement "pSVar4 = pSVar3;" (assignment_expression "pSVar4 = pSVar3" identifier = identifier) ;) (expression_statement "pSVar3 = pSVar4->pNext;" (assignment_expression "pSVar3 = pSVar4->pNext" identifier = (field_expression "pSVar4->pNext" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pSVar3 != (SessionTable *)0x0)" ( (binary_expression "pSVar3 != (SessionTable *)0x0" identifier != (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pSVar4->pNext = pSVar5;" (assignment_expression "pSVar4->pNext = pSVar5" (field_expression "pSVar4->pNext" identifier -> field_identifier) = identifier) ;) }))) }) (else_clause "else {\n      iVar2 = 7;\n    }" else (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_0015bf10:\n  if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }" statement_identifier : (if_statement "if (pSession->db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }" if (parenthesized_expression "(pSession->db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "pSession->db->mutex != (sqlite3_mutex *)0x0" (field_expression "pSession->db->mutex" (field_expression "pSession->db" identifier -> field_identifier) -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" * (cast_expression "(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" ( (binary_expression "PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int sqlite3session_attach(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}\n\n" (function_definition "int sqlite3session_attach(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3session_attach(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    param_1[4] = 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar1 & 0x3fffffff;" (assignment_expression "uVar1 = uVar1 & 0x3fffffff" identifier = (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" { (expression_statement "iVar5 = uVar1 + 1;" (assignment_expression "iVar5 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x27e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x27e4)" ( (binary_expression "PTR_LAB_00190ba8 + 0x27e4" identifier + number_literal) )))) ;) (do_statement "do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" do (compound_statement "{\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      }" { (if_statement "if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;" if (parenthesized_expression "((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))" ( (binary_expression "(piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" (parenthesized_expression "(piVar4[1] != 0)" ( (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" ( (comma_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0" (assignment_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5)" identifier = (call_expression "(*pcVar6)(piVar4[1],param_2,iVar5)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(piVar4[1],param_2,iVar5)" ( (subscript_expression "piVar4[1]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0015bf10;" goto statement_identifier ;)) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_00190b88)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_00190b88)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_00190b88" * (cast_expression "(code *)PTR_sqlite3_initialize_00190b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }" if (parenthesized_expression "((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0))" ( (binary_expression "(iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" ( (comma_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0" (assignment_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(0,uVar1 + 0x25)" ( number_literal , (binary_expression "uVar1 + 0x25" identifier + number_literal) )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24);" (call_expression "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar5 + 4) = iVar5 + 0x24;" (assignment_expression "*(int *)(iVar5 + 4) = iVar5 + 0x24" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = (binary_expression "iVar5 + 0x24" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);" (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 0x24,param_2,uVar1 + 1)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) , identifier , (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" identifier = (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" if (parenthesized_expression "((int *)param_1[10] == (int *)0x0)" ( (binary_expression "(int *)param_1[10] == (int *)0x0" (cast_expression "(int *)param_1[10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[10]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1[10] = iVar5;\n      }" { (expression_statement "param_1[10] = iVar5;" (assignment_expression "param_1[10] = iVar5" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" else (compound_statement "{\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" { (do_statement "do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);" do (compound_statement "{\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        }" { (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = (int *)*piVar3;" (assignment_expression "piVar4 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar3 = iVar5;" (assignment_expression "*piVar3 = iVar5" (pointer_expression "*piVar3" * identifier) = identifier) ;) }))) }) (else_clause "else {\n      iVar2 = 7;\n    }" else (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" statement_identifier : (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" ( (binary_expression "PTR_DAT_00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( LIT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , 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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int sqlite3session_attach(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "sqlite3session_attach(int *param_1,int param_2)" (identifier "sqlite3session_attach") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\nLAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return iVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" ({ "{") (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" (( "(") (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" (( "(") (binary_expression "PTR_DAT_00190948 + -0xb1c" (identifier "PTR_DAT_00190948") (+ "+") (number_literal "-0xb1c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    iVar2 = 0;\n    param_1[4] = 1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    param_1[4] = 1;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" (else "else") (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);\n    piVar4 = (int *)param_1[10];\n    uVar1 = uVar1 & 0x3fffffff;\n    if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }\n    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();\n    if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_00190d80)(param_2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" (( "(") (pointer_expression "*(code *)PTR_strlen_00190d80" (* "*") (cast_expression "(code *)PTR_strlen_00190d80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00190d80"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")))) (; ";")) (expression_statement "uVar1 = uVar1 & 0x3fffffff;" (assignment_expression "uVar1 = uVar1 & 0x3fffffff" (identifier "uVar1") (= "=") (binary_expression "uVar1 & 0x3fffffff" (identifier "uVar1") (& "&") (number_literal "0x3fffffff"))) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar5 = uVar1 + 1;\n      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);\n      do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n    }" ({ "{") (expression_statement "iVar5 = uVar1 + 1;" (assignment_expression "iVar5 = uVar1 + 1" (identifier "iVar5") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4)" (identifier "pcVar6") (= "=") (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x27e4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + 0x27e4)" (( "(") (binary_expression "PTR_LAB_00190ba8 + 0x27e4" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "0x27e4")) () ")")))) (; ";")) (do_statement "do {\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;\n        piVar4 = (int *)*piVar4;\n      }" ({ "{") (if_statement "if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))\n        goto LAB_0015bf10;" (if "if") (parenthesized_expression "((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))" (( "(") (binary_expression "(piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" (parenthesized_expression "(piVar4[1] != 0)" (( "(") (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0)" (( "(") (comma_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0" (assignment_expression "iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5)" (identifier "iVar2") (= "=") (call_expression "(*pcVar6)(piVar4[1],param_2,iVar5)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(piVar4[1],param_2,iVar5)" (( "(") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "iVar5") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0015bf10;" (goto "goto") (statement_identifier "LAB_0015bf10") (; ";"))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_initialize_00190b88)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_00190b88)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_initialize_00190b88" (* "*") (cast_expression "(code *)PTR_sqlite3_initialize_00190b88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_initialize_00190b88"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }\n    else {\n      iVar2 = 7;\n    }" (if "if") (parenthesized_expression "((iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0))" (( "(") (binary_expression "(iVar2 == 0) &&\n       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)" (( "(") (comma_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0" (assignment_expression "iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" (identifier "iVar5") (= "=") (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" (( "(") (binary_expression "PTR_LAB_00190ba8 + -0x2b48" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "-0x2b48")) () ")")))) () ")")) (argument_list "(0,uVar1 + 0x25)" (( "(") (number_literal "0") (, ",") (binary_expression "uVar1 + 0x25" (identifier "uVar1") (+ "+") (number_literal "0x25")) () ")")))) (, ",") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);\n      *(int *)(iVar5 + 4) = iVar5 + 0x24;\n      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);\n      iVar2 = 0;\n      piVar4 = (int *)param_1[10];\n      if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }\n    }" ({ "{") (expression_statement "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24);" (call_expression "(*(code *)PTR_memset_00190d58)(iVar5,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" (( "(") (pointer_expression "*(code *)PTR_memset_00190d58" (* "*") (cast_expression "(code *)PTR_memset_00190d58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00190d58"))) () ")")) (argument_list "(iVar5,0,0x24)" (( "(") (identifier "iVar5") (, ",") (number_literal "0") (, ",") (number_literal "0x24") () ")"))) (; ";")) (expression_statement "*(int *)(iVar5 + 4) = iVar5 + 0x24;" (assignment_expression "*(int *)(iVar5 + 4) = iVar5 + 0x24" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);" (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00190e2c" (* "*") (cast_expression "(code *)PTR_memcpy_00190e2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00190e2c"))) () ")")) (argument_list "(iVar5 + 0x24,param_2,uVar1 + 1)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) (, ",") (identifier "param_2") (, ",") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = (int *)param_1[10];" (assignment_expression "piVar4 = (int *)param_1[10]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")))) (; ";")) (if_statement "if ((int *)param_1[10] == (int *)0x0) {\n        param_1[10] = iVar5;\n      }\n      else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" (if "if") (parenthesized_expression "((int *)param_1[10] == (int *)0x0)" (( "(") (binary_expression "(int *)param_1[10] == (int *)0x0" (cast_expression "(int *)param_1[10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_1[10] = iVar5;\n      }" ({ "{") (expression_statement "param_1[10] = iVar5;" (assignment_expression "param_1[10] = iVar5" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" (else "else") (compound_statement "{\n        do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);\n        *piVar3 = iVar5;\n      }" ({ "{") (do_statement "do {\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n          piVar3 = piVar4;\n          piVar4 = (int *)*piVar3;\n        }" ({ "{") (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" (identifier "piVar3") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = (int *)*piVar3;" (assignment_expression "piVar4 = (int *)*piVar3" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*piVar3 = iVar5;" (assignment_expression "*piVar3 = iVar5" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar5")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar2 = 7;\n    }" (else "else") (compound_statement "{\n      iVar2 = 7;\n    }" ({ "{") (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" (identifier "iVar2") (= "=") (number_literal "7")) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_0015bf10:\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" (statement_identifier "LAB_0015bf10") (: ":") (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" ({ "{") (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" (( "(") (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" (* "*") (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" (* "*") (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" (( "(") (binary_expression "PTR_DAT_00190948 + -0xb14" (identifier "PTR_DAT_00190948") (+ "+") (number_literal "-0xb14")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (pointer_expression argument: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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)))))) (return_statement (identifier)))))

int MASKED(int *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  code *pcVar6;
  
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))();
  }
  if (param_2 == 0) {
    iVar2 = 0;
    param_1[4] = 1;
  }
  else {
    uVar1 = (*(code *)PTR_strlen_00190d80)(param_2);
    piVar4 = (int *)param_1[10];
    uVar1 = uVar1 & 0x3fffffff;
    if (piVar4 != (int *)0x0) {
      iVar5 = uVar1 + 1;
      pcVar6 = (code *)(PTR_LAB_00190ba8 + 0x27e4);
      do {
        if ((piVar4[1] != 0) && (iVar2 = (*pcVar6)(piVar4[1],param_2,iVar5), iVar2 == 0))
        goto LAB_0015bf10;
        piVar4 = (int *)*piVar4;
      } while (piVar4 != (int *)0x0);
    }
    iVar2 = (*(code *)PTR_sqlite3_initialize_00190b88)();
    if ((iVar2 == 0) &&
       (iVar5 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(0,uVar1 + 0x25), iVar5 != 0)) {
      (*(code *)PTR_memset_00190d58)(iVar5,0,0x24);
      *(int *)(iVar5 + 4) = iVar5 + 0x24;
      (*(code *)PTR_memcpy_00190e2c)(iVar5 + 0x24,param_2,uVar1 + 1);
      iVar2 = 0;
      piVar4 = (int *)param_1[10];
      if ((int *)param_1[10] == (int *)0x0) {
        param_1[10] = iVar5;
      }
      else {
        do {
          piVar3 = piVar4;
          piVar4 = (int *)*piVar3;
        } while (piVar4 != (int *)0x0);
        *piVar3 = iVar5;
      }
    }
    else {
      iVar2 = 7;
    }
  }
LAB_0015bf10:
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb14))();
  }
  return iVar2;
}

