
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 sqlite3VdbeMemStringify(Mem *pMem,u8 enc,u8 bForce)

{
  int iVar1;
  ushort uVar2;
  size_t sVar3;
  int iVar4;
  ushort uVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  StrAccum *pSVar7;
  Mem *pMVar8;
  undefined8 local_4c;
  StrAccum acc;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (pMem->szMalloc < 0x20) {
    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);
    if (iVar4 != 0) {
      pMem->enc = '\0';
      iVar4 = 7;
      goto LAB_00035a06;
    }
    uVar2 = pMem->flags;
    pcVar6 = pMem->z;
    uVar5 = uVar2 & 4;
    if (uVar5 != 0) goto LAB_00035a6d;
LAB_0003596d:
    local_4c = (double)(pMem->u).i;
    acc.db = (sqlite3 *)0x0;
    acc.nAlloc = 0x20;
    acc.mxAlloc = 0;
    acc.nChar = 0;
    acc.accError = '\0';
    acc.printfFlags = '\0';
    if ((uVar2 & 0x20) != 0) {
      local_4c = (double)(longlong)local_4c;
    }
    acc.zText = pcVar6;
    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);
    pcVar6[acc.nChar] = '\0';
  }
  else {
    uVar5 = pMem->flags;
    pcVar6 = pMem->zMalloc;
    pMem->z = pcVar6;
    uVar2 = uVar5 & 0x2d;
    pMem->flags = uVar2;
    uVar5 = uVar5 & 4;
    if (uVar5 == 0) goto LAB_0003596d;
LAB_00035a6d:
    pSVar7 = &acc;
    pMVar8 = pMem;
    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);
    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);
  }
  sVar3 = strlen(pMem->z);
  pMem->n = sVar3 & 0x3fffffff;
  pMem->enc = '\x01';
  uVar5 = pMem->flags;
  if (bForce != '\0') {
    uVar5 = uVar5 & 0xffd3;
  }
  pMem->flags = uVar5 | 0x202;
  if ((((uVar5 | 0x202) & 2) == 0) || (enc == 1)) {
    iVar4 = 0;
  }
  else {
    sqlite3VdbeChangeEncoding(pMem,(uint)enc);
    iVar4 = 0;
  }
LAB_00035a06:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)

{
  ushort uVar1;
  size_t sVar2;
  undefined4 uVar3;
  int iVar4;
  ushort uVar5;
  int in_GS_OFFSET;
  undefined8 local_4c;
  undefined4 local_3c;
  int local_38;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  undefined2 local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3592d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 3) < 0x20) {
    iVar4 = FUN_000307e0();
    if (iVar4 != 0) {
      *(undefined1 *)((int)param_1 + 10) = 0;
      uVar3 = 7;
      goto LAB_00035a06;
    }
    uVar1 = *(ushort *)(param_1 + 1);
    iVar4 = *(int *)(param_1 + 2);
    uVar5 = uVar1 & 4;
    if (uVar5 != 0) goto LAB_00035a6d;
LAB_0003596d:
    local_4c = *param_1;
    local_3c = 0;
    local_34 = 0x20;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    if ((uVar1 & 0x20) != 0) {
      local_4c = (double)(longlong)local_4c;
    }
    local_38 = iVar4;
    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);
    *(undefined1 *)(iVar4 + local_2c) = 0;
  }
  else {
    uVar5 = *(ushort *)(param_1 + 1);
    iVar4 = *(int *)((int)param_1 + 0x14);
    *(int *)(param_1 + 2) = iVar4;
    uVar1 = uVar5 & 0x2d;
    *(ushort *)(param_1 + 1) = uVar1;
    uVar5 = uVar5 & 4;
    if (uVar5 == 0) goto LAB_0003596d;
LAB_00035a6d:
    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);
    FUN_00021620();
  }
  sVar2 = strlen(*(char **)(param_1 + 2));
  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;
  *(undefined1 *)((int)param_1 + 10) = 1;
  uVar5 = *(ushort *)(param_1 + 1);
  if (param_3 != '\0') {
    uVar5 = uVar5 & 0xffd3;
  }
  *(ushort *)(param_1 + 1) = uVar5 | 0x202;
  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {
    uVar3 = 0;
  }
  else {
    FUN_000313c0();
    uVar3 = 0;
  }
LAB_00035a06:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}


