
int sql_trace_callback(uint mType,void *pArg,void *pP,void *pX)

{
  uint uVar1;
  char *pcVar2;
  ShellState *p;
  uint uVar3;
  
  if (*(int *)((int)pArg + 0x28) == 0) {
    return 0;
  }
  if (mType == 8) {
    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));
    return 0;
  }
                    /* WARNING: Load size is inaccurate */
  if ((mType == 4) || (pcVar2 = (char *)pX, *pX != '-')) {
    if (*(char *)((int)pArg + 0xd) == '\x01') {
      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);
    }
    else {
      pX = sqlite3_sql((sqlite3_stmt *)pP);
    }
    if ((char *)pX == (char *)0x0) {
      return 0;
    }
                    /* WARNING: Load size is inaccurate */
    uVar3 = 0;
    pcVar2 = (char *)pX;
    if (*pX == '\0') goto LAB_000255bc;
  }
  do {
    pcVar2 = pcVar2 + 1;
  } while (*pcVar2 != '\0');
  uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff;
  do {
    uVar3 = uVar1;
    if (uVar3 == 0) break;
    uVar1 = uVar3 - 1;
  } while (*(char *)((int)pX + (uVar3 - 1)) == ';');
LAB_000255bc:
  if (mType == 2) {
    (*(code *)PTR___fprintf_chk_00190cfc)
              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);
    return 0;
  }
  if ((mType != 4) && (mType != 1)) {
    return 0;
  }
  (*(code *)PTR___fprintf_chk_00190cfc)
            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX);
  return 0;
}



undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)

{
  uint uVar1;
  char *pcVar2;
  uint uVar3;
  
  if (*(int *)(param_2 + 0x28) == 0) {
    return 0;
  }
  if (param_1 == 8) {
    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));
    return 0;
  }
  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {
    if (*(char *)(param_2 + 0xd) == '\x01') {
      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);
    }
    else {
      param_4 = (char *)sqlite3_sql(param_3);
    }
    if (param_4 == (char *)0x0) {
      return 0;
    }
    uVar3 = 0;
    pcVar2 = param_4;
    if (*param_4 == '\0') goto LAB_000255bc;
  }
  do {
    pcVar2 = pcVar2 + 1;
  } while (*pcVar2 != '\0');
  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;
  do {
    uVar3 = uVar1;
    if (uVar3 == 0) break;
    uVar1 = uVar3 - 1;
  } while (param_4[uVar3 - 1] == ';');
LAB_000255bc:
  if (param_1 == 2) {
    (*(code *)PTR___fprintf_chk_00190cfc)
              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);
    return 0;
  }
  if ((param_1 != 4) && (param_1 != 1)) {
    return 0;
  }
  (*(code *)PTR___fprintf_chk_00190cfc)
            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);
  return 0;
}


