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

void fts3TokenizerFunc(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  Fts3Hash *pH;
  uchar *pKey;
  int iVar1;
  Fts3HashElem *pFVar2;
  sqlite3 *db;
  int iVar3;
  undefined4 *puVar4;
  void *pvVar5;
  char *z;
  int in_GS_OFFSET;
  void *pPtr;
  int isEnabled;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x76cd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pPtr = (void *)0x0;
  pH = (Fts3Hash *)sqlite3_user_data(context);
  pKey = sqlite3_value_text(*argv);
  iVar1 = sqlite3_value_bytes(*argv);
  if (argc == 2) {
    db = sqlite3_context_db_handle(context);
    isEnabled = 0;
    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);
    if (isEnabled == 0) {
      sqlite3_result_error(context,"fts3tokenize disabled",-1);
      goto LAB_00076d5f;
    }
    iVar3 = sqlite3_value_bytes(argv[1]);
    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {
      sqlite3_result_error(context,"argument type mismatch",-1);
      goto LAB_00076d5f;
    }
    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);
    pPtr = (void *)*puVar4;
    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);
    if (pPtr == pvVar5) {
      sqlite3_result_error(context,"out of memory",-1);
    }
LAB_00076d4d:
    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);
  }
  else {
    if (pKey == (uchar *)0x0) {
LAB_00076d45:
      if (pPtr != (void *)0x0) goto LAB_00076d4d;
    }
    else {
      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);
      if (pFVar2 != (Fts3HashElem *)0x0) {
        pPtr = pFVar2->data;
        goto LAB_00076d45;
      }
      pPtr = (void *)0x0;
    }
    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);
    sqlite3_result_error(context,z,-1);
    sqlite3_free(z);
  }
LAB_00076d5f:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x76cd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28 = 0;
  FUN_0001bab0(param_1);
  iVar1 = FUN_0004ce60(*param_3);
  FUN_0004ccb0(*param_3);
  if (param_2 == 2) {
    uVar4 = FUN_0001bac0(param_1);
    local_24 = 0;
    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);
    if (local_24 == 0) {
      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);
      goto LAB_00076d5f;
    }
    iVar2 = FUN_0004ccb0(param_3[1]);
    if ((iVar1 == 0) || (iVar2 != 4)) {
      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);
      goto LAB_00076d5f;
    }
    piVar3 = (int *)FUN_0004ceb0(param_3[1]);
    local_28 = *piVar3;
    iVar1 = FUN_00041ba0(local_28);
    if (local_28 == iVar1) {
      FUN_000457b0(param_1,"out of memory",0xffffffff);
    }
LAB_00076d4d:
    FUN_000463b0(param_1,&local_28,4,0xffffffff);
  }
  else {
    if (iVar1 == 0) {
LAB_00076d45:
      if (local_28 != 0) goto LAB_00076d4d;
    }
    else {
      iVar2 = FUN_00031530();
      if (iVar2 != 0) {
        local_28 = *(int *)(iVar2 + 8);
        goto LAB_00076d45;
      }
      local_28 = 0;
    }
    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);
    FUN_000457b0(param_1,uVar4,0xffffffff);
    FUN_00024cc0(uVar4);
  }
