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

int __regparm3 sessionInitTable(sqlite3_session *pSession,SessionTable *pTab)

{
  u8 uVar1;
  int iVar2;
  uint uVar3;
  u8 *puVar4;
  int in_GS_OFFSET;
  u8 *abPK;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (pTab->nCol == 0) {
    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,
                             &pTab->azCol,&abPK);
    pSession->rc = iVar2;
    if (iVar2 == 0) {
      if (0 < pTab->nCol) {
        uVar1 = *abPK;
        puVar4 = abPK;
        while (uVar1 == '\0') {
          puVar4 = puVar4 + 1;
          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;
          uVar1 = *puVar4;
        }
        pTab->abPK = abPK;
      }
LAB_000d377d:
      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);
      if (iVar2 == 0) {
        pTab->bStat1 = 1;
      }
      goto LAB_000d36f8;
    }
  }
  else {
LAB_000d36f8:
    if (pSession->rc == 0) {
      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);
      goto LAB_000d3709;
    }
  }
  uVar3 = 1;
LAB_000d3709:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool __regparm3 FUN_000d36d0(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  int in_GS_OFFSET;
  bool bVar4;
  char *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_2 + 8) == 0) {
    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);
    *(int *)(param_1 + 0x14) = iVar2;
    if (iVar2 == 0) {
      if (0 < *(int *)(param_2 + 8)) {
        cVar1 = *local_14;
        pcVar3 = local_14;
        while (cVar1 == '\0') {
          pcVar3 = pcVar3 + 1;
          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;
          cVar1 = *pcVar3;
        }
        *(char **)(param_2 + 0x14) = local_14;
      }
LAB_000d377d:
      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));
      if (iVar2 == 0) {
        *(undefined4 *)(param_2 + 0xc) = 1;
      }
      goto LAB_000d36f8;
    }
  }
  else {
LAB_000d36f8:
    if (*(int *)(param_1 + 0x14) == 0) {
      bVar4 = *(int *)(param_2 + 0x14) == 0;
      goto LAB_000d3709;
    }
  }
  bVar4 = true;
