
int stmtNext(sqlite3_vtab_cursor *cur)

{
  sqlite3_vtab *psVar1;
  sqlite3_vtab *psVar2;
  
  psVar1 = cur[5].pVtab;
  psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1);
  cur[5].pVtab = psVar2;
  cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1));
  psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab);
  cur[2].pVtab = psVar1;
  return 0;
}



undefined4 FUN_00025738(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  uint uVar3;
  
  uVar1 = *(uint *)(param_1 + 0x14);
  uVar3 = uVar1 + 1;
  *(uint *)(param_1 + 0x14) = uVar3;
  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);
  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = uVar2;
  return 0;
}


lui gp,0x14
addiu gp,gp,-0x1188
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7ee8(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw v0,0x14(a0)
lw a2,0x10(a0)
lw a1,0x8(a0)
addiu v1,v0,0x1
lw a0,0x4(a0)
sltu v0,v1,v0
sw v1,0x14(s0)
addu v0,v0,a2
bal 0x0001f948
_sw v0,0x10(s0)
sw v0,0x8(s0)
or v0,zero,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_00025738(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00025738(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00025738(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);" (assignment_expression "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "(uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int stmtNext(sqlite3_vtab_cursor *cur)\n\n{\n  sqlite3_vtab *psVar1;\n  sqlite3_vtab *psVar2;\n  \n  psVar1 = cur[5].pVtab;\n  psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1);\n  cur[5].pVtab = psVar2;\n  cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1));\n  psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab);\n  cur[2].pVtab = psVar1;\n  return 0;\n}\n\n" (function_definition "int stmtNext(sqlite3_vtab_cursor *cur)\n\n{\n  sqlite3_vtab *psVar1;\n  sqlite3_vtab *psVar2;\n  \n  psVar1 = cur[5].pVtab;\n  psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1);\n  cur[5].pVtab = psVar2;\n  cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1));\n  psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab);\n  cur[2].pVtab = psVar1;\n  return 0;\n}" primitive_type (function_declarator "stmtNext(sqlite3_vtab_cursor *cur)" identifier (parameter_list "(sqlite3_vtab_cursor *cur)" ( (parameter_declaration "sqlite3_vtab_cursor *cur" type_identifier (pointer_declarator "*cur" * identifier)) ))) (compound_statement "{\n  sqlite3_vtab *psVar1;\n  sqlite3_vtab *psVar2;\n  \n  psVar1 = cur[5].pVtab;\n  psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1);\n  cur[5].pVtab = psVar2;\n  cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1));\n  psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab);\n  cur[2].pVtab = psVar1;\n  return 0;\n}" { (declaration "sqlite3_vtab *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "sqlite3_vtab *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (expression_statement "psVar1 = cur[5].pVtab;" (assignment_expression "psVar1 = cur[5].pVtab" identifier = (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1);" (assignment_expression "psVar2 = (sqlite3_vtab *)((int)&psVar1->pModule + 1)" identifier = (cast_expression "(sqlite3_vtab *)((int)&psVar1->pModule + 1)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&psVar1->pModule + 1)" ( (binary_expression "(int)&psVar1->pModule + 1" (cast_expression "(int)&psVar1->pModule" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&psVar1->pModule" & (field_expression "psVar1->pModule" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "cur[5].pVtab = psVar2;" (assignment_expression "cur[5].pVtab = psVar2" (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1));" (assignment_expression "cur[4].pVtab = (sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1))" (field_expression "cur[4].pVtab" (subscript_expression "cur[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1))" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1))" ( (binary_expression "(int)&(cur[4].pVtab)->pModule + (uint)(psVar2 < psVar1)" (cast_expression "(int)&(cur[4].pVtab)->pModule" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(cur[4].pVtab)->pModule" & (field_expression "(cur[4].pVtab)->pModule" (parenthesized_expression "(cur[4].pVtab)" ( (field_expression "cur[4].pVtab" (subscript_expression "cur[4]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier))) + (call_expression "(uint)(psVar2 < psVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar2 < psVar1)" ( (binary_expression "psVar2 < psVar1" identifier < identifier) )))) )))) ;) (expression_statement "psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab);" (assignment_expression "psVar1 = (sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab)" identifier = (cast_expression "(sqlite3_vtab *)sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_next_stmt((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,(sqlite3_stmt *)cur[2].pVtab)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , (cast_expression "(sqlite3_stmt *)cur[2].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[2].pVtab" (subscript_expression "cur[2]" identifier [ number_literal ]) . field_identifier)) ))))) ;) (expression_statement "cur[2].pVtab = psVar1;" (assignment_expression "cur[2].pVtab = psVar1" (field_expression "cur[2].pVtab" (subscript_expression "cur[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00025738(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00025738(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00025738(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);" (assignment_expression "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "(uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00025738(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00025738(int param_1)" (identifier "FUN_00025738") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x14);\n  uVar3 = uVar1 + 1;\n  *(uint *)(param_1 + 0x14) = uVar3;\n  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);\n  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);" (assignment_expression "*(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "(uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10)" (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar1)" (( "(") (binary_expression "uVar3 < uVar1" (identifier "uVar3") (< "<") (identifier "uVar1")) () ")"))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (expression_statement "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" (identifier "uVar2") (= "=") (call_expression "sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" (identifier "sqlite3_next_stmt") (argument_list "(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *cur)

{
  type_2 *var_2;
  type_2 *var_1;
  
  var_2 = cur[5].pVtab;
  var_1 = (type_2 *)((int)&var_2->pModule + 1);
  cur[5].pVtab = var_1;
  cur[4].pVtab = (type_2 *)((int)&(cur[4].pVtab)->pModule + (uint)(var_1 < var_2));
  var_2 = (type_2 *)var_3((type_3 *)cur[1].pVtab,(type_4 *)cur[2].pVtab);
  cur[2].pVtab = var_2;
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  uint uVar3;
  
  uVar1 = *(uint *)(param_1 + 0x14);
  uVar3 = uVar1 + 1;
  *(uint *)(param_1 + 0x14) = uVar3;
  *(uint *)(param_1 + 0x10) = (uint)(uVar3 < uVar1) + *(int *)(param_1 + 0x10);
  uVar2 = sqlite3_next_stmt(*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = uVar2;
  return 0;
}

