
void strPrintf(Str *p,char *zFormat,...)

{
  char cVar1;
  long lVar2;
  char in_AL;
  int iVar3;
  char *pcVar4;
  undefined8 in_RCX;
  long lVar5;
  undefined8 in_RDX;
  undefined8 in_R8;
  undefined8 in_R9;
  long in_FS_OFFSET;
  byte bVar6;
  undefined8 in_XMM0_Qa;
  undefined8 in_XMM1_Qa;
  undefined8 in_XMM2_Qa;
  undefined8 in_XMM3_Qa;
  undefined8 in_XMM4_Qa;
  undefined8 in_XMM5_Qa;
  undefined8 in_XMM6_Qa;
  undefined8 in_XMM7_Qa;
  va_list ap;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  bVar6 = 0;
  if (in_AL != '\0') {
    local_a8 = in_XMM0_Qa;
    local_98 = in_XMM1_Qa;
    local_88 = in_XMM2_Qa;
    local_78 = in_XMM3_Qa;
    local_68 = in_XMM4_Qa;
    local_58 = in_XMM5_Qa;
    local_48 = in_XMM6_Qa;
    local_38 = in_XMM7_Qa;
  }
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  local_c8 = in_RDX;
  local_c0 = in_RCX;
  local_b8 = in_R8;
  local_b0 = in_R9;
  do {
    if (p->z == (char *)0x0) {
      iVar3 = p->nAlloc;
    }
    else {
      ap[0].gp_offset = 0x10;
      ap[0].fp_offset = 0x30;
      ap[0].overflow_arg_area = &stack0x00000008;
      ap[0].reg_save_area = local_d8;
      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);
      lVar5 = -1;
      pcVar4 = p->z + p->nUsed;
      do {
        if (lVar5 == 0) break;
        lVar5 = lVar5 + -1;
        cVar1 = *pcVar4;
        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;
      } while (cVar1 != '\0');
      iVar3 = ~(uint)lVar5 - 1;
    }
    iVar3 = iVar3 + p->nUsed;
    if (iVar3 < p->nAlloc + -1) {
      p->nUsed = iVar3;
      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {
        return;
      }
      goto LAB_0010ad87;
    }
    iVar3 = p->nAlloc * 2 + 1000;
    p->nAlloc = iVar3;
    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);
    p->z = pcVar4;
    if (pcVar4 == (char *)0x0) {
      runtimeError("out of memory");
LAB_0010ad87:
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
  } while( true );
}



void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,
                 undefined8 param_13,undefined8 param_14)