LAB_000d3709:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x757f8
SUB ESP,0x10
MOV ECX,dword ptr [EDX + 0x8]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
TEST ECX,ECX
JZ 0x000d3728
MOV EAX,dword ptr [EDI + 0x14]
TEST EAX,EAX
JNZ 0x000d374e
MOV EDX,dword ptr [ESI + 0x14]
XOR EAX,EAX
TEST EDX,EDX
SETZ AL
MOV EBX,dword ptr [ESP + 0xc]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x000d37b5
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[ESP + 0x8]
MOV ECX,dword ptr [EDX + 0x4]
MOV EDX,dword ptr [EDI + 0x4]
PUSH EAX
LEA EAX,[ESI + 0x10]
PUSH EAX
LEA EAX,[ESI + 0x8]
PUSH 0x0
PUSH EAX
MOV EAX,dword ptr [EDI]
CALL 0x000d3360
ADD ESP,0x10
MOV dword ptr [EDI + 0x14],EAX
TEST EAX,EAX
JZ 0x000d3758
MOV EAX,0x1
JMP 0x000d3709
MOV EDX,dword ptr [ESI + 0x8]
TEST EDX,EDX
JLE 0x000d377d
MOV ECX,dword ptr [ESP + 0x8]
ADD EDX,ECX
CMP byte ptr [ECX],0x0
LEA EAX,[ECX + 0x1]
JZ 0x000d3779
JMP 0x000d37b0
ADD EAX,0x1
CMP byte ptr [EAX + -0x1],0x0
JNZ 0x000d37b0
CMP EAX,EDX
JNZ 0x000d3770
SUB ESP,0x8
LEA EAX,[EBX + 0xfffaeb02]
PUSH dword ptr [ESI + 0x4]
PUSH EAX
CALL 0x00027b40
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000d36f8
MOV dword ptr [ESI + 0xc],0x1
JMP 0x000d36f8
MOV dword ptr [ESI + 0x14],ECX
JMP 0x000d377d
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000d36d0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}\n\n" comment (function_definition "bool __regparm3 FUN_000d36d0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000d36d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }" { (expression_statement "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);" (assignment_expression "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" identifier = (call_expression "FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" identifier (argument_list "(param_2 + 8,0,param_2 + 0x10,&local_14)" ( (binary_expression "param_2 + 8" identifier + number_literal) , number_literal , (binary_expression "param_2 + 0x10" identifier + number_literal) , (pointer_expression "&local_14" & identifier) )))) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" { (if_statement "if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" if (parenthesized_expression "(0 < *(int *)(param_2 + 8))" ( (binary_expression "0 < *(int *)(param_2 + 8)" number_literal < (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" { (expression_statement "cVar1 = *local_14;" (assignment_expression "cVar1 = *local_14" identifier = (pointer_expression "*local_14" * identifier)) ;) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" identifier = identifier) ;) (while_statement "while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" { (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;" if (parenthesized_expression "(pcVar3 == local_14 + *(int *)(param_2 + 8))" ( (binary_expression "pcVar3 == local_14 + *(int *)(param_2 + 8)" identifier == (binary_expression "local_14 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) )) (goto_statement "goto LAB_000d377d;" goto statement_identifier ;)) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "*(char **)(param_2 + 0x14) = local_14;" (assignment_expression "*(char **)(param_2 + 0x14) = local_14" (pointer_expression "*(char **)(param_2 + 0x14)" * (cast_expression "(char **)(param_2 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" statement_identifier : (expression_statement "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" (assignment_expression "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" identifier = (call_expression "FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" identifier (argument_list "("sqlite_stat1",*(undefined4 *)(param_2 + 4))" ( (string_literal ""sqlite_stat1"" " string_content ") , (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) )))) ;)) (if_statement "if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_000d36f8;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" else (compound_statement "{\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" { (labeled_statement "LAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" { (expression_statement "bVar4 = *(int *)(param_2 + 0x14) == 0;" (assignment_expression "bVar4 = *(int *)(param_2 + 0x14) == 0" identifier = (binary_expression "*(int *)(param_2 + 0x14) == 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) == number_literal)) ;) (goto_statement "goto LAB_000d3709;" goto statement_identifier ;) }))) }))) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (labeled_statement "LAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return bVar4;\n  }" { (return_statement "return bVar4;" return identifier ;) }))) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sessionInitTable(sqlite3_session *pSession,SessionTable *pTab)\n\n{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  u8 *puVar4;\n  int in_GS_OFFSET;\n  u8 *abPK;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pTab->nCol == 0) {\n    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);\n    pSession->rc = iVar2;\n    if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }\n  uVar3 = 1;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3 sessionInitTable(sqlite3_session *pSession,SessionTable *pTab)\n\n{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  u8 *puVar4;\n  int in_GS_OFFSET;\n  u8 *abPK;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pTab->nCol == 0) {\n    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);\n    pSession->rc = iVar2;\n    if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }\n  uVar3 = 1;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sessionInitTable(sqlite3_session *pSession,SessionTable *pTab)" identifier (parameter_list "(sqlite3_session *pSession,SessionTable *pTab)" ( (parameter_declaration "sqlite3_session *pSession" type_identifier (pointer_declarator "*pSession" * identifier)) , (parameter_declaration "SessionTable *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  u8 *puVar4;\n  int in_GS_OFFSET;\n  u8 *abPK;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pTab->nCol == 0) {\n    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);\n    pSession->rc = iVar2;\n    if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }\n  uVar3 = 1;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "u8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "u8 *abPK;" type_identifier (pointer_declarator "*abPK" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pTab->nCol == 0) {\n    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);\n    pSession->rc = iVar2;\n    if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }" if (parenthesized_expression "(pTab->nCol == 0)" ( (binary_expression "pTab->nCol == 0" (field_expression "pTab->nCol" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);\n    pSession->rc = iVar2;\n    if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }" { (expression_statement "iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK);" (assignment_expression "iVar2 = sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK)" identifier = (call_expression "sessionTableInfo(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK)" identifier (argument_list "(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,\n                             &pTab->azCol,&abPK)" ( (field_expression "pSession->db" identifier -> field_identifier) , (field_expression "pSession->zDb" identifier -> field_identifier) , (field_expression "pTab->zName" identifier -> field_identifier) , (pointer_expression "&pTab->nCol" & (field_expression "pTab->nCol" identifier -> field_identifier)) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (pointer_expression "&pTab->azCol" & (field_expression "pTab->azCol" identifier -> field_identifier)) , (pointer_expression "&abPK" & identifier) )))) ;) (expression_statement "pSession->rc = iVar2;" (assignment_expression "pSession->rc = iVar2" (field_expression "pSession->rc" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }\nLAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);\n      if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }\n      goto LAB_000d36f8;\n    }" { (if_statement "if (0 < pTab->nCol) {\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }" if (parenthesized_expression "(0 < pTab->nCol)" ( (binary_expression "0 < pTab->nCol" number_literal < (field_expression "pTab->nCol" identifier -> field_identifier)) )) (compound_statement "{\n        uVar1 = *abPK;\n        puVar4 = abPK;\n        while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }\n        pTab->abPK = abPK;\n      }" { (expression_statement "uVar1 = *abPK;" (assignment_expression "uVar1 = *abPK" identifier = (pointer_expression "*abPK" * identifier)) ;) (expression_statement "puVar4 = abPK;" (assignment_expression "puVar4 = abPK" identifier = identifier) ;) (while_statement "while (uVar1 == '\0') {\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }" while (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          puVar4 = puVar4 + 1;\n          if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;\n          uVar1 = *puVar4;\n        }" { (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (if_statement "if (puVar4 == abPK + pTab->nCol) goto LAB_000d377d;" if (parenthesized_expression "(puVar4 == abPK + pTab->nCol)" ( (binary_expression "puVar4 == abPK + pTab->nCol" identifier == (binary_expression "abPK + pTab->nCol" identifier + (field_expression "pTab->nCol" identifier -> field_identifier))) )) (goto_statement "goto LAB_000d377d;" goto statement_identifier ;)) (expression_statement "uVar1 = *puVar4;" (assignment_expression "uVar1 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) })) (expression_statement "pTab->abPK = abPK;" (assignment_expression "pTab->abPK = abPK" (field_expression "pTab->abPK" identifier -> field_identifier) = identifier) ;) })) (labeled_statement "LAB_000d377d:\n      iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);" statement_identifier : (expression_statement "iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName);" (assignment_expression "iVar2 = sqlite3_stricmp("sqlite_stat1",pTab->zName)" identifier = (call_expression "sqlite3_stricmp("sqlite_stat1",pTab->zName)" identifier (argument_list "("sqlite_stat1",pTab->zName)" ( (string_literal ""sqlite_stat1"" " string_content ") , (field_expression "pTab->zName" identifier -> field_identifier) )))) ;)) (if_statement "if (iVar2 == 0) {\n        pTab->bStat1 = 1;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        pTab->bStat1 = 1;\n      }" { (expression_statement "pTab->bStat1 = 1;" (assignment_expression "pTab->bStat1 = 1" (field_expression "pTab->bStat1" identifier -> field_identifier) = number_literal) ;) })) (goto_statement "goto LAB_000d36f8;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }" else (compound_statement "{\nLAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }\n  }" { (labeled_statement "LAB_000d36f8:\n    if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }" statement_identifier : (if_statement "if (pSession->rc == 0) {\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }" if (parenthesized_expression "(pSession->rc == 0)" ( (binary_expression "pSession->rc == 0" (field_expression "pSession->rc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      uVar3 = (uint)(pTab->abPK == (u8 *)0x0);\n      goto LAB_000d3709;\n    }" { (expression_statement "uVar3 = (uint)(pTab->abPK == (u8 *)0x0);" (assignment_expression "uVar3 = (uint)(pTab->abPK == (u8 *)0x0)" identifier = (call_expression "(uint)(pTab->abPK == (u8 *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pTab->abPK == (u8 *)0x0)" ( (binary_expression "pTab->abPK == (u8 *)0x0" (field_expression "pTab->abPK" identifier -> field_identifier) == (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) ;) (goto_statement "goto LAB_000d3709;" goto statement_identifier ;) }))) }))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool __regparm3 FUN_000d36d0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    \n  FUN_000f4bf0();\n}\n\n" (function_definition "bool __regparm3 FUN_000d36d0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000d36d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }" { (expression_statement "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);" (assignment_expression "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" identifier = (call_expression "FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" identifier (argument_list "(param_2 + 8,0,param_2 + 0x10,&local_14)" ( (binary_expression "param_2 + 8" identifier + number_literal) , number_literal , (binary_expression "param_2 + 0x10" identifier + number_literal) , (pointer_expression "&local_14" & identifier) )))) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" { (if_statement "if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" if (parenthesized_expression "(0 < *(int *)(param_2 + 8))" ( (binary_expression "0 < *(int *)(param_2 + 8)" number_literal < (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" { (expression_statement "cVar1 = *local_14;" (assignment_expression "cVar1 = *local_14" identifier = (pointer_expression "*local_14" * identifier)) ;) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" identifier = identifier) ;) (while_statement "while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" { (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;" if (parenthesized_expression "(pcVar3 == local_14 + *(int *)(param_2 + 8))" ( (binary_expression "pcVar3 == local_14 + *(int *)(param_2 + 8)" identifier == (binary_expression "local_14 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) )) (goto_statement "goto LAB_000d377d;" goto statement_identifier ;)) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "*(char **)(param_2 + 0x14) = local_14;" (assignment_expression "*(char **)(param_2 + 0x14) = local_14" (pointer_expression "*(char **)(param_2 + 0x14)" * (cast_expression "(char **)(param_2 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" statement_identifier : (expression_statement "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" (assignment_expression "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" identifier = (call_expression "FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" identifier (argument_list "("sqlite_stat1",*(undefined4 *)(param_2 + 4))" ( (string_literal ""sqlite_stat1"" " string_content ") , (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) )))) ;)) (if_statement "if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_000d36f8;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" else (compound_statement "{\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" { (labeled_statement "LAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" { (expression_statement "bVar4 = *(int *)(param_2 + 0x14) == 0;" (assignment_expression "bVar4 = *(int *)(param_2 + 0x14) == 0" identifier = (binary_expression "*(int *)(param_2 + 0x14) == 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) == number_literal)) ;) (goto_statement "goto LAB_000d3709;" goto statement_identifier ;) }))) }))) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (labeled_statement "LAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return bVar4;\n  }" { (return_statement "return bVar4;" return identifier ;) }))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ;) (goto_statement goto statement_identifier ;) }))) }))) (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool __regparm3 FUN_000d36d0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000d36d0(int param_1,int param_2)" (identifier "FUN_000d36d0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }\n  bVar4 = true;\nLAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "char *local_14;" (primitive_type "char") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }\n  else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);\n    *(int *)(param_1 + 0x14) = iVar2;\n    if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);" (assignment_expression "iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" (identifier "iVar2") (= "=") (call_expression "FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14)" (identifier "FUN_000d3360") (argument_list "(param_2 + 8,0,param_2 + 0x10,&local_14)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) (, ",") (number_literal "0") (, ",") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar2" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }\nLAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));\n      if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }\n      goto LAB_000d36f8;\n    }" ({ "{") (if_statement "if (0 < *(int *)(param_2 + 8)) {\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" (if "if") (parenthesized_expression "(0 < *(int *)(param_2 + 8))" (( "(") (binary_expression "0 < *(int *)(param_2 + 8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n        cVar1 = *local_14;\n        pcVar3 = local_14;\n        while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }\n        *(char **)(param_2 + 0x14) = local_14;\n      }" ({ "{") (expression_statement "cVar1 = *local_14;" (assignment_expression "cVar1 = *local_14" (identifier "cVar1") (= "=") (pointer_expression "*local_14" (* "*") (identifier "local_14"))) (; ";")) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" (identifier "pcVar3") (= "=") (identifier "local_14")) (; ";")) (while_statement "while (cVar1 == '\0') {\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" (while "while") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          pcVar3 = pcVar3 + 1;\n          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;\n          cVar1 = *pcVar3;\n        }" ({ "{") (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;" (if "if") (parenthesized_expression "(pcVar3 == local_14 + *(int *)(param_2 + 8))" (( "(") (binary_expression "pcVar3 == local_14 + *(int *)(param_2 + 8)" (identifier "pcVar3") (== "==") (binary_expression "local_14 + *(int *)(param_2 + 8)" (identifier "local_14") (+ "+") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))))) () ")")) (goto_statement "goto LAB_000d377d;" (goto "goto") (statement_identifier "LAB_000d377d") (; ";"))) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}"))) (expression_statement "*(char **)(param_2 + 0x14) = local_14;" (assignment_expression "*(char **)(param_2 + 0x14) = local_14" (pointer_expression "*(char **)(param_2 + 0x14)" (* "*") (cast_expression "(char **)(param_2 + 0x14)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "local_14")) (; ";")) (} "}"))) (labeled_statement "LAB_000d377d:\n      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" (statement_identifier "LAB_000d377d") (: ":") (expression_statement "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));" (assignment_expression "iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" (identifier "iVar2") (= "=") (call_expression "FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4))" (identifier "FUN_00027b40") (argument_list "("sqlite_stat1",*(undefined4 *)(param_2 + 4))" (( "(") (string_literal ""sqlite_stat1"" (" """) (string_content "sqlite_stat1") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";"))) (if_statement "if (iVar2 == 0) {\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(param_2 + 0xc) = 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (goto_statement "goto LAB_000d36f8;" (goto "goto") (statement_identifier "LAB_000d36f8") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" (else "else") (compound_statement "{\nLAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }\n  }" ({ "{") (labeled_statement "LAB_000d36f8:\n    if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" (statement_identifier "LAB_000d36f8") (: ":") (if_statement "if (*(int *)(param_1 + 0x14) == 0) {\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bVar4 = *(int *)(param_2 + 0x14) == 0;\n      goto LAB_000d3709;\n    }" ({ "{") (expression_statement "bVar4 = *(int *)(param_2 + 0x14) == 0;" (assignment_expression "bVar4 = *(int *)(param_2 + 0x14) == 0" (identifier "bVar4") (= "=") (binary_expression "*(int *)(param_2 + 0x14) == 0" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0"))) (; ";")) (goto_statement "goto LAB_000d3709;" (goto "goto") (statement_identifier "LAB_000d3709") (; ";")) (} "}")))) (} "}")))) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" (identifier "bVar4") (= "=") (true "true")) (; ";")) (labeled_statement "LAB_000d3709:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" (statement_identifier "LAB_000d3709") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar4;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return bVar4;\n  }" ({ "{") (return_statement "return bVar4;" (return "return") (identifier "bVar4") (; ";")) (} "}")))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *pSession,type_2 *pTab)

{
  type_3 var_4;
  int var_3;
  type_4 uVar3;
  type_3 *var_5;
  int var_1;
  type_3 *var_6;
  int var_8;
  
  var_8 = *(int *)(var_1 + 0x14);
  if (pTab->nCol == 0) {
    var_3 = var_2(pSession->db,pSession->zDb,pTab->zName,&pTab->nCol,(char **)0x0,
                             &pTab->azCol,&var_6);
    pSession->rc = var_3;
    if (var_3 == 0) {
      if (0 < pTab->nCol) {
        var_4 = *var_6;
        var_5 = var_6;
        while (var_4 == '\0') {
          var_5 = var_5 + 1;
          if (var_5 == var_6 + pTab->nCol) goto LAB_000d377d;
          var_4 = *var_5;
        }
        pTab->var_6 = var_6;
      }
LAB_000d377d:
      var_3 = var_7("sqlite_stat1",pTab->zName);
      if (var_3 == 0) {
        pTab->bStat1 = 1;
      }
      goto LAB_000d36f8;
    }
  }
  else {
LAB_000d36f8:
    if (pSession->rc == 0) {
      uVar3 = (type_4)(pTab->var_6 == (type_3 *)0x0);
      goto LAB_000d3709;
    }
  }
  uVar3 = 1;
LAB_000d3709:
  if (var_8 == *(int *)(var_1 + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (goto_statement label: (statement_identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

bool __regparm3 MASKED(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  int in_GS_OFFSET;
  bool bVar4;
  char *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_2 + 8) == 0) {
    iVar2 = FUN_000d3360(param_2 + 8,0,param_2 + 0x10,&local_14);
    *(int *)(param_1 + 0x14) = iVar2;
    if (iVar2 == 0) {
      if (0 < *(int *)(param_2 + 8)) {
        cVar1 = *local_14;
        pcVar3 = local_14;
        while (cVar1 == '\0') {
          pcVar3 = pcVar3 + 1;
          if (pcVar3 == local_14 + *(int *)(param_2 + 8)) goto LAB_000d377d;
          cVar1 = *pcVar3;
        }
        *(char **)(param_2 + 0x14) = local_14;
      }
LAB_000d377d:
      iVar2 = FUN_00027b40("sqlite_stat1",*(undefined4 *)(param_2 + 4));
      if (iVar2 == 0) {
        *(undefined4 *)(param_2 + 0xc) = 1;
      }
      goto LAB_000d36f8;
    }
  }
  else {
LAB_000d36f8:
    if (*(int *)(param_1 + 0x14) == 0) {
      bVar4 = *(int *)(param_2 + 0x14) == 0;
      goto LAB_000d3709;
    }
  }
  bVar4 = true;
LAB_000d3709:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}

