
void sqlite3VtabImportErrmsg(Vdbe *p,sqlite3_vtab *pVtab)

{
  char *pcVar1;
  sqlite3 *db;
  
  if (pVtab->zErrMsg != (char *)0x0) {
    db = p->db;
    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);
    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);
    p->zErrMsg = pcVar1;
    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);
    pVtab->zErrMsg = (char *)0x0;
    return;
  }
  return;
}



void FUN_0005a128(undefined4 *param_1,int param_2)

{
  undefined4 uVar1;
  
  if (*(int *)(param_2 + 8) != 0) {
    uVar1 = *param_1;
    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);
    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));
    param_1[0x1f] = uVar1;
    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));
    *(undefined4 *)(param_2 + 8) = 0;
    return;
  }
  return;
}


lui gp,0xa
addiu gp,gp,0x4178
addu gp,gp,t9
lw v0,0x8(a1)
beq v0,zero,0x0005a1d0
_nop
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a1,zero
or s1,a0,zero
lw s2,0x0(a0)
lw a1,0x7c(a0)
or a0,s2,zero
lw t9,-0x7f9c(gp)
addiu t9,t9,-0x2eec
jalr t9
_nop
lw gp,0x10(sp)
lw a1,0x8(s0)
or a0,s2,zero
lw t9,-0x7fb8(gp)
addiu t9,t9,-0x5f88
bal 0x0005a078
_nop
lw gp,0x10(sp)
sw v0,0x7c(s1)
lw a0,0x8(s0)
lw t9,-0x7f04(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x8(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_nop
(translation_unit "void FUN_0005a128(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005a128(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005a128(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) != 0)" ( (binary_expression "*(int *)(param_2 + 8) != 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);" (call_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f])" (parenthesized_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))" ( (pointer_expression "*(code *)(PTR_LAB_000f6304 + -0x2eec)" * (cast_expression "(code *)(PTR_LAB_000f6304 + -0x2eec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f6304 + -0x2eec)" ( (binary_expression "PTR_LAB_000f6304 + -0x2eec" identifier + number_literal) )))) )) (argument_list "(uVar1,param_1[0x1f])" ( identifier , (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" identifier = (call_expression "FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" identifier (argument_list "(uVar1,*(undefined4 *)(param_2 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "param_1[0x1f] = uVar1;" (assignment_expression "param_1[0x1f] = uVar1" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 8) = 0" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3VtabImportErrmsg(Vdbe *p,sqlite3_vtab *pVtab)\n\n{\n  char *pcVar1;\n  sqlite3 *db;\n  \n  if (pVtab->zErrMsg != (char *)0x0) {\n    db = p->db;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);\n    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);\n    p->zErrMsg = pcVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);\n    pVtab->zErrMsg = (char *)0x0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sqlite3VtabImportErrmsg(Vdbe *p,sqlite3_vtab *pVtab)\n\n{\n  char *pcVar1;\n  sqlite3 *db;\n  \n  if (pVtab->zErrMsg != (char *)0x0) {\n    db = p->db;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);\n    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);\n    p->zErrMsg = pcVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);\n    pVtab->zErrMsg = (char *)0x0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3VtabImportErrmsg(Vdbe *p,sqlite3_vtab *pVtab)" identifier (parameter_list "(Vdbe *p,sqlite3_vtab *pVtab)" ( (parameter_declaration "Vdbe *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "sqlite3_vtab *pVtab" type_identifier (pointer_declarator "*pVtab" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  sqlite3 *db;\n  \n  if (pVtab->zErrMsg != (char *)0x0) {\n    db = p->db;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);\n    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);\n    p->zErrMsg = pcVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);\n    pVtab->zErrMsg = (char *)0x0;\n    return;\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (if_statement "if (pVtab->zErrMsg != (char *)0x0) {\n    db = p->db;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);\n    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);\n    p->zErrMsg = pcVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);\n    pVtab->zErrMsg = (char *)0x0;\n    return;\n  }" if (parenthesized_expression "(pVtab->zErrMsg != (char *)0x0)" ( (binary_expression "pVtab->zErrMsg != (char *)0x0" (field_expression "pVtab->zErrMsg" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    db = p->db;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);\n    pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);\n    p->zErrMsg = pcVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);\n    pVtab->zErrMsg = (char *)0x0;\n    return;\n  }" { (expression_statement "db = p->db;" (assignment_expression "db = p->db" identifier = (field_expression "p->db" identifier -> field_identifier)) ;) (expression_statement "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg);" (call_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(db,p->zErrMsg)" (parenthesized_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))" ( (pointer_expression "*(code *)(PTR_LAB_000f6304 + -0x2eec)" * (cast_expression "(code *)(PTR_LAB_000f6304 + -0x2eec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f6304 + -0x2eec)" ( (binary_expression "PTR_LAB_000f6304 + -0x2eec" identifier + number_literal) )))) )) (argument_list "(db,p->zErrMsg)" ( identifier , (field_expression "p->zErrMsg" identifier -> field_identifier) ))) ;) (expression_statement "pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg);" (assignment_expression "pcVar1 = sqlite3DbStrDup(db,pVtab->zErrMsg)" identifier = (call_expression "sqlite3DbStrDup(db,pVtab->zErrMsg)" identifier (argument_list "(db,pVtab->zErrMsg)" ( identifier , (field_expression "pVtab->zErrMsg" identifier -> field_identifier) )))) ;) (expression_statement "p->zErrMsg = pcVar1;" (assignment_expression "p->zErrMsg = pcVar1" (field_expression "p->zErrMsg" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg);" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)(pVtab->zErrMsg)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pVtab->zErrMsg)" ( (field_expression "pVtab->zErrMsg" identifier -> field_identifier) ))) ;) (expression_statement "pVtab->zErrMsg = (char *)0x0;" (assignment_expression "pVtab->zErrMsg = (char *)0x0" (field_expression "pVtab->zErrMsg" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005a128(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005a128(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005a128(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) != 0)" ( (binary_expression "*(int *)(param_2 + 8) != 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);" (call_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f])" (parenthesized_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))" ( (pointer_expression "*(code *)(PTR_LAB_000f6304 + -0x2eec)" * (cast_expression "(code *)(PTR_LAB_000f6304 + -0x2eec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f6304 + -0x2eec)" ( (binary_expression "PTR_LAB_000f6304 + -0x2eec" identifier + number_literal) )))) )) (argument_list "(uVar1,param_1[0x1f])" ( identifier , (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" identifier = (call_expression "FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" identifier (argument_list "(uVar1,*(undefined4 *)(param_2 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "param_1[0x1f] = uVar1;" (assignment_expression "param_1[0x1f] = uVar1" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 8) = 0" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (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) )))) = LIT) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005a128(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005a128(undefined4 *param_1,int param_2)" (identifier "FUN_0005a128") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(param_2 + 8) != 0) {\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 8) != 0" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *param_1;\n    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);\n    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));\n    param_1[0x1f] = uVar1;\n    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));\n    *(undefined4 *)(param_2 + 8) = 0;\n    return;\n  }" ({ "{") (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);" (call_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f])" (parenthesized_expression "(*(code *)(PTR_LAB_000f6304 + -0x2eec))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f6304 + -0x2eec)" (* "*") (cast_expression "(code *)(PTR_LAB_000f6304 + -0x2eec)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f6304 + -0x2eec)" (( "(") (binary_expression "PTR_LAB_000f6304 + -0x2eec" (identifier "PTR_LAB_000f6304") (+ "+") (number_literal "-0x2eec")) () ")")))) () ")")) (argument_list "(uVar1,param_1[0x1f])" (( "(") (identifier "uVar1") (, ",") (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) () ")"))) (; ";")) (expression_statement "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" (identifier "uVar1") (= "=") (call_expression "FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8))" (identifier "FUN_0005a078") (argument_list "(uVar1,*(undefined4 *)(param_2 + 8))" (( "(") (identifier "uVar1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "param_1[0x1f] = uVar1;" (assignment_expression "param_1[0x1f] = uVar1" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" (* "*") (cast_expression "(code *)PTR_sqlite3_free_000f639c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_000f639c"))) () ")")) (argument_list "(*(undefined4 *)(param_2 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 8) = 0" (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (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 (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: (number_literal))) (return_statement))) (return_statement))))

void MASKED(undefined4 *param_1,int param_2)

{
  undefined4 uVar1;
  
  if (*(int *)(param_2 + 8) != 0) {
    uVar1 = *param_1;
    (*(code *)(PTR_LAB_000f6304 + -0x2eec))(uVar1,param_1[0x1f]);
    uVar1 = FUN_0005a078(uVar1,*(undefined4 *)(param_2 + 8));
    param_1[0x1f] = uVar1;
    (*(code *)PTR_sqlite3_free_000f639c)(*(undefined4 *)(param_2 + 8));
    *(undefined4 *)(param_2 + 8) = 0;
    return;
  }
  return;
}

