
void sqlite3_str_appendall(sqlite3_str *p,char *z)

{
  uint uVar1;
  
  if (z != (char *)0x0) {
    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);
    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);
    return;
  }
  sqlite3_str_append(p,(char *)0x0,0);
  return;
}



void sqlite3_str_appendall(undefined4 param_1,int param_2)

{
  uint uVar1;
  
  if (param_2 != 0) {
    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);
    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);
    return;
  }
  sqlite3_str_append(param_1,0,0);
  return;
}


lui gp,0x10
addiu gp,gp,0x34ac
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s0,0x20(sp)
or s0,a0,zero
beq a1,zero,0x0006115c
_sw ra,0x24(sp)
lw t9,-0x7be8(gp)
or a0,a1,zero
jalr t9
_sw a1,0x1c(sp)
or a0,s0,zero
lw gp,0x10(sp)
ext a2,v0,0x0,0x1e
lw a1,0x1c(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
lw t9,-0x7dec(gp)
b 0x000610ac
_addiu sp,sp,0x28
lw ra,0x24(sp)
or a0,s0,zero
lw t9,-0x7dec(gp)
or a2,zero,zero
lw s0,0x20(sp)
b 0x000610ac
_addiu sp,sp,0x28
(translation_unit "void sqlite3_str_appendall(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}\n\n" (function_definition "void sqlite3_str_appendall(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" primitive_type (function_declarator "sqlite3_str_appendall(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0015c9c8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0015c9c8)" ( (pointer_expression "*(code *)PTR_strlen_0015c9c8" * (cast_expression "(code *)PTR_strlen_0015c9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);" (call_expression "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff)" identifier (argument_list "(param_1,param_2,uVar1 & 0x3fffffff)" ( identifier , identifier , (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_str_append(param_1,0,0);" (call_expression "sqlite3_str_append(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_str_appendall(sqlite3_str *p,char *z)\n\n{\n  uint uVar1;\n  \n  if (z != (char *)0x0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);\n    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(p,(char *)0x0,0);\n  return;\n}\n\n" (function_definition "void sqlite3_str_appendall(sqlite3_str *p,char *z)\n\n{\n  uint uVar1;\n  \n  if (z != (char *)0x0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);\n    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(p,(char *)0x0,0);\n  return;\n}" primitive_type (function_declarator "sqlite3_str_appendall(sqlite3_str *p,char *z)" identifier (parameter_list "(sqlite3_str *p,char *z)" ( (parameter_declaration "sqlite3_str *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *z" primitive_type (pointer_declarator "*z" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (z != (char *)0x0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);\n    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(p,(char *)0x0,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (z != (char *)0x0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);\n    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);\n    return;\n  }" if (parenthesized_expression "(z != (char *)0x0)" ( (binary_expression "z != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);\n    sqlite3_str_append(p,z,uVar1 & 0x3fffffff);\n    return;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_0015c9c8)(z);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0015c9c8)(z)" identifier = (call_expression "(*(code *)PTR_strlen_0015c9c8)(z)" (parenthesized_expression "(*(code *)PTR_strlen_0015c9c8)" ( (pointer_expression "*(code *)PTR_strlen_0015c9c8" * (cast_expression "(code *)PTR_strlen_0015c9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(z)" ( identifier )))) ;) (expression_statement "sqlite3_str_append(p,z,uVar1 & 0x3fffffff);" (call_expression "sqlite3_str_append(p,z,uVar1 & 0x3fffffff)" identifier (argument_list "(p,z,uVar1 & 0x3fffffff)" ( identifier , identifier , (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_str_append(p,(char *)0x0,0);" (call_expression "sqlite3_str_append(p,(char *)0x0,0)" identifier (argument_list "(p,(char *)0x0,0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_str_appendall(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}\n\n" (function_definition "void sqlite3_str_appendall(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" primitive_type (function_declarator "sqlite3_str_appendall(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0015c9c8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0015c9c8)" ( (pointer_expression "*(code *)PTR_strlen_0015c9c8" * (cast_expression "(code *)PTR_strlen_0015c9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);" (call_expression "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff)" identifier (argument_list "(param_1,param_2,uVar1 & 0x3fffffff)" ( identifier , identifier , (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_str_append(param_1,0,0);" (call_expression "sqlite3_str_append(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT & LIT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void sqlite3_str_appendall(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" (primitive_type "void") (function_declarator "sqlite3_str_appendall(undefined4 param_1,int param_2)" (identifier "sqlite3_str_appendall") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }\n  sqlite3_str_append(param_1,0,0);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if (param_2 != 0) {\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);\n    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0015c9c8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0015c9c8)" (( "(") (pointer_expression "*(code *)PTR_strlen_0015c9c8" (* "*") (cast_expression "(code *)PTR_strlen_0015c9c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0015c9c8"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);" (call_expression "sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff)" (identifier "sqlite3_str_append") (argument_list "(param_1,param_2,uVar1 & 0x3fffffff)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "uVar1 & 0x3fffffff" (identifier "uVar1") (& "&") (number_literal "0x3fffffff")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "sqlite3_str_append(param_1,0,0);" (call_expression "sqlite3_str_append(param_1,0,0)" (identifier "sqlite3_str_append") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,char *var_1)

{
  type_2 var_3;
  
  if (var_1 != (char *)0x0) {
    var_3 = (*(type_3 *)PTR_strlen_0015c9c8)(var_1);
    var_2(p,var_1,var_3 & 0x3fffffff);
    return;
  }
  var_2(p,(char *)0x0,0);
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (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 (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (return_statement))))

void MASKED(undefined4 param_1,int param_2)

{
  uint uVar1;
  
  if (param_2 != 0) {
    uVar1 = (*(code *)PTR_strlen_0015c9c8)(param_2);
    sqlite3_str_append(param_1,param_2,uVar1 & 0x3fffffff);
    return;
  }
  sqlite3_str_append(param_1,0,0);
  return;
}

