
void sqlite3RowidConstraint(Parse *pParse,int onError,Table *pTab)

{
  char *p4;
  int errCode;
  
  if (pTab->iPKey < 0) {
    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);
    errCode = 0xa13;
  }
  else {
    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);
    errCode = 0x613;
  }
  sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02');
  return;
}



void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)

{
  undefined8 uVar1;
  undefined8 uVar2;
  
  if (*(short *)((long)param_3 + 0x44) < 0) {
    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);
    uVar2 = 0xa13;
  }
  else {
    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,
                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])
                        );
    uVar2 = 0x613;
  }
  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV EBP,ESI
MOVZX EAX,word ptr [RDX + 0x44]
TEST AX,AX
JS 0x00169737
MOVSX RAX,AX
SHL RAX,0x5
ADD RAX,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RAX]
MOV RDX,qword ptr [RDX]
LEA RSI,[0x1f529d]
MOV RDI,qword ptr [RDI]
MOV EAX,0x0
CALL 0x00164566
MOV ESI,0x613
MOV R9D,0x2
MOV R8D,0xfffffff9
MOV RCX,RAX
MOV EDX,EBP
MOV RDI,RBX
CALL 0x001531cf
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RDX,qword ptr [RDX]
LEA RSI,[0x1f41ce]
MOV RDI,qword ptr [RDI]
MOV EAX,0x0
CALL 0x00164566
MOV ESI,0xa13
JMP 0x00169717
(translation_unit "void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}\n\n" (function_definition "void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" primitive_type (function_declarator "FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" if (parenthesized_expression "(*(short *)((long)param_3 + 0x44) < 0)" ( (binary_expression "*(short *)((long)param_3 + 0x44) < 0" (pointer_expression "*(short *)((long)param_3 + 0x44)" * (cast_expression "(short *)((long)param_3 + 0x44)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x44)" ( (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }" { (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3)" identifier = (call_expression "FUN_00164566(*param_1,"%s.rowid",*param_3)" identifier (argument_list "(*param_1,"%s.rowid",*param_3)" ( (pointer_expression "*param_1" * identifier) , (string_literal ""%s.rowid"" " string_content ") , (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar2 = 0xa13;" (assignment_expression "uVar2 = 0xa13" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" else (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" { (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" identifier = (call_expression "FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" identifier (argument_list "(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" ( (pointer_expression "*param_1" * identifier) , (string_literal ""%s.%s"" " string_content ") , (pointer_expression "*param_3" * identifier) , (pointer_expression "*(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" * (cast_expression "(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" ( (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1]" (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20" (cast_expression "(long)*(short *)((long)param_3 + 0x44)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(short *)((long)param_3 + 0x44)" * (cast_expression "(short *)((long)param_3 + 0x44)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x44)" ( (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_3[1]" identifier [ number_literal ])) )))) )))) ;) (expression_statement "uVar2 = 0x613;" (assignment_expression "uVar2 = 0x613" identifier = number_literal) ;) }))) (expression_statement "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);" (call_expression "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" identifier (argument_list "(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" ( identifier , identifier , identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3RowidConstraint(Parse *pParse,int onError,Table *pTab)\n\n{\n  char *p4;\n  int errCode;\n  \n  if (pTab->iPKey < 0) {\n    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);\n    errCode = 0xa13;\n  }\n  else {\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }\n  sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02');\n  return;\n}\n\n" (function_definition "void sqlite3RowidConstraint(Parse *pParse,int onError,Table *pTab)\n\n{\n  char *p4;\n  int errCode;\n  \n  if (pTab->iPKey < 0) {\n    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);\n    errCode = 0xa13;\n  }\n  else {\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }\n  sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02');\n  return;\n}" primitive_type (function_declarator "sqlite3RowidConstraint(Parse *pParse,int onError,Table *pTab)" identifier (parameter_list "(Parse *pParse,int onError,Table *pTab)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "int onError" primitive_type identifier) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  char *p4;\n  int errCode;\n  \n  if (pTab->iPKey < 0) {\n    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);\n    errCode = 0xa13;\n  }\n  else {\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }\n  sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02');\n  return;\n}" { (declaration "char *p4;" primitive_type (pointer_declarator "*p4" * identifier) ;) (declaration "int errCode;" primitive_type identifier ;) (if_statement "if (pTab->iPKey < 0) {\n    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);\n    errCode = 0xa13;\n  }\n  else {\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }" if (parenthesized_expression "(pTab->iPKey < 0)" ( (binary_expression "pTab->iPKey < 0" (field_expression "pTab->iPKey" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);\n    errCode = 0xa13;\n  }" { (expression_statement "p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName);" (assignment_expression "p4 = sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName)" identifier = (call_expression "sqlite3MPrintf(pParse->db,"%s.rowid",pTab->zName)" identifier (argument_list "(pParse->db,"%s.rowid",pTab->zName)" ( (field_expression "pParse->db" identifier -> field_identifier) , (string_literal ""%s.rowid"" " string_content ") , (field_expression "pTab->zName" identifier -> field_identifier) )))) ;) (expression_statement "errCode = 0xa13;" (assignment_expression "errCode = 0xa13" identifier = number_literal) ;) }) (else_clause "else {\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }" else (compound_statement "{\n    p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);\n    errCode = 0x613;\n  }" { (expression_statement "p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);" (assignment_expression "p4 = sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName)" identifier = (call_expression "sqlite3MPrintf(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName)" identifier (argument_list "(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName)" ( (field_expression "pParse->db" identifier -> field_identifier) , (string_literal ""%s.%s"" " string_content ") , (field_expression "pTab->zName" identifier -> field_identifier) , (field_expression "pTab->aCol[pTab->iPKey].zName" (subscript_expression "pTab->aCol[pTab->iPKey]" (field_expression "pTab->aCol" identifier -> field_identifier) [ (field_expression "pTab->iPKey" identifier -> field_identifier) ]) . field_identifier) )))) ;) (expression_statement "errCode = 0x613;" (assignment_expression "errCode = 0x613" identifier = number_literal) ;) }))) (expression_statement "sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02');" (call_expression "sqlite3HaltConstraint(pParse,errCode,onError,p4,-7,'\x02')" identifier (argument_list "(pParse,errCode,onError,p4,-7,'\x02')" ( identifier , identifier , identifier , identifier , number_literal , (char_literal "'\x02'" ' escape_sequence ') ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}\n\n" (function_definition "void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" primitive_type (function_declarator "FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" if (parenthesized_expression "(*(short *)((long)param_3 + 0x44) < 0)" ( (binary_expression "*(short *)((long)param_3 + 0x44) < 0" (pointer_expression "*(short *)((long)param_3 + 0x44)" * (cast_expression "(short *)((long)param_3 + 0x44)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x44)" ( (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }" { (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3)" identifier = (call_expression "FUN_00164566(*param_1,"%s.rowid",*param_3)" identifier (argument_list "(*param_1,"%s.rowid",*param_3)" ( (pointer_expression "*param_1" * identifier) , (string_literal ""%s.rowid"" " string_content ") , (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar2 = 0xa13;" (assignment_expression "uVar2 = 0xa13" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" else (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" { (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" identifier = (call_expression "FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" identifier (argument_list "(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" ( (pointer_expression "*param_1" * identifier) , (string_literal ""%s.%s"" " string_content ") , (pointer_expression "*param_3" * identifier) , (pointer_expression "*(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" * (cast_expression "(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" ( (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1]" (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20" (cast_expression "(long)*(short *)((long)param_3 + 0x44)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(short *)((long)param_3 + 0x44)" * (cast_expression "(short *)((long)param_3 + 0x44)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x44)" ( (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_3[1]" identifier [ number_literal ])) )))) )))) ;) (expression_statement "uVar2 = 0x613;" (assignment_expression "uVar2 = 0x613" identifier = number_literal) ;) }))) (expression_statement "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);" (call_expression "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" identifier (argument_list "(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" ( identifier , identifier , identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") , (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) * LIT) + (subscript_expression IDENT [ LIT ])) )))) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001696d8(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" (identifier "FUN_001696d8") (parameter_list "(undefined8 *param_1,undefined4 param_2,undefined8 *param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  \n  if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }\n  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (if_statement "if (*(short *)((long)param_3 + 0x44) < 0) {\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }\n  else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" (if "if") (parenthesized_expression "(*(short *)((long)param_3 + 0x44) < 0)" (( "(") (binary_expression "*(short *)((long)param_3 + 0x44) < 0" (pointer_expression "*(short *)((long)param_3 + 0x44)" (* "*") (cast_expression "(short *)((long)param_3 + 0x44)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0x44)" (( "(") (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0x44")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);\n    uVar2 = 0xa13;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3)" (identifier "uVar1") (= "=") (call_expression "FUN_00164566(*param_1,"%s.rowid",*param_3)" (identifier "FUN_00164566") (argument_list "(*param_1,"%s.rowid",*param_3)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (string_literal ""%s.rowid"" (" """) (string_content "%s.rowid") (" """)) (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "uVar2 = 0xa13;" (assignment_expression "uVar2 = 0xa13" (identifier "uVar2") (= "=") (number_literal "0xa13")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );\n    uVar2 = 0x613;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        );" (assignment_expression "uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" (identifier "uVar1") (= "=") (call_expression "FUN_00164566(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" (identifier "FUN_00164566") (argument_list "(*param_1,"%s.%s",*param_3,\n                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])\n                        )" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (string_literal ""%s.%s"" (" """) (string_content "%s.%s") (" """)) (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (pointer_expression "*(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" (* "*") (cast_expression "(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])" (( "(") (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1]" (binary_expression "(long)*(short *)((long)param_3 + 0x44) * 0x20" (cast_expression "(long)*(short *)((long)param_3 + 0x44)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(short *)((long)param_3 + 0x44)" (* "*") (cast_expression "(short *)((long)param_3 + 0x44)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0x44)" (( "(") (binary_expression "(long)param_3 + 0x44" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0x44")) () ")"))))) (* "*") (number_literal "0x20")) (+ "+") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = 0x613;" (assignment_expression "uVar2 = 0x613" (identifier "uVar2") (= "=") (number_literal "0x613")) (; ";")) (} "}")))) (expression_statement "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);" (call_expression "FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" (identifier "FUN_001531cf") (argument_list "(param_1,uVar2,param_2,uVar1,0xfffffff9,2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") (, ",") (number_literal "0xfffffff9") (, ",") (number_literal "2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pParse,int onError,type_2 *pTab)

{
  char *p4;
  int errCode;
  
  if (pTab->iPKey < 0) {
    p4 = var_1(pParse->db,"%s.rowid",pTab->zName);
    errCode = 0xa13;
  }
  else {
    p4 = var_1(pParse->db,"%s.%s",pTab->zName,pTab->aCol[pTab->iPKey].zName);
    errCode = 0x613;
  }
  var_2(pParse,errCode,onError,p4,-7,'\x02');
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (pointer_expression argument: (identifier)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))) right: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (number_literal) (number_literal)))) (return_statement))))

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

{
  undefined8 uVar1;
  undefined8 uVar2;
  
  if (*(short *)((long)param_3 + 0x44) < 0) {
    uVar1 = FUN_00164566(*param_1,"%s.rowid",*param_3);
    uVar2 = 0xa13;
  }
  else {
    uVar1 = FUN_00164566(*param_1,"%s.%s",*param_3,
                         *(undefined8 *)((long)*(short *)((long)param_3 + 0x44) * 0x20 + param_3[1])
                        );
    uVar2 = 0x613;
  }
  FUN_001531cf(param_1,uVar2,param_2,uVar1,0xfffffff9,2);
  return;
}