{
  char cVar1;
  char in_AL;
  int iVar2;
  long lVar3;
  char *pcVar4;
  long in_FS_OFFSET;
  byte bVar5;
  undefined4 local_f8;
  undefined4 local_f4;
  undefined1 *local_f0;
  undefined1 *local_e8;
  long local_e0;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  bVar5 = 0;
  if (in_AL != '\0') {
    local_a8 = param_1;
    local_98 = param_2;
    local_88 = param_3;
    local_78 = param_4;
    local_68 = param_5;
    local_58 = param_6;
    local_48 = param_7;
    local_38 = param_8;
  }
  local_e0 = *(long *)(in_FS_OFFSET + 0x28);
  local_c8 = param_11;
  local_c0 = param_12;
  local_b8 = param_13;
  local_b0 = param_14;
  do {
    if (*param_9 == 0) {
      iVar2 = (int)param_9[1];
    }
    else {
      local_f8 = 0x10;
      local_f4 = 0x30;
      local_f0 = &stack0x00000008;
      local_e8 = local_d8;
      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),
                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);
      lVar3 = -1;
      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);
      do {
        if (lVar3 == 0) break;
        lVar3 = lVar3 + -1;
        cVar1 = *pcVar4;
        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
      } while (cVar1 != '\0');
      iVar2 = ~(uint)lVar3 - 1;
    }
    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);
    if (iVar2 < (int)param_9[1] + -1) {
      *(int *)((long)param_9 + 0xc) = iVar2;
      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {
        return;
      }
      goto LAB_0010ad87;
    }
    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;
    lVar3 = FUN_00136240(*param_9);
    *param_9 = lVar3;
    if (lVar3 == 0) {
      FUN_0010ab61("out of memory");
LAB_0010ad87:
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
  } while( true );
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0xd0
MOV RBX,RDI
MOV R14,RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],R8
MOV qword ptr [RSP + 0x48],R9
TEST AL,AL
JZ 0x0010acab
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM1
MOVAPS xmmword ptr [RSP + 0x70],XMM2
MOVAPS xmmword ptr [RSP + 0x80],XMM3
MOVAPS xmmword ptr [RSP + 0x90],XMM4
MOVAPS xmmword ptr [RSP + 0xa0],XMM5
MOVAPS xmmword ptr [RSP + 0xb0],XMM6
MOVAPS xmmword ptr [RSP + 0xc0],XMM7
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV R13,RSP
MOV R12,-0x1
MOV EBP,0x0
JMP 0x0010acfa
MOV EAX,dword ptr [RBX + 0x8]
ADD EAX,dword ptr [RBX + 0xc]
MOV EDX,dword ptr [RBX + 0x8]
LEA ECX,[RDX + -0x1]
CMP EAX,ECX
JL 0x0010ad58
LEA ESI,[RDX + RDX*0x1 + 0x3e8]
MOV dword ptr [RBX + 0x8],ESI
MOV RDI,qword ptr [RBX]
CALL 0x00136240
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x0010ad7b
CMP qword ptr [RBX],0x0
JZ 0x0010accc
MOV dword ptr [RSP],0x10
MOV dword ptr [RSP + 0x4],0x30
LEA RAX,[RSP + 0x100]
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,dword ptr [RBX + 0xc]
MOVSXD RSI,EAX
ADD RSI,qword ptr [RBX]
MOV EDI,dword ptr [RBX + 0x8]
SUB EDI,EAX
MOV RCX,R13
MOV RDX,R14
CALL 0x001403a0
MOVSXD RDI,dword ptr [RBX + 0xc]
ADD RDI,qword ptr [RBX]
MOV RCX,R12
MOV EAX,EBP
SCASB.REPNE RDI
NOT RCX
LEA EAX,[RCX + -0x1]
JMP 0x0010accf
MOV dword ptr [RBX + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x18]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0010ad87
ADD RSP,0xd0
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
LEA RDI,[0x1e800c]
CALL 0x0010ab61
CALL 0x0010a140
(translation_unit "void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "long *param_9" (sized_type_specifier "long" long) (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "undefined8 param_10" type_identifier identifier) , (parameter_declaration "undefined8 param_11" type_identifier identifier) , (parameter_declaration "undefined8 param_12" type_identifier identifier) , (parameter_declaration "undefined8 param_13" type_identifier identifier) , (parameter_declaration "undefined8 param_14" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined1 *local_f0;" type_identifier (pointer_declarator "*local_f0" * identifier) ;) (declaration "undefined1 *local_e8;" type_identifier (pointer_declarator "*local_e8" * identifier) ;) (declaration "long local_e0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" { (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" identifier = identifier) ;) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" identifier = identifier) ;) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" identifier = identifier) ;) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" identifier = identifier) ;) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" identifier = identifier) ;) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" identifier = identifier) ;) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" identifier = identifier) ;) })) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" identifier = identifier) ;) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" identifier = identifier) ;) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" identifier = identifier) ;) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" identifier = identifier) ;) (do_statement "do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );" do (compound_statement "{\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  }" { (if_statement "if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" if (parenthesized_expression "(*param_9 == 0)" ( (binary_expression "*param_9 == 0" (pointer_expression "*param_9" * identifier) == number_literal) )) (compound_statement "{\n      iVar2 = (int)param_9[1];\n    }" { (expression_statement "iVar2 = (int)param_9[1];" (assignment_expression "iVar2 = (int)param_9[1]" identifier = (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" else (compound_statement "{\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" { (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" identifier = number_literal) ;) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" identifier = number_literal) ;) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" identifier = identifier) ;) (expression_statement "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);" (call_expression "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" identifier (argument_list "((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" ( (binary_expression "(int)param_9[1] - *(int *)((long)param_9 + 0xc)" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) - (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) , (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_9" * identifier)) , identifier , (pointer_expression "&local_f8" & identifier) ))) ;) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" identifier = number_literal) ;) (expression_statement "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);" (assignment_expression "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" identifier = (cast_expression "(char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_9 + 0xc) + *param_9)" ( (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_9" * identifier)) )))) ;) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      }" { (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar2 = ~(uint)lVar3 - 1;" (assignment_expression "iVar2 = ~(uint)lVar3 - 1" identifier = (binary_expression "~(uint)lVar3 - 1" (unary_expression "~(uint)lVar3" ~ (cast_expression "(uint)lVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) }))) (expression_statement "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);" (assignment_expression "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc)" identifier = (binary_expression "iVar2 + *(int *)((long)param_9 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (if_statement "if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" if (parenthesized_expression "(iVar2 < (int)param_9[1] + -1)" ( (binary_expression "iVar2 < (int)param_9[1] + -1" identifier < (binary_expression "(int)param_9[1] + -1" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) + number_literal)) )) (compound_statement "{\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" { (expression_statement "*(int *)((long)param_9 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_9 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }" if (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0010ad87;" goto statement_identifier ;) })) (expression_statement "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;" (assignment_expression "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000" (pointer_expression "*(int *)(param_9 + 1)" * (cast_expression "(int *)(param_9 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 1)" ( (binary_expression "param_9 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_9[1] * 2 + 1000" (binary_expression "(int)param_9[1] * 2" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) * number_literal) + number_literal)) ;) (expression_statement "lVar3 = FUN_00136240(*param_9);" (assignment_expression "lVar3 = FUN_00136240(*param_9)" identifier = (call_expression "FUN_00136240(*param_9)" identifier (argument_list "(*param_9)" ( (pointer_expression "*param_9" * identifier) )))) ;) (expression_statement "*param_9 = lVar3;" (assignment_expression "*param_9 = lVar3" (pointer_expression "*param_9" * identifier) = identifier) ;) (if_statement "if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { (expression_statement "FUN_0010ab61("out of memory");" (call_expression "FUN_0010ab61("out of memory")" identifier (argument_list "("out of memory")" ( (string_literal ""out of memory"" " string_content ") ))) ;) (labeled_statement "LAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();" statement_identifier : comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void strPrintf(Str *p,char *zFormat,...)\n\n{\n  char cVar1;\n  long lVar2;\n  char in_AL;\n  int iVar3;\n  char *pcVar4;\n  undefined8 in_RCX;\n  long lVar5;\n  undefined8 in_RDX;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  long in_FS_OFFSET;\n  byte bVar6;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list ap;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar6 = 0;\n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }\n    iVar3 = iVar3 + p->nUsed;\n    if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    iVar3 = p->nAlloc * 2 + 1000;\n    p->nAlloc = iVar3;\n    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);\n    p->z = pcVar4;\n    if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}\n\n" (function_definition "void strPrintf(Str *p,char *zFormat,...)\n\n{\n  char cVar1;\n  long lVar2;\n  char in_AL;\n  int iVar3;\n  char *pcVar4;\n  undefined8 in_RCX;\n  long lVar5;\n  undefined8 in_RDX;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  long in_FS_OFFSET;\n  byte bVar6;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list ap;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar6 = 0;\n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }\n    iVar3 = iVar3 + p->nUsed;\n    if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    iVar3 = p->nAlloc * 2 + 1000;\n    p->nAlloc = iVar3;\n    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);\n    p->z = pcVar4;\n    if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}" primitive_type (function_declarator "strPrintf(Str *p,char *zFormat,...)" identifier (parameter_list "(Str *p,char *zFormat,...)" ( (parameter_declaration "Str *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *zFormat" primitive_type (pointer_declarator "*zFormat" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  char in_AL;\n  int iVar3;\n  char *pcVar4;\n  undefined8 in_RCX;\n  long lVar5;\n  undefined8 in_RDX;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  long in_FS_OFFSET;\n  byte bVar6;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list ap;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar6 = 0;\n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }\n    iVar3 = iVar3 + p->nUsed;\n    if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    iVar3 = p->nAlloc * 2 + 1000;\n    p->nAlloc = iVar3;\n    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);\n    p->z = pcVar4;\n    if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined8 in_RCX;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 in_RDX;" type_identifier identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined8 in_XMM0_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM1_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM2_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM3_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM4_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM5_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM6_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM7_Qa;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }" { (expression_statement "local_a8 = in_XMM0_Qa;" (assignment_expression "local_a8 = in_XMM0_Qa" identifier = identifier) ;) (expression_statement "local_98 = in_XMM1_Qa;" (assignment_expression "local_98 = in_XMM1_Qa" identifier = identifier) ;) (expression_statement "local_88 = in_XMM2_Qa;" (assignment_expression "local_88 = in_XMM2_Qa" identifier = identifier) ;) (expression_statement "local_78 = in_XMM3_Qa;" (assignment_expression "local_78 = in_XMM3_Qa" identifier = identifier) ;) (expression_statement "local_68 = in_XMM4_Qa;" (assignment_expression "local_68 = in_XMM4_Qa" identifier = identifier) ;) (expression_statement "local_58 = in_XMM5_Qa;" (assignment_expression "local_58 = in_XMM5_Qa" identifier = identifier) ;) (expression_statement "local_48 = in_XMM6_Qa;" (assignment_expression "local_48 = in_XMM6_Qa" identifier = identifier) ;) (expression_statement "local_38 = in_XMM7_Qa;" (assignment_expression "local_38 = in_XMM7_Qa" identifier = identifier) ;) })) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = in_RDX;" (assignment_expression "local_c8 = in_RDX" identifier = identifier) ;) (expression_statement "local_c0 = in_RCX;" (assignment_expression "local_c0 = in_RCX" identifier = identifier) ;) (expression_statement "local_b8 = in_R8;" (assignment_expression "local_b8 = in_R8" identifier = identifier) ;) (expression_statement "local_b0 = in_R9;" (assignment_expression "local_b0 = in_R9" identifier = identifier) ;) (do_statement "do {\n    if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }\n    iVar3 = iVar3 + p->nUsed;\n    if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    iVar3 = p->nAlloc * 2 + 1000;\n    p->nAlloc = iVar3;\n    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);\n    p->z = pcVar4;\n    if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  } while( true );" do (compound_statement "{\n    if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }\n    iVar3 = iVar3 + p->nUsed;\n    if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    iVar3 = p->nAlloc * 2 + 1000;\n    p->nAlloc = iVar3;\n    pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);\n    p->z = pcVar4;\n    if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n  }" { (if_statement "if (p->z == (char *)0x0) {\n      iVar3 = p->nAlloc;\n    }\n    else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }" if (parenthesized_expression "(p->z == (char *)0x0)" ( (binary_expression "p->z == (char *)0x0" (field_expression "p->z" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = p->nAlloc;\n    }" { (expression_statement "iVar3 = p->nAlloc;" (assignment_expression "iVar3 = p->nAlloc" identifier = (field_expression "p->nAlloc" identifier -> field_identifier)) ;) }) (else_clause "else {\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }" else (compound_statement "{\n      ap[0].gp_offset = 0x10;\n      ap[0].fp_offset = 0x30;\n      ap[0].overflow_arg_area = &stack0x00000008;\n      ap[0].reg_save_area = local_d8;\n      sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);\n      lVar5 = -1;\n      pcVar4 = p->z + p->nUsed;\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar3 = ~(uint)lVar5 - 1;\n    }" { (expression_statement "ap[0].gp_offset = 0x10;" (assignment_expression "ap[0].gp_offset = 0x10" (field_expression "ap[0].gp_offset" (subscript_expression "ap[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "ap[0].fp_offset = 0x30;" (assignment_expression "ap[0].fp_offset = 0x30" (field_expression "ap[0].fp_offset" (subscript_expression "ap[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "ap[0].overflow_arg_area = &stack0x00000008;" (assignment_expression "ap[0].overflow_arg_area = &stack0x00000008" (field_expression "ap[0].overflow_arg_area" (subscript_expression "ap[0]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "ap[0].reg_save_area = local_d8;" (assignment_expression "ap[0].reg_save_area = local_d8" (field_expression "ap[0].reg_save_area" (subscript_expression "ap[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);" (call_expression "sqlite3_vsnprintf(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap)" identifier (argument_list "(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap)" ( (binary_expression "p->nAlloc - p->nUsed" (field_expression "p->nAlloc" identifier -> field_identifier) - (field_expression "p->nUsed" identifier -> field_identifier)) , (binary_expression "p->z + p->nUsed" (field_expression "p->z" identifier -> field_identifier) + (field_expression "p->nUsed" identifier -> field_identifier)) , identifier , identifier ))) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (expression_statement "pcVar4 = p->z + p->nUsed;" (assignment_expression "pcVar4 = p->z + p->nUsed" identifier = (binary_expression "p->z + p->nUsed" (field_expression "p->z" identifier -> field_identifier) + (field_expression "p->nUsed" identifier -> field_identifier))) ;) (do_statement "do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;\n      }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = ~(uint)lVar5 - 1;" (assignment_expression "iVar3 = ~(uint)lVar5 - 1" identifier = (binary_expression "~(uint)lVar5 - 1" (unary_expression "~(uint)lVar5" ~ (cast_expression "(uint)lVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) }))) (expression_statement "iVar3 = iVar3 + p->nUsed;" (assignment_expression "iVar3 = iVar3 + p->nUsed" identifier = (binary_expression "iVar3 + p->nUsed" identifier + (field_expression "p->nUsed" identifier -> field_identifier))) ;) (if_statement "if (iVar3 < p->nAlloc + -1) {\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" if (parenthesized_expression "(iVar3 < p->nAlloc + -1)" ( (binary_expression "iVar3 < p->nAlloc + -1" identifier < (binary_expression "p->nAlloc + -1" (field_expression "p->nAlloc" identifier -> field_identifier) + number_literal)) )) (compound_statement "{\n      p->nUsed = iVar3;\n      if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" { (expression_statement "p->nUsed = iVar3;" (assignment_expression "p->nUsed = iVar3" (field_expression "p->nUsed" identifier -> field_identifier) = identifier) ;) (if_statement "if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }" if (parenthesized_expression "(lVar2 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0010ad87;" goto statement_identifier ;) })) (expression_statement "iVar3 = p->nAlloc * 2 + 1000;" (assignment_expression "iVar3 = p->nAlloc * 2 + 1000" identifier = (binary_expression "p->nAlloc * 2 + 1000" (binary_expression "p->nAlloc * 2" (field_expression "p->nAlloc" identifier -> field_identifier) * number_literal) + number_literal)) ;) (expression_statement "p->nAlloc = iVar3;" (assignment_expression "p->nAlloc = iVar3" (field_expression "p->nAlloc" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4 = (char *)sqlite3_realloc(p->z,iVar3);" (assignment_expression "pcVar4 = (char *)sqlite3_realloc(p->z,iVar3)" identifier = (cast_expression "(char *)sqlite3_realloc(p->z,iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_realloc(p->z,iVar3)" identifier (argument_list "(p->z,iVar3)" ( (field_expression "p->z" identifier -> field_identifier) , identifier ))))) ;) (expression_statement "p->z = pcVar4;" (assignment_expression "p->z = pcVar4" (field_expression "p->z" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      runtimeError("out of memory");\nLAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { (expression_statement "runtimeError("out of memory");" (call_expression "runtimeError("out of memory")" identifier (argument_list "("out of memory")" ( (string_literal ""out of memory"" " string_content ") ))) ;) (labeled_statement "LAB_0010ad87:\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();" statement_identifier : comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "long *param_9" (sized_type_specifier "long" long) (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "undefined8 param_10" type_identifier identifier) , (parameter_declaration "undefined8 param_11" type_identifier identifier) , (parameter_declaration "undefined8 param_12" type_identifier identifier) , (parameter_declaration "undefined8 param_13" type_identifier identifier) , (parameter_declaration "undefined8 param_14" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined1 *local_f0;" type_identifier (pointer_declarator "*local_f0" * identifier) ;) (declaration "undefined1 *local_e8;" type_identifier (pointer_declarator "*local_e8" * identifier) ;) (declaration "long local_e0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" { (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" identifier = identifier) ;) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" identifier = identifier) ;) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" identifier = identifier) ;) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" identifier = identifier) ;) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" identifier = identifier) ;) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" identifier = identifier) ;) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" identifier = identifier) ;) })) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" identifier = identifier) ;) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" identifier = identifier) ;) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" identifier = identifier) ;) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" identifier = identifier) ;) (do_statement "do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );" do (compound_statement "{\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  }" { (if_statement "if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" if (parenthesized_expression "(*param_9 == 0)" ( (binary_expression "*param_9 == 0" (pointer_expression "*param_9" * identifier) == number_literal) )) (compound_statement "{\n      iVar2 = (int)param_9[1];\n    }" { (expression_statement "iVar2 = (int)param_9[1];" (assignment_expression "iVar2 = (int)param_9[1]" identifier = (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" else (compound_statement "{\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" { (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" identifier = number_literal) ;) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" identifier = number_literal) ;) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" identifier = identifier) ;) (expression_statement "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);" (call_expression "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" identifier (argument_list "((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" ( (binary_expression "(int)param_9[1] - *(int *)((long)param_9 + 0xc)" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) - (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) , (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_9" * identifier)) , identifier , (pointer_expression "&local_f8" & identifier) ))) ;) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" identifier = number_literal) ;) (expression_statement "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);" (assignment_expression "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" identifier = (cast_expression "(char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_9 + 0xc) + *param_9)" ( (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_9" * identifier)) )))) ;) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      }" { (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar2 = ~(uint)lVar3 - 1;" (assignment_expression "iVar2 = ~(uint)lVar3 - 1" identifier = (binary_expression "~(uint)lVar3 - 1" (unary_expression "~(uint)lVar3" ~ (cast_expression "(uint)lVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) }))) (expression_statement "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);" (assignment_expression "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc)" identifier = (binary_expression "iVar2 + *(int *)((long)param_9 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (if_statement "if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" if (parenthesized_expression "(iVar2 < (int)param_9[1] + -1)" ( (binary_expression "iVar2 < (int)param_9[1] + -1" identifier < (binary_expression "(int)param_9[1] + -1" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) + number_literal)) )) (compound_statement "{\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" { (expression_statement "*(int *)((long)param_9 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_9 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_9 + 0xc)" * (cast_expression "(int *)((long)param_9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_9 + 0xc)" ( (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }" if (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0010ad87;" goto statement_identifier ;) })) (expression_statement "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;" (assignment_expression "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000" (pointer_expression "*(int *)(param_9 + 1)" * (cast_expression "(int *)(param_9 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 1)" ( (binary_expression "param_9 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_9[1] * 2 + 1000" (binary_expression "(int)param_9[1] * 2" (cast_expression "(int)param_9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_9[1]" identifier [ number_literal ])) * number_literal) + number_literal)) ;) (expression_statement "lVar3 = FUN_00136240(*param_9);" (assignment_expression "lVar3 = FUN_00136240(*param_9)" identifier = (call_expression "FUN_00136240(*param_9)" identifier (argument_list "(*param_9)" ( (pointer_expression "*param_9" * identifier) )))) ;) (expression_statement "*param_9 = lVar3;" (assignment_expression "*param_9 = lVar3" (pointer_expression "*param_9" * identifier) = identifier) ;) (if_statement "if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }" { (expression_statement "FUN_0010ab61("out of memory");" (call_expression "FUN_0010ab61("out of memory")" identifier (argument_list "("out of memory")" ( (string_literal ""out of memory"" " string_content ") ))) ;) (labeled_statement "LAB_0010ad87:\n                    \n      __stack_chk_fail();" statement_identifier : (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) + (pointer_expression * IDENT)) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) + (pointer_expression * IDENT)) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) - LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_0010ac47(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" (identifier "FUN_0010ac47") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined8 param_8" (type_identifier "undefined8") (identifier "param_8")) (, ",") (parameter_declaration "long *param_9" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) (, ",") (parameter_declaration "undefined8 param_10" (type_identifier "undefined8") (identifier "param_10")) (, ",") (parameter_declaration "undefined8 param_11" (type_identifier "undefined8") (identifier "param_11")) (, ",") (parameter_declaration "undefined8 param_12" (type_identifier "undefined8") (identifier "param_12")) (, ",") (parameter_declaration "undefined8 param_13" (type_identifier "undefined8") (identifier "param_13")) (, ",") (parameter_declaration "undefined8 param_14" (type_identifier "undefined8") (identifier "param_14")) () ")"))) (compound_statement "{\n  char cVar1;\n  char in_AL;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  bVar5 = 0;\n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char in_AL;" (primitive_type "char") (identifier "in_AL") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "undefined4 local_f8;" (type_identifier "undefined4") (identifier "local_f8") (; ";")) (declaration "undefined4 local_f4;" (type_identifier "undefined4") (identifier "local_f4") (; ";")) (declaration "undefined1 *local_f0;" (type_identifier "undefined1") (pointer_declarator "*local_f0" (* "*") (identifier "local_f0")) (; ";")) (declaration "undefined1 *local_e8;" (type_identifier "undefined1") (pointer_declarator "*local_e8" (* "*") (identifier "local_e8")) (; ";")) (declaration "long local_e0;" (sized_type_specifier "long" (long "long")) (identifier "local_e0") (; ";")) (declaration "undefined1 local_d8 [16];" (type_identifier "undefined1") (array_declarator "local_d8 [16]" (identifier "local_d8") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined8 local_c8;" (type_identifier "undefined8") (identifier "local_c8") (; ";")) (declaration "undefined8 local_c0;" (type_identifier "undefined8") (identifier "local_c0") (; ";")) (declaration "undefined8 local_b8;" (type_identifier "undefined8") (identifier "local_b8") (; ";")) (declaration "undefined8 local_b0;" (type_identifier "undefined8") (identifier "local_b0") (; ";")) (declaration "undefined8 local_a8;" (type_identifier "undefined8") (identifier "local_a8") (; ";")) (declaration "undefined8 local_98;" (type_identifier "undefined8") (identifier "local_98") (; ";")) (declaration "undefined8 local_88;" (type_identifier "undefined8") (identifier "local_88") (; ";")) (declaration "undefined8 local_78;" (type_identifier "undefined8") (identifier "local_78") (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" (if "if") (parenthesized_expression "(in_AL != '\0')" (( "(") (binary_expression "in_AL != '\0'" (identifier "in_AL") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" ({ "{") (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" (identifier "local_a8") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" (identifier "local_98") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" (identifier "local_88") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" (identifier "local_78") (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" (identifier "local_68") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" (identifier "local_58") (= "=") (identifier "param_6")) (; ";")) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" (identifier "local_48") (= "=") (identifier "param_7")) (; ";")) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" (identifier "local_38") (= "=") (identifier "param_8")) (; ";")) (} "}"))) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_e0") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" (identifier "local_c8") (= "=") (identifier "param_11")) (; ";")) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" (identifier "local_c0") (= "=") (identifier "param_12")) (; ";")) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" (identifier "local_b8") (= "=") (identifier "param_13")) (; ";")) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" (identifier "local_b0") (= "=") (identifier "param_14")) (; ";")) (do_statement "do {\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }\n    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);\n    if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }\n    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;\n    lVar3 = FUN_00136240(*param_9);\n    *param_9 = lVar3;\n    if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }\n  }" ({ "{") (if_statement "if (*param_9 == 0) {\n      iVar2 = (int)param_9[1];\n    }\n    else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" (if "if") (parenthesized_expression "(*param_9 == 0)" (( "(") (binary_expression "*param_9 == 0" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (int)param_9[1];\n    }" ({ "{") (expression_statement "iVar2 = (int)param_9[1];" (assignment_expression "iVar2 = (int)param_9[1]" (identifier "iVar2") (= "=") (cast_expression "(int)param_9[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_9[1]" (identifier "param_9") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" (else "else") (compound_statement "{\n      local_f8 = 0x10;\n      local_f4 = 0x30;\n      local_f0 = &stack0x00000008;\n      local_e8 = local_d8;\n      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);\n      lVar3 = -1;\n      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar2 = ~(uint)lVar3 - 1;\n    }" ({ "{") (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" (identifier "local_f8") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" (identifier "local_f4") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" (identifier "local_f0") (= "=") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008"))) (; ";")) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" (identifier "local_e8") (= "=") (identifier "local_d8")) (; ";")) (expression_statement "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);" (call_expression "FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" (identifier "FUN_001403a0") (argument_list "((int)param_9[1] - *(int *)((long)param_9 + 0xc),\n                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8)" (( "(") (binary_expression "(int)param_9[1] - *(int *)((long)param_9 + 0xc)" (cast_expression "(int)param_9[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_9[1]" (identifier "param_9") ([ "[") (number_literal "1") (] "]"))) (- "-") (pointer_expression "*(int *)((long)param_9 + 0xc)" (* "*") (cast_expression "(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_9 + 0xc)" (( "(") (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_9")) (+ "+") (number_literal "0xc")) () ")"))))) (, ",") (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_9 + 0xc)" (* "*") (cast_expression "(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_9 + 0xc)" (( "(") (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_9")) (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (pointer_expression "*param_9" (* "*") (identifier "param_9"))) (, ",") (identifier "param_10") (, ",") (pointer_expression "&local_f8" (& "&") (identifier "local_f8")) () ")"))) (; ";")) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" (identifier "lVar3") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);" (assignment_expression "pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((long)*(int *)((long)param_9 + 0xc) + *param_9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(int *)((long)param_9 + 0xc) + *param_9)" (( "(") (binary_expression "(long)*(int *)((long)param_9 + 0xc) + *param_9" (cast_expression "(long)*(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_9 + 0xc)" (* "*") (cast_expression "(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_9 + 0xc)" (( "(") (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_9")) (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (pointer_expression "*param_9" (* "*") (identifier "param_9"))) () ")")))) (; ";")) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        cVar1 = *pcVar4;\n        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar3 == 0) break;" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + -1" (identifier "lVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" (identifier "pcVar4") (+ "+") (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar2 = ~(uint)lVar3 - 1;" (assignment_expression "iVar2 = ~(uint)lVar3 - 1" (identifier "iVar2") (= "=") (binary_expression "~(uint)lVar3 - 1" (unary_expression "~(uint)lVar3" (~ "~") (cast_expression "(uint)lVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar3"))) (- "-") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);" (assignment_expression "iVar2 = iVar2 + *(int *)((long)param_9 + 0xc)" (identifier "iVar2") (= "=") (binary_expression "iVar2 + *(int *)((long)param_9 + 0xc)" (identifier "iVar2") (+ "+") (pointer_expression "*(int *)((long)param_9 + 0xc)" (* "*") (cast_expression "(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_9 + 0xc)" (( "(") (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_9")) (+ "+") (number_literal "0xc")) () ")")))))) (; ";")) (if_statement "if (iVar2 < (int)param_9[1] + -1) {\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" (if "if") (parenthesized_expression "(iVar2 < (int)param_9[1] + -1)" (( "(") (binary_expression "iVar2 < (int)param_9[1] + -1" (identifier "iVar2") (< "<") (binary_expression "(int)param_9[1] + -1" (cast_expression "(int)param_9[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_9[1]" (identifier "param_9") ([ "[") (number_literal "1") (] "]"))) (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n      *(int *)((long)param_9 + 0xc) = iVar2;\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }\n      goto LAB_0010ad87;\n    }" ({ "{") (expression_statement "*(int *)((long)param_9 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_9 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_9 + 0xc)" (* "*") (cast_expression "(int *)((long)param_9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_9 + 0xc)" (( "(") (binary_expression "(long)param_9 + 0xc" (cast_expression "(long)param_9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_9")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return;\n      }" (if "if") (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_e0") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_0010ad87;" (goto "goto") (statement_identifier "LAB_0010ad87") (; ";")) (} "}"))) (expression_statement "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;" (assignment_expression "*(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000" (pointer_expression "*(int *)(param_9 + 1)" (* "*") (cast_expression "(int *)(param_9 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 1)" (( "(") (binary_expression "param_9 + 1" (identifier "param_9") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "(int)param_9[1] * 2 + 1000" (binary_expression "(int)param_9[1] * 2" (cast_expression "(int)param_9[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_9[1]" (identifier "param_9") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "2")) (+ "+") (number_literal "1000"))) (; ";")) (expression_statement "lVar3 = FUN_00136240(*param_9);" (assignment_expression "lVar3 = FUN_00136240(*param_9)" (identifier "lVar3") (= "=") (call_expression "FUN_00136240(*param_9)" (identifier "FUN_00136240") (argument_list "(*param_9)" (( "(") (pointer_expression "*param_9" (* "*") (identifier "param_9")) () ")")))) (; ";")) (expression_statement "*param_9 = lVar3;" (assignment_expression "*param_9 = lVar3" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (= "=") (identifier "lVar3")) (; ";")) (if_statement "if (lVar3 == 0) {\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0010ab61("out of memory");\nLAB_0010ad87:\n                    \n      __stack_chk_fail();\n    }" ({ "{") (expression_statement "FUN_0010ab61("out of memory");" (call_expression "FUN_0010ab61("out of memory")" (identifier "FUN_0010ab61") (argument_list "("out of memory")" (( "(") (string_literal ""out of memory"" (" """) (string_content "out of memory") (" """)) () ")"))) (; ";")) (labeled_statement "LAB_0010ad87:\n                    \n      __stack_chk_fail();" (statement_identifier "LAB_0010ad87") (: ":") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(type_1 *p,char *zFormat,...)

{
  char var_6;
  long var_8;
  char var_1;
  int var_7;
  char *var_5;
  type_2 in_RCX;
  long var_4;
  type_2 in_RDX;
  type_2 in_R8;
  type_2 in_R9;
  long var_2;
  type_3 bVar6;
  type_2 in_XMM0_Qa;
  type_2 in_XMM1_Qa;
  type_2 in_XMM2_Qa;
  type_2 in_XMM3_Qa;
  type_2 in_XMM4_Qa;
  type_2 in_XMM5_Qa;
  type_2 in_XMM6_Qa;
  type_2 in_XMM7_Qa;
  type_4 ap;
  type_5 local_d8 [16];
  type_2 local_c8;
  type_2 local_c0;
  type_2 local_b8;
  type_2 local_b0;
  type_2 local_a8;
  type_2 local_98;
  type_2 local_88;
  type_2 local_78;
  type_2 local_68;
  type_2 local_58;
  type_2 local_48;
  type_2 local_38;
  
  bVar6 = 0;
  if (var_1 != '\0') {
    local_a8 = in_XMM0_Qa;
    local_98 = in_XMM1_Qa;
    local_88 = in_XMM2_Qa;
    local_78 = in_XMM3_Qa;
    local_68 = in_XMM4_Qa;
    local_58 = in_XMM5_Qa;
    local_48 = in_XMM6_Qa;
    local_38 = in_XMM7_Qa;
  }
  var_8 = *(long *)(var_2 + 0x28);
  local_c8 = in_RDX;
  local_c0 = in_RCX;
  local_b8 = in_R8;
  local_b0 = in_R9;
  do {
    if (p->z == (char *)0x0) {
      var_7 = p->nAlloc;
    }
    else {
      ap[0].gp_offset = 0x10;
      ap[0].fp_offset = 0x30;
      ap[0].overflow_arg_area = &stack0x00000008;
      ap[0].reg_save_area = local_d8;
      var_3(p->nAlloc - p->nUsed,p->z + p->nUsed,zFormat,ap);
      var_4 = -1;
      var_5 = p->z + p->nUsed;
      do {
        if (var_4 == 0) break;
        var_4 = var_4 + -1;
        var_6 = *var_5;
        var_5 = var_5 + (type_6)bVar6 * -2 + 1;
      } while (var_6 != '\0');
      var_7 = ~(type_7)var_4 - 1;
    }
    var_7 = var_7 + p->nUsed;
    if (var_7 < p->nAlloc + -1) {
      p->nUsed = var_7;
      if (var_8 == *(long *)(var_2 + 0x28)) {
        return;
      }
      goto LAB_0010ad87;
    }
    var_7 = p->nAlloc * 2 + 1000;
    p->nAlloc = var_7;
    var_5 = (char *)var_9(p->z,var_7);
    p->z = var_5;
    if (var_5 == (char *)0x0) {
      var_10("out of memory");
LAB_0010ad87:
                    /* WARNING: Subroutine does not return */
      var_11();
    }
  } while( true );
}


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

void MASKED(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 long *param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,
                 undefined8 param_13,undefined8 param_14)

{
  char cVar1;
  char in_AL;
  int iVar2;
  long lVar3;
  char *pcVar4;
  long in_FS_OFFSET;
  byte bVar5;
  undefined4 local_f8;
  undefined4 local_f4;
  undefined1 *local_f0;
  undefined1 *local_e8;
  long local_e0;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  bVar5 = 0;
  if (in_AL != '\0') {
    local_a8 = param_1;
    local_98 = param_2;
    local_88 = param_3;
    local_78 = param_4;
    local_68 = param_5;
    local_58 = param_6;
    local_48 = param_7;
    local_38 = param_8;
  }
  local_e0 = *(long *)(in_FS_OFFSET + 0x28);
  local_c8 = param_11;
  local_c0 = param_12;
  local_b8 = param_13;
  local_b0 = param_14;
  do {
    if (*param_9 == 0) {
      iVar2 = (int)param_9[1];
    }
    else {
      local_f8 = 0x10;
      local_f4 = 0x30;
      local_f0 = &stack0x00000008;
      local_e8 = local_d8;
      FUN_001403a0((int)param_9[1] - *(int *)((long)param_9 + 0xc),
                   (long)*(int *)((long)param_9 + 0xc) + *param_9,param_10,&local_f8);
      lVar3 = -1;
      pcVar4 = (char *)((long)*(int *)((long)param_9 + 0xc) + *param_9);
      do {
        if (lVar3 == 0) break;
        lVar3 = lVar3 + -1;
        cVar1 = *pcVar4;
        pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
      } while (cVar1 != '\0');
      iVar2 = ~(uint)lVar3 - 1;
    }
    iVar2 = iVar2 + *(int *)((long)param_9 + 0xc);
    if (iVar2 < (int)param_9[1] + -1) {
      *(int *)((long)param_9 + 0xc) = iVar2;
      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {
        return;
      }
      goto LAB_0010ad87;
    }
    *(int *)(param_9 + 1) = (int)param_9[1] * 2 + 1000;
    lVar3 = FUN_00136240(*param_9);
    *param_9 = lVar3;
    if (lVar3 == 0) {
      FUN_0010ab61("out of memory");
LAB_0010ad87:
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
  } while( true );
}

