
void sqlite3_log(int iErrCode,char *zFormat,...)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  code *pcVar4;
  int iVar5;
  undefined *puVar6;
  va_list ap;
  StrAccum acc;
  char zMsg [210];
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  puVar6 = PTR_DAT_000f52bc;
  iVar3 = *(int *)PTR___stack_chk_guard_000f5568;
  iVar5 = iErrCode;
  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {
    acc.mxAlloc = 0;
    acc.nAlloc = 0xd2;
    acc.zText = zMsg;
    acc.nChar = 0;
    acc.accError = '\0';
    acc.printfFlags = '\0';
    acc.db = (sqlite3 *)0x0;
    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);
    iVar5 = *(int *)(puVar6 + 0x4190);
    pcVar4 = *(code **)(puVar6 + 0x418c);
    pcVar2 = sqlite3StrAccumFinish(&acc);
    (*pcVar4)(iVar5,iErrCode,pcVar2);
  }
  if (iVar3 == *(int *)puVar1) {
    return;
  }
  puVar6 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  iVar3 = (**(code **)(puVar6 + 0xb10c0))();
  (**(code **)(puVar6 + 0xb0f8c))
            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,
             iVar3 + 0x14);
  return;
}



int sqlite3_log(undefined4 param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  code *pcVar4;
  undefined4 uVar5;
  undefined *puVar6;
  undefined4 local_108;
  undefined1 *local_104;
  undefined4 local_100;
  undefined4 local_fc;
  undefined4 local_f8;
  undefined2 local_f4;
  undefined1 auStack_f0 [212];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  puVar6 = PTR_DAT_000f52bc;
  local_1c = *(int *)PTR___stack_chk_guard_000f5568;
  uVar5 = param_1;
  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {
    local_fc = 0;
    local_100 = 0xd2;
    local_104 = auStack_f0;
    local_f8 = 0;
    local_f4 = 0;
    local_108 = 0;
    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);
    uVar5 = *(undefined4 *)(puVar6 + 0x4190);
    pcVar4 = *(code **)(puVar6 + 0x418c);
    uVar2 = FUN_00036f4c(&local_108);
    (*pcVar4)(uVar5,param_1,uVar2);
  }
  if (local_1c == *(int *)puVar1) {
    return *(int *)puVar1;
  }
  puVar6 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  iVar3 = (**(code **)(puVar6 + 0xb10c0))();
  (**(code **)(puVar6 + 0xb0f8c))
            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,
             iVar3 + 0x14);
  return 0x15;
}


