
void sessionAppendInteger(SessionBuffer *p,int iVal,int *pRc)

{
  undefined *puVar1;
  int iVar2;
  char *zStr;
  char aBuf [24];
  u8 uVar3;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  zStr = aBuf;
  iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c;
  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal);
  sessionAppendStr(p,zStr,pRc);
  uVar3 = (u8)zStr;
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  iVar2 = sessionBufferGrow(p,1,pRc);
  if (iVar2 == 0) {
    iVar2 = p->nBuf;
    p->nBuf = iVar2 + 1;
    p->aBuf[iVar2] = uVar3;
  }
  return;
}



void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 auStack_34 [24];
  int local_1c;
  undefined1 uVar4;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  puVar3 = auStack_34;
  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;
  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);
  FUN_0008e42c(param_1,puVar3,param_3);
  uVar4 = SUB41(puVar3,0);
  if (local_1c == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  iVar2 = FUN_0008e0d4();
  if (iVar2 == 0) {
    iVar2 = param_1[1];
    param_1[1] = iVar2 + 1;
    *(undefined1 *)(*param_1 + iVar2) = uVar4;
  }
  return;
}


lui gp,0xd
addiu gp,gp,0x50bc
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x7fa0(gp)
or a3,a1,zero
sw s1,0x40(sp)
sw gp,0x10(sp)
sw ra,0x4c(sp)
sw s3,0x48(sp)
or s3,a2,zero
sw s2,0x44(sp)
or s2,a0,zero
sw s0,0x3c(sp)
addiu s0,sp,0x1c
lw s1,-0x7b84(gp)
li a0,0x17
lw a2,-0x7fb4(gp)
or a1,s0,zero
lw v0,0x0(s1)
addiu a2,a2,-0x6e8c
sw v0,0x34(sp)
jalr t9
_nop
or a2,s3,zero
lw gp,0x10(sp)
or a1,s0,zero
lw t9,-0x7e94(gp)
addiu t9,t9,-0x1bd4
bal 0x0008e42c
_or a0,s2,zero
lw v1,0x34(sp)
lw v0,0x0(s1)
bne v1,v0,0x0008e59c
_lw gp,0x10(sp)
lw ra,0x4c(sp)
lw s3,0x48(sp)
lw s2,0x44(sp)
lw s1,0x40(sp)
lw s0,0x3c(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 auStack_34 [24];" type_identifier (array_declarator "auStack_34 [24]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);" (call_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)" ( (pointer_expression "*(code *)PTR_sqlite3_snprintf_0015b610" * (cast_expression "(code *)PTR_sqlite3_snprintf_0015b610" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" ( number_literal , identifier , (binary_expression "PTR_UINT_0015b5fc + -0x6e8c" identifier + number_literal) , identifier ))) ;) (expression_statement "FUN_0008e42c(param_1,puVar3,param_3);" (call_expression "FUN_0008e42c(param_1,puVar3,param_3)" identifier (argument_list "(param_1,puVar3,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = SUB41(puVar3,0);" (assignment_expression "uVar4 = SUB41(puVar3,0)" identifier = (call_expression "SUB41(puVar3,0)" identifier (argument_list "(puVar3,0)" ( identifier , number_literal )))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = FUN_0008e0d4();" (assignment_expression "iVar2 = FUN_0008e0d4()" identifier = (call_expression "FUN_0008e0d4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" { (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar2) = uVar4;" (assignment_expression "*(undefined1 *)(*param_1 + iVar2) = uVar4" (pointer_expression "*(undefined1 *)(*param_1 + iVar2)" * (cast_expression "(undefined1 *)(*param_1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar2)" ( (binary_expression "*param_1 + iVar2" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sessionAppendInteger(SessionBuffer *p,int iVal,int *pRc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *zStr;\n  char aBuf [24];\n  u8 uVar3;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  zStr = aBuf;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal);\n  sessionAppendStr(p,zStr,pRc);\n  uVar3 = (u8)zStr;\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = sessionBufferGrow(p,1,pRc);\n  if (iVar2 == 0) {\n    iVar2 = p->nBuf;\n    p->nBuf = iVar2 + 1;\n    p->aBuf[iVar2] = uVar3;\n  }\n  return;\n}\n\n" (function_definition "void sessionAppendInteger(SessionBuffer *p,int iVal,int *pRc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *zStr;\n  char aBuf [24];\n  u8 uVar3;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  zStr = aBuf;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal);\n  sessionAppendStr(p,zStr,pRc);\n  uVar3 = (u8)zStr;\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = sessionBufferGrow(p,1,pRc);\n  if (iVar2 == 0) {\n    iVar2 = p->nBuf;\n    p->nBuf = iVar2 + 1;\n    p->aBuf[iVar2] = uVar3;\n  }\n  return;\n}" primitive_type (function_declarator "sessionAppendInteger(SessionBuffer *p,int iVal,int *pRc)" identifier (parameter_list "(SessionBuffer *p,int iVal,int *pRc)" ( (parameter_declaration "SessionBuffer *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int iVal" primitive_type identifier) , (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *zStr;\n  char aBuf [24];\n  u8 uVar3;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  zStr = aBuf;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal);\n  sessionAppendStr(p,zStr,pRc);\n  uVar3 = (u8)zStr;\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = sessionBufferGrow(p,1,pRc);\n  if (iVar2 == 0) {\n    iVar2 = p->nBuf;\n    p->nBuf = iVar2 + 1;\n    p->aBuf[iVar2] = uVar3;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *zStr;" primitive_type (pointer_declarator "*zStr" * identifier) ;) (declaration "char aBuf [24];" primitive_type (array_declarator "aBuf [24]" identifier [ number_literal ]) ;) (declaration "u8 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "zStr = aBuf;" (assignment_expression "zStr = aBuf" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal);" (call_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal)" (parenthesized_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)" ( (pointer_expression "*(code *)PTR_sqlite3_snprintf_0015b610" * (cast_expression "(code *)PTR_sqlite3_snprintf_0015b610" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,zStr,PTR_DAT_0015b5fc + -0x6e8c,iVal)" ( number_literal , identifier , (binary_expression "PTR_DAT_0015b5fc + -0x6e8c" identifier + number_literal) , identifier ))) ;) (expression_statement "sessionAppendStr(p,zStr,pRc);" (call_expression "sessionAppendStr(p,zStr,pRc)" identifier (argument_list "(p,zStr,pRc)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = (u8)zStr;" (assignment_expression "uVar3 = (u8)zStr" identifier = (cast_expression "(u8)zStr" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(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 "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = sessionBufferGrow(p,1,pRc);" (assignment_expression "iVar2 = sessionBufferGrow(p,1,pRc)" identifier = (call_expression "sessionBufferGrow(p,1,pRc)" identifier (argument_list "(p,1,pRc)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = p->nBuf;\n    p->nBuf = iVar2 + 1;\n    p->aBuf[iVar2] = uVar3;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = p->nBuf;\n    p->nBuf = iVar2 + 1;\n    p->aBuf[iVar2] = uVar3;\n  }" { (expression_statement "iVar2 = p->nBuf;" (assignment_expression "iVar2 = p->nBuf" identifier = (field_expression "p->nBuf" identifier -> field_identifier)) ;) (expression_statement "p->nBuf = iVar2 + 1;" (assignment_expression "p->nBuf = iVar2 + 1" (field_expression "p->nBuf" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "p->aBuf[iVar2] = uVar3;" (assignment_expression "p->aBuf[iVar2] = uVar3" (subscript_expression "p->aBuf[iVar2]" (field_expression "p->aBuf" identifier -> field_identifier) [ identifier ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 auStack_34 [24];" type_identifier (array_declarator "auStack_34 [24]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);" (call_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)" ( (pointer_expression "*(code *)PTR_sqlite3_snprintf_0015b610" * (cast_expression "(code *)PTR_sqlite3_snprintf_0015b610" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" ( number_literal , identifier , (binary_expression "PTR_UINT_0015b5fc + -0x6e8c" identifier + number_literal) , identifier ))) ;) (expression_statement "FUN_0008e42c(param_1,puVar3,param_3);" (call_expression "FUN_0008e42c(param_1,puVar3,param_3)" identifier (argument_list "(param_1,puVar3,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = SUB41(puVar3,0);" (assignment_expression "uVar4 = SUB41(puVar3,0)" identifier = (call_expression "SUB41(puVar3,0)" identifier (argument_list "(puVar3,0)" ( identifier , number_literal )))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = FUN_0008e0d4();" (assignment_expression "iVar2 = FUN_0008e0d4()" identifier = (call_expression "FUN_0008e0d4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" { (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar2) = uVar4;" (assignment_expression "*(undefined1 *)(*param_1 + iVar2) = uVar4" (pointer_expression "*(undefined1 *)(*param_1 + iVar2)" * (cast_expression "(undefined1 *)(*param_1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar2)" ( (binary_expression "*param_1 + iVar2" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (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 IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0008e4f4(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0008e4f4") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 auStack_34 [24];\n  int local_1c;\n  undefined1 uVar4;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  puVar3 = auStack_34;\n  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);\n  FUN_0008e42c(param_1,puVar3,param_3);\n  uVar4 = SUB41(puVar3,0);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar2 = FUN_0008e0d4();\n  if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 auStack_34 [24];" (type_identifier "undefined1") (array_declarator "auStack_34 [24]" (identifier "auStack_34") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (declaration "undefined1 uVar4;" (type_identifier "undefined1") (identifier "uVar4") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" (identifier "puVar3") (= "=") (identifier "auStack_34")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0015ba2c" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);" (call_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_snprintf_0015b610)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_snprintf_0015b610" (* "*") (cast_expression "(code *)PTR_sqlite3_snprintf_0015b610" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_snprintf_0015b610"))) () ")")) (argument_list "(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2)" (( "(") (number_literal "0x17") (, ",") (identifier "puVar3") (, ",") (binary_expression "PTR_UINT_0015b5fc + -0x6e8c" (identifier "PTR_UINT_0015b5fc") (+ "+") (number_literal "-0x6e8c")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0008e42c(param_1,puVar3,param_3);" (call_expression "FUN_0008e42c(param_1,puVar3,param_3)" (identifier "FUN_0008e42c") (argument_list "(param_1,puVar3,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "puVar3") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar4 = SUB41(puVar3,0);" (assignment_expression "uVar4 = SUB41(puVar3,0)" (identifier "uVar4") (= "=") (call_expression "SUB41(puVar3,0)" (identifier "SUB41") (argument_list "(puVar3,0)" (( "(") (identifier "puVar3") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0008e0d4();" (assignment_expression "iVar2 = FUN_0008e0d4()" (identifier "iVar2") (= "=") (call_expression "FUN_0008e0d4()" (identifier "FUN_0008e0d4") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = param_1[1];\n    param_1[1] = iVar2 + 1;\n    *(undefined1 *)(*param_1 + iVar2) = uVar4;\n  }" ({ "{") (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + iVar2) = uVar4;" (assignment_expression "*(undefined1 *)(*param_1 + iVar2) = uVar4" (pointer_expression "*(undefined1 *)(*param_1 + iVar2)" (* "*") (cast_expression "(undefined1 *)(*param_1 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar2)" (( "(") (binary_expression "*param_1 + iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,int iVal,int *pRc)

{
  type_2 *puVar1;
  int var_3;
  char *zStr;
  char aBuf [24];
  type_3 uVar3;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  zStr = aBuf;
  var_3 = *(int *)PTR___stack_chk_guard_0015ba2c;
  (*(type_4 *)PTR_sqlite3_snprintf_0015b610)(0x17,zStr,var_1 + -0x6e8c,iVal);
  var_2(p,zStr,pRc);
  uVar3 = (type_3)zStr;
  if (var_3 == *(int *)puVar1) {
    return;
  }
  (*(type_4 *)PTR___stack_chk_fail_0015ba10)();
  var_3 = var_4(p,1,pRc);
  if (var_3 == 0) {
    var_3 = p->nBuf;
    p->nBuf = var_3 + 1;
    p->aBuf[var_3] = uVar3;
  }
  return;
}


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

void MASKED(int *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 auStack_34 [24];
  int local_1c;
  undefined1 uVar4;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  puVar3 = auStack_34;
  local_1c = *(int *)PTR___stack_chk_guard_0015ba2c;
  (*(code *)PTR_sqlite3_snprintf_0015b610)(0x17,puVar3,PTR_UINT_0015b5fc + -0x6e8c,param_2);
  FUN_0008e42c(param_1,puVar3,param_3);
  uVar4 = SUB41(puVar3,0);
  if (local_1c == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  iVar2 = FUN_0008e0d4();
  if (iVar2 == 0) {
    iVar2 = param_1[1];
    param_1[1] = iVar2 + 1;
    *(undefined1 *)(*param_1 + iVar2) = uVar4;
  }
  return;
}

