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

{
  int iVar1;
  int eRemoveDiacritic;
  
  if (1 < nArg - 1U) {
    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);
    return;
  }
  iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal);
  if (nArg == 2) {
    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);
  }
  else {
    eRemoveDiacritic = 0;
  }
  iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic);
  (*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1);
  return;
}



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

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (1 < param_2 - 1U) {
    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);
    return;
  }
  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);
  if (param_2 == 2) {
    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);
  }
  else {
    uVar2 = 0;
  }
  uVar1 = FUN_00042438(uVar1,uVar2);
  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);
  return;
}


lui gp,0x11
addiu gp,gp,-0x6188
addu gp,gp,t9
addiu sp,sp,-0x30
addiu v0,a1,-0x1
sw gp,0x10(sp)
sltiu v0,v0,0x2
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
bne v0,zero,0x00059798
_sw s0,0x1c(sp)
lw a1,-0x7fc8(gp)
li a2,-0x1
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
addiu a1,a1,0x6de0
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7e40(gp)
b 0x00059148
_addiu sp,sp,0x30
lw t9,-0x7e7c(gp)
or s2,a0,zero
lw a0,0x0(a2)
or s1,a2,zero
jalr t9
_or s0,a1,zero
li v1,0x2
lw gp,0x10(sp)
beq s0,v1,0x00059800
_or s3,v0,zero
or a1,zero,zero
lw t9,-0x7ef0(gp)
addiu t9,t9,0x2438
bal 0x00042438
_or a0,s3,zero
or a0,s2,zero
lw gp,0x10(sp)
or a1,v0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7ec8(gp)
jr t9
_addiu sp,sp,0x30
lw t9,-0x7e7c(gp)
jalr t9
_lw a0,0x4(s1)
lw gp,0x10(sp)
b 0x000597c4
_or a1,v0,zero
(translation_unit "void FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00059738(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  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" if (parenthesized_expression "(1 < param_2 - 1U)" ( (binary_expression "1 < param_2 - 1U" number_literal < (binary_expression "param_2 - 1U" identifier - number_literal)) )) (compound_statement "{\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" { (expression_statement "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);" (call_expression "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" identifier (argument_list "(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" ( identifier , (binary_expression "PTR_LAB_0015b5e8 + 0x6de0" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }" { (expression_statement "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);" (assignment_expression "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) }) (else_clause "else {\n    uVar2 = 0;\n  }" else (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar1 = FUN_00042438(uVar1,uVar2);" (assignment_expression "uVar1 = FUN_00042438(uVar1,uVar2)" identifier = (call_expression "FUN_00042438(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);" (call_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)" ( (pointer_expression "*(code *)PTR_sqlite3_result_int_0015b6e8" * (cast_expression "(code *)PTR_sqlite3_result_int_0015b6e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void fts5ExprFold(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)\n\n{\n  int iVar1;\n  int eRemoveDiacritic;\n  \n  if (1 < nArg - 1U) {\n    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal);\n  if (nArg == 2) {\n    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);\n  }\n  else {\n    eRemoveDiacritic = 0;\n  }\n  iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1);\n  return;\n}\n\n" (function_definition "void fts5ExprFold(sqlite3_context *pCtx,int nArg,sqlite3_value **apVal)\n\n{\n  int iVar1;\n  int eRemoveDiacritic;\n  \n  if (1 < nArg - 1U) {\n    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal);\n  if (nArg == 2) {\n    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);\n  }\n  else {\n    eRemoveDiacritic = 0;\n  }\n  iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1);\n  return;\n}" primitive_type (function_declarator "fts5ExprFold(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  int iVar1;\n  int eRemoveDiacritic;\n  \n  if (1 < nArg - 1U) {\n    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal);\n  if (nArg == 2) {\n    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);\n  }\n  else {\n    eRemoveDiacritic = 0;\n  }\n  iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int eRemoveDiacritic;" primitive_type identifier ;) (if_statement "if (1 < nArg - 1U) {\n    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);\n    return;\n  }" if (parenthesized_expression "(1 < nArg - 1U)" ( (binary_expression "1 < nArg - 1U" number_literal < (binary_expression "nArg - 1U" identifier - number_literal)) )) (compound_statement "{\n    sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);\n    return;\n  }" { (expression_statement "sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1);" (call_expression "sqlite3_result_error(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1)" identifier (argument_list "(pCtx,PTR_LAB_0015b5e8 + 0x6de0,-1)" ( identifier , (binary_expression "PTR_LAB_0015b5e8 + 0x6de0" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*apVal)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(*apVal)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*apVal)" ( (pointer_expression "*apVal" * identifier) )))) ;) (if_statement "if (nArg == 2) {\n    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);\n  }\n  else {\n    eRemoveDiacritic = 0;\n  }" if (parenthesized_expression "(nArg == 2)" ( (binary_expression "nArg == 2" identifier == number_literal) )) (compound_statement "{\n    eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);\n  }" { (expression_statement "eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1]);" (assignment_expression "eRemoveDiacritic = (*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1])" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(apVal[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(apVal[1])" ( (subscript_expression "apVal[1]" identifier [ number_literal ]) )))) ;) }) (else_clause "else {\n    eRemoveDiacritic = 0;\n  }" else (compound_statement "{\n    eRemoveDiacritic = 0;\n  }" { (expression_statement "eRemoveDiacritic = 0;" (assignment_expression "eRemoveDiacritic = 0" identifier = number_literal) ;) }))) (expression_statement "iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic);" (assignment_expression "iVar1 = sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic)" identifier = (call_expression "sqlite3Fts5UnicodeFold(iVar1,eRemoveDiacritic)" identifier (argument_list "(iVar1,eRemoveDiacritic)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1);" (call_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)(pCtx,iVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)" ( (pointer_expression "*(code *)PTR_sqlite3_result_int_0015b6e8" * (cast_expression "(code *)PTR_sqlite3_result_int_0015b6e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCtx,iVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00059738(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  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" if (parenthesized_expression "(1 < param_2 - 1U)" ( (binary_expression "1 < param_2 - 1U" number_literal < (binary_expression "param_2 - 1U" identifier - number_literal)) )) (compound_statement "{\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" { (expression_statement "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);" (call_expression "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" identifier (argument_list "(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" ( identifier , (binary_expression "PTR_LAB_0015b5e8 + 0x6de0" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }" { (expression_statement "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);" (assignment_expression "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" * (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) }) (else_clause "else {\n    uVar2 = 0;\n  }" else (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar1 = FUN_00042438(uVar1,uVar2);" (assignment_expression "uVar1 = FUN_00042438(uVar1,uVar2)" identifier = (call_expression "FUN_00042438(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);" (call_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)" ( (pointer_expression "*(code *)PTR_sqlite3_result_int_0015b6e8" * (cast_expression "(code *)PTR_sqlite3_result_int_0015b6e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (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 ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00059738(undefined4 param_1,int param_2,undefined4 *param_3)" (identifier "FUN_00059738") (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  undefined4 uVar2;\n  \n  if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }\n  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);\n  if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }\n  uVar1 = FUN_00042438(uVar1,uVar2);\n  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (1 < param_2 - 1U) {\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" (if "if") (parenthesized_expression "(1 < param_2 - 1U)" (( "(") (binary_expression "1 < param_2 - 1U" (number_literal "1") (< "<") (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);\n    return;\n  }" ({ "{") (expression_statement "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);" (call_expression "sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" (identifier "sqlite3_result_error") (argument_list "(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_0015b5e8 + 0x6de0" (identifier "PTR_LAB_0015b5e8") (+ "+") (number_literal "0x6de0")) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" (* "*") (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_int_0015b734"))) () ")")) (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (if_statement "if (param_2 == 2) {\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }\n  else {\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);" (assignment_expression "uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int_0015b734)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_int_0015b734" (* "*") (cast_expression "(code *)PTR_sqlite3_value_int_0015b734" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_int_0015b734"))) () ")")) (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uVar1 = FUN_00042438(uVar1,uVar2);" (assignment_expression "uVar1 = FUN_00042438(uVar1,uVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_00042438(uVar1,uVar2)" (identifier "FUN_00042438") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);" (call_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_int_0015b6e8)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_result_int_0015b6e8" (* "*") (cast_expression "(code *)PTR_sqlite3_result_int_0015b6e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_result_int_0015b6e8"))) () ")")) (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "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: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

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

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (1 < param_2 - 1U) {
    sqlite3_result_error(param_1,PTR_LAB_0015b5e8 + 0x6de0,0xffffffff);
    return;
  }
  uVar1 = (*(code *)PTR_sqlite3_value_int_0015b734)(*param_3);
  if (param_2 == 2) {
    uVar2 = (*(code *)PTR_sqlite3_value_int_0015b734)(param_3[1]);
  }
  else {
    uVar2 = 0;
  }
  uVar1 = FUN_00042438(uVar1,uVar2);
  (*(code *)PTR_sqlite3_result_int_0015b6e8)(param_1,uVar1);
  return;
}

