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

size_t readtokens(FILE *stream,size_t projected_n_tokens,char *delim,size_t n_delim,
                 char ***tokens_out,size_t **token_lengths)

{
  int iVar1;
  char *__dest;
  size_t sVar2;
  uint uVar3;
  size_t sVar4;
  uint uVar5;
  int in_GS_OFFSET;
  char **local_4c;
  size_t *local_44;
  token_buffer tb;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (projected_n_tokens == 0) {
    sVar4 = 0x100;
    uVar3 = 0x40;
  }
  else {
    uVar3 = projected_n_tokens + 1;
    sVar4 = uVar3 * 4;
    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {
LAB_0001dd30:
                    /* WARNING: Subroutine does not return */
      xalloc_die();
    }
  }
  local_4c = (char **)xmalloc(sVar4);
  uVar5 = 0;
  local_44 = (size_t *)xmalloc(sVar4);
  init_tokenbuffer(&tb);
  do {
    sVar4 = readtoken(stream,delim,n_delim,&tb);
    if (uVar3 <= uVar5) {
      if (local_4c == (char **)0x0) {
        if (uVar3 == 0) {
          sVar2 = 0x40;
          uVar3 = 0x10;
        }
        else {
          sVar2 = uVar3 << 2;
          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;
        }
      }
      else {
        if (0x15555554 < uVar3) goto LAB_0001dd30;
        uVar3 = uVar3 + 1 + (uVar3 >> 1);
        sVar2 = uVar3 * 4;
      }
      local_4c = (char **)xrealloc(local_4c,sVar2);
      local_44 = (size_t *)xrealloc(local_44,sVar2);
    }
    if (sVar4 == 0xffffffff) {
      local_4c[uVar5] = (char *)0x0;
      local_44[uVar5] = 0;
      free(tb.buffer);
      *tokens_out = local_4c;
      if (token_lengths == (size_t **)0x0) {
        free(local_44);
      }
      else {
        *token_lengths = local_44;
      }
      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
        return uVar5;
      }
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail_local();
    }
    sVar2 = sVar4 + 1;
    if ((int)sVar2 < 0) goto LAB_0001dd30;
    __dest = (char *)xmalloc(sVar2);
    local_44[uVar5] = sVar4;
    memcpy(__dest,tb.buffer,sVar2);
    local_4c[uVar5] = __dest;
    uVar5 = uVar5 + 1;
  } while( true );
}



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

uint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,
                 undefined4 *param_6)

