
int fts5HashAddPoslistSize(Fts5Hash *pHash,Fts5HashEntry *p,Fts5HashEntry *p2)

{
  uint uVar1;
  int iVar2;
  size_t __n;
  int extraout_ECX;
  int iVar3;
  int iVar4;
  int iVar5;
  void *__dest;
  int iVar6;
  undefined8 uVar7;
  void *__src;
  undefined4 local_20;
  
  uVar7 = __x86_get_pc_thunk_di();
  iVar5 = (int)((ulonglong)uVar7 >> 0x20);
  iVar6 = *(int *)(iVar5 + 0xc);
  if (iVar6 != 0) {
    iVar3 = iVar5;
    if (extraout_ECX != 0) {
      iVar3 = extraout_ECX;
    }
    iVar2 = *(int *)(iVar5 + 0x10);
    iVar4 = iVar2;
    if (*(int *)uVar7 == 1) {
      iVar6 = 0;
      if (*(byte *)(iVar5 + 0x18) != 0) {
        *(undefined1 *)(iVar3 + iVar2) = 0;
        iVar4 = iVar2 + 1;
        if (*(char *)(iVar5 + 0x19) == '\0') {
          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);
        }
        else {
          *(undefined1 *)(iVar3 + iVar4) = 0;
          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);
          iVar4 = iVar2 + 2;
        }
      }
    }
    else {
      __n = (iVar2 - iVar6) - 1;
      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;
      if ((int)uVar1 < 0x80) {
        *(char *)(iVar3 + iVar6) = (char)uVar1;
        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);
      }
      else {
        if ((int)uVar1 < 0x4000) {
          local_20 = 1;
          iVar4 = 2;
        }
        else if ((int)uVar1 < 0x200000) {
          local_20 = 2;
          iVar4 = 3;
        }
        else {
          local_20 = 4 - (uint)(uVar1 < 0x10000000);
          iVar4 = 5 - (uint)(uVar1 < 0x10000000);
        }
        __src = (void *)(iVar3 + 1 + iVar6);
        __dest = (void *)(iVar6 + iVar4 + iVar3);
        memmove(__dest,__src,__n);
        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));
        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);
        iVar4 = iVar2 + local_20;
      }
    }
    if (extraout_ECX == 0) {
      *(undefined4 *)(iVar5 + 0xc) = 0;
      *(undefined2 *)(iVar5 + 0x18) = 0;
      *(int *)(iVar5 + 0x10) = iVar4;
    }
  }
  return iVar6;
}



int FUN_00036d00(void)

{
  uint uVar1;
  int iVar2;
  size_t __n;
  int extraout_ECX;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined8 uVar7;
  undefined4 local_20;
  
  uVar7 = FUN_0001af1a();
  iVar5 = (int)((ulonglong)uVar7 >> 0x20);
  iVar6 = *(int *)(iVar5 + 0xc);
  if (iVar6 != 0) {
    iVar3 = iVar5;
    if (extraout_ECX != 0) {
      iVar3 = extraout_ECX;
    }
    iVar2 = *(int *)(iVar5 + 0x10);
    iVar4 = iVar2;
    if (*(int *)uVar7 == 1) {
      iVar6 = 0;
      if (*(byte *)(iVar5 + 0x18) != 0) {
        *(undefined1 *)(iVar3 + iVar2) = 0;
        iVar4 = iVar2 + 1;
        if (*(char *)(iVar5 + 0x19) == '\0') {
          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);
        }
        else {
          *(undefined1 *)(iVar3 + iVar4) = 0;
          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);
          iVar4 = iVar2 + 2;
        }
      }
    }
    else {
      __n = (iVar2 - iVar6) - 1;
      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;
      if ((int)uVar1 < 0x80) {
        *(char *)(iVar3 + iVar6) = (char)uVar1;
        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);
      }
      else {
        if ((int)uVar1 < 0x4000) {
          local_20 = 1;
          iVar4 = 2;
        }
        else if ((int)uVar1 < 0x200000) {
          local_20 = 2;
          iVar4 = 3;
        }
        else {
          local_20 = 4 - (uint)(uVar1 < 0x10000000);
          iVar4 = 5 - (uint)(uVar1 < 0x10000000);
        }
        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);
        FUN_0002a1b0();
        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);
        iVar4 = iVar2 + local_20;
      }
    }
    if (extraout_ECX == 0) {
      *(undefined4 *)(iVar5 + 0xc) = 0;
      *(undefined2 *)(iVar5 + 0x18) = 0;
      *(int *)(iVar5 + 0x10) = iVar4;
    }
  }
  return iVar6;
}


