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

void fts5RowidFunction(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)

{
  uchar *zLeft;
  int iVar1;
  int iVar2;
  
  if (nArg == 0) {
    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);
    return;
  }
  zLeft = sqlite3_value_text(*apVal);
  iVar1 = sqlite3_stricmp((char *)zLeft,"segment");
  if (iVar1 == 0) {
    if (nArg != 3) {
      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);
      return;
    }
    iVar1 = sqlite3_value_int(apVal[1]);
    iVar2 = sqlite3_value_int(apVal[2]);
    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));
    return;
  }
  sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);
  return;
}



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

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

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if (param_2 == 0) {
    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);
    return;
  }
  uVar1 = FUN_0004ce60(*param_3);
  iVar2 = FUN_00027b40(uVar1,"segment");
  if (iVar2 == 0) {
    if (param_2 != 3) {
      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);
      return;
    }
    iVar2 = FUN_0002bb30(param_3[1]);
    iVar3 = FUN_0002bb30(param_3[2]);
    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));
    return;
  }
  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xf9e4b
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x24]
TEST ESI,ESI
JNZ 0x0004f0c0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb9d38]
PUSH -0x1
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000457b0
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x34]
PUSH dword ptr [EAX]
CALL 0x0004ce60
LEA EDX,[EBX + 0xfffada32]
POP EDI
POP EBP
PUSH EDX
PUSH EAX
CALL 0x00027b40
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004f110
CMP ESI,0x3
JZ 0x0004f130
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb9d60]
PUSH -0x1
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000457b0
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb9d90]
PUSH -0x1
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000457b0
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x34]
PUSH dword ptr [EAX + 0x4]
CALL 0x0002bb30
MOV EDI,EAX
POP EAX
MOV EAX,dword ptr [ESP + 0x34]
PUSH dword ptr [EAX + 0x8]
CALL 0x0002bb30
MOV EDX,EDI
ADD ESP,0xc
MOV ESI,EAX
MOV EAX,0x0
SHL EDX,0x5
MOV EDI,ESI
SAR EDI,0x1f
ADD EAX,ESI
ADC EDX,EDI
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x00025040
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}\n\n" comment (function_definition "void FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" primitive_type (function_declarator "FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" { (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" identifier (argument_list "(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" ( identifier , (string_literal ""should be: fts5_rowid(subject, ....)"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = FUN_0004ce60(*param_3);" (assignment_expression "uVar1 = FUN_0004ce60(*param_3)" identifier = (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar2 = FUN_00027b40(uVar1,"segment");" (assignment_expression "iVar2 = FUN_00027b40(uVar1,"segment")" identifier = (call_expression "FUN_00027b40(uVar1,"segment")" identifier (argument_list "(uVar1,"segment")" ( identifier , (string_literal ""segment"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" { (if_statement "if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" if (parenthesized_expression "(param_2 != 3)" ( (binary_expression "param_2 != 3" identifier != number_literal) )) (compound_statement "{\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" { (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" identifier (argument_list "(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" ( identifier , (string_literal ""should be: fts5_rowid(\'segment\', segid, pgno))"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar2 = FUN_0002bb30(param_3[1])" identifier = (call_expression "FUN_0002bb30(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar3 = FUN_0002bb30(param_3[2]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[2])" identifier = (call_expression "FUN_0002bb30(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) )))) ;) (expression_statement "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));" (call_expression "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" identifier (argument_list "(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" ( identifier , identifier , (binary_expression "iVar2 * 0x20 + (iVar3 >> 0x1f)" (binary_expression "iVar2 * 0x20" identifier * number_literal) + (parenthesized_expression "(iVar3 >> 0x1f)" ( (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);" (call_expression "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" identifier (argument_list "(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" ( identifier , (string_literal ""first arg to fts5_rowid() must be \'segment\'"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid fts5RowidFunction(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)\n\n{\n  uchar *zLeft;\n  int iVar1;\n  int iVar2;\n  \n  if (nArg == 0) {\n    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);\n    return;\n  }\n  zLeft = sqlite3_value_text(*apVal);\n  iVar1 = sqlite3_stricmp((char *)zLeft,"segment");\n  if (iVar1 == 0) {\n    if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }\n    iVar1 = sqlite3_value_int(apVal[1]);\n    iVar2 = sqlite3_value_int(apVal[2]);\n    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));\n    return;\n  }\n  sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);\n  return;\n}\n\n" comment comment (function_definition "void fts5RowidFunction(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)\n\n{\n  uchar *zLeft;\n  int iVar1;\n  int iVar2;\n  \n  if (nArg == 0) {\n    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);\n    return;\n  }\n  zLeft = sqlite3_value_text(*apVal);\n  iVar1 = sqlite3_stricmp((char *)zLeft,"segment");\n  if (iVar1 == 0) {\n    if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }\n    iVar1 = sqlite3_value_int(apVal[1]);\n    iVar2 = sqlite3_value_int(apVal[2]);\n    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));\n    return;\n  }\n  sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);\n  return;\n}" primitive_type (function_declarator "fts5RowidFunction(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)" identifier (parameter_list "(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int nArg" primitive_type identifier) , (parameter_declaration "sqlite3_value **apVal" type_identifier (pointer_declarator "**apVal" * (pointer_declarator "*apVal" * identifier))) ))) (compound_statement "{\n  uchar *zLeft;\n  int iVar1;\n  int iVar2;\n  \n  if (nArg == 0) {\n    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);\n    return;\n  }\n  zLeft = sqlite3_value_text(*apVal);\n  iVar1 = sqlite3_stricmp((char *)zLeft,"segment");\n  if (iVar1 == 0) {\n    if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }\n    iVar1 = sqlite3_value_int(apVal[1]);\n    iVar2 = sqlite3_value_int(apVal[2]);\n    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));\n    return;\n  }\n  sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);\n  return;\n}" { (declaration "uchar *zLeft;" type_identifier (pointer_declarator "*zLeft" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (nArg == 0) {\n    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);\n    return;\n  }" if (parenthesized_expression "(nArg == 0)" ( (binary_expression "nArg == 0" identifier == number_literal) )) (compound_statement "{\n    sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);\n    return;\n  }" { (expression_statement "sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1);" (call_expression "sqlite3_result_error(pCtx,"should be: fts5_rowid(subject, ....)",-1)" identifier (argument_list "(pCtx,"should be: fts5_rowid(subject, ....)",-1)" ( identifier , (string_literal ""should be: fts5_rowid(subject, ....)"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "zLeft = sqlite3_value_text(*apVal);" (assignment_expression "zLeft = sqlite3_value_text(*apVal)" identifier = (call_expression "sqlite3_value_text(*apVal)" identifier (argument_list "(*apVal)" ( (pointer_expression "*apVal" * identifier) )))) ;) (expression_statement "iVar1 = sqlite3_stricmp((char *)zLeft,"segment");" (assignment_expression "iVar1 = sqlite3_stricmp((char *)zLeft,"segment")" identifier = (call_expression "sqlite3_stricmp((char *)zLeft,"segment")" identifier (argument_list "((char *)zLeft,"segment")" ( (cast_expression "(char *)zLeft" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""segment"" " string_content ") )))) ;) (if_statement "if (iVar1 == 0) {\n    if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }\n    iVar1 = sqlite3_value_int(apVal[1]);\n    iVar2 = sqlite3_value_int(apVal[2]);\n    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }\n    iVar1 = sqlite3_value_int(apVal[1]);\n    iVar2 = sqlite3_value_int(apVal[2]);\n    sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));\n    return;\n  }" { (if_statement "if (nArg != 3) {\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }" if (parenthesized_expression "(nArg != 3)" ( (binary_expression "nArg != 3" identifier != number_literal) )) (compound_statement "{\n      sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);\n      return;\n    }" { (expression_statement "sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);" (call_expression "sqlite3_result_error(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1)" identifier (argument_list "(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1)" ( identifier , (string_literal ""should be: fts5_rowid(\'segment\', segid, pgno))"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = sqlite3_value_int(apVal[1]);" (assignment_expression "iVar1 = sqlite3_value_int(apVal[1])" identifier = (call_expression "sqlite3_value_int(apVal[1])" identifier (argument_list "(apVal[1])" ( (subscript_expression "apVal[1]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar2 = sqlite3_value_int(apVal[2]);" (assignment_expression "iVar2 = sqlite3_value_int(apVal[2])" identifier = (call_expression "sqlite3_value_int(apVal[2])" identifier (argument_list "(apVal[2])" ( (subscript_expression "apVal[2]" identifier [ number_literal ]) )))) ;) (expression_statement "sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2));" (call_expression "sqlite3_result_int64(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2))" identifier (argument_list "(pCtx,CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2))" ( identifier , (call_expression "CONCAT44(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2)" identifier (argument_list "(iVar1 * 0x20 + (iVar2 >> 0x1f),iVar2)" ( (binary_expression "iVar1 * 0x20 + (iVar2 >> 0x1f)" (binary_expression "iVar1 * 0x20" identifier * number_literal) + (parenthesized_expression "(iVar2 >> 0x1f)" ( (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) ))) , identifier ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);" (call_expression "sqlite3_result_error(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1)" identifier (argument_list "(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1)" ( identifier , (string_literal ""first arg to fts5_rowid() must be \'segment\'"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}\n\n" (function_definition "void FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" primitive_type (function_declarator "FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" { (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" identifier (argument_list "(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" ( identifier , (string_literal ""should be: fts5_rowid(subject, ....)"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = FUN_0004ce60(*param_3);" (assignment_expression "uVar1 = FUN_0004ce60(*param_3)" identifier = (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar2 = FUN_00027b40(uVar1,"segment");" (assignment_expression "iVar2 = FUN_00027b40(uVar1,"segment")" identifier = (call_expression "FUN_00027b40(uVar1,"segment")" identifier (argument_list "(uVar1,"segment")" ( identifier , (string_literal ""segment"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" { (if_statement "if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" if (parenthesized_expression "(param_2 != 3)" ( (binary_expression "param_2 != 3" identifier != number_literal) )) (compound_statement "{\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" { (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" identifier (argument_list "(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" ( identifier , (string_literal ""should be: fts5_rowid(\'segment\', segid, pgno))"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar2 = FUN_0002bb30(param_3[1])" identifier = (call_expression "FUN_0002bb30(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar3 = FUN_0002bb30(param_3[2]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[2])" identifier = (call_expression "FUN_0002bb30(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) )))) ;) (expression_statement "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));" (call_expression "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" identifier (argument_list "(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" ( identifier , identifier , (binary_expression "iVar2 * 0x20 + (iVar3 >> 0x1f)" (binary_expression "iVar2 * 0x20" identifier * number_literal) + (parenthesized_expression "(iVar3 >> 0x1f)" ( (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);" (call_expression "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" identifier (argument_list "(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" ( identifier , (string_literal ""first arg to fts5_rowid() must be \'segment\'"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (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 , (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (binary_expression IDENT * LIT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004f080(undefined4 param_1,int param_2,undefined4 *param_3)" (identifier "FUN_0004f080") (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }\n  uVar1 = FUN_0004ce60(*param_3);\n  iVar2 = FUN_00027b40(uVar1,"segment");\n  if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }\n  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_2 == 0) {\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);\n    return;\n  }" ({ "{") (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""should be: fts5_rowid(subject, ....)"" (" """) (string_content "should be: fts5_rowid(subject, ....)") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = FUN_0004ce60(*param_3);" (assignment_expression "uVar1 = FUN_0004ce60(*param_3)" (identifier "uVar1") (= "=") (call_expression "FUN_0004ce60(*param_3)" (identifier "FUN_0004ce60") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00027b40(uVar1,"segment");" (assignment_expression "iVar2 = FUN_00027b40(uVar1,"segment")" (identifier "iVar2") (= "=") (call_expression "FUN_00027b40(uVar1,"segment")" (identifier "FUN_00027b40") (argument_list "(uVar1,"segment")" (( "(") (identifier "uVar1") (, ",") (string_literal ""segment"" (" """) (string_content "segment") (" """)) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }\n    iVar2 = FUN_0002bb30(param_3[1]);\n    iVar3 = FUN_0002bb30(param_3[2]);\n    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));\n    return;\n  }" ({ "{") (if_statement "if (param_2 != 3) {\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 != 3)" (( "(") (binary_expression "param_2 != 3" (identifier "param_2") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);\n      return;\n    }" ({ "{") (expression_statement "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);" (call_expression "FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""should be: fts5_rowid(\'segment\', segid, pgno))"" (" """) (string_content "should be: fts5_rowid(") (escape_sequence "\'") (string_content "segment") (escape_sequence "\'") (string_content ", segid, pgno))") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar2 = FUN_0002bb30(param_3[1])" (identifier "iVar2") (= "=") (call_expression "FUN_0002bb30(param_3[1])" (identifier "FUN_0002bb30") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0002bb30(param_3[2]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[2])" (identifier "iVar3") (= "=") (call_expression "FUN_0002bb30(param_3[2])" (identifier "FUN_0002bb30") (argument_list "(param_3[2])" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));" (call_expression "FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" (identifier "FUN_00025040") (argument_list "(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f))" (( "(") (identifier "param_1") (, ",") (identifier "iVar3") (, ",") (binary_expression "iVar2 * 0x20 + (iVar3 >> 0x1f)" (binary_expression "iVar2 * 0x20" (identifier "iVar2") (* "*") (number_literal "0x20")) (+ "+") (parenthesized_expression "(iVar3 >> 0x1f)" (( "(") (binary_expression "iVar3 >> 0x1f" (identifier "iVar3") (>> ">>") (number_literal "0x1f")) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);" (call_expression "FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""first arg to fts5_rowid() must be \'segment\'"" (" """) (string_content "first arg to fts5_rowid() must be ") (escape_sequence "\'") (string_content "segment") (escape_sequence "\'") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *pCtx,int var_1,type_2 **apVal)

{
  type_3 *zLeft;
  int var_5;
  int var_9;
  
  if (var_1 == 0) {
    var_2(pCtx,"should be: fts5_rowid(subject, ....)",-1);
    return;
  }
  zLeft = var_3(*apVal);
  var_5 = var_4((char *)zLeft,"segment");
  if (var_5 == 0) {
    if (var_1 != 3) {
      var_2(pCtx,"should be: fts5_rowid(\'segment\', segid, pgno))",-1);
      return;
    }
    var_5 = var_6(apVal[1]);
    var_9 = var_6(apVal[2]);
    var_7(pCtx,var_8(var_5 * 0x20 + (var_9 >> 0x1f),var_9));
    return;
  }
  var_2(pCtx,"first arg to fts5_rowid() must be \'segment\'",-1);
  return;
}


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

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

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

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if (param_2 == 0) {
    FUN_000457b0(param_1,"should be: fts5_rowid(subject, ....)",0xffffffff);
    return;
  }
  uVar1 = FUN_0004ce60(*param_3);
  iVar2 = FUN_00027b40(uVar1,"segment");
  if (iVar2 == 0) {
    if (param_2 != 3) {
      FUN_000457b0(param_1,"should be: fts5_rowid(\'segment\', segid, pgno))",0xffffffff);
      return;
    }
    iVar2 = FUN_0002bb30(param_3[1]);
    iVar3 = FUN_0002bb30(param_3[2]);
    FUN_00025040(param_1,iVar3,iVar2 * 0x20 + (iVar3 >> 0x1f));
    return;
  }
  FUN_000457b0(param_1,"first arg to fts5_rowid() must be \'segment\'",0xffffffff);
  return;
}