{
  void *__dest;
  size_t __n;
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int in_GS_OFFSET;
  int local_4c;
  void *local_44;
  undefined1 local_28 [4];
  void *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1dcd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    iVar3 = 0x100;
    uVar2 = 0x40;
  }
  else {
    uVar2 = param_2 + 1;
    iVar3 = uVar2 * 4;
    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {
LAB_0001dd30:
                    /* WARNING: Subroutine does not return */
      FUN_0001ef50();
    }
  }
  local_4c = FUN_0001ec50(iVar3);
  uVar4 = 0;
  local_44 = (void *)FUN_0001ec50(iVar3);
  FUN_0001da80(local_28);
  do {
    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);
    if (uVar2 <= uVar4) {
      if (local_4c == 0) {
        if (uVar2 == 0) {
          iVar1 = 0x40;
          uVar2 = 0x10;
        }
        else {
          iVar1 = uVar2 << 2;
          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;
        }
      }
      else {
        if (0x15555554 < uVar2) goto LAB_0001dd30;
        uVar2 = uVar2 + 1 + (uVar2 >> 1);
        iVar1 = uVar2 * 4;
      }
      local_4c = FUN_0001ece0(local_4c,iVar1);
      local_44 = (void *)FUN_0001ece0(local_44,iVar1);
    }
    if (iVar3 == -1) {
      *(undefined4 *)(local_4c + uVar4 * 4) = 0;
      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;
      free(local_24);
      *param_5 = local_4c;
      if (param_6 == (undefined4 *)0x0) {
        free(local_44);
      }
      else {
        *param_6 = local_44;
      }
      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
        return uVar4;
      }
                    /* WARNING: Subroutine does not return */
      FUN_00022d80();
    }
    __n = iVar3 + 1;
    if ((int)__n < 0) goto LAB_0001dd30;
    __dest = (void *)FUN_0001ec50(__n);
    *(int *)((int)local_44 + uVar4 * 4) = iVar3;
    memcpy(__dest,local_24,__n);
    *(void **)(local_4c + uVar4 * 4) = __dest;
    uVar4 = uVar4 + 1;
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012890
ADD EBX,0xf327
SUB ESP,0x3c
MOV EDI,dword ptr [ESP + 0x58]
MOV EAX,dword ptr [ESP + 0x50]
MOV ESI,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x10],EDI
MOV EDI,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x1c],EDI
MOV dword ptr [ESP + 0x18],ESI
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x2c],EDI
XOR EDI,EDI
TEST EAX,EAX
JZ 0x0001dd38
LEA EBP,[EAX + 0x1]
MOV EAX,EBP
MOV ESI,EBP
SHR EAX,0x1e
SETNZ AL
SHL ESI,0x2
MOVZX EAX,AL
JS 0x0001dd30
TEST EAX,EAX
JZ 0x0001dd42
CALL 0x0001ef50
MOV ESI,0x100
MOV EBP,0x40
SUB ESP,0xc
PUSH ESI
CALL 0x0001ec50
MOV dword ptr [ESP],ESI
XOR ESI,ESI
MOV dword ptr [ESP + 0x10],EAX
CALL 0x0001ec50
MOV dword ptr [ESP + 0x18],EAX
POP EAX
LEA EAX,[ESP + 0x30]
MOV dword ptr [ESP + 0x20],EAX
PUSH EAX
CALL 0x0001da80
ADD ESP,0x10
JMP 0x0001ddc5
CMP EDI,-0x1
JZ 0x0001de3e
MOV ECX,EDI
ADD ECX,0x1
JS 0x0001dd30
SUB ESP,0xc
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
CALL 0x0001ec50
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0xc
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + ESI*0x4],EDI
PUSH ECX
PUSH dword ptr [ESP + 0x30]
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
CALL 0x000120f0
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV dword ptr [EAX + ESI*0x4],EDX
ADD ESI,0x1
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x18]
CALL 0x0001daa0
ADD ESP,0x10
MOV EDI,EAX
CMP ESI,EBP
JC 0x0001dd78
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JZ 0x0001de98
CMP EBP,0x15555554
JA 0x0001dd30
MOV EAX,EBP
SHR EAX,0x1
LEA EBP,[EBP + EAX*0x1 + 0x1]
LEA EDX,[EBP*0x4 + 0x0]
SUB ESP,0x8
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
PUSH dword ptr [ESP + 0xc]
CALL 0x0001ece0
MOV dword ptr [ESP + 0x10],EAX
POP EAX
POP EDX
MOV EDX,dword ptr [ESP + 0xc]
PUSH EDX
PUSH dword ptr [ESP + 0x14]
CALL 0x0001ece0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
CMP EDI,-0x1
JNZ 0x0001dd81
MOV EDI,dword ptr [ESP]
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV dword ptr [EDI + ESI*0x4],0x0
MOV dword ptr [EAX + ESI*0x4],0x0
PUSH dword ptr [ESP + 0x34]
CALL 0x000120d0
MOV EAX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EDI
TEST ECX,ECX
JZ 0x0001decf
MOV EAX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],EDI
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001dee0
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBP,EBP
JZ 0x0001dec0
MOV EAX,EBP
MOV EDX,EBP
SHR EAX,0x1e
SETNZ AL
SHL EDX,0x2
MOVZX EAX,AL
JS 0x0001dd30
TEST EAX,EAX
JZ 0x0001de09
JMP 0x0001dd30
MOV EDX,0x40
MOV EBP,0x10
JMP 0x0001de09
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x000120d0
ADD ESP,0x10
JMP 0x0001de7a
CALL 0x00022d80
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}\n\n" comment (function_definition "uint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" type_identifier (function_declarator "FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "void *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1dcd9;" (assignment_expression "uStack_14 = 0x1dcd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }" { (expression_statement "iVar3 = 0x100;" (assignment_expression "iVar3 = 0x100" identifier = number_literal) ;) (expression_statement "uVar2 = 0x40;" (assignment_expression "uVar2 = 0x40" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }" else (compound_statement "{\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }\n  }" { (expression_statement "uVar2 = param_2 + 1;" (assignment_expression "uVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = uVar2 * 4;" (assignment_expression "iVar3 = uVar2 * 4" identifier = (binary_expression "uVar2 * 4" identifier * number_literal)) ;) (if_statement "if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }" if (parenthesized_expression "((iVar3 < 0) || (uVar2 >> 0x1e != 0))" ( (binary_expression "(iVar3 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar2 >> 0x1e != 0)" ( (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (compound_statement "{\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();\n    }" { (labeled_statement "LAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ef50();" statement_identifier : comment (expression_statement "FUN_0001ef50();" (call_expression "FUN_0001ef50()" identifier (argument_list "()" ( ))) ;)) })) }))) (expression_statement "local_4c = FUN_0001ec50(iVar3);" (assignment_expression "local_4c = FUN_0001ec50(iVar3)" identifier = (call_expression "FUN_0001ec50(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_44 = (void *)FUN_0001ec50(iVar3);" (assignment_expression "local_44 = (void *)FUN_0001ec50(iVar3)" identifier = (cast_expression "(void *)FUN_0001ec50(iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ec50(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "FUN_0001da80(local_28);" (call_expression "FUN_0001da80(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (do_statement "do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );" do (compound_statement "{\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  }" { (expression_statement "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);" (assignment_expression "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28)" identifier = (call_expression "FUN_0001daa0(param_1,param_3,param_4,local_28)" identifier (argument_list "(param_1,param_3,param_4,local_28)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" { (if_statement "if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" if (parenthesized_expression "(local_4c == 0)" ( (binary_expression "local_4c == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }" { (if_statement "if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }" { (expression_statement "iVar1 = 0x40;" (assignment_expression "iVar1 = 0x40" identifier = number_literal) ;) (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" else (compound_statement "{\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" { (expression_statement "iVar1 = uVar2 << 2;" (assignment_expression "iVar1 = uVar2 << 2" identifier = (binary_expression "uVar2 << 2" identifier << number_literal)) ;) (if_statement "if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;" if (parenthesized_expression "((iVar1 < 0) || (uVar2 >> 0x1e != 0))" ( (binary_expression "(iVar1 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar2 >> 0x1e != 0)" ( (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) }))) }) (else_clause "else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" else (compound_statement "{\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" { (if_statement "if (0x15555554 < uVar2) goto LAB_0001dd30;" if (parenthesized_expression "(0x15555554 < uVar2)" ( (binary_expression "0x15555554 < uVar2" number_literal < identifier) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar2 + 1 + (uVar2 >> 1);" (assignment_expression "uVar2 = uVar2 + 1 + (uVar2 >> 1)" identifier = (binary_expression "uVar2 + 1 + (uVar2 >> 1)" (binary_expression "uVar2 + 1" identifier + number_literal) + (parenthesized_expression "(uVar2 >> 1)" ( (binary_expression "uVar2 >> 1" identifier >> number_literal) )))) ;) (expression_statement "iVar1 = uVar2 * 4;" (assignment_expression "iVar1 = uVar2 * 4" identifier = (binary_expression "uVar2 * 4" identifier * number_literal)) ;) }))) (expression_statement "local_4c = FUN_0001ece0(local_4c,iVar1);" (assignment_expression "local_4c = FUN_0001ece0(local_4c,iVar1)" identifier = (call_expression "FUN_0001ece0(local_4c,iVar1)" identifier (argument_list "(local_4c,iVar1)" ( identifier , identifier )))) ;) (expression_statement "local_44 = (void *)FUN_0001ece0(local_44,iVar1);" (assignment_expression "local_44 = (void *)FUN_0001ece0(local_44,iVar1)" identifier = (cast_expression "(void *)FUN_0001ece0(local_44,iVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ece0(local_44,iVar1)" identifier (argument_list "(local_44,iVar1)" ( identifier , identifier ))))) ;) })) (if_statement "if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00022d80();\n    }" { (expression_statement "*(undefined4 *)(local_4c + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(local_4c + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(local_4c + uVar4 * 4)" * (cast_expression "(undefined4 *)(local_4c + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_4c + uVar4 * 4)" ( (binary_expression "local_4c + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)((int)local_44 + uVar4 * 4)" * (cast_expression "(undefined4 *)((int)local_44 + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_44 + uVar4 * 4)" ( (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "*param_5 = local_4c;" (assignment_expression "*param_5 = local_4c" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }" if (parenthesized_expression "(param_6 == (undefined4 *)0x0)" ( (binary_expression "param_6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(local_44);\n      }" { (expression_statement "free(local_44);" (call_expression "free(local_44)" identifier (argument_list "(local_44)" ( identifier ))) ;) }) (else_clause "else {\n        *param_6 = local_44;\n      }" else (compound_statement "{\n        *param_6 = local_44;\n      }" { (expression_statement "*param_6 = local_44;" (assignment_expression "*param_6 = local_44" (pointer_expression "*param_6" * identifier) = identifier) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return uVar4;\n      }" { (return_statement "return uVar4;" return identifier ;) })) comment (expression_statement "FUN_00022d80();" (call_expression "FUN_00022d80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__n = iVar3 + 1;" (assignment_expression "__n = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((int)__n < 0) goto LAB_0001dd30;" if (parenthesized_expression "((int)__n < 0)" ( (binary_expression "(int)__n < 0" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "__dest = (void *)FUN_0001ec50(__n);" (assignment_expression "__dest = (void *)FUN_0001ec50(__n)" identifier = (cast_expression "(void *)FUN_0001ec50(__n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ec50(__n)" identifier (argument_list "(__n)" ( identifier ))))) ;) (expression_statement "*(int *)((int)local_44 + uVar4 * 4) = iVar3;" (assignment_expression "*(int *)((int)local_44 + uVar4 * 4) = iVar3" (pointer_expression "*(int *)((int)local_44 + uVar4 * 4)" * (cast_expression "(int *)((int)local_44 + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_44 + uVar4 * 4)" ( (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "memcpy(__dest,local_24,__n);" (call_expression "memcpy(__dest,local_24,__n)" identifier (argument_list "(__dest,local_24,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(void **)(local_4c + uVar4 * 4) = __dest;" (assignment_expression "*(void **)(local_4c + uVar4 * 4) = __dest" (pointer_expression "*(void **)(local_4c + uVar4 * 4)" * (cast_expression "(void **)(local_4c + uVar4 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_4c + uVar4 * 4)" ( (binary_expression "local_4c + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t readtokens(FILE *stream,size_t projected_n_tokens,char *delim,size_t n_delim,\n                 char ***tokens_out,size_t **token_lengths)\n\n{\n  int iVar1;\n  char *__dest;\n  size_t sVar2;\n  uint uVar3;\n  size_t sVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  char **local_4c;\n  size_t *local_44;\n  token_buffer tb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (projected_n_tokens == 0) {\n    sVar4 = 0x100;\n    uVar3 = 0x40;\n  }\n  else {\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  local_4c = (char **)xmalloc(sVar4);\n  uVar5 = 0;\n  local_44 = (size_t *)xmalloc(sVar4);\n  init_tokenbuffer(&tb);\n  do {\n    sVar4 = readtoken(stream,delim,n_delim,&tb);\n    if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }\n    if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    sVar2 = sVar4 + 1;\n    if ((int)sVar2 < 0) goto LAB_0001dd30;\n    __dest = (char *)xmalloc(sVar2);\n    local_44[uVar5] = sVar4;\n    memcpy(__dest,tb.buffer,sVar2);\n    local_4c[uVar5] = __dest;\n    uVar5 = uVar5 + 1;\n  } while( true );\n}\n\n" comment (function_definition "size_t readtokens(FILE *stream,size_t projected_n_tokens,char *delim,size_t n_delim,\n                 char ***tokens_out,size_t **token_lengths)\n\n{\n  int iVar1;\n  char *__dest;\n  size_t sVar2;\n  uint uVar3;\n  size_t sVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  char **local_4c;\n  size_t *local_44;\n  token_buffer tb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (projected_n_tokens == 0) {\n    sVar4 = 0x100;\n    uVar3 = 0x40;\n  }\n  else {\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  local_4c = (char **)xmalloc(sVar4);\n  uVar5 = 0;\n  local_44 = (size_t *)xmalloc(sVar4);\n  init_tokenbuffer(&tb);\n  do {\n    sVar4 = readtoken(stream,delim,n_delim,&tb);\n    if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }\n    if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    sVar2 = sVar4 + 1;\n    if ((int)sVar2 < 0) goto LAB_0001dd30;\n    __dest = (char *)xmalloc(sVar2);\n    local_44[uVar5] = sVar4;\n    memcpy(__dest,tb.buffer,sVar2);\n    local_4c[uVar5] = __dest;\n    uVar5 = uVar5 + 1;\n  } while( true );\n}" primitive_type (function_declarator "readtokens(FILE *stream,size_t projected_n_tokens,char *delim,size_t n_delim,\n                 char ***tokens_out,size_t **token_lengths)" identifier (parameter_list "(FILE *stream,size_t projected_n_tokens,char *delim,size_t n_delim,\n                 char ***tokens_out,size_t **token_lengths)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "size_t projected_n_tokens" primitive_type identifier) , (parameter_declaration "char *delim" primitive_type (pointer_declarator "*delim" * identifier)) , (parameter_declaration "size_t n_delim" primitive_type identifier) , (parameter_declaration "char ***tokens_out" primitive_type (pointer_declarator "***tokens_out" * (pointer_declarator "**tokens_out" * (pointer_declarator "*tokens_out" * identifier)))) , (parameter_declaration "size_t **token_lengths" primitive_type (pointer_declarator "**token_lengths" * (pointer_declarator "*token_lengths" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  char *__dest;\n  size_t sVar2;\n  uint uVar3;\n  size_t sVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  char **local_4c;\n  size_t *local_44;\n  token_buffer tb;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (projected_n_tokens == 0) {\n    sVar4 = 0x100;\n    uVar3 = 0x40;\n  }\n  else {\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  local_4c = (char **)xmalloc(sVar4);\n  uVar5 = 0;\n  local_44 = (size_t *)xmalloc(sVar4);\n  init_tokenbuffer(&tb);\n  do {\n    sVar4 = readtoken(stream,delim,n_delim,&tb);\n    if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }\n    if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    sVar2 = sVar4 + 1;\n    if ((int)sVar2 < 0) goto LAB_0001dd30;\n    __dest = (char *)xmalloc(sVar2);\n    local_44[uVar5] = sVar4;\n    memcpy(__dest,tb.buffer,sVar2);\n    local_4c[uVar5] = __dest;\n    uVar5 = uVar5 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char **local_4c;" primitive_type (pointer_declarator "**local_4c" * (pointer_declarator "*local_4c" * identifier)) ;) (declaration "size_t *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "token_buffer tb;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (projected_n_tokens == 0) {\n    sVar4 = 0x100;\n    uVar3 = 0x40;\n  }\n  else {\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }" if (parenthesized_expression "(projected_n_tokens == 0)" ( (binary_expression "projected_n_tokens == 0" identifier == number_literal) )) (compound_statement "{\n    sVar4 = 0x100;\n    uVar3 = 0x40;\n  }" { (expression_statement "sVar4 = 0x100;" (assignment_expression "sVar4 = 0x100" identifier = number_literal) ;) (expression_statement "uVar3 = 0x40;" (assignment_expression "uVar3 = 0x40" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }" else (compound_statement "{\n    uVar3 = projected_n_tokens + 1;\n    sVar4 = uVar3 * 4;\n    if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }" { (expression_statement "uVar3 = projected_n_tokens + 1;" (assignment_expression "uVar3 = projected_n_tokens + 1" identifier = (binary_expression "projected_n_tokens + 1" identifier + number_literal)) ;) (expression_statement "sVar4 = uVar3 * 4;" (assignment_expression "sVar4 = uVar3 * 4" identifier = (binary_expression "uVar3 * 4" identifier * number_literal)) ;) (if_statement "if (((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" if (parenthesized_expression "(((int)sVar4 < 0) || (uVar3 >> 0x1e != 0))" ( (binary_expression "((int)sVar4 < 0) || (uVar3 >> 0x1e != 0)" (parenthesized_expression "((int)sVar4 < 0)" ( (binary_expression "(int)sVar4 < 0" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar3 >> 0x1e != 0)" ( (binary_expression "uVar3 >> 0x1e != 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (compound_statement "{\nLAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" { (labeled_statement "LAB_0001dd30:\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();" statement_identifier : comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;)) })) }))) (expression_statement "local_4c = (char **)xmalloc(sVar4);" (assignment_expression "local_4c = (char **)xmalloc(sVar4)" identifier = (cast_expression "(char **)xmalloc(sVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(sVar4)" identifier (argument_list "(sVar4)" ( identifier ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "local_44 = (size_t *)xmalloc(sVar4);" (assignment_expression "local_44 = (size_t *)xmalloc(sVar4)" identifier = (cast_expression "(size_t *)xmalloc(sVar4)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4)" identifier (argument_list "(sVar4)" ( identifier ))))) ;) (expression_statement "init_tokenbuffer(&tb);" (call_expression "init_tokenbuffer(&tb)" identifier (argument_list "(&tb)" ( (pointer_expression "&tb" & identifier) ))) ;) (do_statement "do {\n    sVar4 = readtoken(stream,delim,n_delim,&tb);\n    if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }\n    if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    sVar2 = sVar4 + 1;\n    if ((int)sVar2 < 0) goto LAB_0001dd30;\n    __dest = (char *)xmalloc(sVar2);\n    local_44[uVar5] = sVar4;\n    memcpy(__dest,tb.buffer,sVar2);\n    local_4c[uVar5] = __dest;\n    uVar5 = uVar5 + 1;\n  } while( true );" do (compound_statement "{\n    sVar4 = readtoken(stream,delim,n_delim,&tb);\n    if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }\n    if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    sVar2 = sVar4 + 1;\n    if ((int)sVar2 < 0) goto LAB_0001dd30;\n    __dest = (char *)xmalloc(sVar2);\n    local_44[uVar5] = sVar4;\n    memcpy(__dest,tb.buffer,sVar2);\n    local_4c[uVar5] = __dest;\n    uVar5 = uVar5 + 1;\n  }" { (expression_statement "sVar4 = readtoken(stream,delim,n_delim,&tb);" (assignment_expression "sVar4 = readtoken(stream,delim,n_delim,&tb)" identifier = (call_expression "readtoken(stream,delim,n_delim,&tb)" identifier (argument_list "(stream,delim,n_delim,&tb)" ( identifier , identifier , identifier , (pointer_expression "&tb" & identifier) )))) ;) (if_statement "if (uVar3 <= uVar5) {\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }" if (parenthesized_expression "(uVar3 <= uVar5)" ( (binary_expression "uVar3 <= uVar5" identifier <= identifier) )) (compound_statement "{\n      if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }\n      local_4c = (char **)xrealloc(local_4c,sVar2);\n      local_44 = (size_t *)xrealloc(local_44,sVar2);\n    }" { (if_statement "if (local_4c == (char **)0x0) {\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }" if (parenthesized_expression "(local_4c == (char **)0x0)" ( (binary_expression "local_4c == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }" { (if_statement "if (uVar3 == 0) {\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }\n        else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          sVar2 = 0x40;\n          uVar3 = 0x10;\n        }" { (expression_statement "sVar2 = 0x40;" (assignment_expression "sVar2 = 0x40" identifier = number_literal) ;) (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" else (compound_statement "{\n          sVar2 = uVar3 << 2;\n          if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" { (expression_statement "sVar2 = uVar3 << 2;" (assignment_expression "sVar2 = uVar3 << 2" identifier = (binary_expression "uVar3 << 2" identifier << number_literal)) ;) (if_statement "if (((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0001dd30;" if (parenthesized_expression "(((int)sVar2 < 0) || (uVar3 >> 0x1e != 0))" ( (binary_expression "((int)sVar2 < 0) || (uVar3 >> 0x1e != 0)" (parenthesized_expression "((int)sVar2 < 0)" ( (binary_expression "(int)sVar2 < 0" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar3 >> 0x1e != 0)" ( (binary_expression "uVar3 >> 0x1e != 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) }))) }) (else_clause "else {\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }" else (compound_statement "{\n        if (0x15555554 < uVar3) goto LAB_0001dd30;\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        sVar2 = uVar3 * 4;\n      }" { (if_statement "if (0x15555554 < uVar3) goto LAB_0001dd30;" if (parenthesized_expression "(0x15555554 < uVar3)" ( (binary_expression "0x15555554 < uVar3" number_literal < identifier) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" identifier = (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" identifier + number_literal) + (parenthesized_expression "(uVar3 >> 1)" ( (binary_expression "uVar3 >> 1" identifier >> number_literal) )))) ;) (expression_statement "sVar2 = uVar3 * 4;" (assignment_expression "sVar2 = uVar3 * 4" identifier = (binary_expression "uVar3 * 4" identifier * number_literal)) ;) }))) (expression_statement "local_4c = (char **)xrealloc(local_4c,sVar2);" (assignment_expression "local_4c = (char **)xrealloc(local_4c,sVar2)" identifier = (cast_expression "(char **)xrealloc(local_4c,sVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(local_4c,sVar2)" identifier (argument_list "(local_4c,sVar2)" ( identifier , identifier ))))) ;) (expression_statement "local_44 = (size_t *)xrealloc(local_44,sVar2);" (assignment_expression "local_44 = (size_t *)xrealloc(local_44,sVar2)" identifier = (cast_expression "(size_t *)xrealloc(local_44,sVar2)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(local_44,sVar2)" identifier (argument_list "(local_44,sVar2)" ( identifier , identifier ))))) ;) })) (if_statement "if (sVar4 == 0xffffffff) {\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" if (parenthesized_expression "(sVar4 == 0xffffffff)" ( (binary_expression "sVar4 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      local_4c[uVar5] = (char *)0x0;\n      local_44[uVar5] = 0;\n      free(tb.buffer);\n      *tokens_out = local_4c;\n      if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" { (expression_statement "local_4c[uVar5] = (char *)0x0;" (assignment_expression "local_4c[uVar5] = (char *)0x0" (subscript_expression "local_4c[uVar5]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_44[uVar5] = 0;" (assignment_expression "local_44[uVar5] = 0" (subscript_expression "local_44[uVar5]" identifier [ identifier ]) = number_literal) ;) (expression_statement "free(tb.buffer);" (call_expression "free(tb.buffer)" identifier (argument_list "(tb.buffer)" ( (field_expression "tb.buffer" identifier . field_identifier) ))) ;) (expression_statement "*tokens_out = local_4c;" (assignment_expression "*tokens_out = local_4c" (pointer_expression "*tokens_out" * identifier) = identifier) ;) (if_statement "if (token_lengths == (size_t **)0x0) {\n        free(local_44);\n      }\n      else {\n        *token_lengths = local_44;\n      }" if (parenthesized_expression "(token_lengths == (size_t **)0x0)" ( (binary_expression "token_lengths == (size_t **)0x0" identifier == (cast_expression "(size_t **)0x0" ( (type_descriptor "size_t **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        free(local_44);\n      }" { (expression_statement "free(local_44);" (call_expression "free(local_44)" identifier (argument_list "(local_44)" ( identifier ))) ;) }) (else_clause "else {\n        *token_lengths = local_44;\n      }" else (compound_statement "{\n        *token_lengths = local_44;\n      }" { (expression_statement "*token_lengths = local_44;" (assignment_expression "*token_lengths = local_44" (pointer_expression "*token_lengths" * identifier) = identifier) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar5;\n      }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return uVar5;\n      }" { (return_statement "return uVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "sVar2 = sVar4 + 1;" (assignment_expression "sVar2 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((int)sVar2 < 0) goto LAB_0001dd30;" if (parenthesized_expression "((int)sVar2 < 0)" ( (binary_expression "(int)sVar2 < 0" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "__dest = (char *)xmalloc(sVar2);" (assignment_expression "__dest = (char *)xmalloc(sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2)" identifier (argument_list "(sVar2)" ( identifier ))))) ;) (expression_statement "local_44[uVar5] = sVar4;" (assignment_expression "local_44[uVar5] = sVar4" (subscript_expression "local_44[uVar5]" identifier [ identifier ]) = identifier) ;) (expression_statement "memcpy(__dest,tb.buffer,sVar2);" (call_expression "memcpy(__dest,tb.buffer,sVar2)" identifier (argument_list "(__dest,tb.buffer,sVar2)" ( identifier , (field_expression "tb.buffer" identifier . field_identifier) , identifier ))) ;) (expression_statement "local_4c[uVar5] = __dest;" (assignment_expression "local_4c[uVar5] = __dest" (subscript_expression "local_4c[uVar5]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}\n\n" (function_definition "uint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" type_identifier (function_declarator "FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "void *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1dcd9;" (assignment_expression "uStack_14 = 0x1dcd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }" { (expression_statement "iVar3 = 0x100;" (assignment_expression "iVar3 = 0x100" identifier = number_literal) ;) (expression_statement "uVar2 = 0x40;" (assignment_expression "uVar2 = 0x40" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" else (compound_statement "{\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" { (expression_statement "uVar2 = param_2 + 1;" (assignment_expression "uVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = uVar2 * 4;" (assignment_expression "iVar3 = uVar2 * 4" identifier = (binary_expression "uVar2 * 4" identifier * number_literal)) ;) (if_statement "if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }" if (parenthesized_expression "((iVar3 < 0) || (uVar2 >> 0x1e != 0))" ( (binary_expression "(iVar3 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar2 >> 0x1e != 0)" ( (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (compound_statement "{\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }" { (labeled_statement "LAB_0001dd30:\n                    \n      FUN_0001ef50();" statement_identifier : (expression_statement "FUN_0001ef50();" (call_expression "FUN_0001ef50()" identifier (argument_list "()" ( ))) ;)) })) }))) (expression_statement "local_4c = FUN_0001ec50(iVar3);" (assignment_expression "local_4c = FUN_0001ec50(iVar3)" identifier = (call_expression "FUN_0001ec50(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_44 = (void *)FUN_0001ec50(iVar3);" (assignment_expression "local_44 = (void *)FUN_0001ec50(iVar3)" identifier = (cast_expression "(void *)FUN_0001ec50(iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ec50(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "FUN_0001da80(local_28);" (call_expression "FUN_0001da80(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (do_statement "do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );" do (compound_statement "{\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  }" { (expression_statement "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);" (assignment_expression "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28)" identifier = (call_expression "FUN_0001daa0(param_1,param_3,param_4,local_28)" identifier (argument_list "(param_1,param_3,param_4,local_28)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" { (if_statement "if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" if (parenthesized_expression "(local_4c == 0)" ( (binary_expression "local_4c == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }" { (if_statement "if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }" { (expression_statement "iVar1 = 0x40;" (assignment_expression "iVar1 = 0x40" identifier = number_literal) ;) (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" else (compound_statement "{\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" { (expression_statement "iVar1 = uVar2 << 2;" (assignment_expression "iVar1 = uVar2 << 2" identifier = (binary_expression "uVar2 << 2" identifier << number_literal)) ;) (if_statement "if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;" if (parenthesized_expression "((iVar1 < 0) || (uVar2 >> 0x1e != 0))" ( (binary_expression "(iVar1 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar2 >> 0x1e != 0)" ( (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) }))) }) (else_clause "else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" else (compound_statement "{\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" { (if_statement "if (0x15555554 < uVar2) goto LAB_0001dd30;" if (parenthesized_expression "(0x15555554 < uVar2)" ( (binary_expression "0x15555554 < uVar2" number_literal < identifier) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar2 + 1 + (uVar2 >> 1);" (assignment_expression "uVar2 = uVar2 + 1 + (uVar2 >> 1)" identifier = (binary_expression "uVar2 + 1 + (uVar2 >> 1)" (binary_expression "uVar2 + 1" identifier + number_literal) + (parenthesized_expression "(uVar2 >> 1)" ( (binary_expression "uVar2 >> 1" identifier >> number_literal) )))) ;) (expression_statement "iVar1 = uVar2 * 4;" (assignment_expression "iVar1 = uVar2 * 4" identifier = (binary_expression "uVar2 * 4" identifier * number_literal)) ;) }))) (expression_statement "local_4c = FUN_0001ece0(local_4c,iVar1);" (assignment_expression "local_4c = FUN_0001ece0(local_4c,iVar1)" identifier = (call_expression "FUN_0001ece0(local_4c,iVar1)" identifier (argument_list "(local_4c,iVar1)" ( identifier , identifier )))) ;) (expression_statement "local_44 = (void *)FUN_0001ece0(local_44,iVar1);" (assignment_expression "local_44 = (void *)FUN_0001ece0(local_44,iVar1)" identifier = (cast_expression "(void *)FUN_0001ece0(local_44,iVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ece0(local_44,iVar1)" identifier (argument_list "(local_44,iVar1)" ( identifier , identifier ))))) ;) })) (if_statement "if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }" { (expression_statement "*(undefined4 *)(local_4c + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(local_4c + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(local_4c + uVar4 * 4)" * (cast_expression "(undefined4 *)(local_4c + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_4c + uVar4 * 4)" ( (binary_expression "local_4c + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)((int)local_44 + uVar4 * 4)" * (cast_expression "(undefined4 *)((int)local_44 + uVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_44 + uVar4 * 4)" ( (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "free(local_24);" (call_expression "free(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "*param_5 = local_4c;" (assignment_expression "*param_5 = local_4c" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }" if (parenthesized_expression "(param_6 == (undefined4 *)0x0)" ( (binary_expression "param_6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(local_44);\n      }" { (expression_statement "free(local_44);" (call_expression "free(local_44)" identifier (argument_list "(local_44)" ( identifier ))) ;) }) (else_clause "else {\n        *param_6 = local_44;\n      }" else (compound_statement "{\n        *param_6 = local_44;\n      }" { (expression_statement "*param_6 = local_44;" (assignment_expression "*param_6 = local_44" (pointer_expression "*param_6" * identifier) = identifier) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return uVar4;\n      }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "FUN_00022d80();" (call_expression "FUN_00022d80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__n = iVar3 + 1;" (assignment_expression "__n = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((int)__n < 0) goto LAB_0001dd30;" if (parenthesized_expression "((int)__n < 0)" ( (binary_expression "(int)__n < 0" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0001dd30;" goto statement_identifier ;)) (expression_statement "__dest = (void *)FUN_0001ec50(__n);" (assignment_expression "__dest = (void *)FUN_0001ec50(__n)" identifier = (cast_expression "(void *)FUN_0001ec50(__n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ec50(__n)" identifier (argument_list "(__n)" ( identifier ))))) ;) (expression_statement "*(int *)((int)local_44 + uVar4 * 4) = iVar3;" (assignment_expression "*(int *)((int)local_44 + uVar4 * 4) = iVar3" (pointer_expression "*(int *)((int)local_44 + uVar4 * 4)" * (cast_expression "(int *)((int)local_44 + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_44 + uVar4 * 4)" ( (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "memcpy(__dest,local_24,__n);" (call_expression "memcpy(__dest,local_24,__n)" identifier (argument_list "(__dest,local_24,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(void **)(local_4c + uVar4 * 4) = __dest;" (assignment_expression "*(void **)(local_4c + uVar4 * 4) = __dest" (pointer_expression "*(void **)(local_4c + uVar4 * 4)" * (cast_expression "(void **)(local_4c + uVar4 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_4c + uVar4 * 4)" ( (binary_expression "local_4c + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression 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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) != LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression 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 IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) != LIT) ))) )) (goto_statement goto statement_identifier ;)) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "uint FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" (type_identifier "uint") (function_declarator "FUN_0001dcd0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" (identifier "FUN_0001dcd0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,\n                 undefined4 *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_4c;\n  void *local_44;\n  undefined1 local_28 [4];\n  void *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1dcd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }\n  local_4c = FUN_0001ec50(iVar3);\n  uVar4 = 0;\n  local_44 = (void *)FUN_0001ec50(iVar3);\n  FUN_0001da80(local_28);\n  do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_4c;" (primitive_type "int") (identifier "local_4c") (; ";")) (declaration "void *local_44;" (primitive_type "void") (pointer_declarator "*local_44" (* "*") (identifier "local_44")) (; ";")) (declaration "undefined1 local_28 [4];" (type_identifier "undefined1") (array_declarator "local_28 [4]" (identifier "local_28") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "void *local_24;" (primitive_type "void") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1dcd9;" (assignment_expression "uStack_14 = 0x1dcd9" (identifier "uStack_14") (= "=") (number_literal "0x1dcd9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }\n  else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0x100;\n    uVar2 = 0x40;\n  }" ({ "{") (expression_statement "iVar3 = 0x100;" (assignment_expression "iVar3 = 0x100" (identifier "iVar3") (= "=") (number_literal "0x100")) (; ";")) (expression_statement "uVar2 = 0x40;" (assignment_expression "uVar2 = 0x40" (identifier "uVar2") (= "=") (number_literal "0x40")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = param_2 + 1;\n    iVar3 = uVar2 * 4;\n    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }\n  }" ({ "{") (expression_statement "uVar2 = param_2 + 1;" (assignment_expression "uVar2 = param_2 + 1" (identifier "uVar2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = uVar2 * 4;" (assignment_expression "iVar3 = uVar2 * 4" (identifier "iVar3") (= "=") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) (; ";")) (if_statement "if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }" (if "if") (parenthesized_expression "((iVar3 < 0) || (uVar2 >> 0x1e != 0))" (( "(") (binary_expression "(iVar3 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar2 >> 0x1e != 0)" (( "(") (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" (identifier "uVar2") (>> ">>") (number_literal "0x1e")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_0001dd30:\n                    \n      FUN_0001ef50();\n    }" ({ "{") (labeled_statement "LAB_0001dd30:\n                    \n      FUN_0001ef50();" (statement_identifier "LAB_0001dd30") (: ":") (expression_statement "FUN_0001ef50();" (call_expression "FUN_0001ef50()" (identifier "FUN_0001ef50") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")))) (expression_statement "local_4c = FUN_0001ec50(iVar3);" (assignment_expression "local_4c = FUN_0001ec50(iVar3)" (identifier "local_4c") (= "=") (call_expression "FUN_0001ec50(iVar3)" (identifier "FUN_0001ec50") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = (void *)FUN_0001ec50(iVar3);" (assignment_expression "local_44 = (void *)FUN_0001ec50(iVar3)" (identifier "local_44") (= "=") (cast_expression "(void *)FUN_0001ec50(iVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ec50(iVar3)" (identifier "FUN_0001ec50") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))))) (; ";")) (expression_statement "FUN_0001da80(local_28);" (call_expression "FUN_0001da80(local_28)" (identifier "FUN_0001da80") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (do_statement "do {\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);\n    if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }\n    if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }\n    __n = iVar3 + 1;\n    if ((int)__n < 0) goto LAB_0001dd30;\n    __dest = (void *)FUN_0001ec50(__n);\n    *(int *)((int)local_44 + uVar4 * 4) = iVar3;\n    memcpy(__dest,local_24,__n);\n    *(void **)(local_4c + uVar4 * 4) = __dest;\n    uVar4 = uVar4 + 1;\n  }" ({ "{") (expression_statement "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);" (assignment_expression "iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28)" (identifier "iVar3") (= "=") (call_expression "FUN_0001daa0(param_1,param_3,param_4,local_28)" (identifier "FUN_0001daa0") (argument_list "(param_1,param_3,param_4,local_28)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_28") () ")")))) (; ";")) (if_statement "if (uVar2 <= uVar4) {\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" (if "if") (parenthesized_expression "(uVar2 <= uVar4)" (( "(") (binary_expression "uVar2 <= uVar4" (identifier "uVar2") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n      if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }\n      local_4c = FUN_0001ece0(local_4c,iVar1);\n      local_44 = (void *)FUN_0001ece0(local_44,iVar1);\n    }" ({ "{") (if_statement "if (local_4c == 0) {\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }\n      else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" (if "if") (parenthesized_expression "(local_4c == 0)" (( "(") (binary_expression "local_4c == 0" (identifier "local_4c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }\n      }" ({ "{") (if_statement "if (uVar2 == 0) {\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }\n        else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar1 = 0x40;\n          uVar2 = 0x10;\n        }" ({ "{") (expression_statement "iVar1 = 0x40;" (assignment_expression "iVar1 = 0x40" (identifier "iVar1") (= "=") (number_literal "0x40")) (; ";")) (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" (identifier "uVar2") (= "=") (number_literal "0x10")) (; ";")) (} "}")) (else_clause "else {\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" (else "else") (compound_statement "{\n          iVar1 = uVar2 << 2;\n          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;\n        }" ({ "{") (expression_statement "iVar1 = uVar2 << 2;" (assignment_expression "iVar1 = uVar2 << 2" (identifier "iVar1") (= "=") (binary_expression "uVar2 << 2" (identifier "uVar2") (<< "<<") (number_literal "2"))) (; ";")) (if_statement "if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;" (if "if") (parenthesized_expression "((iVar1 < 0) || (uVar2 >> 0x1e != 0))" (( "(") (binary_expression "(iVar1 < 0) || (uVar2 >> 0x1e != 0)" (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar2 >> 0x1e != 0)" (( "(") (binary_expression "uVar2 >> 0x1e != 0" (binary_expression "uVar2 >> 0x1e" (identifier "uVar2") (>> ">>") (number_literal "0x1e")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0001dd30;" (goto "goto") (statement_identifier "LAB_0001dd30") (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" (else "else") (compound_statement "{\n        if (0x15555554 < uVar2) goto LAB_0001dd30;\n        uVar2 = uVar2 + 1 + (uVar2 >> 1);\n        iVar1 = uVar2 * 4;\n      }" ({ "{") (if_statement "if (0x15555554 < uVar2) goto LAB_0001dd30;" (if "if") (parenthesized_expression "(0x15555554 < uVar2)" (( "(") (binary_expression "0x15555554 < uVar2" (number_literal "0x15555554") (< "<") (identifier "uVar2")) () ")")) (goto_statement "goto LAB_0001dd30;" (goto "goto") (statement_identifier "LAB_0001dd30") (; ";"))) (expression_statement "uVar2 = uVar2 + 1 + (uVar2 >> 1);" (assignment_expression "uVar2 = uVar2 + 1 + (uVar2 >> 1)" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1 + (uVar2 >> 1)" (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "(uVar2 >> 1)" (( "(") (binary_expression "uVar2 >> 1" (identifier "uVar2") (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar1 = uVar2 * 4;" (assignment_expression "iVar1 = uVar2 * 4" (identifier "iVar1") (= "=") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) (; ";")) (} "}")))) (expression_statement "local_4c = FUN_0001ece0(local_4c,iVar1);" (assignment_expression "local_4c = FUN_0001ece0(local_4c,iVar1)" (identifier "local_4c") (= "=") (call_expression "FUN_0001ece0(local_4c,iVar1)" (identifier "FUN_0001ece0") (argument_list "(local_4c,iVar1)" (( "(") (identifier "local_4c") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "local_44 = (void *)FUN_0001ece0(local_44,iVar1);" (assignment_expression "local_44 = (void *)FUN_0001ece0(local_44,iVar1)" (identifier "local_44") (= "=") (cast_expression "(void *)FUN_0001ece0(local_44,iVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ece0(local_44,iVar1)" (identifier "FUN_0001ece0") (argument_list "(local_44,iVar1)" (( "(") (identifier "local_44") (, ",") (identifier "iVar1") () ")"))))) (; ";")) (} "}"))) (if_statement "if (iVar3 == -1) {\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      *(undefined4 *)(local_4c + uVar4 * 4) = 0;\n      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;\n      free(local_24);\n      *param_5 = local_4c;\n      if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }\n                    \n      FUN_00022d80();\n    }" ({ "{") (expression_statement "*(undefined4 *)(local_4c + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)(local_4c + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)(local_4c + uVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(local_4c + uVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_4c + uVar4 * 4)" (( "(") (binary_expression "local_4c + uVar4 * 4" (identifier "local_4c") (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)local_44 + uVar4 * 4) = 0" (pointer_expression "*(undefined4 *)((int)local_44 + uVar4 * 4)" (* "*") (cast_expression "(undefined4 *)((int)local_44 + uVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_44 + uVar4 * 4)" (( "(") (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_44")) (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "free(local_24);" (call_expression "free(local_24)" (identifier "free") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "*param_5 = local_4c;" (assignment_expression "*param_5 = local_4c" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "local_4c")) (; ";")) (if_statement "if (param_6 == (undefined4 *)0x0) {\n        free(local_44);\n      }\n      else {\n        *param_6 = local_44;\n      }" (if "if") (parenthesized_expression "(param_6 == (undefined4 *)0x0)" (( "(") (binary_expression "param_6 == (undefined4 *)0x0" (identifier "param_6") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        free(local_44);\n      }" ({ "{") (expression_statement "free(local_44);" (call_expression "free(local_44)" (identifier "free") (argument_list "(local_44)" (( "(") (identifier "local_44") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        *param_6 = local_44;\n      }" (else "else") (compound_statement "{\n        *param_6 = local_44;\n      }" ({ "{") (expression_statement "*param_6 = local_44;" (assignment_expression "*param_6 = local_44" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "local_44")) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return uVar4;\n      }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n        return uVar4;\n      }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "FUN_00022d80();" (call_expression "FUN_00022d80()" (identifier "FUN_00022d80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__n = iVar3 + 1;" (assignment_expression "__n = iVar3 + 1" (identifier "__n") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((int)__n < 0) goto LAB_0001dd30;" (if "if") (parenthesized_expression "((int)__n < 0)" (( "(") (binary_expression "(int)__n < 0" (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001dd30;" (goto "goto") (statement_identifier "LAB_0001dd30") (; ";"))) (expression_statement "__dest = (void *)FUN_0001ec50(__n);" (assignment_expression "__dest = (void *)FUN_0001ec50(__n)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0001ec50(__n)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ec50(__n)" (identifier "FUN_0001ec50") (argument_list "(__n)" (( "(") (identifier "__n") () ")"))))) (; ";")) (expression_statement "*(int *)((int)local_44 + uVar4 * 4) = iVar3;" (assignment_expression "*(int *)((int)local_44 + uVar4 * 4) = iVar3" (pointer_expression "*(int *)((int)local_44 + uVar4 * 4)" (* "*") (cast_expression "(int *)((int)local_44 + uVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_44 + uVar4 * 4)" (( "(") (binary_expression "(int)local_44 + uVar4 * 4" (cast_expression "(int)local_44" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_44")) (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "memcpy(__dest,local_24,__n);" (call_expression "memcpy(__dest,local_24,__n)" (identifier "memcpy") (argument_list "(__dest,local_24,__n)" (( "(") (identifier "__dest") (, ",") (identifier "local_24") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(void **)(local_4c + uVar4 * 4) = __dest;" (assignment_expression "*(void **)(local_4c + uVar4 * 4) = __dest" (pointer_expression "*(void **)(local_4c + uVar4 * 4)" (* "*") (cast_expression "(void **)(local_4c + uVar4 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_4c + uVar4 * 4)" (( "(") (binary_expression "local_4c + uVar4 * 4" (identifier "local_4c") (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "__dest")) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

size_t function_1(type_1 *stream,size_t var_2,char *delim,size_t n_delim,
                 char ***tokens_out,size_t **var_13)

{
  int var_14;
  char *__dest;
  size_t sVar2;
  type_2 var_3;
  size_t var_11;
  type_2 var_8;
  int var_1;
  char **var_9;
  size_t *local_44;
  type_3 tb;
  
  var_14 = *(int *)(var_1 + 0x14);
  if (var_2 == 0) {
    var_11 = 0x100;
    var_3 = 0x40;
  }
  else {
    var_3 = var_2 + 1;
    var_11 = var_3 * 4;
    if (((int)var_11 < 0) || (var_3 >> 0x1e != 0)) {
LAB_0001dd30:
                    /* WARNING: Subroutine does not return */
      var_4();
    }
  }
  var_9 = (char **)var_5(var_11);
  var_8 = 0;
  local_44 = (size_t *)var_5(var_11);
  var_6(&tb);
  do {
    var_11 = var_7(stream,delim,n_delim,&tb);
    if (var_3 <= var_8) {
      if (var_9 == (char **)0x0) {
        if (var_3 == 0) {
          sVar2 = 0x40;
          var_3 = 0x10;
        }
        else {
          sVar2 = var_3 << 2;
          if (((int)sVar2 < 0) || (var_3 >> 0x1e != 0)) goto LAB_0001dd30;
        }
      }
      else {
        if (0x15555554 < var_3) goto LAB_0001dd30;
        var_3 = var_3 + 1 + (var_3 >> 1);
        sVar2 = var_3 * 4;
      }
      var_9 = (char **)var_10(var_9,sVar2);
      local_44 = (size_t *)var_10(local_44,sVar2);
    }
    if (var_11 == 0xffffffff) {
      var_9[var_8] = (char *)0x0;
      local_44[var_8] = 0;
      var_12(tb.buffer);
      *tokens_out = var_9;
      if (var_13 == (size_t **)0x0) {
        var_12(local_44);
      }
      else {
        *var_13 = local_44;
      }
      if (var_14 == *(int *)(var_1 + 0x14)) {
        return var_8;
      }
                    /* WARNING: Subroutine does not return */
      var_15();
    }
    sVar2 = var_11 + 1;
    if ((int)sVar2 < 0) goto LAB_0001dd30;
    __dest = (char *)var_5(sVar2);
    local_44[var_8] = var_11;
    var_16(__dest,tb.buffer,sVar2);
    var_9[var_8] = __dest;
    var_8 = var_8 + 1;
  } while( true );
}


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

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

uint MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int *param_5,
                 undefined4 *param_6)

{
  void *__dest;
  size_t __n;
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int in_GS_OFFSET;
  int local_4c;
  void *local_44;
  undefined1 local_28 [4];
  void *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1dcd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    iVar3 = 0x100;
    uVar2 = 0x40;
  }
  else {
    uVar2 = param_2 + 1;
    iVar3 = uVar2 * 4;
    if ((iVar3 < 0) || (uVar2 >> 0x1e != 0)) {
LAB_0001dd30:
                    /* WARNING: Subroutine does not return */
      FUN_0001ef50();
    }
  }
  local_4c = FUN_0001ec50(iVar3);
  uVar4 = 0;
  local_44 = (void *)FUN_0001ec50(iVar3);
  FUN_0001da80(local_28);
  do {
    iVar3 = FUN_0001daa0(param_1,param_3,param_4,local_28);
    if (uVar2 <= uVar4) {
      if (local_4c == 0) {
        if (uVar2 == 0) {
          iVar1 = 0x40;
          uVar2 = 0x10;
        }
        else {
          iVar1 = uVar2 << 2;
          if ((iVar1 < 0) || (uVar2 >> 0x1e != 0)) goto LAB_0001dd30;
        }
      }
      else {
        if (0x15555554 < uVar2) goto LAB_0001dd30;
        uVar2 = uVar2 + 1 + (uVar2 >> 1);
        iVar1 = uVar2 * 4;
      }
      local_4c = FUN_0001ece0(local_4c,iVar1);
      local_44 = (void *)FUN_0001ece0(local_44,iVar1);
    }
    if (iVar3 == -1) {
      *(undefined4 *)(local_4c + uVar4 * 4) = 0;
      *(undefined4 *)((int)local_44 + uVar4 * 4) = 0;
      free(local_24);
      *param_5 = local_4c;
      if (param_6 == (undefined4 *)0x0) {
        free(local_44);
      }
      else {
        *param_6 = local_44;
      }
      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
        return uVar4;
      }
                    /* WARNING: Subroutine does not return */
      FUN_00022d80();
    }
    __n = iVar3 + 1;
    if ((int)__n < 0) goto LAB_0001dd30;
    __dest = (void *)FUN_0001ec50(__n);
    *(int *)((int)local_44 + uVar4 * 4) = iVar3;
    memcpy(__dest,local_24,__n);
    *(void **)(local_4c + uVar4 * 4) = __dest;
    uVar4 = uVar4 + 1;
  } while( true );
}