lui gp,0xc
addiu gp,gp,-0x70b0
addu gp,gp,t9
addiu sp,sp,-0x128
sw s0,0x114(sp)
sw s1,0x118(sp)
lw s0,-0x7fe4(gp)
lw s1,-0x7d38(gp)
sw a2,0x130(sp)
addiu s0,s0,0x40a0
sw a3,0x134(sp)
sw gp,0x10(sp)
sw ra,0x124(sp)
sw s3,0x120(sp)
sw s2,0x11c(sp)
lw v1,0x0(s1)
lw v0,0xec(s0)
sw v1,0x10c(sp)
beq v0,zero,0x0004440c
_li v0,0xd2
lw t9,-0x7f20(gp)
addiu a2,sp,0x130
sw zero,0x2c(sp)
addiu s2,sp,0x20
sw v0,0x28(sp)
addiu v0,sp,0x38
sw a2,0x1c(sp)
or s3,a0,zero
sw zero,0x30(sp)
or a0,s2,zero
sw v0,0x24(sp)
sh zero,0x34(sp)
jalr t9
_sw zero,0x20(sp)
or a0,s2,zero
lw gp,0x10(sp)
lw s2,0xf0(s0)
lw t9,-0x7fb4(gp)
addiu t9,t9,0x6f4c
bal 0x00036f4c
_lw s0,0xec(s0)
or a1,s3,zero
or a2,v0,zero
or t9,s0,zero
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
lw v1,0x10c(sp)
lw v0,0x0(s1)
bne v1,v0,0x00044434
_lw ra,0x124(sp)
lw s3,0x120(sp)
lw s2,0x11c(sp)
lw s1,0x118(sp)
lw s0,0x114(sp)
jr ra
_addiu sp,sp,0x128
lw t9,-0x7d60(gp)
jalr t9
_nop
(translation_unit "int sqlite3_log(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}\n\n" (function_definition "int sqlite3_log(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" primitive_type (function_declarator "sqlite3_log(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_108;" type_identifier identifier ;) (declaration "undefined1 *local_104;" type_identifier (pointer_declarator "*local_104" * identifier) ;) (declaration "undefined4 local_100;" type_identifier identifier ;) (declaration "undefined4 local_fc;" type_identifier identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined2 local_f4;" type_identifier identifier ;) (declaration "undefined1 auStack_f0 [212];" type_identifier (array_declarator "auStack_f0 [212]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar6 = PTR_DAT_000f52bc;" (assignment_expression "puVar6 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = param_1;" (assignment_expression "uVar5 = param_1" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000f52bc + 0x418c) != 0)" ( (binary_expression "*(int *)(PTR_DAT_000f52bc + 0x418c) != 0" (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x418c)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x418c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x418c)" ( (binary_expression "PTR_DAT_000f52bc + 0x418c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" { (expression_statement "local_fc = 0;" (assignment_expression "local_fc = 0" identifier = number_literal) ;) (expression_statement "local_100 = 0xd2;" (assignment_expression "local_100 = 0xd2" identifier = number_literal) ;) (expression_statement "local_104 = auStack_f0;" (assignment_expression "local_104 = auStack_f0" identifier = identifier) ;) (expression_statement "local_f8 = 0;" (assignment_expression "local_f8 = 0" identifier = number_literal) ;) (expression_statement "local_f4 = 0;" (assignment_expression "local_f4 = 0" identifier = number_literal) ;) (expression_statement "local_108 = 0;" (assignment_expression "local_108 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);" (call_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108)" (parenthesized_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)" ( (pointer_expression "*(code *)PTR_sqlite3_str_vappendf_000f5380" * (cast_expression "(code *)PTR_sqlite3_str_vappendf_000f5380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_108)" ( (pointer_expression "&local_108" & identifier) ))) ;) (expression_statement "uVar5 = *(undefined4 *)(puVar6 + 0x4190);" (assignment_expression "uVar5 = *(undefined4 *)(puVar6 + 0x4190)" identifier = (pointer_expression "*(undefined4 *)(puVar6 + 0x4190)" * (cast_expression "(undefined4 *)(puVar6 + 0x4190)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4190)" ( (binary_expression "puVar6 + 0x4190" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = *(code **)(puVar6 + 0x418c);" (assignment_expression "pcVar4 = *(code **)(puVar6 + 0x418c)" identifier = (pointer_expression "*(code **)(puVar6 + 0x418c)" * (cast_expression "(code **)(puVar6 + 0x418c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x418c)" ( (binary_expression "puVar6 + 0x418c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00036f4c(&local_108);" (assignment_expression "uVar2 = FUN_00036f4c(&local_108)" identifier = (call_expression "FUN_00036f4c(&local_108)" identifier (argument_list "(&local_108)" ( (pointer_expression "&local_108" & identifier) )))) ;) (expression_statement "(*pcVar4)(uVar5,param_1,uVar2);" (call_expression "(*pcVar4)(uVar5,param_1,uVar2)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(uVar5,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar1;\n  }" { (return_statement "return *(int *)puVar1;" return (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0xb10c0))();" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0xb10c0))()" identifier = (call_expression "(**(code **)(puVar6 + 0xb10c0))()" (parenthesized_expression "(**(code **)(puVar6 + 0xb10c0))" ( (pointer_expression "**(code **)(puVar6 + 0xb10c0)" * (pointer_expression "*(code **)(puVar6 + 0xb10c0)" * (cast_expression "(code **)(puVar6 + 0xb10c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb10c0)" ( (binary_expression "puVar6 + 0xb10c0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);" (call_expression "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" (parenthesized_expression "(**(code **)(puVar6 + 0xb0f8c))" ( (pointer_expression "**(code **)(puVar6 + 0xb0f8c)" * (pointer_expression "*(code **)(puVar6 + 0xb0f8c)" * (cast_expression "(code **)(puVar6 + 0xb0f8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb0f8c)" ( (binary_expression "puVar6 + 0xb0f8c" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x722c" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x7224" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar3 + 0x14" identifier + number_literal) ))) ;) (return_statement "return 0x15;" return number_literal ;) })))
(translation_unit "void sqlite3_log(int iErrCode,char *zFormat,...)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  va_list ap;\n  StrAccum acc;\n  char zMsg [210];\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  iVar3 = *(int *)PTR___stack_chk_guard_000f5568;\n  iVar5 = iErrCode;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    acc.mxAlloc = 0;\n    acc.nAlloc = 0xd2;\n    acc.zText = zMsg;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    acc.db = (sqlite3 *)0x0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);\n    iVar5 = *(int *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    pcVar2 = sqlite3StrAccumFinish(&acc);\n    (*pcVar4)(iVar5,iErrCode,pcVar2);\n  }\n  if (iVar3 == *(int *)puVar1) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14);\n  return;\n}\n\n" (function_definition "void sqlite3_log(int iErrCode,char *zFormat,...)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  va_list ap;\n  StrAccum acc;\n  char zMsg [210];\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  iVar3 = *(int *)PTR___stack_chk_guard_000f5568;\n  iVar5 = iErrCode;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    acc.mxAlloc = 0;\n    acc.nAlloc = 0xd2;\n    acc.zText = zMsg;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    acc.db = (sqlite3 *)0x0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);\n    iVar5 = *(int *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    pcVar2 = sqlite3StrAccumFinish(&acc);\n    (*pcVar4)(iVar5,iErrCode,pcVar2);\n  }\n  if (iVar3 == *(int *)puVar1) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14);\n  return;\n}" primitive_type (function_declarator "sqlite3_log(int iErrCode,char *zFormat,...)" identifier (parameter_list "(int iErrCode,char *zFormat,...)" ( (parameter_declaration "int iErrCode" primitive_type identifier) , (parameter_declaration "char *zFormat" primitive_type (pointer_declarator "*zFormat" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  va_list ap;\n  StrAccum acc;\n  char zMsg [210];\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  iVar3 = *(int *)PTR___stack_chk_guard_000f5568;\n  iVar5 = iErrCode;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    acc.mxAlloc = 0;\n    acc.nAlloc = 0xd2;\n    acc.zText = zMsg;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    acc.db = (sqlite3 *)0x0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);\n    iVar5 = *(int *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    pcVar2 = sqlite3StrAccumFinish(&acc);\n    (*pcVar4)(iVar5,iErrCode,pcVar2);\n  }\n  if (iVar3 == *(int *)puVar1) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "va_list ap;" type_identifier identifier ;) (declaration "StrAccum acc;" type_identifier identifier ;) (declaration "char zMsg [210];" primitive_type (array_declarator "zMsg [210]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar6 = PTR_DAT_000f52bc;" (assignment_expression "puVar6 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = iErrCode;" (assignment_expression "iVar5 = iErrCode" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    acc.mxAlloc = 0;\n    acc.nAlloc = 0xd2;\n    acc.zText = zMsg;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    acc.db = (sqlite3 *)0x0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);\n    iVar5 = *(int *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    pcVar2 = sqlite3StrAccumFinish(&acc);\n    (*pcVar4)(iVar5,iErrCode,pcVar2);\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000f52bc + 0x418c) != 0)" ( (binary_expression "*(int *)(PTR_DAT_000f52bc + 0x418c) != 0" (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x418c)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x418c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x418c)" ( (binary_expression "PTR_DAT_000f52bc + 0x418c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    acc.mxAlloc = 0;\n    acc.nAlloc = 0xd2;\n    acc.zText = zMsg;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    acc.db = (sqlite3 *)0x0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);\n    iVar5 = *(int *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    pcVar2 = sqlite3StrAccumFinish(&acc);\n    (*pcVar4)(iVar5,iErrCode,pcVar2);\n  }" { (expression_statement "acc.mxAlloc = 0;" (assignment_expression "acc.mxAlloc = 0" (field_expression "acc.mxAlloc" identifier . field_identifier) = number_literal) ;) (expression_statement "acc.nAlloc = 0xd2;" (assignment_expression "acc.nAlloc = 0xd2" (field_expression "acc.nAlloc" identifier . field_identifier) = number_literal) ;) (expression_statement "acc.zText = zMsg;" (assignment_expression "acc.zText = zMsg" (field_expression "acc.zText" identifier . field_identifier) = identifier) ;) (expression_statement "acc.nChar = 0;" (assignment_expression "acc.nChar = 0" (field_expression "acc.nChar" identifier . field_identifier) = number_literal) ;) (expression_statement "acc.accError = '\0';" (assignment_expression "acc.accError = '\0'" (field_expression "acc.accError" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "acc.printfFlags = '\0';" (assignment_expression "acc.printfFlags = '\0'" (field_expression "acc.printfFlags" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "acc.db = (sqlite3 *)0x0;" (assignment_expression "acc.db = (sqlite3 *)0x0" (field_expression "acc.db" identifier . field_identifier) = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc);" (call_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&acc)" (parenthesized_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)" ( (pointer_expression "*(code *)PTR_sqlite3_str_vappendf_000f5380" * (cast_expression "(code *)PTR_sqlite3_str_vappendf_000f5380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&acc)" ( (pointer_expression "&acc" & identifier) ))) ;) (expression_statement "iVar5 = *(int *)(puVar6 + 0x4190);" (assignment_expression "iVar5 = *(int *)(puVar6 + 0x4190)" identifier = (pointer_expression "*(int *)(puVar6 + 0x4190)" * (cast_expression "(int *)(puVar6 + 0x4190)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4190)" ( (binary_expression "puVar6 + 0x4190" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = *(code **)(puVar6 + 0x418c);" (assignment_expression "pcVar4 = *(code **)(puVar6 + 0x418c)" identifier = (pointer_expression "*(code **)(puVar6 + 0x418c)" * (cast_expression "(code **)(puVar6 + 0x418c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x418c)" ( (binary_expression "puVar6 + 0x418c" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = sqlite3StrAccumFinish(&acc);" (assignment_expression "pcVar2 = sqlite3StrAccumFinish(&acc)" identifier = (call_expression "sqlite3StrAccumFinish(&acc)" identifier (argument_list "(&acc)" ( (pointer_expression "&acc" & identifier) )))) ;) (expression_statement "(*pcVar4)(iVar5,iErrCode,pcVar2);" (call_expression "(*pcVar4)(iVar5,iErrCode,pcVar2)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(iVar5,iErrCode,pcVar2)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (iVar3 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar1)" ( (binary_expression "iVar3 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0xb10c0))();" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0xb10c0))()" identifier = (call_expression "(**(code **)(puVar6 + 0xb10c0))()" (parenthesized_expression "(**(code **)(puVar6 + 0xb10c0))" ( (pointer_expression "**(code **)(puVar6 + 0xb10c0)" * (pointer_expression "*(code **)(puVar6 + 0xb10c0)" * (cast_expression "(code **)(puVar6 + 0xb10c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb10c0)" ( (binary_expression "puVar6 + 0xb10c0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14);" (call_expression "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14)" (parenthesized_expression "(**(code **)(puVar6 + 0xb0f8c))" ( (pointer_expression "**(code **)(puVar6 + 0xb0f8c)" * (pointer_expression "*(code **)(puVar6 + 0xb0f8c)" * (cast_expression "(code **)(puVar6 + 0xb0f8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb0f8c)" ( (binary_expression "puVar6 + 0xb0f8c" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,iVar5,\n             iVar3 + 0x14)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x722c" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x7224" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar3 + 0x14" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int sqlite3_log(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}\n\n" (function_definition "int sqlite3_log(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" primitive_type (function_declarator "sqlite3_log(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_108;" type_identifier identifier ;) (declaration "undefined1 *local_104;" type_identifier (pointer_declarator "*local_104" * identifier) ;) (declaration "undefined4 local_100;" type_identifier identifier ;) (declaration "undefined4 local_fc;" type_identifier identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined2 local_f4;" type_identifier identifier ;) (declaration "undefined1 auStack_f0 [212];" type_identifier (array_declarator "auStack_f0 [212]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar6 = PTR_DAT_000f52bc;" (assignment_expression "puVar6 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = param_1;" (assignment_expression "uVar5 = param_1" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000f52bc + 0x418c) != 0)" ( (binary_expression "*(int *)(PTR_DAT_000f52bc + 0x418c) != 0" (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x418c)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x418c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x418c)" ( (binary_expression "PTR_DAT_000f52bc + 0x418c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" { (expression_statement "local_fc = 0;" (assignment_expression "local_fc = 0" identifier = number_literal) ;) (expression_statement "local_100 = 0xd2;" (assignment_expression "local_100 = 0xd2" identifier = number_literal) ;) (expression_statement "local_104 = auStack_f0;" (assignment_expression "local_104 = auStack_f0" identifier = identifier) ;) (expression_statement "local_f8 = 0;" (assignment_expression "local_f8 = 0" identifier = number_literal) ;) (expression_statement "local_f4 = 0;" (assignment_expression "local_f4 = 0" identifier = number_literal) ;) (expression_statement "local_108 = 0;" (assignment_expression "local_108 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);" (call_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108)" (parenthesized_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)" ( (pointer_expression "*(code *)PTR_sqlite3_str_vappendf_000f5380" * (cast_expression "(code *)PTR_sqlite3_str_vappendf_000f5380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_108)" ( (pointer_expression "&local_108" & identifier) ))) ;) (expression_statement "uVar5 = *(undefined4 *)(puVar6 + 0x4190);" (assignment_expression "uVar5 = *(undefined4 *)(puVar6 + 0x4190)" identifier = (pointer_expression "*(undefined4 *)(puVar6 + 0x4190)" * (cast_expression "(undefined4 *)(puVar6 + 0x4190)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4190)" ( (binary_expression "puVar6 + 0x4190" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = *(code **)(puVar6 + 0x418c);" (assignment_expression "pcVar4 = *(code **)(puVar6 + 0x418c)" identifier = (pointer_expression "*(code **)(puVar6 + 0x418c)" * (cast_expression "(code **)(puVar6 + 0x418c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x418c)" ( (binary_expression "puVar6 + 0x418c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00036f4c(&local_108);" (assignment_expression "uVar2 = FUN_00036f4c(&local_108)" identifier = (call_expression "FUN_00036f4c(&local_108)" identifier (argument_list "(&local_108)" ( (pointer_expression "&local_108" & identifier) )))) ;) (expression_statement "(*pcVar4)(uVar5,param_1,uVar2);" (call_expression "(*pcVar4)(uVar5,param_1,uVar2)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(uVar5,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar1;\n  }" { (return_statement "return *(int *)puVar1;" return (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0xb10c0))();" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0xb10c0))()" identifier = (call_expression "(**(code **)(puVar6 + 0xb10c0))()" (parenthesized_expression "(**(code **)(puVar6 + 0xb10c0))" ( (pointer_expression "**(code **)(puVar6 + 0xb10c0)" * (pointer_expression "*(code **)(puVar6 + 0xb10c0)" * (cast_expression "(code **)(puVar6 + 0xb10c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb10c0)" ( (binary_expression "puVar6 + 0xb10c0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);" (call_expression "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" (parenthesized_expression "(**(code **)(puVar6 + 0xb0f8c))" ( (pointer_expression "**(code **)(puVar6 + 0xb0f8c)" * (pointer_expression "*(code **)(puVar6 + 0xb0f8c)" * (cast_expression "(code **)(puVar6 + 0xb0f8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0xb0f8c)" ( (binary_expression "puVar6 + 0xb0f8c" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x722c" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x7224" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" * (cast_expression "(int *)(puVar6 + 0xb0e8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xb0e8c)" ( (binary_expression "puVar6 + 0xb0e8c" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar3 + 0x14" identifier + number_literal) ))) ;) (return_statement "return 0x15;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })))
(function_definition "int sqlite3_log(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" (primitive_type "int") (function_declarator "sqlite3_log(undefined4 param_1)" (identifier "sqlite3_log") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  code *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  undefined4 local_108;\n  undefined1 *local_104;\n  undefined4 local_100;\n  undefined4 local_fc;\n  undefined4 local_f8;\n  undefined2 local_f4;\n  undefined1 auStack_f0 [212];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  puVar6 = PTR_DAT_000f52bc;\n  local_1c = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar5 = param_1;\n  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }\n  if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar6 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  iVar3 = (**(code **)(puVar6 + 0xb10c0))();\n  (**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);\n  return 0x15;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 local_108;" (type_identifier "undefined4") (identifier "local_108") (; ";")) (declaration "undefined1 *local_104;" (type_identifier "undefined1") (pointer_declarator "*local_104" (* "*") (identifier "local_104")) (; ";")) (declaration "undefined4 local_100;" (type_identifier "undefined4") (identifier "local_100") (; ";")) (declaration "undefined4 local_fc;" (type_identifier "undefined4") (identifier "local_fc") (; ";")) (declaration "undefined4 local_f8;" (type_identifier "undefined4") (identifier "local_f8") (; ";")) (declaration "undefined2 local_f4;" (type_identifier "undefined2") (identifier "local_f4") (; ";")) (declaration "undefined1 auStack_f0 [212];" (type_identifier "undefined1") (array_declarator "auStack_f0 [212]" (identifier "auStack_f0") ([ "[") (number_literal "212") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "puVar6 = PTR_DAT_000f52bc;" (assignment_expression "puVar6 = PTR_DAT_000f52bc" (identifier "puVar6") (= "=") (identifier "PTR_DAT_000f52bc")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000f5568" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "uVar5 = param_1;" (assignment_expression "uVar5 = param_1" (identifier "uVar5") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_000f52bc + 0x418c) != 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_000f52bc + 0x418c) != 0" (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x418c)" (* "*") (cast_expression "(int *)(PTR_DAT_000f52bc + 0x418c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x418c)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x418c" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x418c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_fc = 0;\n    local_100 = 0xd2;\n    local_104 = auStack_f0;\n    local_f8 = 0;\n    local_f4 = 0;\n    local_108 = 0;\n    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);\n    uVar5 = *(undefined4 *)(puVar6 + 0x4190);\n    pcVar4 = *(code **)(puVar6 + 0x418c);\n    uVar2 = FUN_00036f4c(&local_108);\n    (*pcVar4)(uVar5,param_1,uVar2);\n  }" ({ "{") (expression_statement "local_fc = 0;" (assignment_expression "local_fc = 0" (identifier "local_fc") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_100 = 0xd2;" (assignment_expression "local_100 = 0xd2" (identifier "local_100") (= "=") (number_literal "0xd2")) (; ";")) (expression_statement "local_104 = auStack_f0;" (assignment_expression "local_104 = auStack_f0" (identifier "local_104") (= "=") (identifier "auStack_f0")) (; ";")) (expression_statement "local_f8 = 0;" (assignment_expression "local_f8 = 0" (identifier "local_f8") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_f4 = 0;" (assignment_expression "local_f4 = 0" (identifier "local_f4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_108 = 0;" (assignment_expression "local_108 = 0" (identifier "local_108") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);" (call_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108)" (parenthesized_expression "(*(code *)PTR_sqlite3_str_vappendf_000f5380)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_str_vappendf_000f5380" (* "*") (cast_expression "(code *)PTR_sqlite3_str_vappendf_000f5380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_str_vappendf_000f5380"))) () ")")) (argument_list "(&local_108)" (( "(") (pointer_expression "&local_108" (& "&") (identifier "local_108")) () ")"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(puVar6 + 0x4190);" (assignment_expression "uVar5 = *(undefined4 *)(puVar6 + 0x4190)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(puVar6 + 0x4190)" (* "*") (cast_expression "(undefined4 *)(puVar6 + 0x4190)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x4190)" (( "(") (binary_expression "puVar6 + 0x4190" (identifier "puVar6") (+ "+") (number_literal "0x4190")) () ")"))))) (; ";")) (expression_statement "pcVar4 = *(code **)(puVar6 + 0x418c);" (assignment_expression "pcVar4 = *(code **)(puVar6 + 0x418c)" (identifier "pcVar4") (= "=") (pointer_expression "*(code **)(puVar6 + 0x418c)" (* "*") (cast_expression "(code **)(puVar6 + 0x418c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x418c)" (( "(") (binary_expression "puVar6 + 0x418c" (identifier "puVar6") (+ "+") (number_literal "0x418c")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_00036f4c(&local_108);" (assignment_expression "uVar2 = FUN_00036f4c(&local_108)" (identifier "uVar2") (= "=") (call_expression "FUN_00036f4c(&local_108)" (identifier "FUN_00036f4c") (argument_list "(&local_108)" (( "(") (pointer_expression "&local_108" (& "&") (identifier "local_108")) () ")")))) (; ";")) (expression_statement "(*pcVar4)(uVar5,param_1,uVar2);" (call_expression "(*pcVar4)(uVar5,param_1,uVar2)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(uVar5,param_1,uVar2)" (( "(") (identifier "uVar5") (, ",") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_1c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar1)" (( "(") (binary_expression "local_1c == *(int *)puVar1" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return *(int *)puVar1;\n  }" ({ "{") (return_statement "return *(int *)puVar1;" (return "return") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (; ";")) (} "}"))) (expression_statement "puVar6 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000f5540" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_000f5540")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = (**(code **)(puVar6 + 0xb10c0))();" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0xb10c0))()" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0xb10c0))()" (parenthesized_expression "(**(code **)(puVar6 + 0xb10c0))" (( "(") (pointer_expression "**(code **)(puVar6 + 0xb10c0)" (* "*") (pointer_expression "*(code **)(puVar6 + 0xb10c0)" (* "*") (cast_expression "(code **)(puVar6 + 0xb10c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0xb10c0)" (( "(") (binary_expression "puVar6 + 0xb10c0" (identifier "puVar6") (+ "+") (number_literal "0xb10c0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14);" (call_expression "(**(code **)(puVar6 + 0xb0f8c))\n            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" (parenthesized_expression "(**(code **)(puVar6 + 0xb0f8c))" (( "(") (pointer_expression "**(code **)(puVar6 + 0xb0f8c)" (* "*") (pointer_expression "*(code **)(puVar6 + 0xb0f8c)" (* "*") (cast_expression "(code **)(puVar6 + 0xb0f8c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0xb0f8c)" (( "(") (binary_expression "puVar6 + 0xb0f8c" (identifier "puVar6") (+ "+") (number_literal "0xb0f8c")) () ")"))))) () ")")) (argument_list "(0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,\n             iVar3 + 0x14)" (( "(") (number_literal "0x15") (, ",") (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x722c" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" (* "*") (cast_expression "(int *)(puVar6 + 0xb0e8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0xb0e8c)" (( "(") (binary_expression "puVar6 + 0xb0e8c" (identifier "puVar6") (+ "+") (number_literal "0xb0e8c")) () ")")))) (+ "+") (number_literal "0x722c")) (, ",") (binary_expression "*(int *)(puVar6 + 0xb0e8c) + 0x7224" (pointer_expression "*(int *)(puVar6 + 0xb0e8c)" (* "*") (cast_expression "(int *)(puVar6 + 0xb0e8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0xb0e8c)" (( "(") (binary_expression "puVar6 + 0xb0e8c" (identifier "puVar6") (+ "+") (number_literal "0xb0e8c")) () ")")))) (+ "+") (number_literal "0x7224")) (, ",") (identifier "uVar5") (, ",") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))) (; ";")) (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}")))

void function_1(int iErrCode,char *zFormat,...)

{
  type_1 *puVar1;
  char *pcVar2;
  int var_4;
  type_2 *pcVar4;
  int iVar5;
  type_1 *var_2;
  type_3 ap;
  type_4 acc;
  char zMsg [210];
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  var_2 = var_1;
  var_4 = *(int *)PTR___stack_chk_guard_000f5568;
  iVar5 = iErrCode;
  if (*(int *)(var_1 + 0x418c) != 0) {
    acc.mxAlloc = 0;
    acc.nAlloc = 0xd2;
    acc.zText = zMsg;
    acc.nChar = 0;
    acc.accError = '\0';
    acc.printfFlags = '\0';
    acc.db = (type_5 *)0x0;
    (*(type_2 *)PTR_sqlite3_str_vappendf_000f5380)(&acc);
    iVar5 = *(int *)(var_2 + 0x4190);
    pcVar4 = *(type_2 **)(var_2 + 0x418c);
    pcVar2 = var_3(&acc);
    (*pcVar4)(iVar5,iErrCode,pcVar2);
  }
  if (var_4 == *(int *)puVar1) {
    return;
  }
  var_2 = PTR___stack_chk_fail_000f5540;
  (*(type_2 *)PTR___stack_chk_fail_000f5540)();
  var_4 = (**(type_2 **)(var_2 + 0xb10c0))();
  (**(type_2 **)(var_2 + 0xb0f8c))
            (0x15,*(int *)(var_2 + 0xb0e8c) + 0x722c,*(int *)(var_2 + 0xb0e8c) + 0x7224,iVar5,
             var_4 + 0x14);
  return;
}


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

int MASKED(undefined4 param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  code *pcVar4;
  undefined4 uVar5;
  undefined *puVar6;
  undefined4 local_108;
  undefined1 *local_104;
  undefined4 local_100;
  undefined4 local_fc;
  undefined4 local_f8;
  undefined2 local_f4;
  undefined1 auStack_f0 [212];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  puVar6 = PTR_DAT_000f52bc;
  local_1c = *(int *)PTR___stack_chk_guard_000f5568;
  uVar5 = param_1;
  if (*(int *)(PTR_DAT_000f52bc + 0x418c) != 0) {
    local_fc = 0;
    local_100 = 0xd2;
    local_104 = auStack_f0;
    local_f8 = 0;
    local_f4 = 0;
    local_108 = 0;
    (*(code *)PTR_sqlite3_str_vappendf_000f5380)(&local_108);
    uVar5 = *(undefined4 *)(puVar6 + 0x4190);
    pcVar4 = *(code **)(puVar6 + 0x418c);
    uVar2 = FUN_00036f4c(&local_108);
    (*pcVar4)(uVar5,param_1,uVar2);
  }
  if (local_1c == *(int *)puVar1) {
    return *(int *)puVar1;
  }
  puVar6 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  iVar3 = (**(code **)(puVar6 + 0xb10c0))();
  (**(code **)(puVar6 + 0xb0f8c))
            (0x15,*(int *)(puVar6 + 0xb0e8c) + 0x722c,*(int *)(puVar6 + 0xb0e8c) + 0x7224,uVar5,
             iVar3 + 0x14);
  return 0x15;
}