PUSH EBP
PUSH EDI
CALL 0x0001af1a
ADD EDI,0x1141cd
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [EDX + 0xc]
MOV dword ptr [ESP + 0x4],EDI
TEST EBX,EBX
JZ 0x00036ddc
TEST ECX,ECX
MOV EDI,ECX
MOV ECX,EDX
MOV ESI,EDX
CMOVNZ ECX,EDI
CMP dword ptr [EAX],0x1
MOV EBP,dword ptr [EDX + 0x10]
MOVZX EDX,byte ptr [EDX + 0x18]
MOV dword ptr [ESP],ECX
JZ 0x00036df0
MOV EAX,EBP
SUB EAX,EBX
SUB EAX,0x1
LEA EDX,[EDX + EAX*0x2]
CMP EDX,0x7f
JLE 0x00036e18
CMP EDX,0x3fff
JLE 0x00036e28
CMP EDX,0x1fffff
JLE 0x00036e50
CMP EDX,0x10000000
SBB ECX,ECX
ADD ECX,0x4
CMP EDX,0x10000000
MOV dword ptr [ESP + 0xc],ECX
SBB ECX,ECX
ADD ECX,0x5
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x4
PUSH EAX
MOV EDX,dword ptr [ESP + 0x8]
LEA EAX,[EDX + EBX*0x1 + 0x1]
ADD EBX,ECX
PUSH EAX
ADD EBX,EDX
MOV dword ptr [ESP + 0xc],EDX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x000140b0
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,dword ptr [ESI + 0xc]
MOV ECX,EDX
SAR ECX,0x1f
CALL 0x0002a1b0
ADD EBP,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV EBX,EBP
SUB EBX,dword ptr [ESI + 0x10]
TEST EDI,EDI
JNZ 0x00036ddc
XOR EAX,EAX
MOV dword ptr [ESI + 0xc],0x0
MOV word ptr [ESI + 0x18],AX
MOV dword ptr [ESI + 0x10],EBP
ADD ESP,0x1c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBX,EBX
TEST DL,DL
JZ 0x00036dc8
MOV byte ptr [ECX + EBP*0x1],0x0
CMP byte ptr [ESI + 0x19],0x0
LEA EAX,[EBP + 0x1]
JZ 0x00036e40
MOV ECX,dword ptr [ESP]
ADD EBP,0x2
MOV EBX,EBP
MOV byte ptr [ECX + EAX*0x1],0x0
SUB EBX,dword ptr [ESI + 0x10]
JMP 0x00036dc8
MOV EAX,dword ptr [ESP]
MOV byte ptr [EAX + EBX*0x1],DL
MOV EBX,EBP
SUB EBX,dword ptr [ESI + 0x10]
JMP 0x00036dc8
MOV dword ptr [ESP + 0xc],0x1
MOV ECX,0x2
JMP 0x00036d84
MOV EBX,EAX
MOV EBP,EAX
SUB EBX,dword ptr [ESI + 0x10]
JMP 0x00036dc8
MOV dword ptr [ESP + 0xc],0x2
MOV ECX,0x3
JMP 0x00036d84
(translation_unit "int FUN_00036d00(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int FUN_00036d00(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00036d00(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0001af1a();" (assignment_expression "uVar7 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0xc)" identifier = (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" { (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }" if (parenthesized_expression "(extraout_ECX != 0)" ( (binary_expression "extraout_ECX != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = extraout_ECX;\n    }" { (expression_statement "iVar3 = extraout_ECX;" (assignment_expression "iVar3 = extraout_ECX" identifier = identifier) ;) })) (expression_statement "iVar2 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar5 + 0x10)" identifier = (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" if (parenthesized_expression "(*(int *)uVar7 == 1)" ( (binary_expression "*(int *)uVar7 == 1" (pointer_expression "*(int *)uVar7" * (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" if (parenthesized_expression "(*(byte *)(iVar5 + 0x18) != 0)" ( (binary_expression "*(byte *)(iVar5 + 0x18) != 0" (pointer_expression "*(byte *)(iVar5 + 0x18)" * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" { (expression_statement "*(undefined1 *)(iVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar2)" * (cast_expression "(undefined1 *)(iVar3 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar4 = iVar2 + 1;" (assignment_expression "iVar4 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" if (parenthesized_expression "(*(char *)(iVar5 + 0x19) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x19) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x19)" * (cast_expression "(char *)(iVar5 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x19)" ( (binary_expression "iVar5 + 0x19" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }" { (expression_statement "iVar6 = iVar4 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar4 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar4 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" else (compound_statement "{\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" { (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" * (cast_expression "(undefined1 *)(iVar3 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + 2) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + 2;" (assignment_expression "iVar4 = iVar2 + 2" identifier = (binary_expression "iVar2 + 2" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" else (compound_statement "{\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" { (expression_statement "__n = (iVar2 - iVar6) - 1;" (assignment_expression "__n = (iVar2 - iVar6) - 1" identifier = (binary_expression "(iVar2 - iVar6) - 1" (parenthesized_expression "(iVar2 - iVar6)" ( (binary_expression "iVar2 - iVar6" identifier - identifier) )) - number_literal)) ;) (expression_statement "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;" (assignment_expression "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2" identifier = (binary_expression "(uint)*(byte *)(iVar5 + 0x18) + __n * 2" (binary_expression "(uint)*(byte *)(iVar5 + 0x18)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) + (binary_expression "__n * 2" identifier * number_literal))) ;) (if_statement "if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" if (parenthesized_expression "((int)uVar1 < 0x80)" ( (binary_expression "(int)uVar1 < 0x80" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }" { (expression_statement "*(char *)(iVar3 + iVar6) = (char)uVar1;" (assignment_expression "*(char *)(iVar3 + iVar6) = (char)uVar1" (pointer_expression "*(char *)(iVar3 + iVar6)" * (cast_expression "(char *)(iVar3 + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6)" ( (binary_expression "iVar3 + iVar6" identifier + identifier) )))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar6 = iVar2 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar2 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar2 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" else (compound_statement "{\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" { (if_statement "if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x4000)" ( (binary_expression "(int)uVar1 < 0x4000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 1;\n          iVar4 = 2;\n        }" { (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (if_statement "if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x200000)" ( (binary_expression "(int)uVar1 < 0x200000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 2;\n          iVar4 = 3;\n        }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (compound_statement "{\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" { (expression_statement "local_20 = 4 - (uint)(uVar1 < 0x10000000);" (assignment_expression "local_20 = 4 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "4 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) (expression_statement "iVar4 = 5 - (uint)(uVar1 < 0x10000000);" (assignment_expression "iVar4 = 5 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "5 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) }))))) (expression_statement "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);" (call_expression "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" identifier (argument_list "((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" ( (cast_expression "(void *)(iVar6 + iVar4 + iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 + iVar3)" ( (binary_expression "iVar6 + iVar4 + iVar3" (binary_expression "iVar6 + iVar4" identifier + identifier) + identifier) ))) , (cast_expression "(void *)(iVar3 + 1 + iVar6)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar6)" ( (binary_expression "iVar3 + 1 + iVar6" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))) , identifier ))) ;) (expression_statement "FUN_0002a1b0();" (call_expression "FUN_0002a1b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + local_20) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + local_20)" ( (binary_expression "iVar2 + local_20" identifier + identifier) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + local_20;" (assignment_expression "iVar4 = iVar2 + local_20" identifier = (binary_expression "iVar2 + local_20" identifier + identifier)) ;) }))) }))) (if_statement "if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" { (expression_statement "*(undefined4 *)(iVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0xc)" * (cast_expression "(undefined4 *)(iVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar5 + 0x18) = 0;" (assignment_expression "*(undefined2 *)(iVar5 + 0x18) = 0" (pointer_expression "*(undefined2 *)(iVar5 + 0x18)" * (cast_expression "(undefined2 *)(iVar5 + 0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar5 + 0x10) = iVar4;" (assignment_expression "*(int *)(iVar5 + 0x10) = iVar4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) })) })) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int fts5HashAddPoslistSize(Fts5Hash *pHash,Fts5HashEntry *p,Fts5HashEntry *p2)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *__dest;\n  int iVar6;\n  undefined8 uVar7;\n  void *__src;\n  undefined4 local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int fts5HashAddPoslistSize(Fts5Hash *pHash,Fts5HashEntry *p,Fts5HashEntry *p2)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *__dest;\n  int iVar6;\n  undefined8 uVar7;\n  void *__src;\n  undefined4 local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "fts5HashAddPoslistSize(Fts5Hash *pHash,Fts5HashEntry *p,Fts5HashEntry *p2)" identifier (parameter_list "(Fts5Hash *pHash,Fts5HashEntry *p,Fts5HashEntry *p2)" ( (parameter_declaration "Fts5Hash *pHash" type_identifier (pointer_declarator "*pHash" * identifier)) , (parameter_declaration "Fts5HashEntry *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5HashEntry *p2" type_identifier (pointer_declarator "*p2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *__dest;\n  int iVar6;\n  undefined8 uVar7;\n  void *__src;\n  undefined4 local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "uVar7 = __x86_get_pc_thunk_di();" (assignment_expression "uVar7 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0xc)" identifier = (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" { (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }" if (parenthesized_expression "(extraout_ECX != 0)" ( (binary_expression "extraout_ECX != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = extraout_ECX;\n    }" { (expression_statement "iVar3 = extraout_ECX;" (assignment_expression "iVar3 = extraout_ECX" identifier = identifier) ;) })) (expression_statement "iVar2 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar5 + 0x10)" identifier = (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" if (parenthesized_expression "(*(int *)uVar7 == 1)" ( (binary_expression "*(int *)uVar7 == 1" (pointer_expression "*(int *)uVar7" * (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" if (parenthesized_expression "(*(byte *)(iVar5 + 0x18) != 0)" ( (binary_expression "*(byte *)(iVar5 + 0x18) != 0" (pointer_expression "*(byte *)(iVar5 + 0x18)" * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" { (expression_statement "*(undefined1 *)(iVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar2)" * (cast_expression "(undefined1 *)(iVar3 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar4 = iVar2 + 1;" (assignment_expression "iVar4 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" if (parenthesized_expression "(*(char *)(iVar5 + 0x19) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x19) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x19)" * (cast_expression "(char *)(iVar5 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x19)" ( (binary_expression "iVar5 + 0x19" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }" { (expression_statement "iVar6 = iVar4 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar4 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar4 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" else (compound_statement "{\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" { (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" * (cast_expression "(undefined1 *)(iVar3 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + 2) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + 2;" (assignment_expression "iVar4 = iVar2 + 2" identifier = (binary_expression "iVar2 + 2" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" else (compound_statement "{\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" { (expression_statement "__n = (iVar2 - iVar6) - 1;" (assignment_expression "__n = (iVar2 - iVar6) - 1" identifier = (binary_expression "(iVar2 - iVar6) - 1" (parenthesized_expression "(iVar2 - iVar6)" ( (binary_expression "iVar2 - iVar6" identifier - identifier) )) - number_literal)) ;) (expression_statement "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;" (assignment_expression "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2" identifier = (binary_expression "(uint)*(byte *)(iVar5 + 0x18) + __n * 2" (binary_expression "(uint)*(byte *)(iVar5 + 0x18)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) + (binary_expression "__n * 2" identifier * number_literal))) ;) (if_statement "if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" if (parenthesized_expression "((int)uVar1 < 0x80)" ( (binary_expression "(int)uVar1 < 0x80" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }" { (expression_statement "*(char *)(iVar3 + iVar6) = (char)uVar1;" (assignment_expression "*(char *)(iVar3 + iVar6) = (char)uVar1" (pointer_expression "*(char *)(iVar3 + iVar6)" * (cast_expression "(char *)(iVar3 + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6)" ( (binary_expression "iVar3 + iVar6" identifier + identifier) )))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar6 = iVar2 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar2 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar2 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" else (compound_statement "{\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        __src = (void *)(iVar3 + 1 + iVar6);\n        __dest = (void *)(iVar6 + iVar4 + iVar3);\n        memmove(__dest,__src,__n);\n        sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" { (if_statement "if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x4000)" ( (binary_expression "(int)uVar1 < 0x4000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 1;\n          iVar4 = 2;\n        }" { (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (if_statement "if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x200000)" ( (binary_expression "(int)uVar1 < 0x200000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 2;\n          iVar4 = 3;\n        }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (compound_statement "{\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" { (expression_statement "local_20 = 4 - (uint)(uVar1 < 0x10000000);" (assignment_expression "local_20 = 4 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "4 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) (expression_statement "iVar4 = 5 - (uint)(uVar1 < 0x10000000);" (assignment_expression "iVar4 = 5 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "5 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) }))))) (expression_statement "__src = (void *)(iVar3 + 1 + iVar6);" (assignment_expression "__src = (void *)(iVar3 + 1 + iVar6)" identifier = (cast_expression "(void *)(iVar3 + 1 + iVar6)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar6)" ( (binary_expression "iVar3 + 1 + iVar6" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) )))) ;) (expression_statement "__dest = (void *)(iVar6 + iVar4 + iVar3);" (assignment_expression "__dest = (void *)(iVar6 + iVar4 + iVar3)" identifier = (cast_expression "(void *)(iVar6 + iVar4 + iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 + iVar3)" ( (binary_expression "iVar6 + iVar4 + iVar3" (binary_expression "iVar6 + iVar4" identifier + identifier) + identifier) )))) ;) (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest));" (call_expression "sqlite3PutVarint((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest))" identifier (argument_list "((uchar *)(iVar3 + *(int *)(iVar5 + 0xc)),CONCAT44(__src,__dest))" ( (cast_expression "(uchar *)(iVar3 + *(int *)(iVar5 + 0xc))" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + *(int *)(iVar5 + 0xc))" ( (binary_expression "iVar3 + *(int *)(iVar5 + 0xc)" identifier + (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ))) , (call_expression "CONCAT44(__src,__dest)" identifier (argument_list "(__src,__dest)" ( identifier , identifier ))) ))) ;) (expression_statement "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + local_20) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + local_20)" ( (binary_expression "iVar2 + local_20" identifier + identifier) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + local_20;" (assignment_expression "iVar4 = iVar2 + local_20" identifier = (binary_expression "iVar2 + local_20" identifier + identifier)) ;) }))) }))) (if_statement "if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" { (expression_statement "*(undefined4 *)(iVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0xc)" * (cast_expression "(undefined4 *)(iVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar5 + 0x18) = 0;" (assignment_expression "*(undefined2 *)(iVar5 + 0x18) = 0" (pointer_expression "*(undefined2 *)(iVar5 + 0x18)" * (cast_expression "(undefined2 *)(iVar5 + 0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar5 + 0x10) = iVar4;" (assignment_expression "*(int *)(iVar5 + 0x10) = iVar4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) })) })) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int FUN_00036d00(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int FUN_00036d00(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00036d00(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0001af1a();" (assignment_expression "uVar7 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0xc)" identifier = (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" { (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }" if (parenthesized_expression "(extraout_ECX != 0)" ( (binary_expression "extraout_ECX != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = extraout_ECX;\n    }" { (expression_statement "iVar3 = extraout_ECX;" (assignment_expression "iVar3 = extraout_ECX" identifier = identifier) ;) })) (expression_statement "iVar2 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar5 + 0x10)" identifier = (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" if (parenthesized_expression "(*(int *)uVar7 == 1)" ( (binary_expression "*(int *)uVar7 == 1" (pointer_expression "*(int *)uVar7" * (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" if (parenthesized_expression "(*(byte *)(iVar5 + 0x18) != 0)" ( (binary_expression "*(byte *)(iVar5 + 0x18) != 0" (pointer_expression "*(byte *)(iVar5 + 0x18)" * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" { (expression_statement "*(undefined1 *)(iVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar2)" * (cast_expression "(undefined1 *)(iVar3 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar4 = iVar2 + 1;" (assignment_expression "iVar4 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" if (parenthesized_expression "(*(char *)(iVar5 + 0x19) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x19) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x19)" * (cast_expression "(char *)(iVar5 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x19)" ( (binary_expression "iVar5 + 0x19" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }" { (expression_statement "iVar6 = iVar4 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar4 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar4 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" else (compound_statement "{\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" { (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" * (cast_expression "(undefined1 *)(iVar3 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + 2) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + 2;" (assignment_expression "iVar4 = iVar2 + 2" identifier = (binary_expression "iVar2 + 2" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" else (compound_statement "{\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" { (expression_statement "__n = (iVar2 - iVar6) - 1;" (assignment_expression "__n = (iVar2 - iVar6) - 1" identifier = (binary_expression "(iVar2 - iVar6) - 1" (parenthesized_expression "(iVar2 - iVar6)" ( (binary_expression "iVar2 - iVar6" identifier - identifier) )) - number_literal)) ;) (expression_statement "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;" (assignment_expression "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2" identifier = (binary_expression "(uint)*(byte *)(iVar5 + 0x18) + __n * 2" (binary_expression "(uint)*(byte *)(iVar5 + 0x18)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar5 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) + (binary_expression "__n * 2" identifier * number_literal))) ;) (if_statement "if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" if (parenthesized_expression "((int)uVar1 < 0x80)" ( (binary_expression "(int)uVar1 < 0x80" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }" { (expression_statement "*(char *)(iVar3 + iVar6) = (char)uVar1;" (assignment_expression "*(char *)(iVar3 + iVar6) = (char)uVar1" (pointer_expression "*(char *)(iVar3 + iVar6)" * (cast_expression "(char *)(iVar3 + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6)" ( (binary_expression "iVar3 + iVar6" identifier + identifier) )))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar6 = iVar2 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar2 - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "iVar2 - *(int *)(iVar5 + 0x10)" identifier - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) }) (else_clause "else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" else (compound_statement "{\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" { (if_statement "if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x4000)" ( (binary_expression "(int)uVar1 < 0x4000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 1;\n          iVar4 = 2;\n        }" { (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) }) (else_clause "else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (if_statement "if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" if (parenthesized_expression "((int)uVar1 < 0x200000)" ( (binary_expression "(int)uVar1 < 0x200000" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_20 = 2;\n          iVar4 = 3;\n        }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" else (compound_statement "{\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" { (expression_statement "local_20 = 4 - (uint)(uVar1 < 0x10000000);" (assignment_expression "local_20 = 4 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "4 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) (expression_statement "iVar4 = 5 - (uint)(uVar1 < 0x10000000);" (assignment_expression "iVar4 = 5 - (uint)(uVar1 < 0x10000000)" identifier = (binary_expression "5 - (uint)(uVar1 < 0x10000000)" number_literal - (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x10000000)" ( (binary_expression "uVar1 < 0x10000000" identifier < number_literal) ))))) ;) }))))) (expression_statement "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);" (call_expression "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" identifier (argument_list "((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" ( (cast_expression "(void *)(iVar6 + iVar4 + iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 + iVar3)" ( (binary_expression "iVar6 + iVar4 + iVar3" (binary_expression "iVar6 + iVar4" identifier + identifier) + identifier) ))) , (cast_expression "(void *)(iVar3 + 1 + iVar6)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar6)" ( (binary_expression "iVar3 + 1 + iVar6" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))) , identifier ))) ;) (expression_statement "FUN_0002a1b0();" (call_expression "FUN_0002a1b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10)" identifier = (binary_expression "(iVar2 + local_20) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + local_20)" ( (binary_expression "iVar2 + local_20" identifier + identifier) )) - (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar4 = iVar2 + local_20;" (assignment_expression "iVar4 = iVar2 + local_20" identifier = (binary_expression "iVar2 + local_20" identifier + identifier)) ;) }))) }))) (if_statement "if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" { (expression_statement "*(undefined4 *)(iVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0xc)" * (cast_expression "(undefined4 *)(iVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar5 + 0x18) = 0;" (assignment_expression "*(undefined2 *)(iVar5 + 0x18) = 0" (pointer_expression "*(undefined2 *)(iVar5 + 0x18)" * (cast_expression "(undefined2 *)(iVar5 + 0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar5 + 0x10) = iVar4;" (assignment_expression "*(int *)(iVar5 + 0x10) = iVar4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) })) })) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) ))))) ;) }))))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00036d00(void)\n\n{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" (primitive_type "int") (function_declarator "FUN_00036d00(void)" (identifier "FUN_00036d00") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  size_t __n;\n  int extraout_ECX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined8 uVar7;\n  undefined4 local_20;\n  \n  uVar7 = FUN_0001af1a();\n  iVar5 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar6 = *(int *)(iVar5 + 0xc);\n  if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }\n  return iVar6;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "uVar7 = FUN_0001af1a();" (assignment_expression "uVar7 = FUN_0001af1a()" (identifier "uVar7") (= "=") (call_expression "FUN_0001af1a()" (identifier "FUN_0001af1a") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar7 >> 0x20)" (identifier "iVar5") (= "=") (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar5 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0xc)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar5 + 0xc)" (* "*") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar6 != 0) {\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = iVar5;\n    if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }\n    iVar2 = *(int *)(iVar5 + 0x10);\n    iVar4 = iVar2;\n    if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }\n    if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }\n  }" ({ "{") (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (extraout_ECX != 0) {\n      iVar3 = extraout_ECX;\n    }" (if "if") (parenthesized_expression "(extraout_ECX != 0)" (( "(") (binary_expression "extraout_ECX != 0" (identifier "extraout_ECX") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = extraout_ECX;\n    }" ({ "{") (expression_statement "iVar3 = extraout_ECX;" (assignment_expression "iVar3 = extraout_ECX" (identifier "iVar3") (= "=") (identifier "extraout_ECX")) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar5 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (*(int *)uVar7 == 1) {\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }\n    else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)uVar7 == 1)" (( "(") (binary_expression "*(int *)uVar7 == 1" (pointer_expression "*(int *)uVar7" (* "*") (cast_expression "(int *)uVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar7"))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar6 = 0;\n      if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(byte *)(iVar5 + 0x18) != 0) {\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" (if "if") (parenthesized_expression "(*(byte *)(iVar5 + 0x18) != 0)" (( "(") (binary_expression "*(byte *)(iVar5 + 0x18) != 0" (pointer_expression "*(byte *)(iVar5 + 0x18)" (* "*") (cast_expression "(byte *)(iVar5 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined1 *)(iVar3 + iVar2) = 0;\n        iVar4 = iVar2 + 1;\n        if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }\n      }" ({ "{") (expression_statement "*(undefined1 *)(iVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar2)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar2)" (( "(") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = iVar2 + 1;" (assignment_expression "iVar4 = iVar2 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(char *)(iVar5 + 0x19) == '\0') {\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }\n        else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + 0x19) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + 0x19) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x19)" (* "*") (cast_expression "(char *)(iVar5 + 0x19)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x19)" (( "(") (binary_expression "iVar5 + 0x19" (identifier "iVar5") (+ "+") (number_literal "0x19")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);\n        }" ({ "{") (expression_statement "iVar6 = iVar4 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar4 - *(int *)(iVar5 + 0x10)" (identifier "iVar6") (= "=") (binary_expression "iVar4 - *(int *)(iVar5 + 0x10)" (identifier "iVar4") (- "-") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" (else "else") (compound_statement "{\n          *(undefined1 *)(iVar3 + iVar4) = 0;\n          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);\n          iVar4 = iVar2 + 2;\n        }" ({ "{") (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar4)" (( "(") (binary_expression "iVar3 + iVar4" (identifier "iVar3") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10)" (identifier "iVar6") (= "=") (binary_expression "(iVar2 + 2) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + 2)" (( "(") (binary_expression "iVar2 + 2" (identifier "iVar2") (+ "+") (number_literal "2")) () ")")) (- "-") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (expression_statement "iVar4 = iVar2 + 2;" (assignment_expression "iVar4 = iVar2 + 2" (identifier "iVar4") (= "=") (binary_expression "iVar2 + 2" (identifier "iVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" (else "else") (compound_statement "{\n      __n = (iVar2 - iVar6) - 1;\n      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;\n      if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }\n    }" ({ "{") (expression_statement "__n = (iVar2 - iVar6) - 1;" (assignment_expression "__n = (iVar2 - iVar6) - 1" (identifier "__n") (= "=") (binary_expression "(iVar2 - iVar6) - 1" (parenthesized_expression "(iVar2 - iVar6)" (( "(") (binary_expression "iVar2 - iVar6" (identifier "iVar2") (- "-") (identifier "iVar6")) () ")")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;" (assignment_expression "uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2" (identifier "uVar1") (= "=") (binary_expression "(uint)*(byte *)(iVar5 + 0x18) + __n * 2" (binary_expression "(uint)*(byte *)(iVar5 + 0x18)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(iVar5 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "__n * 2" (identifier "__n") (* "*") (number_literal "2")))) (; ";")) (if_statement "if ((int)uVar1 < 0x80) {\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }\n      else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" (if "if") (parenthesized_expression "((int)uVar1 < 0x80)" (( "(") (binary_expression "(int)uVar1 < 0x80" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n        *(char *)(iVar3 + iVar6) = (char)uVar1;\n        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);\n      }" ({ "{") (expression_statement "*(char *)(iVar3 + iVar6) = (char)uVar1;" (assignment_expression "*(char *)(iVar3 + iVar6) = (char)uVar1" (pointer_expression "*(char *)(iVar3 + iVar6)" (* "*") (cast_expression "(char *)(iVar3 + iVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar6)" (( "(") (binary_expression "iVar3 + iVar6" (identifier "iVar3") (+ "+") (identifier "iVar6")) () ")")))) (= "=") (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1"))) (; ";")) (expression_statement "iVar6 = iVar2 - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = iVar2 - *(int *)(iVar5 + 0x10)" (identifier "iVar6") (= "=") (binary_expression "iVar2 - *(int *)(iVar5 + 0x10)" (identifier "iVar2") (- "-") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" (else "else") (compound_statement "{\n        if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }\n        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);\n        FUN_0002a1b0();\n        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);\n        iVar4 = iVar2 + local_20;\n      }" ({ "{") (if_statement "if ((int)uVar1 < 0x4000) {\n          local_20 = 1;\n          iVar4 = 2;\n        }\n        else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" (if "if") (parenthesized_expression "((int)uVar1 < 0x4000)" (( "(") (binary_expression "(int)uVar1 < 0x4000" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0x4000")) () ")")) (compound_statement "{\n          local_20 = 1;\n          iVar4 = 2;\n        }" ({ "{") (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" (else "else") (if_statement "if ((int)uVar1 < 0x200000) {\n          local_20 = 2;\n          iVar4 = 3;\n        }\n        else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" (if "if") (parenthesized_expression "((int)uVar1 < 0x200000)" (( "(") (binary_expression "(int)uVar1 < 0x200000" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0x200000")) () ")")) (compound_statement "{\n          local_20 = 2;\n          iVar4 = 3;\n        }" ({ "{") (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" (identifier "local_20") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" (identifier "iVar4") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" (else "else") (compound_statement "{\n          local_20 = 4 - (uint)(uVar1 < 0x10000000);\n          iVar4 = 5 - (uint)(uVar1 < 0x10000000);\n        }" ({ "{") (expression_statement "local_20 = 4 - (uint)(uVar1 < 0x10000000);" (assignment_expression "local_20 = 4 - (uint)(uVar1 < 0x10000000)" (identifier "local_20") (= "=") (binary_expression "4 - (uint)(uVar1 < 0x10000000)" (number_literal "4") (- "-") (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x10000000)" (( "(") (binary_expression "uVar1 < 0x10000000" (identifier "uVar1") (< "<") (number_literal "0x10000000")) () ")"))))) (; ";")) (expression_statement "iVar4 = 5 - (uint)(uVar1 < 0x10000000);" (assignment_expression "iVar4 = 5 - (uint)(uVar1 < 0x10000000)" (identifier "iVar4") (= "=") (binary_expression "5 - (uint)(uVar1 < 0x10000000)" (number_literal "5") (- "-") (call_expression "(uint)(uVar1 < 0x10000000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x10000000)" (( "(") (binary_expression "uVar1 < 0x10000000" (identifier "uVar1") (< "<") (number_literal "0x10000000")) () ")"))))) (; ";")) (} "}")))))) (expression_statement "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);" (call_expression "memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" (identifier "memmove") (argument_list "((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n)" (( "(") (cast_expression "(void *)(iVar6 + iVar4 + iVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar4 + iVar3)" (( "(") (binary_expression "iVar6 + iVar4 + iVar3" (binary_expression "iVar6 + iVar4" (identifier "iVar6") (+ "+") (identifier "iVar4")) (+ "+") (identifier "iVar3")) () ")"))) (, ",") (cast_expression "(void *)(iVar3 + 1 + iVar6)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 1 + iVar6)" (( "(") (binary_expression "iVar3 + 1 + iVar6" (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar6")) () ")"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "FUN_0002a1b0();" (call_expression "FUN_0002a1b0()" (identifier "FUN_0002a1b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10)" (identifier "iVar6") (= "=") (binary_expression "(iVar2 + local_20) - *(int *)(iVar5 + 0x10)" (parenthesized_expression "(iVar2 + local_20)" (( "(") (binary_expression "iVar2 + local_20" (identifier "iVar2") (+ "+") (identifier "local_20")) () ")")) (- "-") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (expression_statement "iVar4 = iVar2 + local_20;" (assignment_expression "iVar4 = iVar2 + local_20" (identifier "iVar4") (= "=") (binary_expression "iVar2 + local_20" (identifier "iVar2") (+ "+") (identifier "local_20"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (extraout_ECX == 0) {\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" (if "if") (parenthesized_expression "(extraout_ECX == 0)" (( "(") (binary_expression "extraout_ECX == 0" (identifier "extraout_ECX") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar5 + 0xc) = 0;\n      *(undefined2 *)(iVar5 + 0x18) = 0;\n      *(int *)(iVar5 + 0x10) = iVar4;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar5 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(iVar5 + 0x18) = 0;" (assignment_expression "*(undefined2 *)(iVar5 + 0x18) = 0" (pointer_expression "*(undefined2 *)(iVar5 + 0x18)" (* "*") (cast_expression "(undefined2 *)(iVar5 + 0x18)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar5 + 0x10) = iVar4;" (assignment_expression "*(int *)(iVar5 + 0x10) = iVar4" (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))

int function_1(type_1 *pHash,type_2 *p,type_2 *p2)

{
  type_3 var_9;
  int var_6;
  size_t var_8;
  int var_4;
  int var_5;
  int var_7;
  int var_2;
  void *__dest;
  int var_3;
  type_4 uVar7;
  void *__src;
  type_5 var_13;
  
  uVar7 = var_1();
  var_2 = (int)((type_6)uVar7 >> 0x20);
  var_3 = *(int *)(var_2 + 0xc);
  if (var_3 != 0) {
    var_5 = var_2;
    if (var_4 != 0) {
      var_5 = var_4;
    }
    var_6 = *(int *)(var_2 + 0x10);
    var_7 = var_6;
    if (*(int *)uVar7 == 1) {
      var_3 = 0;
      if (*(type_7 *)(var_2 + 0x18) != 0) {
        *(type_8 *)(var_5 + var_6) = 0;
        var_7 = var_6 + 1;
        if (*(char *)(var_2 + 0x19) == '\0') {
          var_3 = var_7 - *(int *)(var_2 + 0x10);
        }
        else {
          *(type_8 *)(var_5 + var_7) = 0;
          var_3 = (var_6 + 2) - *(int *)(var_2 + 0x10);
          var_7 = var_6 + 2;
        }
      }
    }
    else {
      var_8 = (var_6 - var_3) - 1;
      var_9 = (type_3)*(type_7 *)(var_2 + 0x18) + var_8 * 2;
      if ((int)var_9 < 0x80) {
        *(char *)(var_5 + var_3) = (char)var_9;
        var_3 = var_6 - *(int *)(var_2 + 0x10);
      }
      else {
        if ((int)var_9 < 0x4000) {
          var_13 = 1;
          var_7 = 2;
        }
        else if ((int)var_9 < 0x200000) {
          var_13 = 2;
          var_7 = 3;
        }
        else {
          var_13 = 4 - (type_3)(var_9 < 0x10000000);
          var_7 = 5 - (type_3)(var_9 < 0x10000000);
        }
        __src = (void *)(var_5 + 1 + var_3);
        __dest = (void *)(var_3 + var_7 + var_5);
        var_10(__dest,__src,var_8);
        var_11((type_9 *)(var_5 + *(int *)(var_2 + 0xc)),var_12(__src,__dest));
        var_3 = (var_6 + var_13) - *(int *)(var_2 + 0x10);
        var_7 = var_6 + var_13;
      }
    }
    if (var_4 == 0) {
      *(type_5 *)(var_2 + 0xc) = 0;
      *(type_10 *)(var_2 + 0x18) = 0;
      *(int *)(var_2 + 0x10) = var_7;
    }
  }
  return var_3;
}


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

int MASKED(void)

{
  uint uVar1;
  int iVar2;
  size_t __n;
  int extraout_ECX;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined8 uVar7;
  undefined4 local_20;
  
  uVar7 = FUN_0001af1a();
  iVar5 = (int)((ulonglong)uVar7 >> 0x20);
  iVar6 = *(int *)(iVar5 + 0xc);
  if (iVar6 != 0) {
    iVar3 = iVar5;
    if (extraout_ECX != 0) {
      iVar3 = extraout_ECX;
    }
    iVar2 = *(int *)(iVar5 + 0x10);
    iVar4 = iVar2;
    if (*(int *)uVar7 == 1) {
      iVar6 = 0;
      if (*(byte *)(iVar5 + 0x18) != 0) {
        *(undefined1 *)(iVar3 + iVar2) = 0;
        iVar4 = iVar2 + 1;
        if (*(char *)(iVar5 + 0x19) == '\0') {
          iVar6 = iVar4 - *(int *)(iVar5 + 0x10);
        }
        else {
          *(undefined1 *)(iVar3 + iVar4) = 0;
          iVar6 = (iVar2 + 2) - *(int *)(iVar5 + 0x10);
          iVar4 = iVar2 + 2;
        }
      }
    }
    else {
      __n = (iVar2 - iVar6) - 1;
      uVar1 = (uint)*(byte *)(iVar5 + 0x18) + __n * 2;
      if ((int)uVar1 < 0x80) {
        *(char *)(iVar3 + iVar6) = (char)uVar1;
        iVar6 = iVar2 - *(int *)(iVar5 + 0x10);
      }
      else {
        if ((int)uVar1 < 0x4000) {
          local_20 = 1;
          iVar4 = 2;
        }
        else if ((int)uVar1 < 0x200000) {
          local_20 = 2;
          iVar4 = 3;
        }
        else {
          local_20 = 4 - (uint)(uVar1 < 0x10000000);
          iVar4 = 5 - (uint)(uVar1 < 0x10000000);
        }
        memmove((void *)(iVar6 + iVar4 + iVar3),(void *)(iVar3 + 1 + iVar6),__n);
        FUN_0002a1b0();
        iVar6 = (iVar2 + local_20) - *(int *)(iVar5 + 0x10);
        iVar4 = iVar2 + local_20;
      }
    }
    if (extraout_ECX == 0) {
      *(undefined4 *)(iVar5 + 0xc) = 0;
      *(undefined2 *)(iVar5 + 0x18) = 0;
      *(int *)(iVar5 + 0x10) = iVar4;
    }
  }
  return iVar6;
}