LAB_00076d5f:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xd21fb
SUB ESP,0x38
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x4c]
MOV ESI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x20],0x0
PUSH EDI
CALL 0x0001bab0
MOV dword ptr [ESP + 0x18],EAX
POP EDX
PUSH dword ptr [ESI]
CALL 0x0004ce60
POP ECX
PUSH dword ptr [ESI]
MOV EBP,EAX
CALL 0x0004ccb0
ADD ESP,0x10
CMP dword ptr [ESP + 0x44],0x2
LEA ECX,[EAX + 0x1]
JZ 0x00076d90
TEST EBP,EBP
JZ 0x00076d80
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,EBP
CALL 0x00031530
TEST EAX,EAX
JZ 0x00076e58
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x14],EAX
TEST EAX,EAX
JZ 0x00076e60
PUSH -0x1
PUSH 0x4
LEA EAX,[ESP + 0x1c]
PUSH EAX
PUSH EDI
CALL 0x000463b0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00076eaa
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x14]
JMP 0x00076d45
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EDI
CALL 0x0001bac0
LEA EDX,[ESP + 0x28]
MOV dword ptr [ESP + 0x28],0x0
PUSH EDX
PUSH -0x1
PUSH 0x3ec
PUSH EAX
CALL 0x00022500
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x00076e38
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x0004ccb0
ADD ESP,0x10
TEST EBP,EBP
JZ 0x00076e90
CMP EAX,0x4
MOV ECX,dword ptr [ESP + 0xc]
JNZ 0x00076e90
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x0004ceb0
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,EBP
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x24],EAX
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x00041ba0
ADD ESP,0x10
CMP dword ptr [ESP + 0x14],EAX
JNZ 0x00076d4d
SUB ESP,0x4
LEA EAX,[EBX + 0xfffac139]
PUSH -0x1
PUSH EAX
PUSH EDI
CALL 0x000457b0
ADD ESP,0x10
JMP 0x00076d4d
SUB ESP,0x4
LEA EAX,[EBX + 0xfffae56b]
PUSH -0x1
PUSH EAX
PUSH EDI
CALL 0x000457b0
ADD ESP,0x10
JMP 0x00076d5f
MOV dword ptr [ESP + 0x14],0x0
SUB ESP,0x8
LEA EAX,[EBX + 0xfffae52c]
PUSH EBP
PUSH EAX
CALL 0x00071090
ADD ESP,0xc
PUSH -0x1
MOV ESI,EAX
PUSH EAX
PUSH EDI
CALL 0x000457b0
MOV dword ptr [ESP],ESI
CALL 0x00024cc0
ADD ESP,0x10
JMP 0x00076d5f
SUB ESP,0x4
LEA EAX,[EBX + 0xfffae554]
PUSH -0x1
PUSH EAX
PUSH EDI
CALL 0x000457b0
ADD ESP,0x10
JMP 0x00076d5f
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x76cd9;" (assignment_expression "uStack_14 = 0x76cd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "FUN_0001bab0(param_1);" (call_expression "FUN_0001bab0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_0004ce60(*param_3);" (assignment_expression "iVar1 = FUN_0004ce60(*param_3)" identifier = (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "FUN_0004ccb0(*param_3);" (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (if_statement "if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }" { (expression_statement "uVar4 = FUN_0001bac0(param_1);" (assignment_expression "uVar4 = FUN_0001bac0(param_1)" identifier = (call_expression "FUN_0001bac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);" (call_expression "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24)" identifier (argument_list "(uVar4,0x3ec,0xffffffff,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" { (expression_statement "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);" (call_expression "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff)" identifier (argument_list "(param_1,"fts3tokenize disabled",0xffffffff)" ( identifier , (string_literal ""fts3tokenize disabled"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "iVar2 = FUN_0004ccb0(param_3[1]);" (assignment_expression "iVar2 = FUN_0004ccb0(param_3[1])" identifier = (call_expression "FUN_0004ccb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 != 4))" ( (binary_expression "(iVar1 == 0) || (iVar2 != 4)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 != 4)" ( (binary_expression "iVar2 != 4" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" { (expression_statement "FUN_000457b0(param_1,"argument type mismatch",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument type mismatch",0xffffffff)" identifier (argument_list "(param_1,"argument type mismatch",0xffffffff)" ( identifier , (string_literal ""argument type mismatch"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)FUN_0004ceb0(param_3[1]);" (assignment_expression "piVar3 = (int *)FUN_0004ceb0(param_3[1])" identifier = (cast_expression "(int *)FUN_0004ceb0(param_3[1])" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "local_28 = *piVar3;" (assignment_expression "local_28 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar1 = FUN_00041ba0(local_28);" (assignment_expression "iVar1 = FUN_00041ba0(local_28)" identifier = (call_expression "FUN_00041ba0(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;) (if_statement "if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" if (parenthesized_expression "(local_28 == iVar1)" ( (binary_expression "local_28 == iVar1" identifier == identifier) )) (compound_statement "{\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" { (expression_statement "FUN_000457b0(param_1,"out of memory",0xffffffff);" (call_expression "FUN_000457b0(param_1,"out of memory",0xffffffff)" identifier (argument_list "(param_1,"out of memory",0xffffffff)" ( identifier , (string_literal ""out of memory"" " string_content ") , number_literal ))) ;) })) (labeled_statement "LAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);" statement_identifier : (expression_statement "FUN_000463b0(param_1,&local_28,4,0xffffffff);" (call_expression "FUN_000463b0(param_1,&local_28,4,0xffffffff)" identifier (argument_list "(param_1,&local_28,4,0xffffffff)" ( identifier , (pointer_expression "&local_28" & identifier) , number_literal , number_literal ))) ;)) }) (else_clause "else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" else (compound_statement "{\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" { (if_statement "if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }" { (labeled_statement "LAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;" statement_identifier : (if_statement "if (local_28 != 0) goto LAB_00076d4d;" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00076d4d;" goto statement_identifier ;))) }) (else_clause "else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" else (compound_statement "{\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" { (expression_statement "iVar2 = FUN_00031530();" (assignment_expression "iVar2 = FUN_00031530()" identifier = (call_expression "FUN_00031530()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" { (expression_statement "local_28 = *(int *)(iVar2 + 8);" (assignment_expression "local_28 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00076d45;" goto statement_identifier ;) })) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);" (assignment_expression "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1)" identifier = (call_expression "FUN_00071090("unknown tokenizer: %s",iVar1)" identifier (argument_list "("unknown tokenizer: %s",iVar1)" ( (string_literal ""unknown tokenizer: %s"" " string_content ") , identifier )))) ;) (expression_statement "FUN_000457b0(param_1,uVar4,0xffffffff);" (call_expression "FUN_000457b0(param_1,uVar4,0xffffffff)" identifier (argument_list "(param_1,uVar4,0xffffffff)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00024cc0(uVar4);" (call_expression "FUN_00024cc0(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }))) (labeled_statement "LAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" { comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid fts3TokenizerFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  Fts3Hash *pH;\n  uchar *pKey;\n  int iVar1;\n  Fts3HashElem *pFVar2;\n  sqlite3 *db;\n  int iVar3;\n  undefined4 *puVar4;\n  void *pvVar5;\n  char *z;\n  int in_GS_OFFSET;\n  void *pPtr;\n  int isEnabled;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pPtr = (void *)0x0;\n  pH = (Fts3Hash *)sqlite3_user_data(context);\n  pKey = sqlite3_value_text(*argv);\n  iVar1 = sqlite3_value_bytes(*argv);\n  if (argc == 2) {\n    db = sqlite3_context_db_handle(context);\n    isEnabled = 0;\n    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);\n    if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }\n    iVar3 = sqlite3_value_bytes(argv[1]);\n    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }\n    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);\n    pPtr = (void *)*puVar4;\n    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);\n    if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }\nLAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);\n  }\n  else {\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void fts3TokenizerFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  Fts3Hash *pH;\n  uchar *pKey;\n  int iVar1;\n  Fts3HashElem *pFVar2;\n  sqlite3 *db;\n  int iVar3;\n  undefined4 *puVar4;\n  void *pvVar5;\n  char *z;\n  int in_GS_OFFSET;\n  void *pPtr;\n  int isEnabled;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pPtr = (void *)0x0;\n  pH = (Fts3Hash *)sqlite3_user_data(context);\n  pKey = sqlite3_value_text(*argv);\n  iVar1 = sqlite3_value_bytes(*argv);\n  if (argc == 2) {\n    db = sqlite3_context_db_handle(context);\n    isEnabled = 0;\n    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);\n    if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }\n    iVar3 = sqlite3_value_bytes(argv[1]);\n    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }\n    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);\n    pPtr = (void *)*puVar4;\n    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);\n    if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }\nLAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);\n  }\n  else {\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "fts3TokenizerFunc(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  Fts3Hash *pH;\n  uchar *pKey;\n  int iVar1;\n  Fts3HashElem *pFVar2;\n  sqlite3 *db;\n  int iVar3;\n  undefined4 *puVar4;\n  void *pvVar5;\n  char *z;\n  int in_GS_OFFSET;\n  void *pPtr;\n  int isEnabled;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pPtr = (void *)0x0;\n  pH = (Fts3Hash *)sqlite3_user_data(context);\n  pKey = sqlite3_value_text(*argv);\n  iVar1 = sqlite3_value_bytes(*argv);\n  if (argc == 2) {\n    db = sqlite3_context_db_handle(context);\n    isEnabled = 0;\n    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);\n    if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }\n    iVar3 = sqlite3_value_bytes(argv[1]);\n    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }\n    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);\n    pPtr = (void *)*puVar4;\n    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);\n    if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }\nLAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);\n  }\n  else {\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "Fts3Hash *pH;" type_identifier (pointer_declarator "*pH" * identifier) ;) (declaration "uchar *pKey;" type_identifier (pointer_declarator "*pKey" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts3HashElem *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "void *pPtr;" primitive_type (pointer_declarator "*pPtr" * identifier) ;) (declaration "int isEnabled;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x76cd9;" (assignment_expression "uStack_14 = 0x76cd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pPtr = (void *)0x0;" (assignment_expression "pPtr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pH = (Fts3Hash *)sqlite3_user_data(context);" (assignment_expression "pH = (Fts3Hash *)sqlite3_user_data(context)" identifier = (cast_expression "(Fts3Hash *)sqlite3_user_data(context)" ( (type_descriptor "Fts3Hash *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_user_data(context)" identifier (argument_list "(context)" ( identifier ))))) ;) (expression_statement "pKey = sqlite3_value_text(*argv);" (assignment_expression "pKey = sqlite3_value_text(*argv)" identifier = (call_expression "sqlite3_value_text(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "iVar1 = sqlite3_value_bytes(*argv);" (assignment_expression "iVar1 = sqlite3_value_bytes(*argv)" identifier = (call_expression "sqlite3_value_bytes(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (if_statement "if (argc == 2) {\n    db = sqlite3_context_db_handle(context);\n    isEnabled = 0;\n    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);\n    if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }\n    iVar3 = sqlite3_value_bytes(argv[1]);\n    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }\n    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);\n    pPtr = (void *)*puVar4;\n    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);\n    if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }\nLAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);\n  }\n  else {\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }" if (parenthesized_expression "(argc == 2)" ( (binary_expression "argc == 2" identifier == number_literal) )) (compound_statement "{\n    db = sqlite3_context_db_handle(context);\n    isEnabled = 0;\n    sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);\n    if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }\n    iVar3 = sqlite3_value_bytes(argv[1]);\n    if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }\n    puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);\n    pPtr = (void *)*puVar4;\n    pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);\n    if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }\nLAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);\n  }" { (expression_statement "db = sqlite3_context_db_handle(context);" (assignment_expression "db = sqlite3_context_db_handle(context)" identifier = (call_expression "sqlite3_context_db_handle(context)" identifier (argument_list "(context)" ( identifier )))) ;) (expression_statement "isEnabled = 0;" (assignment_expression "isEnabled = 0" identifier = number_literal) ;) (expression_statement "sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled);" (call_expression "sqlite3_db_config(db,0x3ec,0xffffffff,&isEnabled)" identifier (argument_list "(db,0x3ec,0xffffffff,&isEnabled)" ( identifier , number_literal , number_literal , (pointer_expression "&isEnabled" & identifier) ))) ;) (if_statement "if (isEnabled == 0) {\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "(isEnabled == 0)" ( (binary_expression "isEnabled == 0" identifier == number_literal) )) (compound_statement "{\n      sqlite3_result_error(context,"fts3tokenize disabled",-1);\n      goto LAB_00076d5f;\n    }" { (expression_statement "sqlite3_result_error(context,"fts3tokenize disabled",-1);" (call_expression "sqlite3_result_error(context,"fts3tokenize disabled",-1)" identifier (argument_list "(context,"fts3tokenize disabled",-1)" ( identifier , (string_literal ""fts3tokenize disabled"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "iVar3 = sqlite3_value_bytes(argv[1]);" (assignment_expression "iVar3 = sqlite3_value_bytes(argv[1])" identifier = (call_expression "sqlite3_value_bytes(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((pKey == (uchar *)0x0) || (iVar3 != 4)) {\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "((pKey == (uchar *)0x0) || (iVar3 != 4))" ( (binary_expression "(pKey == (uchar *)0x0) || (iVar3 != 4)" (parenthesized_expression "(pKey == (uchar *)0x0)" ( (binary_expression "pKey == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar3 != 4)" ( (binary_expression "iVar3 != 4" identifier != number_literal) ))) )) (compound_statement "{\n      sqlite3_result_error(context,"argument type mismatch",-1);\n      goto LAB_00076d5f;\n    }" { (expression_statement "sqlite3_result_error(context,"argument type mismatch",-1);" (call_expression "sqlite3_result_error(context,"argument type mismatch",-1)" identifier (argument_list "(context,"argument type mismatch",-1)" ( identifier , (string_literal ""argument type mismatch"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "puVar4 = (undefined4 *)sqlite3_value_blob(argv[1]);" (assignment_expression "puVar4 = (undefined4 *)sqlite3_value_blob(argv[1])" identifier = (cast_expression "(undefined4 *)sqlite3_value_blob(argv[1])" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "pPtr = (void *)*puVar4;" (assignment_expression "pPtr = (void *)*puVar4" identifier = (cast_expression "(void *)*puVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr);" (assignment_expression "pvVar5 = sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr)" identifier = (call_expression "sqlite3Fts3HashInsert(pH,pKey,iVar1 + 1,pPtr)" identifier (argument_list "(pH,pKey,iVar1 + 1,pPtr)" ( identifier , identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , identifier )))) ;) (if_statement "if (pPtr == pvVar5) {\n      sqlite3_result_error(context,"out of memory",-1);\n    }" if (parenthesized_expression "(pPtr == pvVar5)" ( (binary_expression "pPtr == pvVar5" identifier == identifier) )) (compound_statement "{\n      sqlite3_result_error(context,"out of memory",-1);\n    }" { (expression_statement "sqlite3_result_error(context,"out of memory",-1);" (call_expression "sqlite3_result_error(context,"out of memory",-1)" identifier (argument_list "(context,"out of memory",-1)" ( identifier , (string_literal ""out of memory"" " string_content ") , number_literal ))) ;) })) (labeled_statement "LAB_00076d4d:\n    sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);" statement_identifier : (expression_statement "sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "sqlite3_result_blob(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(context,&pPtr,4,(_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , (pointer_expression "&pPtr" & identifier) , number_literal , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;)) }) (else_clause "else {\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }" else (compound_statement "{\n    if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }\n    z = sqlite3_mprintf("unknown tokenizer: %s",pKey);\n    sqlite3_result_error(context,z,-1);\n    sqlite3_free(z);\n  }" { (if_statement "if (pKey == (uchar *)0x0) {\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }\n    else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }" if (parenthesized_expression "(pKey == (uchar *)0x0)" ( (binary_expression "pKey == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;\n    }" { (labeled_statement "LAB_00076d45:\n      if (pPtr != (void *)0x0) goto LAB_00076d4d;" statement_identifier : (if_statement "if (pPtr != (void *)0x0) goto LAB_00076d4d;" if (parenthesized_expression "(pPtr != (void *)0x0)" ( (binary_expression "pPtr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00076d4d;" goto statement_identifier ;))) }) (else_clause "else {\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }" else (compound_statement "{\n      pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);\n      if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }\n      pPtr = (void *)0x0;\n    }" { (expression_statement "pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1);" (assignment_expression "pFVar2 = sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1)" identifier = (call_expression "sqlite3Fts3HashFindElem(pH,pKey,iVar1 + 1)" identifier (argument_list "(pH,pKey,iVar1 + 1)" ( identifier , identifier , (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (if_statement "if (pFVar2 != (Fts3HashElem *)0x0) {\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }" if (parenthesized_expression "(pFVar2 != (Fts3HashElem *)0x0)" ( (binary_expression "pFVar2 != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pPtr = pFVar2->data;\n        goto LAB_00076d45;\n      }" { (expression_statement "pPtr = pFVar2->data;" (assignment_expression "pPtr = pFVar2->data" identifier = (field_expression "pFVar2->data" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00076d45;" goto statement_identifier ;) })) (expression_statement "pPtr = (void *)0x0;" (assignment_expression "pPtr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "z = sqlite3_mprintf("unknown tokenizer: %s",pKey);" (assignment_expression "z = sqlite3_mprintf("unknown tokenizer: %s",pKey)" identifier = (call_expression "sqlite3_mprintf("unknown tokenizer: %s",pKey)" identifier (argument_list "("unknown tokenizer: %s",pKey)" ( (string_literal ""unknown tokenizer: %s"" " string_content ") , identifier )))) ;) (expression_statement "sqlite3_result_error(context,z,-1);" (call_expression "sqlite3_result_error(context,z,-1)" identifier (argument_list "(context,z,-1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "sqlite3_free(z);" (call_expression "sqlite3_free(z)" identifier (argument_list "(z)" ( identifier ))) ;) }))) (labeled_statement "LAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x76cd9;" (assignment_expression "uStack_14 = 0x76cd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "FUN_0001bab0(param_1);" (call_expression "FUN_0001bab0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_0004ce60(*param_3);" (assignment_expression "iVar1 = FUN_0004ce60(*param_3)" identifier = (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "FUN_0004ccb0(*param_3);" (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (if_statement "if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }" { (expression_statement "uVar4 = FUN_0001bac0(param_1);" (assignment_expression "uVar4 = FUN_0001bac0(param_1)" identifier = (call_expression "FUN_0001bac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);" (call_expression "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24)" identifier (argument_list "(uVar4,0x3ec,0xffffffff,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" { (expression_statement "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);" (call_expression "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff)" identifier (argument_list "(param_1,"fts3tokenize disabled",0xffffffff)" ( identifier , (string_literal ""fts3tokenize disabled"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "iVar2 = FUN_0004ccb0(param_3[1]);" (assignment_expression "iVar2 = FUN_0004ccb0(param_3[1])" identifier = (call_expression "FUN_0004ccb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 != 4))" ( (binary_expression "(iVar1 == 0) || (iVar2 != 4)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 != 4)" ( (binary_expression "iVar2 != 4" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" { (expression_statement "FUN_000457b0(param_1,"argument type mismatch",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument type mismatch",0xffffffff)" identifier (argument_list "(param_1,"argument type mismatch",0xffffffff)" ( identifier , (string_literal ""argument type mismatch"" " string_content ") , number_literal ))) ;) (goto_statement "goto LAB_00076d5f;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)FUN_0004ceb0(param_3[1]);" (assignment_expression "piVar3 = (int *)FUN_0004ceb0(param_3[1])" identifier = (cast_expression "(int *)FUN_0004ceb0(param_3[1])" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "local_28 = *piVar3;" (assignment_expression "local_28 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar1 = FUN_00041ba0(local_28);" (assignment_expression "iVar1 = FUN_00041ba0(local_28)" identifier = (call_expression "FUN_00041ba0(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;) (if_statement "if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" if (parenthesized_expression "(local_28 == iVar1)" ( (binary_expression "local_28 == iVar1" identifier == identifier) )) (compound_statement "{\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" { (expression_statement "FUN_000457b0(param_1,"out of memory",0xffffffff);" (call_expression "FUN_000457b0(param_1,"out of memory",0xffffffff)" identifier (argument_list "(param_1,"out of memory",0xffffffff)" ( identifier , (string_literal ""out of memory"" " string_content ") , number_literal ))) ;) })) (labeled_statement "LAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);" statement_identifier : (expression_statement "FUN_000463b0(param_1,&local_28,4,0xffffffff);" (call_expression "FUN_000463b0(param_1,&local_28,4,0xffffffff)" identifier (argument_list "(param_1,&local_28,4,0xffffffff)" ( identifier , (pointer_expression "&local_28" & identifier) , number_literal , number_literal ))) ;)) }) (else_clause "else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" else (compound_statement "{\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" { (if_statement "if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }" { (labeled_statement "LAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;" statement_identifier : (if_statement "if (local_28 != 0) goto LAB_00076d4d;" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00076d4d;" goto statement_identifier ;))) }) (else_clause "else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" else (compound_statement "{\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" { (expression_statement "iVar2 = FUN_00031530();" (assignment_expression "iVar2 = FUN_00031530()" identifier = (call_expression "FUN_00031530()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" { (expression_statement "local_28 = *(int *)(iVar2 + 8);" (assignment_expression "local_28 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00076d45;" goto statement_identifier ;) })) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);" (assignment_expression "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1)" identifier = (call_expression "FUN_00071090("unknown tokenizer: %s",iVar1)" identifier (argument_list "("unknown tokenizer: %s",iVar1)" ( (string_literal ""unknown tokenizer: %s"" " string_content ") , identifier )))) ;) (expression_statement "FUN_000457b0(param_1,uVar4,0xffffffff);" (call_expression "FUN_000457b0(param_1,uVar4,0xffffffff)" identifier (argument_list "(param_1,uVar4,0xffffffff)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00024cc0(uVar4);" (call_expression "FUN_00024cc0(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }))) (labeled_statement "LAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" { (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression 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 = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00076cd0(undefined4 param_1,int param_2,undefined4 *param_3)" (identifier "FUN_00076cd0") (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x76cd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  FUN_0001bab0(param_1);\n  iVar1 = FUN_0004ce60(*param_3);\n  FUN_0004ccb0(*param_3);\n  if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }\nLAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x76cd9;" (assignment_expression "uStack_14 = 0x76cd9" (identifier "uStack_14") (= "=") (number_literal "0x76cd9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0001bab0(param_1);" (call_expression "FUN_0001bab0(param_1)" (identifier "FUN_0001bab0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_0004ce60(*param_3);" (assignment_expression "iVar1 = FUN_0004ce60(*param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0004ce60(*param_3)" (identifier "FUN_0004ce60") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "FUN_0004ccb0(*param_3);" (call_expression "FUN_0004ccb0(*param_3)" (identifier "FUN_0004ccb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))) (; ";")) (if_statement "if (param_2 == 2) {\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }\n  else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar4 = FUN_0001bac0(param_1);\n    local_24 = 0;\n    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);\n    if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    iVar2 = FUN_0004ccb0(param_3[1]);\n    if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }\n    piVar3 = (int *)FUN_0004ceb0(param_3[1]);\n    local_28 = *piVar3;\n    iVar1 = FUN_00041ba0(local_28);\n    if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }\nLAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);\n  }" ({ "{") (expression_statement "uVar4 = FUN_0001bac0(param_1);" (assignment_expression "uVar4 = FUN_0001bac0(param_1)" (identifier "uVar4") (= "=") (call_expression "FUN_0001bac0(param_1)" (identifier "FUN_0001bac0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);" (call_expression "FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24)" (identifier "FUN_00022500") (argument_list "(uVar4,0x3ec,0xffffffff,&local_24)" (( "(") (identifier "uVar4") (, ",") (number_literal "0x3ec") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (if_statement "if (local_24 == 0) {\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" (if "if") (parenthesized_expression "(local_24 == 0)" (( "(") (binary_expression "local_24 == 0" (identifier "local_24") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);\n      goto LAB_00076d5f;\n    }" ({ "{") (expression_statement "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);" (call_expression "FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"fts3tokenize disabled",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""fts3tokenize disabled"" (" """) (string_content "fts3tokenize disabled") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (goto_statement "goto LAB_00076d5f;" (goto "goto") (statement_identifier "LAB_00076d5f") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0004ccb0(param_3[1]);" (assignment_expression "iVar2 = FUN_0004ccb0(param_3[1])" (identifier "iVar2") (= "=") (call_expression "FUN_0004ccb0(param_3[1])" (identifier "FUN_0004ccb0") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) || (iVar2 != 4)) {\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar2 != 4))" (( "(") (binary_expression "(iVar1 == 0) || (iVar2 != 4)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 != 4)" (( "(") (binary_expression "iVar2 != 4" (identifier "iVar2") (!= "!=") (number_literal "4")) () ")"))) () ")")) (compound_statement "{\n      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);\n      goto LAB_00076d5f;\n    }" ({ "{") (expression_statement "FUN_000457b0(param_1,"argument type mismatch",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument type mismatch",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"argument type mismatch",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""argument type mismatch"" (" """) (string_content "argument type mismatch") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (goto_statement "goto LAB_00076d5f;" (goto "goto") (statement_identifier "LAB_00076d5f") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)FUN_0004ceb0(param_3[1]);" (assignment_expression "piVar3 = (int *)FUN_0004ceb0(param_3[1])" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0004ceb0(param_3[1])" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(param_3[1])" (identifier "FUN_0004ceb0") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "local_28 = *piVar3;" (assignment_expression "local_28 = *piVar3" (identifier "local_28") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iVar1 = FUN_00041ba0(local_28);" (assignment_expression "iVar1 = FUN_00041ba0(local_28)" (identifier "iVar1") (= "=") (call_expression "FUN_00041ba0(local_28)" (identifier "FUN_00041ba0") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (local_28 == iVar1) {\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" (if "if") (parenthesized_expression "(local_28 == iVar1)" (( "(") (binary_expression "local_28 == iVar1" (identifier "local_28") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      FUN_000457b0(param_1,"out of memory",0xffffffff);\n    }" ({ "{") (expression_statement "FUN_000457b0(param_1,"out of memory",0xffffffff);" (call_expression "FUN_000457b0(param_1,"out of memory",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"out of memory",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""out of memory"" (" """) (string_content "out of memory") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00076d4d:\n    FUN_000463b0(param_1,&local_28,4,0xffffffff);" (statement_identifier "LAB_00076d4d") (: ":") (expression_statement "FUN_000463b0(param_1,&local_28,4,0xffffffff);" (call_expression "FUN_000463b0(param_1,&local_28,4,0xffffffff)" (identifier "FUN_000463b0") (argument_list "(param_1,&local_28,4,0xffffffff)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (number_literal "4") (, ",") (number_literal "0xffffffff") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" (else "else") (compound_statement "{\n    if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }\n    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);\n    FUN_000457b0(param_1,uVar4,0xffffffff);\n    FUN_00024cc0(uVar4);\n  }" ({ "{") (if_statement "if (iVar1 == 0) {\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }\n    else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;\n    }" ({ "{") (labeled_statement "LAB_00076d45:\n      if (local_28 != 0) goto LAB_00076d4d;" (statement_identifier "LAB_00076d45") (: ":") (if_statement "if (local_28 != 0) goto LAB_00076d4d;" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00076d4d;" (goto "goto") (statement_identifier "LAB_00076d4d") (; ";")))) (} "}")) (else_clause "else {\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_00031530();\n      if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }\n      local_28 = 0;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00031530();" (assignment_expression "iVar2 = FUN_00031530()" (identifier "iVar2") (= "=") (call_expression "FUN_00031530()" (identifier "FUN_00031530") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        local_28 = *(int *)(iVar2 + 8);\n        goto LAB_00076d45;\n      }" ({ "{") (expression_statement "local_28 = *(int *)(iVar2 + 8);" (assignment_expression "local_28 = *(int *)(iVar2 + 8)" (identifier "local_28") (= "=") (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (goto_statement "goto LAB_00076d45;" (goto "goto") (statement_identifier "LAB_00076d45") (; ";")) (} "}"))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);" (assignment_expression "uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1)" (identifier "uVar4") (= "=") (call_expression "FUN_00071090("unknown tokenizer: %s",iVar1)" (identifier "FUN_00071090") (argument_list "("unknown tokenizer: %s",iVar1)" (( "(") (string_literal ""unknown tokenizer: %s"" (" """) (string_content "unknown tokenizer: %s") (" """)) (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "FUN_000457b0(param_1,uVar4,0xffffffff);" (call_expression "FUN_000457b0(param_1,uVar4,0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,uVar4,0xffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "FUN_00024cc0(uVar4);" (call_expression "FUN_00024cc0(uVar4)" (identifier "FUN_00024cc0") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_00076d5f:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" (statement_identifier "LAB_00076d5f") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" ({ "{") (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *context,int var_5,type_2 **argv)

{
  type_3 *pH;
  type_4 *var_10;
  int var_14;
  type_5 *var_19;
  type_6 *db;
  int var_11;
  type_7 *puVar4;
  void *var_16;
  char *z;
  int var_1;
  void *var_15;
  int var_8;
  int var_22;
  type_7 uStack_14;
  
  uStack_14 = 0x76cd9;
  var_22 = *(int *)(var_1 + 0x14);
  var_15 = (void *)0x0;
  pH = (type_3 *)var_2(context);
  var_10 = var_3(*argv);
  var_14 = var_4(*argv);
  if (var_5 == 2) {
    db = var_6(context);
    var_8 = 0;
    var_7(db,0x3ec,0xffffffff,&var_8);
    if (var_8 == 0) {
      var_9(context,"fts3tokenize disabled",-1);
      goto LAB_00076d5f;
    }
    var_11 = var_4(argv[1]);
    if ((var_10 == (type_4 *)0x0) || (var_11 != 4)) {
      var_9(context,"argument type mismatch",-1);
      goto LAB_00076d5f;
    }
    puVar4 = (type_7 *)var_12(argv[1]);
    var_15 = (void *)*puVar4;
    var_16 = var_13(pH,var_10,var_14 + 1,var_15);
    if (var_15 == var_16) {
      var_9(context,"out of memory",-1);
    }
LAB_00076d4d:
    var_17(context,&var_15,4,(type_8 *)&DAT_ffffffff);
  }
  else {
    if (var_10 == (type_4 *)0x0) {
LAB_00076d45:
      if (var_15 != (void *)0x0) goto LAB_00076d4d;
    }
    else {
      var_19 = var_18(pH,var_10,var_14 + 1);
      if (var_19 != (type_5 *)0x0) {
        var_15 = var_19->data;
        goto LAB_00076d45;
      }
      var_15 = (void *)0x0;
    }
    z = var_20("unknown tokenizer: %s",var_10);
    var_9(context,z,-1);
    var_21(z);
  }
LAB_00076d5f:
  if (var_22 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_23();
  }
  return;
}


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

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

void MASKED(undefined4 param_1,int param_2,undefined4 *param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x76cd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28 = 0;
  FUN_0001bab0(param_1);
  iVar1 = FUN_0004ce60(*param_3);
  FUN_0004ccb0(*param_3);
  if (param_2 == 2) {
    uVar4 = FUN_0001bac0(param_1);
    local_24 = 0;
    FUN_00022500(uVar4,0x3ec,0xffffffff,&local_24);
    if (local_24 == 0) {
      FUN_000457b0(param_1,"fts3tokenize disabled",0xffffffff);
      goto LAB_00076d5f;
    }
    iVar2 = FUN_0004ccb0(param_3[1]);
    if ((iVar1 == 0) || (iVar2 != 4)) {
      FUN_000457b0(param_1,"argument type mismatch",0xffffffff);
      goto LAB_00076d5f;
    }
    piVar3 = (int *)FUN_0004ceb0(param_3[1]);
    local_28 = *piVar3;
    iVar1 = FUN_00041ba0(local_28);
    if (local_28 == iVar1) {
      FUN_000457b0(param_1,"out of memory",0xffffffff);
    }
LAB_00076d4d:
    FUN_000463b0(param_1,&local_28,4,0xffffffff);
  }
  else {
    if (iVar1 == 0) {
LAB_00076d45:
      if (local_28 != 0) goto LAB_00076d4d;
    }
    else {
      iVar2 = FUN_00031530();
      if (iVar2 != 0) {
        local_28 = *(int *)(iVar2 + 8);
        goto LAB_00076d45;
      }
      local_28 = 0;
    }
    uVar4 = FUN_00071090("unknown tokenizer: %s",iVar1);
    FUN_000457b0(param_1,uVar4,0xffffffff);
    FUN_00024cc0(uVar4);
  }
LAB_00076d5f:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return;
}

