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

int fts5VocabFilterMethod
              (sqlite3_vtab_cursor *pCursor,int idxNum,char *zUnused,int nUnused,
              sqlite3_value **apVal)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  uchar *__src;
  sqlite3_vtab *psVar4;
  sqlite3_value *pVal;
  sqlite3_value *pVal_00;
  char *pToken;
  sqlite3_value *pVal_01;
  Fts5Colset *in_stack_ffffffd0;
  Fts5IndexIter **in_stack_ffffffd4;
  
  iVar3 = pCursor->pVtab[2].nRef;
  pCursor[10].pVtab = (sqlite3_vtab *)0x0;
  pCursor[0xb].pVtab = (sqlite3_vtab *)0x0;
  if ((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0) {
    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;
    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);
  }
  pCursor[4].pVtab = (sqlite3_vtab *)0x0;
  sqlite3_free(pCursor[6].pVtab);
  pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff;
  pVal = (sqlite3_value *)0x0;
  pCursor[6].pVtab = (sqlite3_vtab *)0x0;
  pCursor[3].pVtab = (sqlite3_vtab *)0x0;
  uVar1 = idxNum & 1;
  if (uVar1 != 0) {
    pVal = *apVal;
  }
  pVal_01 = (sqlite3_value *)0x0;
  if ((idxNum & 2U) != 0) {
    pVal_01 = apVal[uVar1];
    uVar1 = uVar1 + 1;
  }
  pVal_00 = (sqlite3_value *)0x0;
  if ((idxNum & 4U) != 0) {
    pVal_00 = apVal[uVar1];
  }
  if (pVal == (sqlite3_value *)0x0) {
    if (pVal_01 != (sqlite3_value *)0x0) {
      sqlite3_value_text(pVal_01);
      sqlite3_value_bytes(pVal_01);
    }
    if (pVal_00 == (sqlite3_value *)0x0) {
      pToken = &DAT_00000008;
    }
    else {
      __src = sqlite3_value_text(pVal_00);
      if (__src == (uchar *)0x0) {
        __src = "";
      }
      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);
      pCursor[5].pVtab = psVar4;
      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));
      pCursor[6].pVtab = psVar4;
      if (psVar4 == (sqlite3_vtab *)0x0) {
        return 7;
      }
      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));
      pToken = &DAT_00000008;
    }
  }
  else {
    sqlite3_value_text(pVal);
    sqlite3_value_bytes(pVal);
    pToken = (char *)0x0;
  }
  iVar2 = sqlite3Fts5IndexQuery
                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),
                     in_stack_ffffffd0,in_stack_ffffffd4);
  if ((iVar2 == 0) && (iVar3 == 2)) {
    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);
  }
  if (((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&
     ((iVar3 != 2 ||
      ((pCursor[2].pVtab[1].pModule)->xRowid !=
       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))) {
    iVar3 = fts5VocabNextMethod(pCursor);
    return iVar3;
  }
  return iVar2;
}



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

int FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)

{
  uint uVar1;
  int iVar2;
  undefined *__src;
  void *__dest;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  
  iVar2 = *(int *)(*param_1 + 0x1c);
  param_1[10] = 0;
  param_1[0xb] = 0;
  if (param_1[4] != 0) {
    FUN_0008b5d0();
  }
  param_1[4] = 0;
  FUN_000264d0(param_1[6]);
  param_1[5] = -1;
  iVar3 = 0;
  param_1[6] = 0;
  param_1[3] = 0;
  uVar1 = param_2 & 1;
  if (uVar1 != 0) {
    iVar3 = *param_5;
  }
  iVar6 = 0;
  if ((param_2 & 2) != 0) {
    iVar6 = param_5[uVar1];
    uVar1 = uVar1 + 1;
  }
  iVar4 = 0;
  if ((param_2 & 4) != 0) {
    iVar4 = param_5[uVar1];
  }
  if (iVar3 == 0) {
    if (iVar6 != 0) {
      FUN_0004e670(iVar6);
      FUN_0004e4c0(iVar6);
    }
    if (iVar4 == 0) {
      uVar5 = 8;
    }
    else {
      __src = (undefined *)FUN_0004e670(iVar4);
      if (__src == (undefined *)0x0) {
        __src = &DAT_000f7177;
      }
      iVar3 = FUN_0004e4c0(iVar4);
      param_1[5] = iVar3;
      __dest = (void *)FUN_0003f8a0(iVar3 + 1);
      param_1[6] = (int)__dest;
      if (__dest == (void *)0x0) {
        return 7;
      }
      memcpy(__dest,__src,param_1[5] + 1);
      uVar5 = 8;
    }
  }
  else {
    FUN_0004e670(iVar3);
    FUN_0004e4c0(iVar3);
    uVar5 = 0;
  }
  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);
  if ((iVar3 == 0) && (iVar2 == 2)) {
    iVar3 = FUN_000691d0();
  }
  if (((iVar3 == 0) && (param_1[3] == 0)) &&
     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {
    iVar2 = FUN_000da5d0();
    return iVar2;
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0x6e04b
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + 0x1c]
MOV dword ptr [ESI + 0x28],0x0
MOV dword ptr [ESI + 0x2c],0x0
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x000dcec5
CALL 0x0008b5d0
SUB ESP,0xc
MOV dword ptr [ESI + 0x10],0x0
PUSH dword ptr [ESI + 0x18]
CALL 0x000264d0
MOV EAX,EDI
MOV dword ptr [ESI + 0x14],0xffffffff
XOR ECX,ECX
MOV dword ptr [ESI + 0x18],0x0
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],0x0
AND EAX,0x1
JZ 0x000dcefe
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [EDX]
XOR EBP,EBP
TEST EDI,0x2
JZ 0x000dcf12
MOV EDX,dword ptr [ESP + 0x4]
MOV EBP,dword ptr [EDX + EAX*0x4]
ADD EAX,0x1
XOR EDX,EDX
AND EDI,0x4
JZ 0x000dcf20
MOV EDI,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EDI + EAX*0x4]
TEST ECX,ECX
JZ 0x000dcfb0
SUB ESP,0xc
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
CALL 0x0004e670
MOV ECX,dword ptr [ESP + 0x14]
MOV EBP,EAX
MOV dword ptr [ESP],ECX
CALL 0x0004e4c0
ADD ESP,0x10
XOR EBX,EBX
MOV ECX,EAX
MOV EAX,dword ptr [ESI + 0x8]
SUB ESP,0x4
LEA EDX,[ESI + 0x10]
MOV EAX,dword ptr [EAX + 0x10]
PUSH EDX
MOV EDX,EBP
PUSH 0x0
PUSH EBX
CALL 0x000dc600
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000dcf76
CMP dword ptr [ESP + 0x8],0x2
JNZ 0x000dcf76
MOV EAX,ESI
CALL 0x000691d0
TEST EAX,EAX
JNZ 0x000dd023
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JNZ 0x000dd023
CMP dword ptr [ESP + 0x8],0x2
JNZ 0x000dcfa0
MOV EDX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [EDX + 0xc]
CMP dword ptr [EDX + 0x30],0x1
JZ 0x000dd023
MOV dword ptr [ESP + 0x30],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x000da5d0
XOR ECX,ECX
TEST EBP,EBP
JZ 0x000dcfd8
MOV dword ptr [ESP + 0x4],EDX
SUB ESP,0xc
PUSH EBP
CALL 0x0004e670
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x0004e4c0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
MOV EBP,EDI
MOV ECX,EAX
TEST EDX,EDX
JZ 0x000dd030
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
CALL 0x0004e670
MOV EDX,dword ptr [ESP + 0x14]
TEST EAX,EAX
MOV EDI,EAX
LEA EAX,[EBX + 0xfffac2a3]
CMOVZ EDI,EAX
MOV dword ptr [ESP],EDX
CALL 0x0004e4c0
MOV dword ptr [ESI + 0x14],EAX
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x0003f8a0
ADD ESP,0x10
MOV dword ptr [ESI + 0x18],EAX
TEST EAX,EAX
JNZ 0x000dd040
MOV EAX,0x7
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,0x8
JMP 0x000dcf4a
MOV ECX,dword ptr [ESI + 0x14]
SUB ESP,0x4
LEA EDX,[ECX + 0x1]
PUSH EDX
PUSH EDI
PUSH EAX
CALL 0x000140d0
ADD ESP,0x10
MOV EBX,0x8
MOV ECX,dword ptr [ESP + 0xc]
JMP 0x000dcf4a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" identifier (parameter_list "(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(*param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(*param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0008b5d0();\n  }" { (expression_statement "FUN_0008b5d0();" (call_expression "FUN_0008b5d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000264d0(param_1[6]);" (call_expression "FUN_000264d0(param_1[6])" identifier (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar1 = param_2 & 1;" (assignment_expression "uVar1 = param_2 & 1" identifier = (binary_expression "param_2 & 1" identifier & number_literal)) ;) (if_statement "if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *param_5;\n  }" { (expression_statement "iVar3 = *param_5;" (assignment_expression "iVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" { (expression_statement "iVar6 = param_5[uVar1];" (assignment_expression "iVar6 = param_5[uVar1]" identifier = (subscript_expression "param_5[uVar1]" identifier [ identifier ])) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }" if (parenthesized_expression "((param_2 & 4) != 0)" ( (binary_expression "(param_2 & 4) != 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar4 = param_5[uVar1];\n  }" { (expression_statement "iVar4 = param_5[uVar1];" (assignment_expression "iVar4 = param_5[uVar1]" identifier = (subscript_expression "param_5[uVar1]" identifier [ identifier ])) ;) })) (if_statement "if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }" { (if_statement "if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" { (expression_statement "FUN_0004e670(iVar6);" (call_expression "FUN_0004e670(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) (expression_statement "FUN_0004e4c0(iVar6);" (call_expression "FUN_0004e4c0(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })) (if_statement "if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = 8;\n    }" { (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" else (compound_statement "{\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" { (expression_statement "__src = (undefined *)FUN_0004e670(iVar4);" (assignment_expression "__src = (undefined *)FUN_0004e670(iVar4)" identifier = (cast_expression "(undefined *)FUN_0004e670(iVar4)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004e670(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (if_statement "if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }" if (parenthesized_expression "(__src == (undefined *)0x0)" ( (binary_expression "__src == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __src = &DAT_000f7177;\n      }" { (expression_statement "__src = &DAT_000f7177;" (assignment_expression "__src = &DAT_000f7177" identifier = (pointer_expression "&DAT_000f7177" & identifier)) ;) })) (expression_statement "iVar3 = FUN_0004e4c0(iVar4);" (assignment_expression "iVar3 = FUN_0004e4c0(iVar4)" identifier = (call_expression "FUN_0004e4c0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "param_1[5] = iVar3;" (assignment_expression "param_1[5] = iVar3" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__dest = (void *)FUN_0003f8a0(iVar3 + 1);" (assignment_expression "__dest = (void *)FUN_0003f8a0(iVar3 + 1)" identifier = (cast_expression "(void *)FUN_0003f8a0(iVar3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003f8a0(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "param_1[6] = (int)__dest;" (assignment_expression "param_1[6] = (int)__dest" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (__dest == (void *)0x0) {\n        return 7;\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "memcpy(__dest,__src,param_1[5] + 1);" (call_expression "memcpy(__dest,__src,param_1[5] + 1)" identifier (argument_list "(__dest,__src,param_1[5] + 1)" ( identifier , identifier , (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))) ;) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) }))) }) (else_clause "else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" else (compound_statement "{\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" { (expression_statement "FUN_0004e670(iVar3);" (call_expression "FUN_0004e670(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "FUN_0004e4c0(iVar3);" (call_expression "FUN_0004e4c0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);" (assignment_expression "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4)" identifier = (call_expression "FUN_000dc600(uVar5,0,param_1 + 4)" identifier (argument_list "(uVar5,0,param_1 + 4)" ( identifier , number_literal , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }" if (parenthesized_expression "((iVar3 == 0) && (iVar2 == 2))" ( (binary_expression "(iVar3 == 0) && (iVar2 == 2)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 == 2)" ( (binary_expression "iVar2 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    iVar3 = FUN_000691d0();\n  }" { (expression_statement "iVar3 = FUN_000691d0();" (assignment_expression "iVar3 = FUN_000691d0()" identifier = (call_expression "FUN_000691d0()" identifier (argument_list "()" ( )))) ;) })) (if_statement "if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" if (parenthesized_expression "(((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))))" ( (binary_expression "((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" (parenthesized_expression "((iVar3 == 0) && (param_1[3] == 0))" ( (binary_expression "(iVar3 == 0) && (param_1[3] == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" ( (parenthesized_expression "(iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))" ( (binary_expression "iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" (binary_expression "iVar2 != 2" identifier != number_literal) || (parenthesized_expression "(*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" ( (binary_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1" (pointer_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" * (cast_expression "(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1[2] + 0xc) + 0x30)" ( (binary_expression "*(int *)(param_1[2] + 0xc) + 0x30" (pointer_expression "*(int *)(param_1[2] + 0xc)" * (cast_expression "(int *)(param_1[2] + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0xc)" ( (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) + number_literal) )))) != number_literal) ))) )) ))) )) (compound_statement "{\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" { (expression_statement "iVar2 = FUN_000da5d0();" (assignment_expression "iVar2 = FUN_000da5d0()" identifier = (call_expression "FUN_000da5d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint fts5VocabFilterMethod\n              (sqlite3_vtab_cursor *pCursor,int idxNum,char *zUnused,int nUnused,\n              sqlite3_value **apVal)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uchar *__src;\n  sqlite3_vtab *psVar4;\n  sqlite3_value *pVal;\n  sqlite3_value *pVal_00;\n  char *pToken;\n  sqlite3_value *pVal_01;\n  Fts5Colset *in_stack_ffffffd0;\n  Fts5IndexIter **in_stack_ffffffd4;\n  \n  iVar3 = pCursor->pVtab[2].nRef;\n  pCursor[10].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[0xb].pVtab = (sqlite3_vtab *)0x0;\n  if ((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0) {\n    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;\n    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);\n  }\n  pCursor[4].pVtab = (sqlite3_vtab *)0x0;\n  sqlite3_free(pCursor[6].pVtab);\n  pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff;\n  pVal = (sqlite3_value *)0x0;\n  pCursor[6].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[3].pVtab = (sqlite3_vtab *)0x0;\n  uVar1 = idxNum & 1;\n  if (uVar1 != 0) {\n    pVal = *apVal;\n  }\n  pVal_01 = (sqlite3_value *)0x0;\n  if ((idxNum & 2U) != 0) {\n    pVal_01 = apVal[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  pVal_00 = (sqlite3_value *)0x0;\n  if ((idxNum & 4U) != 0) {\n    pVal_00 = apVal[uVar1];\n  }\n  if (pVal == (sqlite3_value *)0x0) {\n    if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }\n    if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }\n  }\n  else {\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }\n  iVar2 = sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4);\n  if ((iVar2 == 0) && (iVar3 == 2)) {\n    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);\n  }\n  if (((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))) {\n    iVar3 = fts5VocabNextMethod(pCursor);\n    return iVar3;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int fts5VocabFilterMethod\n              (sqlite3_vtab_cursor *pCursor,int idxNum,char *zUnused,int nUnused,\n              sqlite3_value **apVal)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uchar *__src;\n  sqlite3_vtab *psVar4;\n  sqlite3_value *pVal;\n  sqlite3_value *pVal_00;\n  char *pToken;\n  sqlite3_value *pVal_01;\n  Fts5Colset *in_stack_ffffffd0;\n  Fts5IndexIter **in_stack_ffffffd4;\n  \n  iVar3 = pCursor->pVtab[2].nRef;\n  pCursor[10].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[0xb].pVtab = (sqlite3_vtab *)0x0;\n  if ((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0) {\n    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;\n    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);\n  }\n  pCursor[4].pVtab = (sqlite3_vtab *)0x0;\n  sqlite3_free(pCursor[6].pVtab);\n  pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff;\n  pVal = (sqlite3_value *)0x0;\n  pCursor[6].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[3].pVtab = (sqlite3_vtab *)0x0;\n  uVar1 = idxNum & 1;\n  if (uVar1 != 0) {\n    pVal = *apVal;\n  }\n  pVal_01 = (sqlite3_value *)0x0;\n  if ((idxNum & 2U) != 0) {\n    pVal_01 = apVal[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  pVal_00 = (sqlite3_value *)0x0;\n  if ((idxNum & 4U) != 0) {\n    pVal_00 = apVal[uVar1];\n  }\n  if (pVal == (sqlite3_value *)0x0) {\n    if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }\n    if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }\n  }\n  else {\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }\n  iVar2 = sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4);\n  if ((iVar2 == 0) && (iVar3 == 2)) {\n    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);\n  }\n  if (((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))) {\n    iVar3 = fts5VocabNextMethod(pCursor);\n    return iVar3;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "fts5VocabFilterMethod\n              (sqlite3_vtab_cursor *pCursor,int idxNum,char *zUnused,int nUnused,\n              sqlite3_value **apVal)" identifier (parameter_list "(sqlite3_vtab_cursor *pCursor,int idxNum,char *zUnused,int nUnused,\n              sqlite3_value **apVal)" ( (parameter_declaration "sqlite3_vtab_cursor *pCursor" type_identifier (pointer_declarator "*pCursor" * identifier)) , (parameter_declaration "int idxNum" primitive_type identifier) , (parameter_declaration "char *zUnused" primitive_type (pointer_declarator "*zUnused" * identifier)) , (parameter_declaration "int nUnused" primitive_type identifier) , (parameter_declaration "sqlite3_value **apVal" type_identifier (pointer_declarator "**apVal" * (pointer_declarator "*apVal" * identifier))) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uchar *__src;\n  sqlite3_vtab *psVar4;\n  sqlite3_value *pVal;\n  sqlite3_value *pVal_00;\n  char *pToken;\n  sqlite3_value *pVal_01;\n  Fts5Colset *in_stack_ffffffd0;\n  Fts5IndexIter **in_stack_ffffffd4;\n  \n  iVar3 = pCursor->pVtab[2].nRef;\n  pCursor[10].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[0xb].pVtab = (sqlite3_vtab *)0x0;\n  if ((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0) {\n    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;\n    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);\n  }\n  pCursor[4].pVtab = (sqlite3_vtab *)0x0;\n  sqlite3_free(pCursor[6].pVtab);\n  pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff;\n  pVal = (sqlite3_value *)0x0;\n  pCursor[6].pVtab = (sqlite3_vtab *)0x0;\n  pCursor[3].pVtab = (sqlite3_vtab *)0x0;\n  uVar1 = idxNum & 1;\n  if (uVar1 != 0) {\n    pVal = *apVal;\n  }\n  pVal_01 = (sqlite3_value *)0x0;\n  if ((idxNum & 2U) != 0) {\n    pVal_01 = apVal[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  pVal_00 = (sqlite3_value *)0x0;\n  if ((idxNum & 4U) != 0) {\n    pVal_00 = apVal[uVar1];\n  }\n  if (pVal == (sqlite3_value *)0x0) {\n    if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }\n    if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }\n  }\n  else {\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }\n  iVar2 = sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4);\n  if ((iVar2 == 0) && (iVar3 == 2)) {\n    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);\n  }\n  if (((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))) {\n    iVar3 = fts5VocabNextMethod(pCursor);\n    return iVar3;\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "sqlite3_vtab *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "sqlite3_value *pVal;" type_identifier (pointer_declarator "*pVal" * identifier) ;) (declaration "sqlite3_value *pVal_00;" type_identifier (pointer_declarator "*pVal_00" * identifier) ;) (declaration "char *pToken;" primitive_type (pointer_declarator "*pToken" * identifier) ;) (declaration "sqlite3_value *pVal_01;" type_identifier (pointer_declarator "*pVal_01" * identifier) ;) (declaration "Fts5Colset *in_stack_ffffffd0;" type_identifier (pointer_declarator "*in_stack_ffffffd0" * identifier) ;) (declaration "Fts5IndexIter **in_stack_ffffffd4;" type_identifier (pointer_declarator "**in_stack_ffffffd4" * (pointer_declarator "*in_stack_ffffffd4" * identifier)) ;) (expression_statement "iVar3 = pCursor->pVtab[2].nRef;" (assignment_expression "iVar3 = pCursor->pVtab[2].nRef" identifier = (field_expression "pCursor->pVtab[2].nRef" (subscript_expression "pCursor->pVtab[2]" (field_expression "pCursor->pVtab" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "pCursor[10].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "pCursor[10].pVtab = (sqlite3_vtab *)0x0" (field_expression "pCursor[10].pVtab" (subscript_expression "pCursor[10]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCursor[0xb].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "pCursor[0xb].pVtab = (sqlite3_vtab *)0x0" (field_expression "pCursor[0xb].pVtab" (subscript_expression "pCursor[0xb]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0) {\n    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;\n    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);\n  }" if (parenthesized_expression "((Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0)" ( (binary_expression "(Fts5IndexIter *)pCursor[4].pVtab != (Fts5IndexIter *)0x0" (cast_expression "(Fts5IndexIter *)pCursor[4].pVtab" ( (type_descriptor "Fts5IndexIter *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier)) != (cast_expression "(Fts5IndexIter *)0x0" ( (type_descriptor "Fts5IndexIter *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;\n    sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);\n  }" { (expression_statement "in_stack_ffffffd0 = (Fts5Colset *)0xdcec5;" (assignment_expression "in_stack_ffffffd0 = (Fts5Colset *)0xdcec5" identifier = (cast_expression "(Fts5Colset *)0xdcec5" ( (type_descriptor "Fts5Colset *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab);" (call_expression "sqlite3Fts5IterClose((Fts5IndexIter *)pCursor[4].pVtab)" identifier (argument_list "((Fts5IndexIter *)pCursor[4].pVtab)" ( (cast_expression "(Fts5IndexIter *)pCursor[4].pVtab" ( (type_descriptor "Fts5IndexIter *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier)) ))) ;) })) (expression_statement "pCursor[4].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "pCursor[4].pVtab = (sqlite3_vtab *)0x0" (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_free(pCursor[6].pVtab);" (call_expression "sqlite3_free(pCursor[6].pVtab)" identifier (argument_list "(pCursor[6].pVtab)" ( (field_expression "pCursor[6].pVtab" (subscript_expression "pCursor[6]" identifier [ number_literal ]) . field_identifier) ))) ;) (expression_statement "pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff;" (assignment_expression "pCursor[5].pVtab = (sqlite3_vtab *)&DAT_ffffffff" (field_expression "pCursor[5].pVtab" (subscript_expression "pCursor[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)&DAT_ffffffff" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (expression_statement "pVal = (sqlite3_value *)0x0;" (assignment_expression "pVal = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCursor[6].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "pCursor[6].pVtab = (sqlite3_vtab *)0x0" (field_expression "pCursor[6].pVtab" (subscript_expression "pCursor[6]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCursor[3].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "pCursor[3].pVtab = (sqlite3_vtab *)0x0" (field_expression "pCursor[3].pVtab" (subscript_expression "pCursor[3]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar1 = idxNum & 1;" (assignment_expression "uVar1 = idxNum & 1" identifier = (binary_expression "idxNum & 1" identifier & number_literal)) ;) (if_statement "if (uVar1 != 0) {\n    pVal = *apVal;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    pVal = *apVal;\n  }" { (expression_statement "pVal = *apVal;" (assignment_expression "pVal = *apVal" identifier = (pointer_expression "*apVal" * identifier)) ;) })) (expression_statement "pVal_01 = (sqlite3_value *)0x0;" (assignment_expression "pVal_01 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((idxNum & 2U) != 0) {\n    pVal_01 = apVal[uVar1];\n    uVar1 = uVar1 + 1;\n  }" if (parenthesized_expression "((idxNum & 2U) != 0)" ( (binary_expression "(idxNum & 2U) != 0" (parenthesized_expression "(idxNum & 2U)" ( (binary_expression "idxNum & 2U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pVal_01 = apVal[uVar1];\n    uVar1 = uVar1 + 1;\n  }" { (expression_statement "pVal_01 = apVal[uVar1];" (assignment_expression "pVal_01 = apVal[uVar1]" identifier = (subscript_expression "apVal[uVar1]" identifier [ identifier ])) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "pVal_00 = (sqlite3_value *)0x0;" (assignment_expression "pVal_00 = (sqlite3_value *)0x0" identifier = (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((idxNum & 4U) != 0) {\n    pVal_00 = apVal[uVar1];\n  }" if (parenthesized_expression "((idxNum & 4U) != 0)" ( (binary_expression "(idxNum & 4U) != 0" (parenthesized_expression "(idxNum & 4U)" ( (binary_expression "idxNum & 4U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pVal_00 = apVal[uVar1];\n  }" { (expression_statement "pVal_00 = apVal[uVar1];" (assignment_expression "pVal_00 = apVal[uVar1]" identifier = (subscript_expression "apVal[uVar1]" identifier [ identifier ])) ;) })) (if_statement "if (pVal == (sqlite3_value *)0x0) {\n    if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }\n    if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }\n  }\n  else {\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }" if (parenthesized_expression "(pVal == (sqlite3_value *)0x0)" ( (binary_expression "pVal == (sqlite3_value *)0x0" identifier == (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }\n    if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }\n  }" { (if_statement "if (pVal_01 != (sqlite3_value *)0x0) {\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }" if (parenthesized_expression "(pVal_01 != (sqlite3_value *)0x0)" ( (binary_expression "pVal_01 != (sqlite3_value *)0x0" identifier != (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_value_text(pVal_01);\n      sqlite3_value_bytes(pVal_01);\n    }" { (expression_statement "sqlite3_value_text(pVal_01);" (call_expression "sqlite3_value_text(pVal_01)" identifier (argument_list "(pVal_01)" ( identifier ))) ;) (expression_statement "sqlite3_value_bytes(pVal_01);" (call_expression "sqlite3_value_bytes(pVal_01)" identifier (argument_list "(pVal_01)" ( identifier ))) ;) })) (if_statement "if (pVal_00 == (sqlite3_value *)0x0) {\n      pToken = &DAT_00000008;\n    }\n    else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }" if (parenthesized_expression "(pVal_00 == (sqlite3_value *)0x0)" ( (binary_expression "pVal_00 == (sqlite3_value *)0x0" identifier == (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pToken = &DAT_00000008;\n    }" { (expression_statement "pToken = &DAT_00000008;" (assignment_expression "pToken = &DAT_00000008" identifier = (pointer_expression "&DAT_00000008" & identifier)) ;) }) (else_clause "else {\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }" else (compound_statement "{\n      __src = sqlite3_value_text(pVal_00);\n      if (__src == (uchar *)0x0) {\n        __src = "";\n      }\n      psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);\n      pCursor[5].pVtab = psVar4;\n      psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));\n      pCursor[6].pVtab = psVar4;\n      if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }\n      memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));\n      pToken = &DAT_00000008;\n    }" { (expression_statement "__src = sqlite3_value_text(pVal_00);" (assignment_expression "__src = sqlite3_value_text(pVal_00)" identifier = (call_expression "sqlite3_value_text(pVal_00)" identifier (argument_list "(pVal_00)" ( identifier )))) ;) (if_statement "if (__src == (uchar *)0x0) {\n        __src = "";\n      }" if (parenthesized_expression "(__src == (uchar *)0x0)" ( (binary_expression "__src == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __src = "";\n      }" { (expression_statement "__src = "";" (assignment_expression "__src = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00);" (assignment_expression "psVar4 = (sqlite3_vtab *)sqlite3_value_bytes(pVal_00)" identifier = (cast_expression "(sqlite3_vtab *)sqlite3_value_bytes(pVal_00)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_bytes(pVal_00)" identifier (argument_list "(pVal_00)" ( identifier ))))) ;) (expression_statement "pCursor[5].pVtab = psVar4;" (assignment_expression "pCursor[5].pVtab = psVar4" (field_expression "pCursor[5].pVtab" (subscript_expression "pCursor[5]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1));" (assignment_expression "psVar4 = (sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1))" identifier = (cast_expression "(sqlite3_vtab *)sqlite3_malloc((int)((int)&psVar4->pModule + 1))" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc((int)((int)&psVar4->pModule + 1))" identifier (argument_list "((int)((int)&psVar4->pModule + 1))" ( (cast_expression "(int)((int)&psVar4->pModule + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((int)&psVar4->pModule + 1)" ( (binary_expression "(int)&psVar4->pModule + 1" (cast_expression "(int)&psVar4->pModule" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&psVar4->pModule" & (field_expression "psVar4->pModule" identifier -> field_identifier))) + number_literal) ))) ))))) ;) (expression_statement "pCursor[6].pVtab = psVar4;" (assignment_expression "pCursor[6].pVtab = psVar4" (field_expression "pCursor[6].pVtab" (subscript_expression "pCursor[6]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (if_statement "if (psVar4 == (sqlite3_vtab *)0x0) {\n        return 7;\n      }" if (parenthesized_expression "(psVar4 == (sqlite3_vtab *)0x0)" ( (binary_expression "psVar4 == (sqlite3_vtab *)0x0" identifier == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1));" (call_expression "memcpy(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1))" identifier (argument_list "(psVar4,__src,(size_t)((int)&(pCursor[5].pVtab)->pModule + 1))" ( identifier , identifier , (cast_expression "(size_t)((int)&(pCursor[5].pVtab)->pModule + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "((int)&(pCursor[5].pVtab)->pModule + 1)" ( (binary_expression "(int)&(pCursor[5].pVtab)->pModule + 1" (cast_expression "(int)&(pCursor[5].pVtab)->pModule" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pCursor[5].pVtab)->pModule" & (field_expression "(pCursor[5].pVtab)->pModule" (parenthesized_expression "(pCursor[5].pVtab)" ( (field_expression "pCursor[5].pVtab" (subscript_expression "pCursor[5]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier))) + number_literal) ))) ))) ;) (expression_statement "pToken = &DAT_00000008;" (assignment_expression "pToken = &DAT_00000008" identifier = (pointer_expression "&DAT_00000008" & identifier)) ;) }))) }) (else_clause "else {\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }" else (compound_statement "{\n    sqlite3_value_text(pVal);\n    sqlite3_value_bytes(pVal);\n    pToken = (char *)0x0;\n  }" { (expression_statement "sqlite3_value_text(pVal);" (call_expression "sqlite3_value_text(pVal)" identifier (argument_list "(pVal)" ( identifier ))) ;) (expression_statement "sqlite3_value_bytes(pVal);" (call_expression "sqlite3_value_bytes(pVal)" identifier (argument_list "(pVal)" ( identifier ))) ;) (expression_statement "pToken = (char *)0x0;" (assignment_expression "pToken = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "iVar2 = sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4);" (assignment_expression "iVar2 = sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4)" identifier = (call_expression "sqlite3Fts5IndexQuery\n                    ((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4)" identifier (argument_list "((Fts5Index *)pCursor[2].pVtab[1].nRef,pToken,0,(int)(pCursor + 4),\n                     in_stack_ffffffd0,in_stack_ffffffd4)" ( (cast_expression "(Fts5Index *)pCursor[2].pVtab[1].nRef" ( (type_descriptor "Fts5Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[2].pVtab[1].nRef" (subscript_expression "pCursor[2].pVtab[1]" (field_expression "pCursor[2].pVtab" (subscript_expression "pCursor[2]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier)) , identifier , number_literal , (cast_expression "(int)(pCursor + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pCursor + 4)" ( (binary_expression "pCursor + 4" identifier + number_literal) ))) , identifier , identifier )))) ;) (if_statement "if ((iVar2 == 0) && (iVar3 == 2)) {\n    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);\n  }" if (parenthesized_expression "((iVar2 == 0) && (iVar3 == 2))" ( (binary_expression "(iVar2 == 0) && (iVar3 == 2)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);\n  }" { (expression_statement "iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor);" (assignment_expression "iVar2 = fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor)" identifier = (call_expression "fts5VocabInstanceNewTerm((Fts5VocabCursor *)pCursor)" identifier (argument_list "((Fts5VocabCursor *)pCursor)" ( (cast_expression "(Fts5VocabCursor *)pCursor" ( (type_descriptor "Fts5VocabCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) })) (if_statement "if (((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))) {\n    iVar3 = fts5VocabNextMethod(pCursor);\n    return iVar3;\n  }" if (parenthesized_expression "(((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1))))" ( (binary_expression "((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)) &&\n     ((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))" (parenthesized_expression "((iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0))" ( (binary_expression "(iVar2 == 0) && (pCursor[3].pVtab == (sqlite3_vtab *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(pCursor[3].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "pCursor[3].pVtab == (sqlite3_vtab *)0x0" (field_expression "pCursor[3].pVtab" (subscript_expression "pCursor[3]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "((iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)))" ( (parenthesized_expression "(iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1))" ( (binary_expression "iVar3 != 2 ||\n      ((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)" (binary_expression "iVar3 != 2" identifier != number_literal) || (parenthesized_expression "((pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1)" ( (binary_expression "(pCursor[2].pVtab[1].pModule)->xRowid !=\n       (_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1" (field_expression "(pCursor[2].pVtab[1].pModule)->xRowid" (parenthesized_expression "(pCursor[2].pVtab[1].pModule)" ( (field_expression "pCursor[2].pVtab[1].pModule" (subscript_expression "pCursor[2].pVtab[1]" (field_expression "pCursor[2].pVtab" (subscript_expression "pCursor[2]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) )) -> field_identifier) != (cast_expression "(_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *)0x1" ( (type_descriptor "_func_int_sqlite3_vtab_cursor_ptr_sqlite3_int64_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) ))) )) (compound_statement "{\n    iVar3 = fts5VocabNextMethod(pCursor);\n    return iVar3;\n  }" { (expression_statement "iVar3 = fts5VocabNextMethod(pCursor);" (assignment_expression "iVar3 = fts5VocabNextMethod(pCursor)" identifier = (call_expression "fts5VocabNextMethod(pCursor)" identifier (argument_list "(pCursor)" ( identifier )))) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" identifier (parameter_list "(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(*param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(*param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0008b5d0();\n  }" { (expression_statement "FUN_0008b5d0();" (call_expression "FUN_0008b5d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000264d0(param_1[6]);" (call_expression "FUN_000264d0(param_1[6])" identifier (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar1 = param_2 & 1;" (assignment_expression "uVar1 = param_2 & 1" identifier = (binary_expression "param_2 & 1" identifier & number_literal)) ;) (if_statement "if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *param_5;\n  }" { (expression_statement "iVar3 = *param_5;" (assignment_expression "iVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" { (expression_statement "iVar6 = param_5[uVar1];" (assignment_expression "iVar6 = param_5[uVar1]" identifier = (subscript_expression "param_5[uVar1]" identifier [ identifier ])) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }" if (parenthesized_expression "((param_2 & 4) != 0)" ( (binary_expression "(param_2 & 4) != 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar4 = param_5[uVar1];\n  }" { (expression_statement "iVar4 = param_5[uVar1];" (assignment_expression "iVar4 = param_5[uVar1]" identifier = (subscript_expression "param_5[uVar1]" identifier [ identifier ])) ;) })) (if_statement "if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }" { (if_statement "if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" { (expression_statement "FUN_0004e670(iVar6);" (call_expression "FUN_0004e670(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) (expression_statement "FUN_0004e4c0(iVar6);" (call_expression "FUN_0004e4c0(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })) (if_statement "if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = 8;\n    }" { (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" else (compound_statement "{\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" { (expression_statement "__src = (undefined *)FUN_0004e670(iVar4);" (assignment_expression "__src = (undefined *)FUN_0004e670(iVar4)" identifier = (cast_expression "(undefined *)FUN_0004e670(iVar4)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004e670(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (if_statement "if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }" if (parenthesized_expression "(__src == (undefined *)0x0)" ( (binary_expression "__src == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __src = &DAT_000f7177;\n      }" { (expression_statement "__src = &DAT_000f7177;" (assignment_expression "__src = &DAT_000f7177" identifier = (pointer_expression "&DAT_000f7177" & identifier)) ;) })) (expression_statement "iVar3 = FUN_0004e4c0(iVar4);" (assignment_expression "iVar3 = FUN_0004e4c0(iVar4)" identifier = (call_expression "FUN_0004e4c0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "param_1[5] = iVar3;" (assignment_expression "param_1[5] = iVar3" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__dest = (void *)FUN_0003f8a0(iVar3 + 1);" (assignment_expression "__dest = (void *)FUN_0003f8a0(iVar3 + 1)" identifier = (cast_expression "(void *)FUN_0003f8a0(iVar3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003f8a0(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "param_1[6] = (int)__dest;" (assignment_expression "param_1[6] = (int)__dest" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (__dest == (void *)0x0) {\n        return 7;\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "memcpy(__dest,__src,param_1[5] + 1);" (call_expression "memcpy(__dest,__src,param_1[5] + 1)" identifier (argument_list "(__dest,__src,param_1[5] + 1)" ( identifier , identifier , (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))) ;) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) }))) }) (else_clause "else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" else (compound_statement "{\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" { (expression_statement "FUN_0004e670(iVar3);" (call_expression "FUN_0004e670(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "FUN_0004e4c0(iVar3);" (call_expression "FUN_0004e4c0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);" (assignment_expression "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4)" identifier = (call_expression "FUN_000dc600(uVar5,0,param_1 + 4)" identifier (argument_list "(uVar5,0,param_1 + 4)" ( identifier , number_literal , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }" if (parenthesized_expression "((iVar3 == 0) && (iVar2 == 2))" ( (binary_expression "(iVar3 == 0) && (iVar2 == 2)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 == 2)" ( (binary_expression "iVar2 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    iVar3 = FUN_000691d0();\n  }" { (expression_statement "iVar3 = FUN_000691d0();" (assignment_expression "iVar3 = FUN_000691d0()" identifier = (call_expression "FUN_000691d0()" identifier (argument_list "()" ( )))) ;) })) (if_statement "if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" if (parenthesized_expression "(((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))))" ( (binary_expression "((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" (parenthesized_expression "((iVar3 == 0) && (param_1[3] == 0))" ( (binary_expression "(iVar3 == 0) && (param_1[3] == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" ( (parenthesized_expression "(iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))" ( (binary_expression "iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" (binary_expression "iVar2 != 2" identifier != number_literal) || (parenthesized_expression "(*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" ( (binary_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1" (pointer_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" * (cast_expression "(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1[2] + 0xc) + 0x30)" ( (binary_expression "*(int *)(param_1[2] + 0xc) + 0x30" (pointer_expression "*(int *)(param_1[2] + 0xc)" * (cast_expression "(int *)(param_1[2] + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0xc)" ( (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) + number_literal) )))) != number_literal) ))) )) ))) )) (compound_statement "{\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" { (expression_statement "iVar2 = FUN_000da5d0();" (assignment_expression "iVar2 = FUN_000da5d0()" identifier = (call_expression "FUN_000da5d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) + LIT) )))) != LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000dce80(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" (identifier "FUN_000dce80") (parameter_list "(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined *__src;\n  void *__dest;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar2 = *(int *)(*param_1 + 0x1c);\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }\n  param_1[4] = 0;\n  FUN_000264d0(param_1[6]);\n  param_1[5] = -1;\n  iVar3 = 0;\n  param_1[6] = 0;\n  param_1[3] = 0;\n  uVar1 = param_2 & 1;\n  if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }\n  iVar6 = 0;\n  if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }\n  iVar4 = 0;\n  if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }\n  if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }\n  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);\n  if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }\n  if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }\n  return iVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *__src;" (type_identifier "undefined") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar2 = *(int *)(*param_1 + 0x1c);" (assignment_expression "iVar2 = *(int *)(*param_1 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*param_1 + 0x1c)" (* "*") (cast_expression "(int *)(*param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1[4] != 0) {\n    FUN_0008b5d0();\n  }" (if "if") (parenthesized_expression "(param_1[4] != 0)" (( "(") (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0008b5d0();\n  }" ({ "{") (expression_statement "FUN_0008b5d0();" (call_expression "FUN_0008b5d0()" (identifier "FUN_0008b5d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000264d0(param_1[6]);" (call_expression "FUN_000264d0(param_1[6])" (identifier "FUN_000264d0") (argument_list "(param_1[6])" (( "(") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = param_2 & 1;" (assignment_expression "uVar1 = param_2 & 1" (identifier "uVar1") (= "=") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 != 0) {\n    iVar3 = *param_5;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *param_5;\n  }" ({ "{") (expression_statement "iVar3 = *param_5;" (assignment_expression "iVar3 = *param_5" (identifier "iVar3") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (} "}"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_2 & 2) != 0) {\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = param_5[uVar1];\n    uVar1 = uVar1 + 1;\n  }" ({ "{") (expression_statement "iVar6 = param_5[uVar1];" (assignment_expression "iVar6 = param_5[uVar1]" (identifier "iVar6") (= "=") (subscript_expression "param_5[uVar1]" (identifier "param_5") ([ "[") (identifier "uVar1") (] "]"))) (; ";")) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_2 & 4) != 0) {\n    iVar4 = param_5[uVar1];\n  }" (if "if") (parenthesized_expression "((param_2 & 4) != 0)" (( "(") (binary_expression "(param_2 & 4) != 0" (parenthesized_expression "(param_2 & 4)" (( "(") (binary_expression "param_2 & 4" (identifier "param_2") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = param_5[uVar1];\n  }" ({ "{") (expression_statement "iVar4 = param_5[uVar1];" (assignment_expression "iVar4 = param_5[uVar1]" (identifier "iVar4") (= "=") (subscript_expression "param_5[uVar1]" (identifier "param_5") ([ "[") (identifier "uVar1") (] "]"))) (; ";")) (} "}"))) (if_statement "if (iVar3 == 0) {\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }\n  else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }\n    if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }\n  }" ({ "{") (if_statement "if (iVar6 != 0) {\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0004e670(iVar6);\n      FUN_0004e4c0(iVar6);\n    }" ({ "{") (expression_statement "FUN_0004e670(iVar6);" (call_expression "FUN_0004e670(iVar6)" (identifier "FUN_0004e670") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_0004e4c0(iVar6);" (call_expression "FUN_0004e4c0(iVar6)" (identifier "FUN_0004e4c0") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar4 == 0) {\n      uVar5 = 8;\n    }\n    else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 8;\n    }" ({ "{") (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" (identifier "uVar5") (= "=") (number_literal "8")) (; ";")) (} "}")) (else_clause "else {\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" (else "else") (compound_statement "{\n      __src = (undefined *)FUN_0004e670(iVar4);\n      if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }\n      iVar3 = FUN_0004e4c0(iVar4);\n      param_1[5] = iVar3;\n      __dest = (void *)FUN_0003f8a0(iVar3 + 1);\n      param_1[6] = (int)__dest;\n      if (__dest == (void *)0x0) {\n        return 7;\n      }\n      memcpy(__dest,__src,param_1[5] + 1);\n      uVar5 = 8;\n    }" ({ "{") (expression_statement "__src = (undefined *)FUN_0004e670(iVar4);" (assignment_expression "__src = (undefined *)FUN_0004e670(iVar4)" (identifier "__src") (= "=") (cast_expression "(undefined *)FUN_0004e670(iVar4)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004e670(iVar4)" (identifier "FUN_0004e670") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))))) (; ";")) (if_statement "if (__src == (undefined *)0x0) {\n        __src = &DAT_000f7177;\n      }" (if "if") (parenthesized_expression "(__src == (undefined *)0x0)" (( "(") (binary_expression "__src == (undefined *)0x0" (identifier "__src") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        __src = &DAT_000f7177;\n      }" ({ "{") (expression_statement "__src = &DAT_000f7177;" (assignment_expression "__src = &DAT_000f7177" (identifier "__src") (= "=") (pointer_expression "&DAT_000f7177" (& "&") (identifier "DAT_000f7177"))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_0004e4c0(iVar4);" (assignment_expression "iVar3 = FUN_0004e4c0(iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_0004e4c0(iVar4)" (identifier "FUN_0004e4c0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "param_1[5] = iVar3;" (assignment_expression "param_1[5] = iVar3" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "__dest = (void *)FUN_0003f8a0(iVar3 + 1);" (assignment_expression "__dest = (void *)FUN_0003f8a0(iVar3 + 1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0003f8a0(iVar3 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003f8a0(iVar3 + 1)" (identifier "FUN_0003f8a0") (argument_list "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "param_1[6] = (int)__dest;" (assignment_expression "param_1[6] = (int)__dest" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (if_statement "if (__dest == (void *)0x0) {\n        return 7;\n      }" (if "if") (parenthesized_expression "(__dest == (void *)0x0)" (( "(") (binary_expression "__dest == (void *)0x0" (identifier "__dest") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 7;\n      }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "memcpy(__dest,__src,param_1[5] + 1);" (call_expression "memcpy(__dest,__src,param_1[5] + 1)" (identifier "memcpy") (argument_list "(__dest,__src,param_1[5] + 1)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" (identifier "uVar5") (= "=") (number_literal "8")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" (else "else") (compound_statement "{\n    FUN_0004e670(iVar3);\n    FUN_0004e4c0(iVar3);\n    uVar5 = 0;\n  }" ({ "{") (expression_statement "FUN_0004e670(iVar3);" (call_expression "FUN_0004e670(iVar3)" (identifier "FUN_0004e670") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "FUN_0004e4c0(iVar3);" (call_expression "FUN_0004e4c0(iVar3)" (identifier "FUN_0004e4c0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);" (assignment_expression "iVar3 = FUN_000dc600(uVar5,0,param_1 + 4)" (identifier "iVar3") (= "=") (call_expression "FUN_000dc600(uVar5,0,param_1 + 4)" (identifier "FUN_000dc600") (argument_list "(uVar5,0,param_1 + 4)" (( "(") (identifier "uVar5") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) && (iVar2 == 2)) {\n    iVar3 = FUN_000691d0();\n  }" (if "if") (parenthesized_expression "((iVar3 == 0) && (iVar2 == 2))" (( "(") (binary_expression "(iVar3 == 0) && (iVar2 == 2)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 == 2)" (( "(") (binary_expression "iVar2 == 2" (identifier "iVar2") (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = FUN_000691d0();\n  }" ({ "{") (expression_statement "iVar3 = FUN_000691d0();" (assignment_expression "iVar3 = FUN_000691d0()" (identifier "iVar3") (= "=") (call_expression "FUN_000691d0()" (identifier "FUN_000691d0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (if_statement "if (((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))))" (( "(") (binary_expression "((iVar3 == 0) && (param_1[3] == 0)) &&\n     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" (parenthesized_expression "((iVar3 == 0) && (param_1[3] == 0))" (( "(") (binary_expression "(iVar3 == 0) && (param_1[3] == 0)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[3] == 0)" (( "(") (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))" (( "(") (parenthesized_expression "(iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1))" (( "(") (binary_expression "iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" (binary_expression "iVar2 != 2" (identifier "iVar2") (!= "!=") (number_literal "2")) (|| "||") (parenthesized_expression "(*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)" (( "(") (binary_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1" (pointer_expression "*(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" (* "*") (cast_expression "(int *)(*(int *)(param_1[2] + 0xc) + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1[2] + 0xc) + 0x30)" (( "(") (binary_expression "*(int *)(param_1[2] + 0xc) + 0x30" (pointer_expression "*(int *)(param_1[2] + 0xc)" (* "*") (cast_expression "(int *)(param_1[2] + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 0xc)" (( "(") (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "1")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = FUN_000da5d0();\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = FUN_000da5d0();" (assignment_expression "iVar2 = FUN_000da5d0()" (identifier "iVar2") (= "=") (call_expression "FUN_000da5d0()" (identifier "FUN_000da5d0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

int function_1
              (type_1 *var_15,int var_3,char *zUnused,int nUnused,
              type_2 **apVal)

{
  type_3 var_4;
  int var_16;
  int var_17;
  type_4 *var_10;
  type_5 *var_12;
  type_2 *var_5;
  type_2 *var_9;
  char *pToken;
  type_2 *var_6;
  type_6 *in_stack_ffffffd0;
  type_7 **in_stack_ffffffd4;
  
  var_17 = var_15->pVtab[2].nRef;
  var_15[10].pVtab = (type_5 *)0x0;
  var_15[0xb].pVtab = (type_5 *)0x0;
  if ((type_7 *)var_15[4].pVtab != (type_7 *)0x0) {
    in_stack_ffffffd0 = (type_6 *)0xdcec5;
    var_1((type_7 *)var_15[4].pVtab);
  }
  var_15[4].pVtab = (type_5 *)0x0;
  var_2(var_15[6].pVtab);
  var_15[5].pVtab = (type_5 *)&DAT_ffffffff;
  var_5 = (type_2 *)0x0;
  var_15[6].pVtab = (type_5 *)0x0;
  var_15[3].pVtab = (type_5 *)0x0;
  var_4 = var_3 & 1;
  if (var_4 != 0) {
    var_5 = *apVal;
  }
  var_6 = (type_2 *)0x0;
  if ((var_3 & 2U) != 0) {
    var_6 = apVal[var_4];
    var_4 = var_4 + 1;
  }
  var_9 = (type_2 *)0x0;
  if ((var_3 & 4U) != 0) {
    var_9 = apVal[var_4];
  }
  if (var_5 == (type_2 *)0x0) {
    if (var_6 != (type_2 *)0x0) {
      var_7(var_6);
      var_8(var_6);
    }
    if (var_9 == (type_2 *)0x0) {
      pToken = &DAT_00000008;
    }
    else {
      var_10 = var_7(var_9);
      if (var_10 == (type_4 *)0x0) {
        var_10 = "";
      }
      var_12 = (type_5 *)var_8(var_9);
      var_15[5].pVtab = var_12;
      var_12 = (type_5 *)var_11((int)((int)&var_12->pModule + 1));
      var_15[6].pVtab = var_12;
      if (var_12 == (type_5 *)0x0) {
        return 7;
      }
      var_13(var_12,var_10,(size_t)((int)&(var_15[5].pVtab)->pModule + 1));
      pToken = &DAT_00000008;
    }
  }
  else {
    var_7(var_5);
    var_8(var_5);
    pToken = (char *)0x0;
  }
  var_16 = var_14
                    ((type_8 *)var_15[2].pVtab[1].nRef,pToken,0,(int)(var_15 + 4),
                     in_stack_ffffffd0,in_stack_ffffffd4);
  if ((var_16 == 0) && (var_17 == 2)) {
    var_16 = var_18((type_9 *)var_15);
  }
  if (((var_16 == 0) && (var_15[3].pVtab == (type_5 *)0x0)) &&
     ((var_17 != 2 ||
      ((var_15[2].pVtab[1].pModule)->xRowid !=
       (type_10 *)0x1)))) {
    var_17 = var_19(var_15);
    return var_17;
  }
  return var_16;
}


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

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

int MASKED(int *param_1,uint param_2,undefined4 param_3,undefined4 param_4,int *param_5)

{
  uint uVar1;
  int iVar2;
  undefined *__src;
  void *__dest;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  
  iVar2 = *(int *)(*param_1 + 0x1c);
  param_1[10] = 0;
  param_1[0xb] = 0;
  if (param_1[4] != 0) {
    FUN_0008b5d0();
  }
  param_1[4] = 0;
  FUN_000264d0(param_1[6]);
  param_1[5] = -1;
  iVar3 = 0;
  param_1[6] = 0;
  param_1[3] = 0;
  uVar1 = param_2 & 1;
  if (uVar1 != 0) {
    iVar3 = *param_5;
  }
  iVar6 = 0;
  if ((param_2 & 2) != 0) {
    iVar6 = param_5[uVar1];
    uVar1 = uVar1 + 1;
  }
  iVar4 = 0;
  if ((param_2 & 4) != 0) {
    iVar4 = param_5[uVar1];
  }
  if (iVar3 == 0) {
    if (iVar6 != 0) {
      FUN_0004e670(iVar6);
      FUN_0004e4c0(iVar6);
    }
    if (iVar4 == 0) {
      uVar5 = 8;
    }
    else {
      __src = (undefined *)FUN_0004e670(iVar4);
      if (__src == (undefined *)0x0) {
        __src = &DAT_000f7177;
      }
      iVar3 = FUN_0004e4c0(iVar4);
      param_1[5] = iVar3;
      __dest = (void *)FUN_0003f8a0(iVar3 + 1);
      param_1[6] = (int)__dest;
      if (__dest == (void *)0x0) {
        return 7;
      }
      memcpy(__dest,__src,param_1[5] + 1);
      uVar5 = 8;
    }
  }
  else {
    FUN_0004e670(iVar3);
    FUN_0004e4c0(iVar3);
    uVar5 = 0;
  }
  iVar3 = FUN_000dc600(uVar5,0,param_1 + 4);
  if ((iVar3 == 0) && (iVar2 == 2)) {
    iVar3 = FUN_000691d0();
  }
  if (((iVar3 == 0) && (param_1[3] == 0)) &&
     ((iVar2 != 2 || (*(int *)(*(int *)(param_1[2] + 0xc) + 0x30) != 1)))) {
    iVar2 = FUN_000da5d0();
    return iVar2;
  }
  return iVar3;
}