PUSH EBP
PUSH EDI
MOV EBP,ECX
PUSH ESI
PUSH EBX
MOV ESI,EAX
CALL 0x0001d810
ADD EBX,0xa86d3
SUB ESP,0x4c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
CMP dword ptr [ESI + 0x18],0x1f
MOV dword ptr [ESP + 0xc],EDX
JLE 0x00035a48
MOVZX EAX,word ptr [ESI + 0x8]
MOV EDI,dword ptr [ESI + 0x14]
MOV dword ptr [ESI + 0x10],EDI
AND EAX,0x2d
MOV EDX,EAX
MOV word ptr [ESI + 0x8],AX
AND DX,0x4
JNZ 0x00035a6d
FLD qword ptr [ESI]
XOR EDX,EDX
TEST AL,0x20
MOV dword ptr [ESP + 0x24],EDI
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x28],0x20
MOV dword ptr [ESP + 0x2c],0x0
FSTP qword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x30],0x0
MOV word ptr [ESP + 0x34],DX
JNZ 0x00035a28
LEA EAX,[EBX + 0xfffcc054]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
PUSH EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
CALL 0x00016ca0
MOV EAX,dword ptr [ESP + 0x40]
ADD ESP,0x10
MOV byte ptr [EDI + EAX*0x1],0x0
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
CALL 0x000167d0
MOV ECX,EBP
AND EAX,0x3fffffff
ADD ESP,0x10
TEST CL,CL
MOV dword ptr [ESI + 0xc],EAX
MOV byte ptr [ESI + 0xa],0x1
MOVZX EAX,word ptr [ESI + 0x8]
JNZ 0x00035a20
OR AX,0x202
MOVZX EDX,byte ptr [ESP + 0xc]
TEST AL,0x2
MOV word ptr [ESI + 0x8],AX
JZ 0x00035a04
CMP EDX,0x1
JNZ 0x00035a38
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x3c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00035aae
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
AND EAX,0xffffffd3
JMP 0x000359ee
FILD qword ptr [ESP + 0x10]
FSTP qword ptr [ESP + 0x10]
JMP 0x000359a6
MOV EAX,ESI
CALL 0x000313c0
XOR EAX,EAX
JMP 0x00035a06
XOR ECX,ECX
MOV EDX,0x20
MOV EAX,ESI
CALL 0x000307e0
TEST EAX,EAX
JNZ 0x00035aa0
MOVZX EAX,word ptr [ESI + 0x8]
MOV EDI,dword ptr [ESI + 0x10]
MOV EDX,EAX
AND DX,0x4
JZ 0x0003596d
MOVZX EDX,DX
PUSH 0x8
ADD EDX,EDX
PUSH EDX
PUSH ESI
LEA EAX,[ESP + 0x2c]
PUSH EAX
CALL 0x00016730
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,EDI
CALL 0x00021620
ADD ESP,0x10
JMP 0x000359ca
MOV byte ptr [ESI + 0xa],0x0
MOV EAX,0x7
JMP 0x00035a06
CALL 0x000a9ea0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00035920(double *param_1,char param_2,char param_3)" identifier (parameter_list "(double *param_1,char param_2,char param_3)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined2 local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3592d;" (assignment_expression "uStack_14 = 0x3592d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 3) < 0x20)" ( (binary_expression "*(int *)(param_1 + 3) < 0x20" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }" { (expression_statement "iVar4 = FUN_000307e0();" (assignment_expression "iVar4 = FUN_000307e0()" identifier = (call_expression "FUN_000307e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" { (expression_statement "*(undefined1 *)((int)param_1 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" * (cast_expression "(undefined1 *)((int)param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00035a06;" goto statement_identifier ;) })) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 2);" (assignment_expression "iVar4 = *(int *)(param_1 + 2)" identifier = (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = uVar1 & 4;" (assignment_expression "uVar5 = uVar1 & 4" identifier = (binary_expression "uVar1 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 != 0) goto LAB_00035a6d;" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00035a6d;" goto statement_identifier ;)) (labeled_statement "LAB_0003596d:\n    local_4c = *param_1;" statement_identifier : (expression_statement "local_4c = *param_1;" (assignment_expression "local_4c = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0x20;" (assignment_expression "local_34 = 0x20" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }" if (parenthesized_expression "((uVar1 & 0x20) != 0)" ( (binary_expression "(uVar1 & 0x20) != 0" (parenthesized_expression "(uVar1 & 0x20)" ( (binary_expression "uVar1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      local_4c = (double)(longlong)local_4c;\n    }" { (expression_statement "local_4c = (double)(longlong)local_4c;" (assignment_expression "local_4c = (double)(longlong)local_4c" identifier = (cast_expression "(double)(longlong)local_4c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_4c" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) })) (expression_statement "local_38 = iVar4;" (assignment_expression "local_38 = iVar4" identifier = identifier) ;) (expression_statement "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);" (call_expression "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" identifier (argument_list "(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" ( (pointer_expression "&local_3c" & identifier) , (string_literal ""%!.15g"" " string_content ") , (cast_expression "(undefined4)local_4c" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_4c._4_4_" identifier . field_identifier) ))) ;) (expression_statement "*(undefined1 *)(iVar4 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + local_2c) = 0" (pointer_expression "*(undefined1 *)(iVar4 + local_2c)" * (cast_expression "(undefined1 *)(iVar4 + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_2c)" ( (binary_expression "iVar4 + local_2c" identifier + identifier) )))) = number_literal) ;) }) (else_clause "else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" else (compound_statement "{\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" { (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)((int)param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)((int)param_1 + 0x14)" identifier = (pointer_expression "*(int *)((int)param_1 + 0x14)" * (cast_expression "(int *)((int)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 2) = iVar4;" (assignment_expression "*(int *)(param_1 + 2) = iVar4" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = uVar5 & 0x2d;" (assignment_expression "uVar1 = uVar5 & 0x2d" identifier = (binary_expression "uVar5 & 0x2d" identifier & number_literal)) ;) (expression_statement "*(ushort *)(param_1 + 1) = uVar1;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar1" (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = uVar5 & 4;" (assignment_expression "uVar5 = uVar5 & 4" identifier = (binary_expression "uVar5 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0) goto LAB_0003596d;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003596d;" goto statement_identifier ;)) (labeled_statement "LAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" statement_identifier : (expression_statement "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" (call_expression "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8)" identifier (argument_list "(&local_3c,param_1,uVar5 * 2,8)" ( (pointer_expression "&local_3c" & identifier) , identifier , (binary_expression "uVar5 * 2" identifier * number_literal) , number_literal ))) ;)) (expression_statement "FUN_00021620();" (call_expression "FUN_00021620()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "sVar2 = strlen(*(char **)(param_1 + 2));" (assignment_expression "sVar2 = strlen(*(char **)(param_1 + 2))" identifier = (call_expression "strlen(*(char **)(param_1 + 2))" identifier (argument_list "(*(char **)(param_1 + 2))" ( (pointer_expression "*(char **)(param_1 + 2)" * (cast_expression "(char **)(param_1 + 2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;" (assignment_expression "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff" (pointer_expression "*(size_t *)((int)param_1 + 0xc)" * (cast_expression "(size_t *)((int)param_1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "*(undefined1 *)((int)param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" * (cast_expression "(undefined1 *)((int)param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }" if (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar5 = uVar5 & 0xffd3;\n  }" { (expression_statement "uVar5 = uVar5 & 0xffd3;" (assignment_expression "uVar5 = uVar5 & 0xffd3" identifier = (binary_expression "uVar5 & 0xffd3" identifier & number_literal)) ;) })) (expression_statement "*(ushort *)(param_1 + 1) = uVar5 | 0x202;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar5 | 0x202" (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "uVar5 | 0x202" identifier | number_literal)) ;) (if_statement "if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" if (parenthesized_expression "((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01'))" ( (binary_expression "(((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')" (parenthesized_expression "(((uVar5 | 0x202) & 2) == 0)" ( (binary_expression "((uVar5 | 0x202) & 2) == 0" (parenthesized_expression "((uVar5 | 0x202) & 2)" ( (binary_expression "(uVar5 | 0x202) & 2" (parenthesized_expression "(uVar5 | 0x202)" ( (binary_expression "uVar5 | 0x202" identifier | number_literal) )) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" else (compound_statement "{\n    FUN_000313c0();\n    uVar3 = 0;\n  }" { (expression_statement "FUN_000313c0();" (call_expression "FUN_000313c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) comment (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3VdbeMemStringify(Mem *pMem,u8 enc,u8 bForce)\n\n{\n  int iVar1;\n  ushort uVar2;\n  size_t sVar3;\n  int iVar4;\n  ushort uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  StrAccum *pSVar7;\n  Mem *pMVar8;\n  undefined8 local_4c;\n  StrAccum acc;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pMem->szMalloc < 0x20) {\n    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);\n    if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }\n    uVar2 = pMem->flags;\n    pcVar6 = pMem->z;\n    uVar5 = uVar2 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = (double)(pMem->u).i;\n    acc.db = (sqlite3 *)0x0;\n    acc.nAlloc = 0x20;\n    acc.mxAlloc = 0;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    acc.zText = pcVar6;\n    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    pcVar6[acc.nChar] = '\0';\n  }\n  else {\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }\n  sVar3 = strlen(pMem->z);\n  pMem->n = sVar3 & 0x3fffffff;\n  pMem->enc = '\x01';\n  uVar5 = pMem->flags;\n  if (bForce != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  pMem->flags = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (enc == 1)) {\n    iVar4 = 0;\n  }\n  else {\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }\nLAB_00035a06:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3 sqlite3VdbeMemStringify(Mem *pMem,u8 enc,u8 bForce)\n\n{\n  int iVar1;\n  ushort uVar2;\n  size_t sVar3;\n  int iVar4;\n  ushort uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  StrAccum *pSVar7;\n  Mem *pMVar8;\n  undefined8 local_4c;\n  StrAccum acc;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pMem->szMalloc < 0x20) {\n    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);\n    if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }\n    uVar2 = pMem->flags;\n    pcVar6 = pMem->z;\n    uVar5 = uVar2 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = (double)(pMem->u).i;\n    acc.db = (sqlite3 *)0x0;\n    acc.nAlloc = 0x20;\n    acc.mxAlloc = 0;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    acc.zText = pcVar6;\n    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    pcVar6[acc.nChar] = '\0';\n  }\n  else {\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }\n  sVar3 = strlen(pMem->z);\n  pMem->n = sVar3 & 0x3fffffff;\n  pMem->enc = '\x01';\n  uVar5 = pMem->flags;\n  if (bForce != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  pMem->flags = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (enc == 1)) {\n    iVar4 = 0;\n  }\n  else {\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }\nLAB_00035a06:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3VdbeMemStringify(Mem *pMem,u8 enc,u8 bForce)" identifier (parameter_list "(Mem *pMem,u8 enc,u8 bForce)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) , (parameter_declaration "u8 enc" type_identifier identifier) , (parameter_declaration "u8 bForce" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort uVar2;\n  size_t sVar3;\n  int iVar4;\n  ushort uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  StrAccum *pSVar7;\n  Mem *pMVar8;\n  undefined8 local_4c;\n  StrAccum acc;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pMem->szMalloc < 0x20) {\n    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);\n    if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }\n    uVar2 = pMem->flags;\n    pcVar6 = pMem->z;\n    uVar5 = uVar2 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = (double)(pMem->u).i;\n    acc.db = (sqlite3 *)0x0;\n    acc.nAlloc = 0x20;\n    acc.mxAlloc = 0;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    acc.zText = pcVar6;\n    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    pcVar6[acc.nChar] = '\0';\n  }\n  else {\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }\n  sVar3 = strlen(pMem->z);\n  pMem->n = sVar3 & 0x3fffffff;\n  pMem->enc = '\x01';\n  uVar5 = pMem->flags;\n  if (bForce != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  pMem->flags = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (enc == 1)) {\n    iVar4 = 0;\n  }\n  else {\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }\nLAB_00035a06:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "StrAccum *pSVar7;" type_identifier (pointer_declarator "*pSVar7" * identifier) ;) (declaration "Mem *pMVar8;" type_identifier (pointer_declarator "*pMVar8" * identifier) ;) (declaration "undefined8 local_4c;" type_identifier identifier ;) (declaration "StrAccum acc;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pMem->szMalloc < 0x20) {\n    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);\n    if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }\n    uVar2 = pMem->flags;\n    pcVar6 = pMem->z;\n    uVar5 = uVar2 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = (double)(pMem->u).i;\n    acc.db = (sqlite3 *)0x0;\n    acc.nAlloc = 0x20;\n    acc.mxAlloc = 0;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    acc.zText = pcVar6;\n    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    pcVar6[acc.nChar] = '\0';\n  }\n  else {\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }" if (parenthesized_expression "(pMem->szMalloc < 0x20)" ( (binary_expression "pMem->szMalloc < 0x20" (field_expression "pMem->szMalloc" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);\n    if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }\n    uVar2 = pMem->flags;\n    pcVar6 = pMem->z;\n    uVar5 = uVar2 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = (double)(pMem->u).i;\n    acc.db = (sqlite3 *)0x0;\n    acc.nAlloc = 0x20;\n    acc.mxAlloc = 0;\n    acc.nChar = 0;\n    acc.accError = '\0';\n    acc.printfFlags = '\0';\n    if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    acc.zText = pcVar6;\n    sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    pcVar6[acc.nChar] = '\0';\n  }" { (expression_statement "iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0);" (assignment_expression "iVar4 = sqlite3VdbeMemGrow(pMem,0x20,0)" identifier = (call_expression "sqlite3VdbeMemGrow(pMem,0x20,0)" identifier (argument_list "(pMem,0x20,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      pMem->enc = '\0';\n      iVar4 = 7;\n      goto LAB_00035a06;\n    }" { (expression_statement "pMem->enc = '\0';" (assignment_expression "pMem->enc = '\0'" (field_expression "pMem->enc" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar4 = 7;" (assignment_expression "iVar4 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00035a06;" goto statement_identifier ;) })) (expression_statement "uVar2 = pMem->flags;" (assignment_expression "uVar2 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = pMem->z;" (assignment_expression "pcVar6 = pMem->z" identifier = (field_expression "pMem->z" identifier -> field_identifier)) ;) (expression_statement "uVar5 = uVar2 & 4;" (assignment_expression "uVar5 = uVar2 & 4" identifier = (binary_expression "uVar2 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 != 0) goto LAB_00035a6d;" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00035a6d;" goto statement_identifier ;)) (labeled_statement "LAB_0003596d:\n    local_4c = (double)(pMem->u).i;" statement_identifier : (expression_statement "local_4c = (double)(pMem->u).i;" (assignment_expression "local_4c = (double)(pMem->u).i" identifier = (cast_expression "(double)(pMem->u).i" ( (type_descriptor "double" primitive_type) ) (field_expression "(pMem->u).i" (parenthesized_expression "(pMem->u)" ( (field_expression "pMem->u" identifier -> field_identifier) )) . field_identifier))) ;)) (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 "acc.nAlloc = 0x20;" (assignment_expression "acc.nAlloc = 0x20" (field_expression "acc.nAlloc" identifier . field_identifier) = number_literal) ;) (expression_statement "acc.mxAlloc = 0;" (assignment_expression "acc.mxAlloc = 0" (field_expression "acc.mxAlloc" identifier . field_identifier) = number_literal) ;) (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 ')) ;) (if_statement "if ((uVar2 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }" if (parenthesized_expression "((uVar2 & 0x20) != 0)" ( (binary_expression "(uVar2 & 0x20) != 0" (parenthesized_expression "(uVar2 & 0x20)" ( (binary_expression "uVar2 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      local_4c = (double)(longlong)local_4c;\n    }" { (expression_statement "local_4c = (double)(longlong)local_4c;" (assignment_expression "local_4c = (double)(longlong)local_4c" identifier = (cast_expression "(double)(longlong)local_4c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_4c" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) })) (expression_statement "acc.zText = pcVar6;" (assignment_expression "acc.zText = pcVar6" (field_expression "acc.zText" identifier . field_identifier) = identifier) ;) (expression_statement "sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_);" (call_expression "sqlite3_str_appendf(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" identifier (argument_list "(&acc,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" ( (pointer_expression "&acc" & identifier) , (string_literal ""%!.15g"" " string_content ") , (cast_expression "(undefined4)local_4c" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_4c._4_4_" identifier . field_identifier) ))) ;) (expression_statement "pcVar6[acc.nChar] = '\0';" (assignment_expression "pcVar6[acc.nChar] = '\0'" (subscript_expression "pcVar6[acc.nChar]" identifier [ (field_expression "acc.nChar" identifier . field_identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }" else (compound_statement "{\n    uVar5 = pMem->flags;\n    pcVar6 = pMem->zMalloc;\n    pMem->z = pcVar6;\n    uVar2 = uVar5 & 0x2d;\n    pMem->flags = uVar2;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    pSVar7 = &acc;\n    pMVar8 = pMem;\n    __memcpy_chk(pSVar7,pMem,uVar5 * 2,8);\n    sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);\n  }" { (expression_statement "uVar5 = pMem->flags;" (assignment_expression "uVar5 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = pMem->zMalloc;" (assignment_expression "pcVar6 = pMem->zMalloc" identifier = (field_expression "pMem->zMalloc" identifier -> field_identifier)) ;) (expression_statement "pMem->z = pcVar6;" (assignment_expression "pMem->z = pcVar6" (field_expression "pMem->z" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar2 = uVar5 & 0x2d;" (assignment_expression "uVar2 = uVar5 & 0x2d" identifier = (binary_expression "uVar5 & 0x2d" identifier & number_literal)) ;) (expression_statement "pMem->flags = uVar2;" (assignment_expression "pMem->flags = uVar2" (field_expression "pMem->flags" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar5 = uVar5 & 4;" (assignment_expression "uVar5 = uVar5 & 4" identifier = (binary_expression "uVar5 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0) goto LAB_0003596d;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003596d;" goto statement_identifier ;)) (labeled_statement "LAB_00035a6d:\n    pSVar7 = &acc;" statement_identifier : (expression_statement "pSVar7 = &acc;" (assignment_expression "pSVar7 = &acc" identifier = (pointer_expression "&acc" & identifier)) ;)) (expression_statement "pMVar8 = pMem;" (assignment_expression "pMVar8 = pMem" identifier = identifier) ;) (expression_statement "__memcpy_chk(pSVar7,pMem,uVar5 * 2,8);" (call_expression "__memcpy_chk(pSVar7,pMem,uVar5 * 2,8)" identifier (argument_list "(pSVar7,pMem,uVar5 * 2,8)" ( identifier , identifier , (binary_expression "uVar5 * 2" identifier * number_literal) , number_literal ))) ;) (expression_statement "sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db);" (call_expression "sqlite3Int64ToText(CONCAT44(pMVar8,pSVar7),(char *)acc.db)" identifier (argument_list "(CONCAT44(pMVar8,pSVar7),(char *)acc.db)" ( (call_expression "CONCAT44(pMVar8,pSVar7)" identifier (argument_list "(pMVar8,pSVar7)" ( identifier , identifier ))) , (cast_expression "(char *)acc.db" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "acc.db" identifier . field_identifier)) ))) ;) }))) (expression_statement "sVar3 = strlen(pMem->z);" (assignment_expression "sVar3 = strlen(pMem->z)" identifier = (call_expression "strlen(pMem->z)" identifier (argument_list "(pMem->z)" ( (field_expression "pMem->z" identifier -> field_identifier) )))) ;) (expression_statement "pMem->n = sVar3 & 0x3fffffff;" (assignment_expression "pMem->n = sVar3 & 0x3fffffff" (field_expression "pMem->n" identifier -> field_identifier) = (binary_expression "sVar3 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "pMem->enc = '\x01';" (assignment_expression "pMem->enc = '\x01'" (field_expression "pMem->enc" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "uVar5 = pMem->flags;" (assignment_expression "uVar5 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (if_statement "if (bForce != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }" if (parenthesized_expression "(bForce != '\0')" ( (binary_expression "bForce != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar5 = uVar5 & 0xffd3;\n  }" { (expression_statement "uVar5 = uVar5 & 0xffd3;" (assignment_expression "uVar5 = uVar5 & 0xffd3" identifier = (binary_expression "uVar5 & 0xffd3" identifier & number_literal)) ;) })) (expression_statement "pMem->flags = uVar5 | 0x202;" (assignment_expression "pMem->flags = uVar5 | 0x202" (field_expression "pMem->flags" identifier -> field_identifier) = (binary_expression "uVar5 | 0x202" identifier | number_literal)) ;) (if_statement "if ((((uVar5 | 0x202) & 2) == 0) || (enc == 1)) {\n    iVar4 = 0;\n  }\n  else {\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }" if (parenthesized_expression "((((uVar5 | 0x202) & 2) == 0) || (enc == 1))" ( (binary_expression "(((uVar5 | 0x202) & 2) == 0) || (enc == 1)" (parenthesized_expression "(((uVar5 | 0x202) & 2) == 0)" ( (binary_expression "((uVar5 | 0x202) & 2) == 0" (parenthesized_expression "((uVar5 | 0x202) & 2)" ( (binary_expression "(uVar5 | 0x202) & 2" (parenthesized_expression "(uVar5 | 0x202)" ( (binary_expression "uVar5 | 0x202" identifier | number_literal) )) & number_literal) )) == number_literal) )) || (parenthesized_expression "(enc == 1)" ( (binary_expression "enc == 1" identifier == number_literal) ))) )) (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }" else (compound_statement "{\n    sqlite3VdbeChangeEncoding(pMem,(uint)enc);\n    iVar4 = 0;\n  }" { (expression_statement "sqlite3VdbeChangeEncoding(pMem,(uint)enc);" (call_expression "sqlite3VdbeChangeEncoding(pMem,(uint)enc)" identifier (argument_list "(pMem,(uint)enc)" ( identifier , (cast_expression "(uint)enc" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_00035a06:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a9ea0();\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a9ea0();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00035920(double *param_1,char param_2,char param_3)" identifier (parameter_list "(double *param_1,char param_2,char param_3)" ( (parameter_declaration "double *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a9ea0();\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined2 local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3592d;" (assignment_expression "uStack_14 = 0x3592d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 3) < 0x20)" ( (binary_expression "*(int *)(param_1 + 3) < 0x20" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }" { (expression_statement "iVar4 = FUN_000307e0();" (assignment_expression "iVar4 = FUN_000307e0()" identifier = (call_expression "FUN_000307e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" { (expression_statement "*(undefined1 *)((int)param_1 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" * (cast_expression "(undefined1 *)((int)param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00035a06;" goto statement_identifier ;) })) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 2);" (assignment_expression "iVar4 = *(int *)(param_1 + 2)" identifier = (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = uVar1 & 4;" (assignment_expression "uVar5 = uVar1 & 4" identifier = (binary_expression "uVar1 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 != 0) goto LAB_00035a6d;" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00035a6d;" goto statement_identifier ;)) (labeled_statement "LAB_0003596d:\n    local_4c = *param_1;" statement_identifier : (expression_statement "local_4c = *param_1;" (assignment_expression "local_4c = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0x20;" (assignment_expression "local_34 = 0x20" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }" if (parenthesized_expression "((uVar1 & 0x20) != 0)" ( (binary_expression "(uVar1 & 0x20) != 0" (parenthesized_expression "(uVar1 & 0x20)" ( (binary_expression "uVar1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      local_4c = (double)(longlong)local_4c;\n    }" { (expression_statement "local_4c = (double)(longlong)local_4c;" (assignment_expression "local_4c = (double)(longlong)local_4c" identifier = (cast_expression "(double)(longlong)local_4c" ( (type_descriptor "double" primitive_type) ) (cast_expression "(longlong)local_4c" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) })) (expression_statement "local_38 = iVar4;" (assignment_expression "local_38 = iVar4" identifier = identifier) ;) (expression_statement "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);" (call_expression "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" identifier (argument_list "(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" ( (pointer_expression "&local_3c" & identifier) , (string_literal ""%!.15g"" " string_content ") , (cast_expression "(undefined4)local_4c" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_4c._4_4_" identifier . field_identifier) ))) ;) (expression_statement "*(undefined1 *)(iVar4 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + local_2c) = 0" (pointer_expression "*(undefined1 *)(iVar4 + local_2c)" * (cast_expression "(undefined1 *)(iVar4 + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_2c)" ( (binary_expression "iVar4 + local_2c" identifier + identifier) )))) = number_literal) ;) }) (else_clause "else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" else (compound_statement "{\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" { (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)((int)param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)((int)param_1 + 0x14)" identifier = (pointer_expression "*(int *)((int)param_1 + 0x14)" * (cast_expression "(int *)((int)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 2) = iVar4;" (assignment_expression "*(int *)(param_1 + 2) = iVar4" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = uVar5 & 0x2d;" (assignment_expression "uVar1 = uVar5 & 0x2d" identifier = (binary_expression "uVar5 & 0x2d" identifier & number_literal)) ;) (expression_statement "*(ushort *)(param_1 + 1) = uVar1;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar1" (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = uVar5 & 4;" (assignment_expression "uVar5 = uVar5 & 4" identifier = (binary_expression "uVar5 & 4" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0) goto LAB_0003596d;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003596d;" goto statement_identifier ;)) (labeled_statement "LAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" statement_identifier : (expression_statement "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" (call_expression "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8)" identifier (argument_list "(&local_3c,param_1,uVar5 * 2,8)" ( (pointer_expression "&local_3c" & identifier) , identifier , (binary_expression "uVar5 * 2" identifier * number_literal) , number_literal ))) ;)) (expression_statement "FUN_00021620();" (call_expression "FUN_00021620()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "sVar2 = strlen(*(char **)(param_1 + 2));" (assignment_expression "sVar2 = strlen(*(char **)(param_1 + 2))" identifier = (call_expression "strlen(*(char **)(param_1 + 2))" identifier (argument_list "(*(char **)(param_1 + 2))" ( (pointer_expression "*(char **)(param_1 + 2)" * (cast_expression "(char **)(param_1 + 2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;" (assignment_expression "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff" (pointer_expression "*(size_t *)((int)param_1 + 0xc)" * (cast_expression "(size_t *)((int)param_1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "*(undefined1 *)((int)param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" * (cast_expression "(undefined1 *)((int)param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }" if (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar5 = uVar5 & 0xffd3;\n  }" { (expression_statement "uVar5 = uVar5 & 0xffd3;" (assignment_expression "uVar5 = uVar5 & 0xffd3" identifier = (binary_expression "uVar5 & 0xffd3" identifier & number_literal)) ;) })) (expression_statement "*(ushort *)(param_1 + 1) = uVar5 | 0x202;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar5 | 0x202" (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "uVar5 | 0x202" identifier | number_literal)) ;) (if_statement "if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" if (parenthesized_expression "((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01'))" ( (binary_expression "(((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')" (parenthesized_expression "(((uVar5 | 0x202) & 2) == 0)" ( (binary_expression "((uVar5 | 0x202) & 2) == 0" (parenthesized_expression "((uVar5 | 0x202) & 2)" ( (binary_expression "(uVar5 | 0x202) & 2" (parenthesized_expression "(uVar5 | 0x202)" ( (binary_expression "uVar5 | 0x202" identifier | number_literal) )) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" else (compound_statement "{\n    FUN_000313c0();\n    uVar3 = 0;\n  }" { (expression_statement "FUN_000313c0();" (call_expression "FUN_000313c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) , (field_expression IDENT . field_identifier) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) }) (else_clause else (compound_statement { (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 *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT * LIT) , LIT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT | LIT) )) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_00035920(double *param_1,char param_2,char param_3)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a9ea0();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00035920(double *param_1,char param_2,char param_3)" (identifier "FUN_00035920") (parameter_list "(double *param_1,char param_2,char param_3)" (( "(") (parameter_declaration "double *param_1" (primitive_type "double") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ushort uVar5;\n  int in_GS_OFFSET;\n  undefined8 local_4c;\n  undefined4 local_3c;\n  int local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  undefined2 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3592d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }\n  sVar2 = strlen(*(char **)(param_1 + 2));\n  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;\n  *(undefined1 *)((int)param_1 + 10) = 1;\n  uVar5 = *(ushort *)(param_1 + 1);\n  if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }\n  *(ushort *)(param_1 + 1) = uVar5 | 0x202;\n  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }\nLAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a9ea0();\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "ushort uVar5;" (type_identifier "ushort") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 local_4c;" (type_identifier "undefined8") (identifier "local_4c") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "undefined2 local_28;" (type_identifier "undefined2") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x3592d;" (assignment_expression "uStack_14 = 0x3592d" (identifier "uStack_14") (= "=") (number_literal "0x3592d")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 3) < 0x20) {\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }\n  else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 3) < 0x20)" (( "(") (binary_expression "*(int *)(param_1 + 3) < 0x20" (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n    iVar4 = FUN_000307e0();\n    if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }\n    uVar1 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)(param_1 + 2);\n    uVar5 = uVar1 & 4;\n    if (uVar5 != 0) goto LAB_00035a6d;\nLAB_0003596d:\n    local_4c = *param_1;\n    local_3c = 0;\n    local_34 = 0x20;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }\n    local_38 = iVar4;\n    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);\n    *(undefined1 *)(iVar4 + local_2c) = 0;\n  }" ({ "{") (expression_statement "iVar4 = FUN_000307e0();" (assignment_expression "iVar4 = FUN_000307e0()" (identifier "iVar4") (= "=") (call_expression "FUN_000307e0()" (identifier "FUN_000307e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)((int)param_1 + 10) = 0;\n      uVar3 = 7;\n      goto LAB_00035a06;\n    }" ({ "{") (expression_statement "*(undefined1 *)((int)param_1 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" (identifier "uVar3") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_00035a06;" (goto "goto") (statement_identifier "LAB_00035a06") (; ";")) (} "}"))) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 2);" (assignment_expression "iVar4 = *(int *)(param_1 + 2)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "uVar5 = uVar1 & 4;" (assignment_expression "uVar5 = uVar1 & 4" (identifier "uVar5") (= "=") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4"))) (; ";")) (if_statement "if (uVar5 != 0) goto LAB_00035a6d;" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00035a6d;" (goto "goto") (statement_identifier "LAB_00035a6d") (; ";"))) (labeled_statement "LAB_0003596d:\n    local_4c = *param_1;" (statement_identifier "LAB_0003596d") (: ":") (expression_statement "local_4c = *param_1;" (assignment_expression "local_4c = *param_1" (identifier "local_4c") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";"))) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0x20;" (assignment_expression "local_34 = 0x20" (identifier "local_34") (= "=") (number_literal "0x20")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((uVar1 & 0x20) != 0) {\n      local_4c = (double)(longlong)local_4c;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x20) != 0)" (( "(") (binary_expression "(uVar1 & 0x20) != 0" (parenthesized_expression "(uVar1 & 0x20)" (( "(") (binary_expression "uVar1 & 0x20" (identifier "uVar1") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_4c = (double)(longlong)local_4c;\n    }" ({ "{") (expression_statement "local_4c = (double)(longlong)local_4c;" (assignment_expression "local_4c = (double)(longlong)local_4c" (identifier "local_4c") (= "=") (cast_expression "(double)(longlong)local_4c" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (cast_expression "(longlong)local_4c" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "local_4c")))) (; ";")) (} "}"))) (expression_statement "local_38 = iVar4;" (assignment_expression "local_38 = iVar4" (identifier "local_38") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);" (call_expression "sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" (identifier "sqlite3_str_appendf") (argument_list "(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_)" (( "(") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (string_literal ""%!.15g"" (" """) (string_content "%!.15g") (" """)) (, ",") (cast_expression "(undefined4)local_4c" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "local_4c")) (, ",") (field_expression "local_4c._4_4_" (identifier "local_4c") (. ".") (field_identifier "_4_4_")) () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + local_2c) = 0" (pointer_expression "*(undefined1 *)(iVar4 + local_2c)" (* "*") (cast_expression "(undefined1 *)(iVar4 + local_2c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + local_2c)" (( "(") (binary_expression "iVar4 + local_2c" (identifier "iVar4") (+ "+") (identifier "local_2c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" (else "else") (compound_statement "{\n    uVar5 = *(ushort *)(param_1 + 1);\n    iVar4 = *(int *)((int)param_1 + 0x14);\n    *(int *)(param_1 + 2) = iVar4;\n    uVar1 = uVar5 & 0x2d;\n    *(ushort *)(param_1 + 1) = uVar1;\n    uVar5 = uVar5 & 4;\n    if (uVar5 == 0) goto LAB_0003596d;\nLAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);\n    FUN_00021620();\n  }" ({ "{") (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" (identifier "uVar5") (= "=") (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)((int)param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)((int)param_1 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)((int)param_1 + 0x14)" (* "*") (cast_expression "(int *)((int)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x14)" (( "(") (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 2) = iVar4;" (assignment_expression "*(int *)(param_1 + 2) = iVar4" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "uVar1 = uVar5 & 0x2d;" (assignment_expression "uVar1 = uVar5 & 0x2d" (identifier "uVar1") (= "=") (binary_expression "uVar5 & 0x2d" (identifier "uVar5") (& "&") (number_literal "0x2d"))) (; ";")) (expression_statement "*(ushort *)(param_1 + 1) = uVar1;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar1" (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar5 = uVar5 & 4;" (assignment_expression "uVar5 = uVar5 & 4" (identifier "uVar5") (= "=") (binary_expression "uVar5 & 4" (identifier "uVar5") (& "&") (number_literal "4"))) (; ";")) (if_statement "if (uVar5 == 0) goto LAB_0003596d;" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003596d;" (goto "goto") (statement_identifier "LAB_0003596d") (; ";"))) (labeled_statement "LAB_00035a6d:\n    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" (statement_identifier "LAB_00035a6d") (: ":") (expression_statement "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8);" (call_expression "__memcpy_chk(&local_3c,param_1,uVar5 * 2,8)" (identifier "__memcpy_chk") (argument_list "(&local_3c,param_1,uVar5 * 2,8)" (( "(") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (identifier "param_1") (, ",") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2")) (, ",") (number_literal "8") () ")"))) (; ";"))) (expression_statement "FUN_00021620();" (call_expression "FUN_00021620()" (identifier "FUN_00021620") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "sVar2 = strlen(*(char **)(param_1 + 2));" (assignment_expression "sVar2 = strlen(*(char **)(param_1 + 2))" (identifier "sVar2") (= "=") (call_expression "strlen(*(char **)(param_1 + 2))" (identifier "strlen") (argument_list "(*(char **)(param_1 + 2))" (( "(") (pointer_expression "*(char **)(param_1 + 2)" (* "*") (cast_expression "(char **)(param_1 + 2)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) () ")")))) (; ";")) (expression_statement "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;" (assignment_expression "*(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff" (pointer_expression "*(size_t *)((int)param_1 + 0xc)" (* "*") (cast_expression "(size_t *)((int)param_1 + 0xc)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff"))) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 10)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar5 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 1)" (identifier "uVar5") (= "=") (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (param_3 != '\0') {\n    uVar5 = uVar5 & 0xffd3;\n  }" (if "if") (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar5 = uVar5 & 0xffd3;\n  }" ({ "{") (expression_statement "uVar5 = uVar5 & 0xffd3;" (assignment_expression "uVar5 = uVar5 & 0xffd3" (identifier "uVar5") (= "=") (binary_expression "uVar5 & 0xffd3" (identifier "uVar5") (& "&") (number_literal "0xffd3"))) (; ";")) (} "}"))) (expression_statement "*(ushort *)(param_1 + 1) = uVar5 | 0x202;" (assignment_expression "*(ushort *)(param_1 + 1) = uVar5 | 0x202" (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "uVar5 | 0x202" (identifier "uVar5") (| "|") (number_literal "0x202"))) (; ";")) (if_statement "if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {\n    uVar3 = 0;\n  }\n  else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01'))" (( "(") (binary_expression "(((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')" (parenthesized_expression "(((uVar5 | 0x202) & 2) == 0)" (( "(") (binary_expression "((uVar5 | 0x202) & 2) == 0" (parenthesized_expression "((uVar5 | 0x202) & 2)" (( "(") (binary_expression "(uVar5 | 0x202) & 2" (parenthesized_expression "(uVar5 | 0x202)" (( "(") (binary_expression "uVar5 | 0x202" (identifier "uVar5") (| "|") (number_literal "0x202")) () ")")) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 == '\x01')" (( "(") (binary_expression "param_2 == '\x01'" (identifier "param_2") (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    FUN_000313c0();\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    FUN_000313c0();\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "FUN_000313c0();" (call_expression "FUN_000313c0()" (identifier "FUN_000313c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_00035a06:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" (statement_identifier "LAB_00035a06") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" (identifier "FUN_000a9ea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 function_1(type_1 *pMem,type_2 var_13,type_2 var_12)

{
  int var_15;
  type_3 var_4;
  size_t var_11;
  int var_3;
  type_3 var_5;
  char *pcVar6;
  int var_1;
  type_4 *pSVar7;
  type_1 *pMVar8;
  type_5 local_4c;
  type_4 acc;
  
  var_15 = *(int *)(var_1 + 0x14);
  if (pMem->szMalloc < 0x20) {
    var_3 = var_2(pMem,0x20,0);
    if (var_3 != 0) {
      pMem->var_13 = '\0';
      var_3 = 7;
      goto LAB_00035a06;
    }
    var_4 = pMem->flags;
    pcVar6 = pMem->z;
    var_5 = var_4 & 4;
    if (var_5 != 0) goto LAB_00035a6d;
LAB_0003596d:
    local_4c = (double)(pMem->u).i;
    acc.db = (type_6 *)0x0;
    acc.nAlloc = 0x20;
    acc.mxAlloc = 0;
    acc.nChar = 0;
    acc.accError = '\0';
    acc.printfFlags = '\0';
    if ((var_4 & 0x20) != 0) {
      local_4c = (double)(type_7)local_4c;
    }
    acc.zText = pcVar6;
    var_6(&acc,"%!.15g",(type_8)local_4c,local_4c._4_4_);
    pcVar6[acc.nChar] = '\0';
  }
  else {
    var_5 = pMem->flags;
    pcVar6 = pMem->zMalloc;
    pMem->z = pcVar6;
    var_4 = var_5 & 0x2d;
    pMem->flags = var_4;
    var_5 = var_5 & 4;
    if (var_5 == 0) goto LAB_0003596d;
LAB_00035a6d:
    pSVar7 = &acc;
    pMVar8 = pMem;
    var_7(pSVar7,pMem,var_5 * 2,8);
    var_8(var_9(pMVar8,pSVar7),(char *)acc.db);
  }
  var_11 = var_10(pMem->z);
  pMem->n = var_11 & 0x3fffffff;
  pMem->var_13 = '\x01';
  var_5 = pMem->flags;
  if (var_12 != '\0') {
    var_5 = var_5 & 0xffd3;
  }
  pMem->flags = var_5 | 0x202;
  if ((((var_5 | 0x202) & 2) == 0) || (var_13 == 1)) {
    var_3 = 0;
  }
  else {
    var_14(pMem,(type_9)var_13);
    var_3 = 0;
  }
LAB_00035a06:
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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 (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal)))) alternative: (else_clause (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_expression left: (identifier) 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: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) 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: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 MASKED(double *param_1,char param_2,char param_3)

{
  ushort uVar1;
  size_t sVar2;
  undefined4 uVar3;
  int iVar4;
  ushort uVar5;
  int in_GS_OFFSET;
  undefined8 local_4c;
  undefined4 local_3c;
  int local_38;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  undefined2 local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3592d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 3) < 0x20) {
    iVar4 = FUN_000307e0();
    if (iVar4 != 0) {
      *(undefined1 *)((int)param_1 + 10) = 0;
      uVar3 = 7;
      goto LAB_00035a06;
    }
    uVar1 = *(ushort *)(param_1 + 1);
    iVar4 = *(int *)(param_1 + 2);
    uVar5 = uVar1 & 4;
    if (uVar5 != 0) goto LAB_00035a6d;
LAB_0003596d:
    local_4c = *param_1;
    local_3c = 0;
    local_34 = 0x20;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    if ((uVar1 & 0x20) != 0) {
      local_4c = (double)(longlong)local_4c;
    }
    local_38 = iVar4;
    sqlite3_str_appendf(&local_3c,"%!.15g",(undefined4)local_4c,local_4c._4_4_);
    *(undefined1 *)(iVar4 + local_2c) = 0;
  }
  else {
    uVar5 = *(ushort *)(param_1 + 1);
    iVar4 = *(int *)((int)param_1 + 0x14);
    *(int *)(param_1 + 2) = iVar4;
    uVar1 = uVar5 & 0x2d;
    *(ushort *)(param_1 + 1) = uVar1;
    uVar5 = uVar5 & 4;
    if (uVar5 == 0) goto LAB_0003596d;
LAB_00035a6d:
    __memcpy_chk(&local_3c,param_1,uVar5 * 2,8);
    FUN_00021620();
  }
  sVar2 = strlen(*(char **)(param_1 + 2));
  *(size_t *)((int)param_1 + 0xc) = sVar2 & 0x3fffffff;
  *(undefined1 *)((int)param_1 + 10) = 1;
  uVar5 = *(ushort *)(param_1 + 1);
  if (param_3 != '\0') {
    uVar5 = uVar5 & 0xffd3;
  }
  *(ushort *)(param_1 + 1) = uVar5 | 0x202;
  if ((((uVar5 | 0x202) & 2) == 0) || (param_2 == '\x01')) {
    uVar3 = 0;
  }
  else {
    FUN_000313c0();
    uVar3 = 0;
  }
LAB_00035a06:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}

