
sqlite3_int64 getIntArg(PrintfArguments *p)

{
  int iVar1;
  i64 iVar2;
  
  iVar1 = p->nUsed;
  if (p->nArg <= iVar1) {
    return 0;
  }
  p->nUsed = iVar1 + 1;
  iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1]);
  return iVar2;
}



undefined8 FUN_0005801c(int *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  iVar1 = param_1[1];
  if (*param_1 <= iVar1) {
    return 0;
  }
  param_1[1] = iVar1 + 1;
  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));
  return uVar2;
}


lui gp,0x14
addiu gp,gp,0x904
addu gp,gp,t9
lw v1,0x4(a0)
lw v0,0x0(a0)
slt v0,v1,v0
bne v0,zero,0x00058044
_or v0,zero,zero
jr ra
_or v1,zero,zero
lw v0,0x8(a0)
sll a1,v1,0x2
addiu v1,v1,0x1
lw t9,-0x7d78(gp)
addu v0,v0,a1
sw v1,0x4(a0)
addiu t9,t9,0x7f68
b 0x00057f68
_lw a0,0x0(v0)
(translation_unit "undefined8 FUN_0005801c(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0005801c(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005801c(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 <= iVar1) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 <= iVar1)" ( (binary_expression "*param_1 <= iVar1" (pointer_expression "*param_1" * identifier) <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));" (assignment_expression "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" identifier = (call_expression "FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" identifier (argument_list "(*(undefined4 *)(param_1[2] + iVar1 * 4))" ( (pointer_expression "*(undefined4 *)(param_1[2] + iVar1 * 4)" * (cast_expression "(undefined4 *)(param_1[2] + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar1 * 4)" ( (binary_expression "param_1[2] + iVar1 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "sqlite3_int64 getIntArg(PrintfArguments *p)\n\n{\n  int iVar1;\n  i64 iVar2;\n  \n  iVar1 = p->nUsed;\n  if (p->nArg <= iVar1) {\n    return 0;\n  }\n  p->nUsed = iVar1 + 1;\n  iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1]);\n  return iVar2;\n}\n\n" (function_definition "sqlite3_int64 getIntArg(PrintfArguments *p)\n\n{\n  int iVar1;\n  i64 iVar2;\n  \n  iVar1 = p->nUsed;\n  if (p->nArg <= iVar1) {\n    return 0;\n  }\n  p->nUsed = iVar1 + 1;\n  iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1]);\n  return iVar2;\n}" type_identifier (function_declarator "getIntArg(PrintfArguments *p)" identifier (parameter_list "(PrintfArguments *p)" ( (parameter_declaration "PrintfArguments *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  i64 iVar2;\n  \n  iVar1 = p->nUsed;\n  if (p->nArg <= iVar1) {\n    return 0;\n  }\n  p->nUsed = iVar1 + 1;\n  iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1]);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "i64 iVar2;" type_identifier identifier ;) (expression_statement "iVar1 = p->nUsed;" (assignment_expression "iVar1 = p->nUsed" identifier = (field_expression "p->nUsed" identifier -> field_identifier)) ;) (if_statement "if (p->nArg <= iVar1) {\n    return 0;\n  }" if (parenthesized_expression "(p->nArg <= iVar1)" ( (binary_expression "p->nArg <= iVar1" (field_expression "p->nArg" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "p->nUsed = iVar1 + 1;" (assignment_expression "p->nUsed = iVar1 + 1" (field_expression "p->nUsed" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1]);" (assignment_expression "iVar2 = sqlite3VdbeIntValue(p->apArg[iVar1])" identifier = (call_expression "sqlite3VdbeIntValue(p->apArg[iVar1])" identifier (argument_list "(p->apArg[iVar1])" ( (subscript_expression "p->apArg[iVar1]" (field_expression "p->apArg" identifier -> field_identifier) [ identifier ]) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined8 FUN_0005801c(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0005801c(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005801c(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 <= iVar1) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 <= iVar1)" ( (binary_expression "*param_1 <= iVar1" (pointer_expression "*param_1" * identifier) <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));" (assignment_expression "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" identifier = (call_expression "FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" identifier (argument_list "(*(undefined4 *)(param_1[2] + iVar1 * 4))" ( (pointer_expression "*(undefined4 *)(param_1[2] + iVar1 * 4)" * (cast_expression "(undefined4 *)(param_1[2] + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar1 * 4)" ( (binary_expression "param_1[2] + iVar1 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_0005801c(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "FUN_0005801c(int *param_1)" (identifier "FUN_0005801c") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = param_1[1];\n  if (*param_1 <= iVar1) {\n    return 0;\n  }\n  param_1[1] = iVar1 + 1;\n  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*param_1 <= iVar1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 <= iVar1)" (( "(") (binary_expression "*param_1 <= iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));" (assignment_expression "uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" (identifier "uVar2") (= "=") (call_expression "FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4))" (identifier "FUN_00057f68") (argument_list "(*(undefined4 *)(param_1[2] + iVar1 * 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1[2] + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1[2] + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + iVar1 * 4)" (( "(") (binary_expression "param_1[2] + iVar1 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 function_1(type_2 *p)

{
  int var_1;
  type_3 iVar2;
  
  var_1 = p->nUsed;
  if (p->nArg <= var_1) {
    return 0;
  }
  p->nUsed = var_1 + 1;
  iVar2 = var_2(p->apArg[var_1]);
  return iVar2;
}


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

undefined8 MASKED(int *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  iVar1 = param_1[1];
  if (*param_1 <= iVar1) {
    return 0;
  }
  param_1[1] = iVar1 + 1;
  uVar2 = FUN_00057f68(*(undefined4 *)(param_1[2] + iVar1 * 4));
  return uVar2;
}