lui gp,0x17
addiu gp,gp,0x3430
addu gp,gp,t9
lw v0,0x28(a1)
beq v0,zero,0x0002568c
_li v1,0x8
addiu sp,sp,-0x38
sw gp,0x20(sp)
sw s2,0x30(sp)
or s2,a3,zero
sw s1,0x2c(sp)
or s1,a1,zero
sw s0,0x28(sp)
or s0,a0,zero
beq a0,v1,0x00025694
_sw ra,0x34(sp)
li v0,0x4
beq a0,v0,0x00025548
_li v0,0x2d
lb v1,0x0(a3)
beq v1,v0,0x00025578
_or v0,a3,zero
lbu v1,0xd(s1)
li v0,0x1
beq v1,v0,0x000255f0
_lw t9,-0x7f94(gp)
bal 0x00041c44
_or a0,a2,zero
lw gp,0x20(sp)
beq v0,zero,0x000255d8
_lw ra,0x34(sp)
lb v1,0x0(v0)
beq v1,zero,0x000255bc
_or a3,zero,zero
or v1,v0,zero
addiu v1,v1,0x1
lb a2,0x0(v1)
bne a2,zero,0x0002557c
_nop
subu v1,v1,v0
ext a3,v1,0x0,0x1e
beq a3,zero,0x000255bc
_addu v1,v0,a3
b 0x000255ac
_li a0,0x3b
beq a3,zero,0x000255bc
_addu v1,v0,a3
lb v1,-0x1(v1)
beq v1,a0,0x000255a4
_addiu a3,a3,-0x1
addiu a3,a3,0x1
li v1,0x2
beq s0,v1,0x00025644
_li v1,0x4
beq s0,v1,0x0002560c
_li v1,0x1
beq s0,v1,0x0002560c
_lw ra,0x34(sp)
or v0,zero,zero
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7eb4(gp)
jalr t9
_or a0,a2,zero
b 0x00025564
_lw gp,0x20(sp)
lw a2,-0x7fc8(gp)
li a1,0x1
lw a0,0x28(s1)
lw t9,-0x7c24(gp)
addiu a2,a2,0x14e4
jalr t9
_sw v0,0x10(sp)
or v0,zero,zero
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
lw a2,-0x7fc8(gp)
li a1,0x1
lw t1,0x4(s2)
lw t0,0x0(s2)
lw a0,0x28(s1)
addiu a2,a2,0x14ec
lw t9,-0x7c24(gp)
sw t1,0x1c(sp)
sw t0,0x18(sp)
jalr t9
_sw v0,0x10(sp)
or v0,zero,zero
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
jr ra
_or v0,zero,zero
lw a0,-0x7fc8(gp)
li a2,0x1f
lw t9,-0x7b58(gp)
li a1,0x1
or a3,v0,zero
jalr t9
_addiu a0,a0,0x14c4
b 0x000255d8
_lw ra,0x34(sp)
(translation_unit "undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" type_identifier (function_declarator "FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) == 0)" ( (binary_expression "*(int *)(param_2 + 0x28) == 0" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 8)" ( (binary_expression "param_1 == 8" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" { (expression_statement "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));" (call_expression "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" (parenthesized_expression "(*(code *)PTR_fwrite_00190dc8)" ( (pointer_expression "*(code *)PTR_fwrite_00190dc8" * (cast_expression "(code *)PTR_fwrite_00190dc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" ( (binary_expression "PTR_LAB_00190958 + 0x14c4" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" if (parenthesized_expression "((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-'))" ( (binary_expression "(param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')" (parenthesized_expression "(param_1 == 4)" ( (binary_expression "param_1 == 4" identifier == number_literal) )) || (parenthesized_expression "(pcVar2 = param_4, *param_4 != '-')" ( (comma_expression "pcVar2 = param_4, *param_4 != '-'" (assignment_expression "pcVar2 = param_4" identifier = identifier) , (binary_expression "*param_4 != '-'" (pointer_expression "*param_4" * identifier) != (char_literal "'-'" ' character '))) ))) )) (compound_statement "{\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" { (if_statement "if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xd) == '\x01')" ( (binary_expression "*(char *)(param_2 + 0xd) == '\x01'" (pointer_expression "*(char *)(param_2 + 0xd)" * (cast_expression "(char *)(param_2 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }" { (expression_statement "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);" (assignment_expression "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" identifier = (cast_expression "(char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)" ( (pointer_expression "*(code *)PTR_sqlite3_expanded_sql_00190a6c" * (cast_expression "(code *)PTR_sqlite3_expanded_sql_00190a6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))))) ;) }) (else_clause "else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" else (compound_statement "{\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" { (expression_statement "param_4 = (char *)sqlite3_sql(param_3);" (assignment_expression "param_4 = (char *)sqlite3_sql(param_3)" identifier = (cast_expression "(char *)sqlite3_sql(param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_sql(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) }))) (if_statement "if (param_4 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = param_4;" (assignment_expression "pcVar2 = param_4" identifier = identifier) ;) (if_statement "if (*param_4 == '\0') goto LAB_000255bc;" if (parenthesized_expression "(*param_4 == '\0')" ( (binary_expression "*param_4 == '\0'" (pointer_expression "*param_4" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000255bc;" goto statement_identifier ;)) })) (do_statement "do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');" do (compound_statement "{\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;" (assignment_expression "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff" identifier = (binary_expression "(int)pcVar2 - (int)param_4 & 0x3fffffff" (binary_expression "(int)pcVar2 - (int)param_4" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal)) ;) (do_statement "do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');" do (compound_statement "{\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  }" { (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = uVar3 - 1;" (assignment_expression "uVar1 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_4[uVar3 - 1] == ';')" ( (binary_expression "param_4[uVar3 - 1] == ';'" (subscript_expression "param_4[uVar3 - 1]" identifier [ (binary_expression "uVar3 - 1" identifier - number_literal) ]) == (char_literal "';'" ' character ')) )) ;) (labeled_statement "LAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" statement_identifier : (if_statement "if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14ec" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) }))) (if_statement "if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 4) && (param_1 != 1))" ( (binary_expression "(param_1 != 4) && (param_1 != 1)" (parenthesized_expression "(param_1 != 4)" ( (binary_expression "param_1 != 4" identifier != number_literal) )) && (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14e4" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sql_trace_callback(uint mType,void *pArg,void *pP,void *pX)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  ShellState *p;\n  uint uVar3;\n  \n  if (*(int *)((int)pArg + 0x28) == 0) {\n    return 0;\n  }\n  if (mType == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));\n    return 0;\n  }\n                    /* WARNING: Load size is inaccurate */\n  if ((mType == 4) || (pcVar2 = (char *)pX, *pX != '-')) {\n    if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }\n    if ((char *)pX == (char *)0x0) {\n      return 0;\n    }\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = 0;\n    pcVar2 = (char *)pX;\n    if (*pX == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (*(char *)((int)pX + (uVar3 - 1)) == ';');\nLAB_000255bc:\n  if (mType == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }\n  if ((mType != 4) && (mType != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX);\n  return 0;\n}\n\n" (function_definition "int sql_trace_callback(uint mType,void *pArg,void *pP,void *pX)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  ShellState *p;\n  uint uVar3;\n  \n  if (*(int *)((int)pArg + 0x28) == 0) {\n    return 0;\n  }\n  if (mType == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));\n    return 0;\n  }\n                    /* WARNING: Load size is inaccurate */\n  if ((mType == 4) || (pcVar2 = (char *)pX, *pX != '-')) {\n    if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }\n    if ((char *)pX == (char *)0x0) {\n      return 0;\n    }\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = 0;\n    pcVar2 = (char *)pX;\n    if (*pX == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (*(char *)((int)pX + (uVar3 - 1)) == ';');\nLAB_000255bc:\n  if (mType == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }\n  if ((mType != 4) && (mType != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX);\n  return 0;\n}" primitive_type (function_declarator "sql_trace_callback(uint mType,void *pArg,void *pP,void *pX)" identifier (parameter_list "(uint mType,void *pArg,void *pP,void *pX)" ( (parameter_declaration "uint mType" type_identifier identifier) , (parameter_declaration "void *pArg" primitive_type (pointer_declarator "*pArg" * identifier)) , (parameter_declaration "void *pP" primitive_type (pointer_declarator "*pP" * identifier)) , (parameter_declaration "void *pX" primitive_type (pointer_declarator "*pX" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  ShellState *p;\n  uint uVar3;\n  \n  if (*(int *)((int)pArg + 0x28) == 0) {\n    return 0;\n  }\n  if (mType == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));\n    return 0;\n  }\n                    /* WARNING: Load size is inaccurate */\n  if ((mType == 4) || (pcVar2 = (char *)pX, *pX != '-')) {\n    if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }\n    if ((char *)pX == (char *)0x0) {\n      return 0;\n    }\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = 0;\n    pcVar2 = (char *)pX;\n    if (*pX == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (*(char *)((int)pX + (uVar3 - 1)) == ';');\nLAB_000255bc:\n  if (mType == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }\n  if ((mType != 4) && (mType != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "ShellState *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)((int)pArg + 0x28) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)((int)pArg + 0x28) == 0)" ( (binary_expression "*(int *)((int)pArg + 0x28) == 0" (pointer_expression "*(int *)((int)pArg + 0x28)" * (cast_expression "(int *)((int)pArg + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pArg + 0x28)" ( (binary_expression "(int)pArg + 0x28" (cast_expression "(int)pArg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (mType == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));\n    return 0;\n  }" if (parenthesized_expression "(mType == 8)" ( (binary_expression "mType == 8" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));\n    return 0;\n  }" { (expression_statement "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));" (call_expression "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28))" (parenthesized_expression "(*(code *)PTR_fwrite_00190dc8)" ( (pointer_expression "*(code *)PTR_fwrite_00190dc8" * (cast_expression "(code *)PTR_fwrite_00190dc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28))" ( (binary_expression "PTR_LAB_00190958 + 0x14c4" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(int *)((int)pArg + 0x28)" * (cast_expression "(int *)((int)pArg + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pArg + 0x28)" ( (binary_expression "(int)pArg + 0x28" (cast_expression "(int)pArg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) comment (if_statement "if ((mType == 4) || (pcVar2 = (char *)pX, *pX != '-')) {\n    if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }\n    if ((char *)pX == (char *)0x0) {\n      return 0;\n    }\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = 0;\n    pcVar2 = (char *)pX;\n    if (*pX == '\0') goto LAB_000255bc;\n  }" if (parenthesized_expression "((mType == 4) || (pcVar2 = (char *)pX, *pX != '-'))" ( (binary_expression "(mType == 4) || (pcVar2 = (char *)pX, *pX != '-')" (parenthesized_expression "(mType == 4)" ( (binary_expression "mType == 4" identifier == number_literal) )) || (parenthesized_expression "(pcVar2 = (char *)pX, *pX != '-')" ( (comma_expression "pcVar2 = (char *)pX, *pX != '-'" (assignment_expression "pcVar2 = (char *)pX" identifier = (cast_expression "(char *)pX" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*pX != '-'" (pointer_expression "*pX" * identifier) != (char_literal "'-'" ' character '))) ))) )) (compound_statement "{\n    if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }\n    if ((char *)pX == (char *)0x0) {\n      return 0;\n    }\n                    /* WARNING: Load size is inaccurate */\n    uVar3 = 0;\n    pcVar2 = (char *)pX;\n    if (*pX == '\0') goto LAB_000255bc;\n  }" { (if_statement "if (*(char *)((int)pArg + 0xd) == '\x01') {\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }\n    else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }" if (parenthesized_expression "(*(char *)((int)pArg + 0xd) == '\x01')" ( (binary_expression "*(char *)((int)pArg + 0xd) == '\x01'" (pointer_expression "*(char *)((int)pArg + 0xd)" * (cast_expression "(char *)((int)pArg + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pArg + 0xd)" ( (binary_expression "(int)pArg + 0xd" (cast_expression "(int)pArg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);\n    }" { (expression_statement "pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP);" (assignment_expression "pX = (void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP)" identifier = (cast_expression "(void *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(pP)" (parenthesized_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)" ( (pointer_expression "*(code *)PTR_sqlite3_expanded_sql_00190a6c" * (cast_expression "(code *)PTR_sqlite3_expanded_sql_00190a6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pP)" ( identifier ))))) ;) }) (else_clause "else {\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }" else (compound_statement "{\n      pX = sqlite3_sql((sqlite3_stmt *)pP);\n    }" { (expression_statement "pX = sqlite3_sql((sqlite3_stmt *)pP);" (assignment_expression "pX = sqlite3_sql((sqlite3_stmt *)pP)" identifier = (call_expression "sqlite3_sql((sqlite3_stmt *)pP)" identifier (argument_list "((sqlite3_stmt *)pP)" ( (cast_expression "(sqlite3_stmt *)pP" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }))) (if_statement "if ((char *)pX == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "((char *)pX == (char *)0x0)" ( (binary_expression "(char *)pX == (char *)0x0" (cast_expression "(char *)pX" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = (char *)pX;" (assignment_expression "pcVar2 = (char *)pX" identifier = (cast_expression "(char *)pX" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (*pX == '\0') goto LAB_000255bc;" if (parenthesized_expression "(*pX == '\0')" ( (binary_expression "*pX == '\0'" (pointer_expression "*pX" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000255bc;" goto statement_identifier ;)) })) (do_statement "do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');" do (compound_statement "{\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff;" (assignment_expression "uVar1 = (int)pcVar2 - (int)pX & 0x3fffffff" identifier = (binary_expression "(int)pcVar2 - (int)pX & 0x3fffffff" (binary_expression "(int)pcVar2 - (int)pX" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pX" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal)) ;) (do_statement "do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (*(char *)((int)pX + (uVar3 - 1)) == ';');" do (compound_statement "{\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  }" { (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = uVar3 - 1;" (assignment_expression "uVar1 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(*(char *)((int)pX + (uVar3 - 1)) == ';')" ( (binary_expression "*(char *)((int)pX + (uVar3 - 1)) == ';'" (pointer_expression "*(char *)((int)pX + (uVar3 - 1))" * (cast_expression "(char *)((int)pX + (uVar3 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pX + (uVar3 - 1))" ( (binary_expression "(int)pX + (uVar3 - 1)" (cast_expression "(int)pX" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar3 - 1)" ( (binary_expression "uVar3 - 1" identifier - number_literal) ))) )))) == (char_literal "';'" ' character ')) )) ;) (labeled_statement "LAB_000255bc:\n  if (mType == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }" statement_identifier : (if_statement "if (mType == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }" if (parenthesized_expression "(mType == 2)" ( (binary_expression "mType == 2" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,pX)" ( (pointer_expression "*(undefined4 *)((int)pArg + 0x28)" * (cast_expression "(undefined4 *)((int)pArg + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pArg + 0x28)" ( (binary_expression "(int)pArg + 0x28" (cast_expression "(int)pArg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14ec" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) }))) (if_statement "if ((mType != 4) && (mType != 1)) {\n    return 0;\n  }" if (parenthesized_expression "((mType != 4) && (mType != 1))" ( (binary_expression "(mType != 4) && (mType != 1)" (parenthesized_expression "(mType != 4)" ( (binary_expression "mType != 4" identifier != number_literal) )) && (parenthesized_expression "(mType != 1)" ( (binary_expression "mType != 1" identifier != number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)((int)pArg + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,pX)" ( (pointer_expression "*(undefined4 *)((int)pArg + 0x28)" * (cast_expression "(undefined4 *)((int)pArg + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pArg + 0x28)" ( (binary_expression "(int)pArg + 0x28" (cast_expression "(int)pArg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14e4" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" type_identifier (function_declarator "FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) == 0)" ( (binary_expression "*(int *)(param_2 + 0x28) == 0" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 8)" ( (binary_expression "param_1 == 8" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" { (expression_statement "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));" (call_expression "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" (parenthesized_expression "(*(code *)PTR_fwrite_00190dc8)" ( (pointer_expression "*(code *)PTR_fwrite_00190dc8" * (cast_expression "(code *)PTR_fwrite_00190dc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" ( (binary_expression "PTR_LAB_00190958 + 0x14c4" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" if (parenthesized_expression "((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-'))" ( (binary_expression "(param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')" (parenthesized_expression "(param_1 == 4)" ( (binary_expression "param_1 == 4" identifier == number_literal) )) || (parenthesized_expression "(pcVar2 = param_4, *param_4 != '-')" ( (comma_expression "pcVar2 = param_4, *param_4 != '-'" (assignment_expression "pcVar2 = param_4" identifier = identifier) , (binary_expression "*param_4 != '-'" (pointer_expression "*param_4" * identifier) != (char_literal "'-'" ' character '))) ))) )) (compound_statement "{\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" { (if_statement "if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xd) == '\x01')" ( (binary_expression "*(char *)(param_2 + 0xd) == '\x01'" (pointer_expression "*(char *)(param_2 + 0xd)" * (cast_expression "(char *)(param_2 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }" { (expression_statement "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);" (assignment_expression "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" identifier = (cast_expression "(char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)" ( (pointer_expression "*(code *)PTR_sqlite3_expanded_sql_00190a6c" * (cast_expression "(code *)PTR_sqlite3_expanded_sql_00190a6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))))) ;) }) (else_clause "else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" else (compound_statement "{\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" { (expression_statement "param_4 = (char *)sqlite3_sql(param_3);" (assignment_expression "param_4 = (char *)sqlite3_sql(param_3)" identifier = (cast_expression "(char *)sqlite3_sql(param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_sql(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) }))) (if_statement "if (param_4 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = param_4;" (assignment_expression "pcVar2 = param_4" identifier = identifier) ;) (if_statement "if (*param_4 == '\0') goto LAB_000255bc;" if (parenthesized_expression "(*param_4 == '\0')" ( (binary_expression "*param_4 == '\0'" (pointer_expression "*param_4" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000255bc;" goto statement_identifier ;)) })) (do_statement "do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');" do (compound_statement "{\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;" (assignment_expression "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff" identifier = (binary_expression "(int)pcVar2 - (int)param_4 & 0x3fffffff" (binary_expression "(int)pcVar2 - (int)param_4" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal)) ;) (do_statement "do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');" do (compound_statement "{\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  }" { (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = uVar3 - 1;" (assignment_expression "uVar1 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_4[uVar3 - 1] == ';')" ( (binary_expression "param_4[uVar3 - 1] == ';'" (subscript_expression "param_4[uVar3 - 1]" identifier [ (binary_expression "uVar3 - 1" identifier - number_literal) ]) == (char_literal "';'" ' character ')) )) ;) (labeled_statement "LAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" statement_identifier : (if_statement "if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14ec" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) }))) (if_statement "if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 4) && (param_1 != 1))" ( (binary_expression "(param_1 != 4) && (param_1 != 1)" (parenthesized_expression "(param_1 != 4)" ( (binary_expression "param_1 != 4" identifier != number_literal) )) && (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" * (cast_expression "(code *)PTR___fprintf_chk_00190cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x14e4" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * IDENT) != (char_literal ' character '))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) & LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (char_literal ' character ')) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) )))) , LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return LIT ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (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) )))) , LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000254f0(int param_1,int param_2,undefined4 param_3,char *param_4)" (identifier "FUN_000254f0") (parameter_list "(int param_1,int param_2,undefined4 param_3,char *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }\n  if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }\n  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }\n  do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');\n  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;\n  do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');\nLAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }\n  if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }\n  (*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (*(int *)(param_2 + 0x28) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x28) == 0" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 == 8) {\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 8)" (( "(") (binary_expression "param_1 == 8" (identifier "param_1") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));\n    return 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));" (call_expression "(*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" (parenthesized_expression "(*(code *)PTR_fwrite_00190dc8)" (( "(") (pointer_expression "*(code *)PTR_fwrite_00190dc8" (* "*") (cast_expression "(code *)PTR_fwrite_00190dc8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_00190dc8"))) () ")")) (argument_list "(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28))" (( "(") (binary_expression "PTR_LAB_00190958 + 0x14c4" (identifier "PTR_LAB_00190958") (+ "+") (number_literal "0x14c4")) (, ",") (number_literal "1") (, ",") (number_literal "0x1f") (, ",") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" (if "if") (parenthesized_expression "((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-'))" (( "(") (binary_expression "(param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')" (parenthesized_expression "(param_1 == 4)" (( "(") (binary_expression "param_1 == 4" (identifier "param_1") (== "==") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(pcVar2 = param_4, *param_4 != '-')" (( "(") (comma_expression "pcVar2 = param_4, *param_4 != '-'" (assignment_expression "pcVar2 = param_4" (identifier "pcVar2") (= "=") (identifier "param_4")) (, ",") (binary_expression "*param_4 != '-'" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }\n    if (param_4 == (char *)0x0) {\n      return 0;\n    }\n    uVar3 = 0;\n    pcVar2 = param_4;\n    if (*param_4 == '\0') goto LAB_000255bc;\n  }" ({ "{") (if_statement "if (*(char *)(param_2 + 0xd) == '\x01') {\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }\n    else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0xd) == '\x01')" (( "(") (binary_expression "*(char *)(param_2 + 0xd) == '\x01'" (pointer_expression "*(char *)(param_2 + 0xd)" (* "*") (cast_expression "(char *)(param_2 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);\n    }" ({ "{") (expression_statement "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);" (assignment_expression "param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" (identifier "param_4") (= "=") (cast_expression "(char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_expanded_sql_00190a6c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_expanded_sql_00190a6c" (* "*") (cast_expression "(code *)PTR_sqlite3_expanded_sql_00190a6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_expanded_sql_00190a6c"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" (else "else") (compound_statement "{\n      param_4 = (char *)sqlite3_sql(param_3);\n    }" ({ "{") (expression_statement "param_4 = (char *)sqlite3_sql(param_3);" (assignment_expression "param_4 = (char *)sqlite3_sql(param_3)" (identifier "param_4") (= "=") (cast_expression "(char *)sqlite3_sql(param_3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_sql(param_3)" (identifier "sqlite3_sql") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))))) (; ";")) (} "}")))) (if_statement "if (param_4 == (char *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_4 == (char *)0x0)" (( "(") (binary_expression "param_4 == (char *)0x0" (identifier "param_4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar2 = param_4;" (assignment_expression "pcVar2 = param_4" (identifier "pcVar2") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (*param_4 == '\0') goto LAB_000255bc;" (if "if") (parenthesized_expression "(*param_4 == '\0')" (( "(") (binary_expression "*param_4 == '\0'" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000255bc;" (goto "goto") (statement_identifier "LAB_000255bc") (; ";"))) (} "}"))) (do_statement "do {\n    pcVar2 = pcVar2 + 1;\n  } while (*pcVar2 != '\0');" (do "do") (compound_statement "{\n    pcVar2 = pcVar2 + 1;\n  }" ({ "{") (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar2 != '\0')" (( "(") (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;" (assignment_expression "uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar2 - (int)param_4 & 0x3fffffff" (binary_expression "(int)pcVar2 - (int)param_4" (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (& "&") (number_literal "0x3fffffff"))) (; ";")) (do_statement "do {\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  } while (param_4[uVar3 - 1] == ';');" (do "do") (compound_statement "{\n    uVar3 = uVar1;\n    if (uVar3 == 0) break;\n    uVar1 = uVar3 - 1;\n  }" ({ "{") (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" (identifier "uVar3") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (uVar3 == 0) break;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar1 = uVar3 - 1;" (assignment_expression "uVar1 = uVar3 - 1" (identifier "uVar1") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_4[uVar3 - 1] == ';')" (( "(") (binary_expression "param_4[uVar3 - 1] == ';'" (subscript_expression "param_4[uVar3 - 1]" (identifier "param_4") ([ "[") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1")) (] "]")) (== "==") (char_literal "';'" (' "'") (character ";") (' "'"))) () ")")) (; ";")) (labeled_statement "LAB_000255bc:\n  if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" (statement_identifier "LAB_000255bc") (: ":") (if_statement "if (param_1 == 2) {\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 2)" (( "(") (binary_expression "param_1 == 2" (identifier "param_1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    (*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);\n    return 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00190cfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00190cfc"))) () ")")) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_LAB_00190958 + 0x14ec" (identifier "PTR_LAB_00190958") (+ "+") (number_literal "0x14ec")) (, ",") (identifier "uVar3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (if_statement "if ((param_1 != 4) && (param_1 != 1)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_1 != 4) && (param_1 != 1))" (( "(") (binary_expression "(param_1 != 4) && (param_1 != 1)" (parenthesized_expression "(param_1 != 4)" (( "(") (binary_expression "param_1 != 4" (identifier "param_1") (!= "!=") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 1)" (( "(") (binary_expression "param_1 != 1" (identifier "param_1") (!= "!=") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);" (call_expression "(*(code *)PTR___fprintf_chk_00190cfc)\n            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00190cfc)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00190cfc" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00190cfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00190cfc"))) () ")")) (argument_list "(*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_LAB_00190958 + 0x14e4" (identifier "PTR_LAB_00190958") (+ "+") (number_literal "0x14e4")) (, ",") (identifier "uVar3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 var_1,void *pArg,void *pP,void *pX)

{
  type_1 uVar1;
  char *var_4;
  type_2 *p;
  type_1 var_5;
  
  if (*(int *)((int)pArg + 0x28) == 0) {
    return 0;
  }
  if (var_1 == 8) {
    (*(type_3 *)PTR_fwrite_00190dc8)(var_2 + 0x14c4,1,0x1f,*(int *)((int)pArg + 0x28));
    return 0;
  }
                    /* WARNING: Load size is inaccurate */
  if ((var_1 == 4) || (var_4 = (char *)pX, *pX != '-')) {
    if (*(char *)((int)pArg + 0xd) == '\x01') {
      pX = (void *)(*(type_3 *)PTR_sqlite3_expanded_sql_00190a6c)(pP);
    }
    else {
      pX = var_3((type_4 *)pP);
    }
    if ((char *)pX == (char *)0x0) {
      return 0;
    }
                    /* WARNING: Load size is inaccurate */
    var_5 = 0;
    var_4 = (char *)pX;
    if (*pX == '\0') goto LAB_000255bc;
  }
  do {
    var_4 = var_4 + 1;
  } while (*var_4 != '\0');
  uVar1 = (int)var_4 - (int)pX & 0x3fffffff;
  do {
    var_5 = uVar1;
    if (var_5 == 0) break;
    uVar1 = var_5 - 1;
  } while (*(char *)((int)pX + (var_5 - 1)) == ';');
LAB_000255bc:
  if (var_1 == 2) {
    (*(type_3 *)PTR___fprintf_chk_00190cfc)
              (*(type_5 *)((int)pArg + 0x28),1,var_2 + 0x14ec,var_5,pX);
    return 0;
  }
  if ((var_1 != 4) && (var_1 != 1)) {
    return 0;
  }
  (*(type_3 *)PTR___fprintf_chk_00190cfc)
            (*(type_5 *)((int)pArg + 0x28),1,var_2 + 0x14e4,var_5,pX);
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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 (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (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)))))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))) consequence: (compound_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (character))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))))) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (return_statement (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (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))))) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,int param_2,undefined4 param_3,char *param_4)

{
  uint uVar1;
  char *pcVar2;
  uint uVar3;
  
  if (*(int *)(param_2 + 0x28) == 0) {
    return 0;
  }
  if (param_1 == 8) {
    (*(code *)PTR_fwrite_00190dc8)(PTR_LAB_00190958 + 0x14c4,1,0x1f,*(int *)(param_2 + 0x28));
    return 0;
  }
  if ((param_1 == 4) || (pcVar2 = param_4, *param_4 != '-')) {
    if (*(char *)(param_2 + 0xd) == '\x01') {
      param_4 = (char *)(*(code *)PTR_sqlite3_expanded_sql_00190a6c)(param_3);
    }
    else {
      param_4 = (char *)sqlite3_sql(param_3);
    }
    if (param_4 == (char *)0x0) {
      return 0;
    }
    uVar3 = 0;
    pcVar2 = param_4;
    if (*param_4 == '\0') goto LAB_000255bc;
  }
  do {
    pcVar2 = pcVar2 + 1;
  } while (*pcVar2 != '\0');
  uVar1 = (int)pcVar2 - (int)param_4 & 0x3fffffff;
  do {
    uVar3 = uVar1;
    if (uVar3 == 0) break;
    uVar1 = uVar3 - 1;
  } while (param_4[uVar3 - 1] == ';');
LAB_000255bc:
  if (param_1 == 2) {
    (*(code *)PTR___fprintf_chk_00190cfc)
              (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14ec,uVar3,param_4);
    return 0;
  }
  if ((param_1 != 4) && (param_1 != 1)) {
    return 0;
  }
  (*(code *)PTR___fprintf_chk_00190cfc)
            (*(undefined4 *)(param_2 + 0x28),1,PTR_LAB_00190958 + 0x14e4,uVar3,param_4);
  return 0;
}

