
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void term_do_paste(Terminal *term)

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  int iVar5;
  int iVar6;
  int len_00;
  int in_GS_OFFSET;
  int local_40;
  int local_30;
  wchar_t *data;
  int len;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x44da9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  get_clip(term->frontend,&data,&len);
  if ((data != (wchar_t *)0x0) && (0 < len)) {
    term_seen_key_event(term);
    if (term->paste_buffer != (wchar_t *)0x0) {
      safefree(term->paste_buffer);
    }
    term->paste_len = 0;
    term->paste_pos = 0;
    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);
    term->paste_buffer = pwVar3;
    if (term->bracketed_paste == 0) {
      len_00 = term->paste_len;
      local_30 = 0;
    }
    else {
      *pwVar3 = DAT_000822b4;
      pwVar3[1] = DAT_000822b8;
      pwVar3[2] = DAT_000822bc;
      pwVar3[3] = DAT_000822c0;
      pwVar3[4] = DAT_000822c4;
      pwVar3[5] = DAT_000822c8;
      len_00 = term->paste_len + 6;
      term->paste_len = len_00;
      local_30 = term->bracketed_paste;
    }
    pwVar3 = data + len;
    pwVar1 = data + len + -1;
LAB_00044ec8:
    iVar6 = len_00;
    pwVar4 = data;
    if (data < pwVar3) {
LAB_00044ed8:
      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;
      local_40 = (int)data - (int)pwVar4;
      if (0 < local_40) goto LAB_00044efd;
      goto LAB_00044f59;
    }
LAB_00044f89:
    if (local_30 != 0) {
      pwVar3 = term->paste_buffer + len_00;
      *pwVar3 = DAT_000822d0;
      pwVar3[1] = DAT_000822d4;
      pwVar3[2] = DAT_000822d8;
      pwVar3[3] = DAT_000822dc;
      pwVar3[4] = DAT_000822e0;
      pwVar3[5] = DAT_000822e4;
      len_00 = term->paste_len + 6;
      term->paste_len = len_00;
    }
    if (len_00 < 0x100) {
      pwVar3 = term->paste_buffer;
      if (term->ldisc != (void *)0x0) {
        luni_send(term->ldisc,pwVar3,len_00,0);
        pwVar3 = term->paste_buffer;
      }
      if (pwVar3 != (wchar_t *)0x0) {
        safefree(pwVar3);
      }
      term->paste_buffer = (wchar_t *)0x0;
      term->paste_len = 0;
      term->paste_pos = 0;
    }
  }
  get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0);
  queue_toplevel_callback(term_paste_callback,term);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
LAB_00044ee5:
  data = data + 1;
  if (pwVar3 <= data) {
    local_40 = (int)data - (int)pwVar4;
    len_00 = iVar6;
    if (0 < local_40) {
LAB_00044efd:
      local_40 = local_40 >> 2;
      pwVar2 = term->paste_buffer;
      iVar5 = 0;
      do {
        len_00 = iVar6 + 1 + iVar5;
        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];
        iVar5 = iVar5 + 1;
      } while (iVar5 < local_40);
      term->paste_len = len_00;
    }
    iVar6 = len_00;
    if (data <= pwVar1) {
LAB_00044f59:
      len_00 = iVar6;
      if (*data != L'\n') goto LAB_00044ec8;
      len_00 = iVar6 + 1;
      term->paste_len = len_00;
      term->paste_buffer[iVar6] = L'\r';
      data = data + 1;
      iVar6 = len_00;
      pwVar4 = data;
      if (pwVar3 <= data) goto LAB_00044f89;
      goto LAB_00044ed8;
    }
    goto LAB_00044ec8;
  }
  goto LAB_00044ed8;
}



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

void FUN_00044da0(int param_1)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_40;
  int local_30;
  int *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x44da9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);
  if ((local_28 != (int *)0x0) && (0 < local_24)) {
    FUN_0003cf70(param_1);
    if (*(int *)(param_1 + 0x1070) != 0) {
      FUN_0002da80(*(int *)(param_1 + 0x1070));
    }
    *(undefined4 *)(param_1 + 0x1074) = 0;
    *(undefined4 *)(param_1 + 0x1078) = 0;
    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);
    *(undefined4 **)(param_1 + 0x1070) = puVar4;
    if (*(int *)(param_1 + 0x16c) == 0) {
      iVar9 = *(int *)(param_1 + 0x1074);
      local_30 = 0;
    }
    else {
      *puVar4 = DAT_000822b4;
      puVar4[1] = DAT_000822b8;
      puVar4[2] = DAT_000822bc;
      puVar4[3] = DAT_000822c0;
      puVar4[4] = DAT_000822c4;
      puVar4[5] = DAT_000822c8;
      iVar9 = *(int *)(param_1 + 0x1074) + 6;
      *(int *)(param_1 + 0x1074) = iVar9;
      local_30 = *(int *)(param_1 + 0x16c);
    }
    piVar1 = local_28 + local_24;
    piVar2 = local_28 + local_24 + -1;
LAB_00044ec8:
    iVar5 = iVar9;
    piVar6 = local_28;
    if (local_28 < piVar1) {
LAB_00044ed8:
      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;
      local_40 = (int)local_28 - (int)piVar6;
      if (0 < local_40) goto LAB_00044efd;
      goto LAB_00044f59;
    }
LAB_00044f89:
    if (local_30 != 0) {
      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);
      *puVar4 = DAT_000822d0;
      puVar4[1] = DAT_000822d4;
      puVar4[2] = DAT_000822d8;
      puVar4[3] = DAT_000822dc;
      puVar4[4] = DAT_000822e0;
      puVar4[5] = DAT_000822e4;
      iVar9 = *(int *)(param_1 + 0x1074) + 6;
      *(int *)(param_1 + 0x1074) = iVar9;
    }
    if (iVar9 < 0x100) {
      iVar5 = *(int *)(param_1 + 0x1070);
      if (*(int *)(param_1 + 0x1084) != 0) {
        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);
        iVar5 = *(int *)(param_1 + 0x1070);
      }
      if (iVar5 != 0) {
        FUN_0002da80(iVar5);
      }
      *(undefined4 *)(param_1 + 0x1070) = 0;
      *(undefined4 *)(param_1 + 0x1074) = 0;
      *(undefined4 *)(param_1 + 0x1078) = 0;
    }
  }
  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);
  FUN_0001b930(FUN_0003aae0,param_1);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00066390();
  }
  return;
LAB_00044ee5:
  local_28 = local_28 + 1;
  if (piVar1 <= local_28) {
    local_40 = (int)local_28 - (int)piVar6;
    if (0 < local_40) {
LAB_00044efd:
      local_40 = local_40 >> 2;
      iVar3 = *(int *)(param_1 + 0x1070);
      iVar9 = iVar5 * 4;
      iVar8 = iVar5 + 1;
      iVar7 = 0;
      do {
        iVar5 = iVar8 + iVar7;
        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];
        iVar7 = iVar7 + 1;
      } while (iVar7 < local_40);
      *(int *)(param_1 + 0x1074) = iVar5;
    }
    iVar9 = iVar5;
    if (local_28 <= piVar2) {
LAB_00044f59:
      iVar9 = iVar5;
      if (*local_28 != 10) goto LAB_00044ec8;
      iVar9 = iVar5 + 1;
      *(int *)(param_1 + 0x1074) = iVar9;
      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;
      local_28 = local_28 + 1;
      iVar5 = iVar9;
      piVar6 = local_28;
      if (piVar1 <= local_28) goto LAB_00044f89;
      goto LAB_00044ed8;
    }
    goto LAB_00044ec8;
  }
  goto LAB_00044ed8;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x6b9fb
SUB ESP,0x40
MOV ECX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0xc],ECX
MOV ESI,ECX
MOV dword ptr [ESP + 0x1c],EBX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x30],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH dword ptr [ECX + 0x1088]
CALL 0x00059cc0
ADD ESP,0x10
MOV EBP,dword ptr [ESP + 0x24]
TEST EBP,EBP
JZ 0x00044df4
MOV EDI,dword ptr [ESP + 0x28]
TEST EDI,EDI
JG 0x00044e40
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
MOV ESI,dword ptr [ESP + 0x14]
PUSH dword ptr [ESI + 0x1088]
MOV EDI,dword ptr [ESP + 0x28]
MOV EBX,EDI
CALL 0x00059cc0
POP EAX
LEA EAX,[EDI + 0xfff8a33c]
POP EDX
PUSH ESI
PUSH EAX
CALL 0x0001b930
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000450ea
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x0003cf70
MOV EAX,dword ptr [ESI + 0x1070]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00044e62
SUB ESP,0xc
PUSH EAX
CALL 0x0002da80
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x8]
SUB ESP,0x8
MOV dword ptr [EDI + 0x1074],0x0
MOV dword ptr [EDI + 0x1078],0x0
PUSH 0x4
MOV EAX,dword ptr [ESP + 0x34]
ADD EAX,0xc
PUSH EAX
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x0002d1f0
MOV EBX,dword ptr [EDI + 0x16c]
MOV dword ptr [EDI + 0x1070],EAX
MOV dword ptr [ESP + 0x2c],EBX
ADD ESP,0x10
TEST EBX,EBX
JNZ 0x00045007
MOV EBX,dword ptr [EDI + 0x1074]
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x24]
SHL EAX,0x2
LEA EDI,[ECX + EAX*0x1]
LEA ESI,[ECX + EAX*0x1 + -0x4]
LEA ESI,[ESI]
NOP
CMP EDI,ECX
JBE 0x00044f89
MOV EAX,ECX
LEA ESI,[ESI]
CMP ESI,EAX
JC 0x00044ee5
CMP dword ptr [EAX],0xa
JZ 0x00045070
ADD EAX,0x4
CMP EDI,EAX
JA 0x00044ed8
MOV EDX,EAX
SUB EDX,ECX
MOV EBP,EDX
SAR EBP,0x2
MOV dword ptr [ESP + 0xc],EBP
TEST EDX,EDX
JLE 0x00044f4f
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x10],ESI
MOV ESI,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EDX + 0x1070]
MOV dword ptr [ESP + 0xc],EDI
LEA EBP,[EDX + EBX*0x4]
ADD EBX,0x1
XOR EDX,EDX
MOV EDI,EBX
LEA ESI,[ESI]
MOV EAX,dword ptr [ECX + EDX*0x4]
LEA EBX,[EDI + EDX*0x1]
MOV dword ptr [EBP + EDX*0x4],EAX
ADD EDX,0x1
CMP ESI,EDX
JG 0x00044f28
MOV ECX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [ESP + 0x10]
MOV EDI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ECX + 0x1074],EBX
MOV ECX,EAX
CMP ESI,EAX
JC 0x00044ec8
CMP dword ptr [EAX],0xa
JNZ 0x00044ec8
MOV EBP,dword ptr [ESP + 0x8]
LEA EDX,[EBX + 0x1]
MOV ECX,dword ptr [EBP + 0x1070]
MOV dword ptr [EBP + 0x1074],EDX
MOV dword ptr [ECX + EBX*0x4],0xd
LEA ECX,[EAX + 0x4]
MOV EBX,EDX
CMP EDI,ECX
JA 0x00044ed0
MOV ECX,dword ptr [ESP + 0x1c]
TEST ECX,ECX
JNZ 0x0004508c
CMP EBX,0xff
JG 0x00044df4
MOV EDI,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EDI + 0x1084]
MOV EAX,dword ptr [EDI + 0x1070]
TEST EDX,EDX
JZ 0x00044fcc
PUSH 0x0
PUSH EBX
PUSH EAX
PUSH EDX
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x00029520
MOV EAX,dword ptr [EDI + 0x1070]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00044fe0
SUB ESP,0xc
PUSH EAX
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x0002da80
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x1070],0x0
MOV dword ptr [EAX + 0x1074],0x0
MOV dword ptr [EAX + 0x1078],0x0
JMP 0x00044df4
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ECX + 0xfffd1b10]
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b14]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b18]
MOV dword ptr [EAX + 0x8],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b1c]
MOV dword ptr [EAX + 0xc],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b20]
MOV dword ptr [EAX + 0x10],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b24]
MOV dword ptr [EAX + 0x14],EDX
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EAX + 0x1074]
LEA EBX,[ECX + 0x6]
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [EAX + 0x1074],EBX
MOV EAX,dword ptr [EAX + 0x16c]
MOV dword ptr [ESP + 0x1c],EAX
JMP 0x00044eb1
MOV EDX,EAX
SUB EDX,ECX
MOV EBP,EDX
SAR EBP,0x2
MOV dword ptr [ESP + 0xc],EBP
TEST EDX,EDX
JG 0x00044efd
MOV ECX,EAX
JMP 0x00044f59
MOV EDI,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDI + 0x1070]
MOV EDX,dword ptr [ECX + 0xfffd1b2c]
LEA EAX,[EAX + EBX*0x4]
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b30]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b34]
MOV dword ptr [EAX + 0x8],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b38]
MOV dword ptr [EAX + 0xc],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b3c]
MOV dword ptr [EAX + 0x10],EDX
MOV EDX,dword ptr [ECX + 0xfffd1b40]
MOV dword ptr [EAX + 0x14],EDX
MOV EAX,dword ptr [EDI + 0x1074]
LEA EBX,[EAX + 0x6]
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [EDI + 0x1074],EBX
JMP 0x00044f95
CALL 0x00066390
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00044da0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}\n\n" comment (function_definition "void FUN_00044da0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" primitive_type (function_declarator "FUN_00044da0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x44da9;" (assignment_expression "uStack_14 = 0x44da9" 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) ))))) ;) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" * (cast_expression "(undefined4 *)(param_1 + 0x1088)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1088)" ( (binary_expression "param_1 + 0x1088" identifier + number_literal) )))) , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" if (parenthesized_expression "((local_28 != (int *)0x0) && (0 < local_24))" ( (binary_expression "(local_28 != (int *)0x0) && (0 < local_24)" (parenthesized_expression "(local_28 != (int *)0x0)" ( (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < local_24)" ( (binary_expression "0 < local_24" number_literal < identifier) ))) )) (compound_statement "{\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" { (expression_statement "FUN_0003cf70(param_1);" (call_expression "FUN_0003cf70(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1070) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1070) != 0" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" { (expression_statement "FUN_0002da80(*(int *)(param_1 + 0x1070));" (call_expression "FUN_0002da80(*(int *)(param_1 + 0x1070))" identifier (argument_list "(*(int *)(param_1 + 0x1070))" ( (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" * (cast_expression "(undefined4 *)(param_1 + 0x1074)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" * (cast_expression "(undefined4 *)(param_1 + 0x1078)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1078)" ( (binary_expression "param_1 + 0x1078" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);" (assignment_expression "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" identifier = (cast_expression "(undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(local_24 + 0xc,4)" identifier (argument_list "(local_24 + 0xc,4)" ( (binary_expression "local_24 + 0xc" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x1070) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x1070) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x1070)" * (cast_expression "(undefined4 **)(param_1 + 0x1070)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x16c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x16c) == 0" (pointer_expression "*(int *)(param_1 + 0x16c)" * (cast_expression "(int *)(param_1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16c)" ( (binary_expression "param_1 + 0x16c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }" { (expression_statement "iVar9 = *(int *)(param_1 + 0x1074);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074)" identifier = (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" else (compound_statement "{\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" { (expression_statement "*puVar4 = DAT_000822b4;" (assignment_expression "*puVar4 = DAT_000822b4" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = DAT_000822b8;" (assignment_expression "puVar4[1] = DAT_000822b8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = DAT_000822bc;" (assignment_expression "puVar4[2] = DAT_000822bc" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = DAT_000822c0;" (assignment_expression "puVar4[3] = DAT_000822c0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = DAT_000822c4;" (assignment_expression "puVar4[4] = DAT_000822c4" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[5] = DAT_000822c8;" (assignment_expression "puVar4[5] = DAT_000822c8" (subscript_expression "puVar4[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" identifier = (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_30 = *(int *)(param_1 + 0x16c);" (assignment_expression "local_30 = *(int *)(param_1 + 0x16c)" identifier = (pointer_expression "*(int *)(param_1 + 0x16c)" * (cast_expression "(int *)(param_1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16c)" ( (binary_expression "param_1 + 0x16c" identifier + number_literal) ))))) ;) }))) (expression_statement "piVar1 = local_28 + local_24;" (assignment_expression "piVar1 = local_28 + local_24" identifier = (binary_expression "local_28 + local_24" identifier + identifier)) ;) (expression_statement "piVar2 = local_28 + local_24 + -1;" (assignment_expression "piVar2 = local_28 + local_24 + -1" identifier = (binary_expression "local_28 + local_24 + -1" (binary_expression "local_28 + local_24" identifier + identifier) + number_literal)) ;) (labeled_statement "LAB_00044ec8:\n    iVar5 = iVar9;" statement_identifier : (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" identifier = identifier) ;)) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" identifier = identifier) ;) (if_statement "if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" if (parenthesized_expression "(local_28 < piVar1)" ( (binary_expression "local_28 < piVar1" identifier < identifier) )) (compound_statement "{\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" { (labeled_statement "LAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" statement_identifier : (if_statement "if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" if (parenthesized_expression "((piVar2 < local_28) || (*local_28 != 10))" ( (binary_expression "(piVar2 < local_28) || (*local_28 != 10)" (parenthesized_expression "(piVar2 < local_28)" ( (binary_expression "piVar2 < local_28" identifier < identifier) )) || (parenthesized_expression "(*local_28 != 10)" ( (binary_expression "*local_28 != 10" (pointer_expression "*local_28" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00044ee5;" goto statement_identifier ;))) (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" identifier = (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0 < local_40) goto LAB_00044efd;" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (goto_statement "goto LAB_00044efd;" goto statement_identifier ;)) (goto_statement "goto LAB_00044f59;" goto statement_identifier ;) })) (labeled_statement "LAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" statement_identifier : (if_statement "if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);" (assignment_expression "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar9 * 4)" ( (binary_expression "*(int *)(param_1 + 0x1070) + iVar9 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (expression_statement "*puVar4 = DAT_000822d0;" (assignment_expression "*puVar4 = DAT_000822d0" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = DAT_000822d4;" (assignment_expression "puVar4[1] = DAT_000822d4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = DAT_000822d8;" (assignment_expression "puVar4[2] = DAT_000822d8" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = DAT_000822dc;" (assignment_expression "puVar4[3] = DAT_000822dc" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = DAT_000822e0;" (assignment_expression "puVar4[4] = DAT_000822e0" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[5] = DAT_000822e4;" (assignment_expression "puVar4[5] = DAT_000822e4" (subscript_expression "puVar4[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" identifier = (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" if (parenthesized_expression "(iVar9 < 0x100)" ( (binary_expression "iVar9 < 0x100" identifier < number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1084) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1084) != 0" (pointer_expression "*(int *)(param_1 + 0x1084)" * (cast_expression "(int *)(param_1 + 0x1084)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1084)" ( (binary_expression "param_1 + 0x1084" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" { (expression_statement "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);" (call_expression "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" identifier (argument_list "(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" ( (pointer_expression "*(int *)(param_1 + 0x1084)" * (cast_expression "(int *)(param_1 + 0x1084)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1084)" ( (binary_expression "param_1 + 0x1084" identifier + number_literal) )))) , identifier , identifier , number_literal ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_0002da80(iVar5);\n      }" { (expression_statement "FUN_0002da80(iVar5);" (call_expression "FUN_0002da80(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1070) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1070) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1070)" * (cast_expression "(undefined4 *)(param_1 + 0x1070)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" * (cast_expression "(undefined4 *)(param_1 + 0x1074)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" * (cast_expression "(undefined4 *)(param_1 + 0x1078)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1078)" ( (binary_expression "param_1 + 0x1078" identifier + number_literal) )))) = number_literal) ;) })) })) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1088),0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" * (cast_expression "(undefined4 *)(param_1 + 0x1088)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1088)" ( (binary_expression "param_1 + 0x1088" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "FUN_0001b930(FUN_0003aae0,param_1);" (call_expression "FUN_0001b930(FUN_0003aae0,param_1)" identifier (argument_list "(FUN_0003aae0,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\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                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }" { comment (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) (labeled_statement "LAB_00044ee5:\n  local_28 = local_28 + 1;" statement_identifier : (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;)) (if_statement "if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" if (parenthesized_expression "(piVar1 <= local_28)" ( (binary_expression "piVar1 <= local_28" identifier <= identifier) )) (compound_statement "{\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" { (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" identifier = (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (compound_statement "{\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" { (labeled_statement "LAB_00044efd:\n      local_40 = local_40 >> 2;" statement_identifier : (expression_statement "local_40 = local_40 >> 2;" (assignment_expression "local_40 = local_40 >> 2" identifier = (binary_expression "local_40 >> 2" identifier >> number_literal)) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = iVar5 * 4;" (assignment_expression "iVar9 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar8 = iVar5 + 1;" (assignment_expression "iVar8 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);" do (compound_statement "{\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "iVar5 = iVar8 + iVar7;" (assignment_expression "iVar5 = iVar8 + iVar7" identifier = (binary_expression "iVar8 + iVar7" identifier + identifier)) ;) (expression_statement "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];" (assignment_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7]" (pointer_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4)" * (cast_expression "(int *)(iVar3 + iVar9 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar9 + iVar7 * 4)" ( (binary_expression "iVar3 + iVar9 + iVar7 * 4" (binary_expression "iVar3 + iVar9" identifier + identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "piVar6[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < local_40)" ( (binary_expression "iVar7 < local_40" identifier < identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" identifier = identifier) ;) (if_statement "if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" if (parenthesized_expression "(local_28 <= piVar2)" ( (binary_expression "local_28 <= piVar2" identifier <= identifier) )) (compound_statement "{\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" { (labeled_statement "LAB_00044f59:\n      iVar9 = iVar5;" statement_identifier : (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" identifier = identifier) ;)) (if_statement "if (*local_28 != 10) goto LAB_00044ec8;" if (parenthesized_expression "(*local_28 != 10)" ( (binary_expression "*local_28 != 10" (pointer_expression "*local_28" * identifier) != number_literal) )) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;)) (expression_statement "iVar9 = iVar5 + 1;" (assignment_expression "iVar9 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar5 * 4)" ( (binary_expression "*(int *)(param_1 + 0x1070) + iVar5 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" identifier = identifier) ;) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" identifier = identifier) ;) (if_statement "if (piVar1 <= local_28) goto LAB_00044f89;" if (parenthesized_expression "(piVar1 <= local_28)" ( (binary_expression "piVar1 <= local_28" identifier <= identifier) )) (goto_statement "goto LAB_00044f89;" goto statement_identifier ;)) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid term_do_paste(Terminal *term)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  int iVar6;\n  int len_00;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  wchar_t *data;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_clip(term->frontend,&data,&len);\n  if ((data != (wchar_t *)0x0) && (0 < len)) {\n    term_seen_key_event(term);\n    if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }\n    term->paste_len = 0;\n    term->paste_pos = 0;\n    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);\n    term->paste_buffer = pwVar3;\n    if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }\n    pwVar3 = data + len;\n    pwVar1 = data + len + -1;\nLAB_00044ec8:\n    iVar6 = len_00;\n    pwVar4 = data;\n    if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }\n    if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }\n  }\n  get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0);\n  queue_toplevel_callback(term_paste_callback,term);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\nLAB_00044ee5:\n  data = data + 1;\n  if (pwVar3 <= data) {\n    local_40 = (int)data - (int)pwVar4;\n    len_00 = iVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }\n    iVar6 = len_00;\n    if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}\n\n" comment comment comment (function_definition "void term_do_paste(Terminal *term)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  int iVar6;\n  int len_00;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  wchar_t *data;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_clip(term->frontend,&data,&len);\n  if ((data != (wchar_t *)0x0) && (0 < len)) {\n    term_seen_key_event(term);\n    if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }\n    term->paste_len = 0;\n    term->paste_pos = 0;\n    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);\n    term->paste_buffer = pwVar3;\n    if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }\n    pwVar3 = data + len;\n    pwVar1 = data + len + -1;\nLAB_00044ec8:\n    iVar6 = len_00;\n    pwVar4 = data;\n    if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }\n    if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }\n  }\n  get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0);\n  queue_toplevel_callback(term_paste_callback,term);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\nLAB_00044ee5:\n  data = data + 1;\n  if (pwVar3 <= data) {\n    local_40 = (int)data - (int)pwVar4;\n    len_00 = iVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }\n    iVar6 = len_00;\n    if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" primitive_type (function_declarator "term_do_paste(Terminal *term)" identifier (parameter_list "(Terminal *term)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  int iVar5;\n  int iVar6;\n  int len_00;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  wchar_t *data;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_clip(term->frontend,&data,&len);\n  if ((data != (wchar_t *)0x0) && (0 < len)) {\n    term_seen_key_event(term);\n    if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }\n    term->paste_len = 0;\n    term->paste_pos = 0;\n    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);\n    term->paste_buffer = pwVar3;\n    if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }\n    pwVar3 = data + len;\n    pwVar1 = data + len + -1;\nLAB_00044ec8:\n    iVar6 = len_00;\n    pwVar4 = data;\n    if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }\n    if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }\n  }\n  get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0);\n  queue_toplevel_callback(term_paste_callback,term);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\nLAB_00044ee5:\n  data = data + 1;\n  if (pwVar3 <= data) {\n    local_40 = (int)data - (int)pwVar4;\n    len_00 = iVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }\n    iVar6 = len_00;\n    if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int len_00;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "wchar_t *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "int len;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x44da9;" (assignment_expression "uStack_14 = 0x44da9" 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) ))))) ;) (expression_statement "get_clip(term->frontend,&data,&len);" (call_expression "get_clip(term->frontend,&data,&len)" identifier (argument_list "(term->frontend,&data,&len)" ( (field_expression "term->frontend" identifier -> field_identifier) , (pointer_expression "&data" & identifier) , (pointer_expression "&len" & identifier) ))) ;) (if_statement "if ((data != (wchar_t *)0x0) && (0 < len)) {\n    term_seen_key_event(term);\n    if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }\n    term->paste_len = 0;\n    term->paste_pos = 0;\n    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);\n    term->paste_buffer = pwVar3;\n    if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }\n    pwVar3 = data + len;\n    pwVar1 = data + len + -1;\nLAB_00044ec8:\n    iVar6 = len_00;\n    pwVar4 = data;\n    if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }\n    if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }\n  }" if (parenthesized_expression "((data != (wchar_t *)0x0) && (0 < len))" ( (binary_expression "(data != (wchar_t *)0x0) && (0 < len)" (parenthesized_expression "(data != (wchar_t *)0x0)" ( (binary_expression "data != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) ))) )) (compound_statement "{\n    term_seen_key_event(term);\n    if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }\n    term->paste_len = 0;\n    term->paste_pos = 0;\n    pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);\n    term->paste_buffer = pwVar3;\n    if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }\n    pwVar3 = data + len;\n    pwVar1 = data + len + -1;\nLAB_00044ec8:\n    iVar6 = len_00;\n    pwVar4 = data;\n    if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }\n    if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }\n  }" { (expression_statement "term_seen_key_event(term);" (call_expression "term_seen_key_event(term)" identifier (argument_list "(term)" ( identifier ))) ;) (if_statement "if (term->paste_buffer != (wchar_t *)0x0) {\n      safefree(term->paste_buffer);\n    }" if (parenthesized_expression "(term->paste_buffer != (wchar_t *)0x0)" ( (binary_expression "term->paste_buffer != (wchar_t *)0x0" (field_expression "term->paste_buffer" identifier -> field_identifier) != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      safefree(term->paste_buffer);\n    }" { (expression_statement "safefree(term->paste_buffer);" (call_expression "safefree(term->paste_buffer)" identifier (argument_list "(term->paste_buffer)" ( (field_expression "term->paste_buffer" identifier -> field_identifier) ))) ;) })) (expression_statement "term->paste_len = 0;" (assignment_expression "term->paste_len = 0" (field_expression "term->paste_len" identifier -> field_identifier) = number_literal) ;) (expression_statement "term->paste_pos = 0;" (assignment_expression "term->paste_pos = 0" (field_expression "term->paste_pos" identifier -> field_identifier) = number_literal) ;) (expression_statement "pwVar3 = (wchar_t *)safemalloc(len + 0xc,4);" (assignment_expression "pwVar3 = (wchar_t *)safemalloc(len + 0xc,4)" identifier = (cast_expression "(wchar_t *)safemalloc(len + 0xc,4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(len + 0xc,4)" identifier (argument_list "(len + 0xc,4)" ( (binary_expression "len + 0xc" identifier + number_literal) , number_literal ))))) ;) (expression_statement "term->paste_buffer = pwVar3;" (assignment_expression "term->paste_buffer = pwVar3" (field_expression "term->paste_buffer" identifier -> field_identifier) = identifier) ;) (if_statement "if (term->bracketed_paste == 0) {\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }\n    else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }" if (parenthesized_expression "(term->bracketed_paste == 0)" ( (binary_expression "term->bracketed_paste == 0" (field_expression "term->bracketed_paste" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      len_00 = term->paste_len;\n      local_30 = 0;\n    }" { (expression_statement "len_00 = term->paste_len;" (assignment_expression "len_00 = term->paste_len" identifier = (field_expression "term->paste_len" identifier -> field_identifier)) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }" else (compound_statement "{\n      *pwVar3 = DAT_000822b4;\n      pwVar3[1] = DAT_000822b8;\n      pwVar3[2] = DAT_000822bc;\n      pwVar3[3] = DAT_000822c0;\n      pwVar3[4] = DAT_000822c4;\n      pwVar3[5] = DAT_000822c8;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n      local_30 = term->bracketed_paste;\n    }" { (expression_statement "*pwVar3 = DAT_000822b4;" (assignment_expression "*pwVar3 = DAT_000822b4" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "pwVar3[1] = DAT_000822b8;" (assignment_expression "pwVar3[1] = DAT_000822b8" (subscript_expression "pwVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[2] = DAT_000822bc;" (assignment_expression "pwVar3[2] = DAT_000822bc" (subscript_expression "pwVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[3] = DAT_000822c0;" (assignment_expression "pwVar3[3] = DAT_000822c0" (subscript_expression "pwVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[4] = DAT_000822c4;" (assignment_expression "pwVar3[4] = DAT_000822c4" (subscript_expression "pwVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[5] = DAT_000822c8;" (assignment_expression "pwVar3[5] = DAT_000822c8" (subscript_expression "pwVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "len_00 = term->paste_len + 6;" (assignment_expression "len_00 = term->paste_len + 6" identifier = (binary_expression "term->paste_len + 6" (field_expression "term->paste_len" identifier -> field_identifier) + number_literal)) ;) (expression_statement "term->paste_len = len_00;" (assignment_expression "term->paste_len = len_00" (field_expression "term->paste_len" identifier -> field_identifier) = identifier) ;) (expression_statement "local_30 = term->bracketed_paste;" (assignment_expression "local_30 = term->bracketed_paste" identifier = (field_expression "term->bracketed_paste" identifier -> field_identifier)) ;) }))) (expression_statement "pwVar3 = data + len;" (assignment_expression "pwVar3 = data + len" identifier = (binary_expression "data + len" identifier + identifier)) ;) (expression_statement "pwVar1 = data + len + -1;" (assignment_expression "pwVar1 = data + len + -1" identifier = (binary_expression "data + len + -1" (binary_expression "data + len" identifier + identifier) + number_literal)) ;) (labeled_statement "LAB_00044ec8:\n    iVar6 = len_00;" statement_identifier : (expression_statement "iVar6 = len_00;" (assignment_expression "iVar6 = len_00" identifier = identifier) ;)) (expression_statement "pwVar4 = data;" (assignment_expression "pwVar4 = data" identifier = identifier) ;) (if_statement "if (data < pwVar3) {\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" if (parenthesized_expression "(data < pwVar3)" ( (binary_expression "data < pwVar3" identifier < identifier) )) (compound_statement "{\nLAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;\n      local_40 = (int)data - (int)pwVar4;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" { (labeled_statement "LAB_00044ed8:\n      if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;" statement_identifier : (if_statement "if ((pwVar1 < data) || (*data != L'\n')) goto LAB_00044ee5;" if (parenthesized_expression "((pwVar1 < data) || (*data != L'\n'))" ( (binary_expression "(pwVar1 < data) || (*data != L'\n')" (parenthesized_expression "(pwVar1 < data)" ( (binary_expression "pwVar1 < data" identifier < identifier) )) || (parenthesized_expression "(*data != L'\n')" ( (binary_expression "*data != L'\n'" (pointer_expression "*data" * identifier) != (char_literal "L'\n'" L' escape_sequence ')) ))) )) (goto_statement "goto LAB_00044ee5;" goto statement_identifier ;))) (expression_statement "local_40 = (int)data - (int)pwVar4;" (assignment_expression "local_40 = (int)data - (int)pwVar4" identifier = (binary_expression "(int)data - (int)pwVar4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0 < local_40) goto LAB_00044efd;" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (goto_statement "goto LAB_00044efd;" goto statement_identifier ;)) (goto_statement "goto LAB_00044f59;" goto statement_identifier ;) })) (labeled_statement "LAB_00044f89:\n    if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }" statement_identifier : (if_statement "if (local_30 != 0) {\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      pwVar3 = term->paste_buffer + len_00;\n      *pwVar3 = DAT_000822d0;\n      pwVar3[1] = DAT_000822d4;\n      pwVar3[2] = DAT_000822d8;\n      pwVar3[3] = DAT_000822dc;\n      pwVar3[4] = DAT_000822e0;\n      pwVar3[5] = DAT_000822e4;\n      len_00 = term->paste_len + 6;\n      term->paste_len = len_00;\n    }" { (expression_statement "pwVar3 = term->paste_buffer + len_00;" (assignment_expression "pwVar3 = term->paste_buffer + len_00" identifier = (binary_expression "term->paste_buffer + len_00" (field_expression "term->paste_buffer" identifier -> field_identifier) + identifier)) ;) (expression_statement "*pwVar3 = DAT_000822d0;" (assignment_expression "*pwVar3 = DAT_000822d0" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "pwVar3[1] = DAT_000822d4;" (assignment_expression "pwVar3[1] = DAT_000822d4" (subscript_expression "pwVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[2] = DAT_000822d8;" (assignment_expression "pwVar3[2] = DAT_000822d8" (subscript_expression "pwVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[3] = DAT_000822dc;" (assignment_expression "pwVar3[3] = DAT_000822dc" (subscript_expression "pwVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[4] = DAT_000822e0;" (assignment_expression "pwVar3[4] = DAT_000822e0" (subscript_expression "pwVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pwVar3[5] = DAT_000822e4;" (assignment_expression "pwVar3[5] = DAT_000822e4" (subscript_expression "pwVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "len_00 = term->paste_len + 6;" (assignment_expression "len_00 = term->paste_len + 6" identifier = (binary_expression "term->paste_len + 6" (field_expression "term->paste_len" identifier -> field_identifier) + number_literal)) ;) (expression_statement "term->paste_len = len_00;" (assignment_expression "term->paste_len = len_00" (field_expression "term->paste_len" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if (len_00 < 0x100) {\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }" if (parenthesized_expression "(len_00 < 0x100)" ( (binary_expression "len_00 < 0x100" identifier < number_literal) )) (compound_statement "{\n      pwVar3 = term->paste_buffer;\n      if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }\n      if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }\n      term->paste_buffer = (wchar_t *)0x0;\n      term->paste_len = 0;\n      term->paste_pos = 0;\n    }" { (expression_statement "pwVar3 = term->paste_buffer;" (assignment_expression "pwVar3 = term->paste_buffer" identifier = (field_expression "term->paste_buffer" identifier -> field_identifier)) ;) (if_statement "if (term->ldisc != (void *)0x0) {\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }" if (parenthesized_expression "(term->ldisc != (void *)0x0)" ( (binary_expression "term->ldisc != (void *)0x0" (field_expression "term->ldisc" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        luni_send(term->ldisc,pwVar3,len_00,0);\n        pwVar3 = term->paste_buffer;\n      }" { (expression_statement "luni_send(term->ldisc,pwVar3,len_00,0);" (call_expression "luni_send(term->ldisc,pwVar3,len_00,0)" identifier (argument_list "(term->ldisc,pwVar3,len_00,0)" ( (field_expression "term->ldisc" identifier -> field_identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "pwVar3 = term->paste_buffer;" (assignment_expression "pwVar3 = term->paste_buffer" identifier = (field_expression "term->paste_buffer" identifier -> field_identifier)) ;) })) (if_statement "if (pwVar3 != (wchar_t *)0x0) {\n        safefree(pwVar3);\n      }" if (parenthesized_expression "(pwVar3 != (wchar_t *)0x0)" ( (binary_expression "pwVar3 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        safefree(pwVar3);\n      }" { (expression_statement "safefree(pwVar3);" (call_expression "safefree(pwVar3)" identifier (argument_list "(pwVar3)" ( identifier ))) ;) })) (expression_statement "term->paste_buffer = (wchar_t *)0x0;" (assignment_expression "term->paste_buffer = (wchar_t *)0x0" (field_expression "term->paste_buffer" identifier -> field_identifier) = (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "term->paste_len = 0;" (assignment_expression "term->paste_len = 0" (field_expression "term->paste_len" identifier -> field_identifier) = number_literal) ;) (expression_statement "term->paste_pos = 0;" (assignment_expression "term->paste_pos = 0" (field_expression "term->paste_pos" identifier -> field_identifier) = number_literal) ;) })) })) (expression_statement "get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0);" (call_expression "get_clip(term->frontend,(wchar_t **)0x0,(int *)0x0)" identifier (argument_list "(term->frontend,(wchar_t **)0x0,(int *)0x0)" ( (field_expression "term->frontend" identifier -> field_identifier) , (cast_expression "(wchar_t **)0x0" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "queue_toplevel_callback(term_paste_callback,term);" (call_expression "queue_toplevel_callback(term_paste_callback,term)" identifier (argument_list "(term_paste_callback,term)" ( identifier , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) (labeled_statement "LAB_00044ee5:\n  data = data + 1;" statement_identifier : (expression_statement "data = data + 1;" (assignment_expression "data = data + 1" identifier = (binary_expression "data + 1" identifier + number_literal)) ;)) (if_statement "if (pwVar3 <= data) {\n    local_40 = (int)data - (int)pwVar4;\n    len_00 = iVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }\n    iVar6 = len_00;\n    if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" if (parenthesized_expression "(pwVar3 <= data)" ( (binary_expression "pwVar3 <= data" identifier <= identifier) )) (compound_statement "{\n    local_40 = (int)data - (int)pwVar4;\n    len_00 = iVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }\n    iVar6 = len_00;\n    if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" { (expression_statement "local_40 = (int)data - (int)pwVar4;" (assignment_expression "local_40 = (int)data - (int)pwVar4" identifier = (binary_expression "(int)data - (int)pwVar4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "len_00 = iVar6;" (assignment_expression "len_00 = iVar6" identifier = identifier) ;) (if_statement "if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (compound_statement "{\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      pwVar2 = term->paste_buffer;\n      iVar5 = 0;\n      do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);\n      term->paste_len = len_00;\n    }" { (labeled_statement "LAB_00044efd:\n      local_40 = local_40 >> 2;" statement_identifier : (expression_statement "local_40 = local_40 >> 2;" (assignment_expression "local_40 = local_40 >> 2" identifier = (binary_expression "local_40 >> 2" identifier >> number_literal)) ;)) (expression_statement "pwVar2 = term->paste_buffer;" (assignment_expression "pwVar2 = term->paste_buffer" identifier = (field_expression "term->paste_buffer" identifier -> field_identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      } while (iVar5 < local_40);" do (compound_statement "{\n        len_00 = iVar6 + 1 + iVar5;\n        pwVar2[iVar6 + iVar5] = pwVar4[iVar5];\n        iVar5 = iVar5 + 1;\n      }" { (expression_statement "len_00 = iVar6 + 1 + iVar5;" (assignment_expression "len_00 = iVar6 + 1 + iVar5" identifier = (binary_expression "iVar6 + 1 + iVar5" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier)) ;) (expression_statement "pwVar2[iVar6 + iVar5] = pwVar4[iVar5];" (assignment_expression "pwVar2[iVar6 + iVar5] = pwVar4[iVar5]" (subscript_expression "pwVar2[iVar6 + iVar5]" identifier [ (binary_expression "iVar6 + iVar5" identifier + identifier) ]) = (subscript_expression "pwVar4[iVar5]" identifier [ identifier ])) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < local_40)" ( (binary_expression "iVar5 < local_40" identifier < identifier) )) ;) (expression_statement "term->paste_len = len_00;" (assignment_expression "term->paste_len = len_00" (field_expression "term->paste_len" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar6 = len_00;" (assignment_expression "iVar6 = len_00" identifier = identifier) ;) (if_statement "if (data <= pwVar1) {\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" if (parenthesized_expression "(data <= pwVar1)" ( (binary_expression "data <= pwVar1" identifier <= identifier) )) (compound_statement "{\nLAB_00044f59:\n      len_00 = iVar6;\n      if (*data != L'\n') goto LAB_00044ec8;\n      len_00 = iVar6 + 1;\n      term->paste_len = len_00;\n      term->paste_buffer[iVar6] = L'\r';\n      data = data + 1;\n      iVar6 = len_00;\n      pwVar4 = data;\n      if (pwVar3 <= data) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" { (labeled_statement "LAB_00044f59:\n      len_00 = iVar6;" statement_identifier : (expression_statement "len_00 = iVar6;" (assignment_expression "len_00 = iVar6" identifier = identifier) ;)) (if_statement "if (*data != L'\n') goto LAB_00044ec8;" if (parenthesized_expression "(*data != L'\n')" ( (binary_expression "*data != L'\n'" (pointer_expression "*data" * identifier) != (char_literal "L'\n'" L' escape_sequence ')) )) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;)) (expression_statement "len_00 = iVar6 + 1;" (assignment_expression "len_00 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "term->paste_len = len_00;" (assignment_expression "term->paste_len = len_00" (field_expression "term->paste_len" identifier -> field_identifier) = identifier) ;) (expression_statement "term->paste_buffer[iVar6] = L'\r';" (assignment_expression "term->paste_buffer[iVar6] = L'\r'" (subscript_expression "term->paste_buffer[iVar6]" (field_expression "term->paste_buffer" identifier -> field_identifier) [ identifier ]) = (char_literal "L'\r'" L' escape_sequence ')) ;) (expression_statement "data = data + 1;" (assignment_expression "data = data + 1" identifier = (binary_expression "data + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = len_00;" (assignment_expression "iVar6 = len_00" identifier = identifier) ;) (expression_statement "pwVar4 = data;" (assignment_expression "pwVar4 = data" identifier = identifier) ;) (if_statement "if (pwVar3 <= data) goto LAB_00044f89;" if (parenthesized_expression "(pwVar3 <= data)" ( (binary_expression "pwVar3 <= data" identifier <= identifier) )) (goto_statement "goto LAB_00044f89;" goto statement_identifier ;)) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })))
(translation_unit "void FUN_00044da0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}\n\n" (function_definition "void FUN_00044da0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" primitive_type (function_declarator "FUN_00044da0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x44da9;" (assignment_expression "uStack_14 = 0x44da9" 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) ))))) ;) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" * (cast_expression "(undefined4 *)(param_1 + 0x1088)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1088)" ( (binary_expression "param_1 + 0x1088" identifier + number_literal) )))) , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" if (parenthesized_expression "((local_28 != (int *)0x0) && (0 < local_24))" ( (binary_expression "(local_28 != (int *)0x0) && (0 < local_24)" (parenthesized_expression "(local_28 != (int *)0x0)" ( (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < local_24)" ( (binary_expression "0 < local_24" number_literal < identifier) ))) )) (compound_statement "{\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" { (expression_statement "FUN_0003cf70(param_1);" (call_expression "FUN_0003cf70(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1070) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1070) != 0" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" { (expression_statement "FUN_0002da80(*(int *)(param_1 + 0x1070));" (call_expression "FUN_0002da80(*(int *)(param_1 + 0x1070))" identifier (argument_list "(*(int *)(param_1 + 0x1070))" ( (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" * (cast_expression "(undefined4 *)(param_1 + 0x1074)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" * (cast_expression "(undefined4 *)(param_1 + 0x1078)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1078)" ( (binary_expression "param_1 + 0x1078" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);" (assignment_expression "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" identifier = (cast_expression "(undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(local_24 + 0xc,4)" identifier (argument_list "(local_24 + 0xc,4)" ( (binary_expression "local_24 + 0xc" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x1070) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x1070) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x1070)" * (cast_expression "(undefined4 **)(param_1 + 0x1070)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x16c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x16c) == 0" (pointer_expression "*(int *)(param_1 + 0x16c)" * (cast_expression "(int *)(param_1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16c)" ( (binary_expression "param_1 + 0x16c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }" { (expression_statement "iVar9 = *(int *)(param_1 + 0x1074);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074)" identifier = (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" else (compound_statement "{\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" { (expression_statement "*puVar4 = DAT_000822b4;" (assignment_expression "*puVar4 = DAT_000822b4" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = DAT_000822b8;" (assignment_expression "puVar4[1] = DAT_000822b8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = DAT_000822bc;" (assignment_expression "puVar4[2] = DAT_000822bc" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = DAT_000822c0;" (assignment_expression "puVar4[3] = DAT_000822c0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = DAT_000822c4;" (assignment_expression "puVar4[4] = DAT_000822c4" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[5] = DAT_000822c8;" (assignment_expression "puVar4[5] = DAT_000822c8" (subscript_expression "puVar4[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" identifier = (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_30 = *(int *)(param_1 + 0x16c);" (assignment_expression "local_30 = *(int *)(param_1 + 0x16c)" identifier = (pointer_expression "*(int *)(param_1 + 0x16c)" * (cast_expression "(int *)(param_1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16c)" ( (binary_expression "param_1 + 0x16c" identifier + number_literal) ))))) ;) }))) (expression_statement "piVar1 = local_28 + local_24;" (assignment_expression "piVar1 = local_28 + local_24" identifier = (binary_expression "local_28 + local_24" identifier + identifier)) ;) (expression_statement "piVar2 = local_28 + local_24 + -1;" (assignment_expression "piVar2 = local_28 + local_24 + -1" identifier = (binary_expression "local_28 + local_24 + -1" (binary_expression "local_28 + local_24" identifier + identifier) + number_literal)) ;) (labeled_statement "LAB_00044ec8:\n    iVar5 = iVar9;" statement_identifier : (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" identifier = identifier) ;)) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" identifier = identifier) ;) (if_statement "if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" if (parenthesized_expression "(local_28 < piVar1)" ( (binary_expression "local_28 < piVar1" identifier < identifier) )) (compound_statement "{\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" { (labeled_statement "LAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" statement_identifier : (if_statement "if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" if (parenthesized_expression "((piVar2 < local_28) || (*local_28 != 10))" ( (binary_expression "(piVar2 < local_28) || (*local_28 != 10)" (parenthesized_expression "(piVar2 < local_28)" ( (binary_expression "piVar2 < local_28" identifier < identifier) )) || (parenthesized_expression "(*local_28 != 10)" ( (binary_expression "*local_28 != 10" (pointer_expression "*local_28" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00044ee5;" goto statement_identifier ;))) (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" identifier = (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0 < local_40) goto LAB_00044efd;" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (goto_statement "goto LAB_00044efd;" goto statement_identifier ;)) (goto_statement "goto LAB_00044f59;" goto statement_identifier ;) })) (labeled_statement "LAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" statement_identifier : (if_statement "if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);" (assignment_expression "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar9 * 4)" ( (binary_expression "*(int *)(param_1 + 0x1070) + iVar9 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (expression_statement "*puVar4 = DAT_000822d0;" (assignment_expression "*puVar4 = DAT_000822d0" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = DAT_000822d4;" (assignment_expression "puVar4[1] = DAT_000822d4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = DAT_000822d8;" (assignment_expression "puVar4[2] = DAT_000822d8" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = DAT_000822dc;" (assignment_expression "puVar4[3] = DAT_000822dc" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = DAT_000822e0;" (assignment_expression "puVar4[4] = DAT_000822e0" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[5] = DAT_000822e4;" (assignment_expression "puVar4[5] = DAT_000822e4" (subscript_expression "puVar4[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" identifier = (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" if (parenthesized_expression "(iVar9 < 0x100)" ( (binary_expression "iVar9 < 0x100" identifier < number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1084) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1084) != 0" (pointer_expression "*(int *)(param_1 + 0x1084)" * (cast_expression "(int *)(param_1 + 0x1084)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1084)" ( (binary_expression "param_1 + 0x1084" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" { (expression_statement "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);" (call_expression "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" identifier (argument_list "(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" ( (pointer_expression "*(int *)(param_1 + 0x1084)" * (cast_expression "(int *)(param_1 + 0x1084)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1084)" ( (binary_expression "param_1 + 0x1084" identifier + number_literal) )))) , identifier , identifier , number_literal ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_0002da80(iVar5);\n      }" { (expression_statement "FUN_0002da80(iVar5);" (call_expression "FUN_0002da80(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1070) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1070) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1070)" * (cast_expression "(undefined4 *)(param_1 + 0x1070)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" * (cast_expression "(undefined4 *)(param_1 + 0x1074)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" * (cast_expression "(undefined4 *)(param_1 + 0x1078)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1078)" ( (binary_expression "param_1 + 0x1078" identifier + number_literal) )))) = number_literal) ;) })) })) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1088),0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" * (cast_expression "(undefined4 *)(param_1 + 0x1088)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1088)" ( (binary_expression "param_1 + 0x1088" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "FUN_0001b930(FUN_0003aae0,param_1);" (call_expression "FUN_0001b930(FUN_0003aae0,param_1)" identifier (argument_list "(FUN_0003aae0,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\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                    \n    FUN_00066390();\n  }" { (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) (labeled_statement "LAB_00044ee5:\n  local_28 = local_28 + 1;" statement_identifier : (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;)) (if_statement "if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" if (parenthesized_expression "(piVar1 <= local_28)" ( (binary_expression "piVar1 <= local_28" identifier <= identifier) )) (compound_statement "{\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" { (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" identifier = (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" if (parenthesized_expression "(0 < local_40)" ( (binary_expression "0 < local_40" number_literal < identifier) )) (compound_statement "{\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" { (labeled_statement "LAB_00044efd:\n      local_40 = local_40 >> 2;" statement_identifier : (expression_statement "local_40 = local_40 >> 2;" (assignment_expression "local_40 = local_40 >> 2" identifier = (binary_expression "local_40 >> 2" identifier >> number_literal)) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x1070)" identifier = (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = iVar5 * 4;" (assignment_expression "iVar9 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar8 = iVar5 + 1;" (assignment_expression "iVar8 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);" do (compound_statement "{\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "iVar5 = iVar8 + iVar7;" (assignment_expression "iVar5 = iVar8 + iVar7" identifier = (binary_expression "iVar8 + iVar7" identifier + identifier)) ;) (expression_statement "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];" (assignment_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7]" (pointer_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4)" * (cast_expression "(int *)(iVar3 + iVar9 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar9 + iVar7 * 4)" ( (binary_expression "iVar3 + iVar9 + iVar7 * 4" (binary_expression "iVar3 + iVar9" identifier + identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "piVar6[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < local_40)" ( (binary_expression "iVar7 < local_40" identifier < identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" identifier = identifier) ;) (if_statement "if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" if (parenthesized_expression "(local_28 <= piVar2)" ( (binary_expression "local_28 <= piVar2" identifier <= identifier) )) (compound_statement "{\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" { (labeled_statement "LAB_00044f59:\n      iVar9 = iVar5;" statement_identifier : (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" identifier = identifier) ;)) (if_statement "if (*local_28 != 10) goto LAB_00044ec8;" if (parenthesized_expression "(*local_28 != 10)" ( (binary_expression "*local_28 != 10" (pointer_expression "*local_28" * identifier) != number_literal) )) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;)) (expression_statement "iVar9 = iVar5 + 1;" (assignment_expression "iVar9 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" * (cast_expression "(int *)(param_1 + 0x1074)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1074)" ( (binary_expression "param_1 + 0x1074" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar5 * 4)" ( (binary_expression "*(int *)(param_1 + 0x1070) + iVar5 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" * (cast_expression "(int *)(param_1 + 0x1070)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1070)" ( (binary_expression "param_1 + 0x1070" identifier + number_literal) )))) + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" identifier = identifier) ;) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" identifier = identifier) ;) (if_statement "if (piVar1 <= local_28) goto LAB_00044f89;" if (parenthesized_expression "(piVar1 <= local_28)" ( (binary_expression "piVar1 <= local_28" identifier <= identifier) )) (goto_statement "goto LAB_00044f89;" goto statement_identifier ;)) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ec8;" goto statement_identifier ;) })) (goto_statement "goto LAB_00044ed8;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , 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 (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void FUN_00044da0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" (primitive_type "void") (function_declarator "FUN_00044da0(int param_1)" (identifier "FUN_00044da0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_40;\n  int local_30;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x44da9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);\n  if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }\n  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);\n  FUN_0001b930(FUN_0003aae0,param_1);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\nLAB_00044ee5:\n  local_28 = local_28 + 1;\n  if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }\n  goto LAB_00044ed8;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int *local_28;" (primitive_type "int") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24;" (primitive_type "int") (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 = 0x44da9;" (assignment_expression "uStack_14 = 0x44da9" (identifier "uStack_14") (= "=") (number_literal "0x44da9")) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" (identifier "FUN_00059cc0") (argument_list "(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1088)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1088)" (( "(") (binary_expression "param_1 + 0x1088" (identifier "param_1") (+ "+") (number_literal "0x1088")) () ")")))) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (if_statement "if ((local_28 != (int *)0x0) && (0 < local_24)) {\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" (if "if") (parenthesized_expression "((local_28 != (int *)0x0) && (0 < local_24))" (( "(") (binary_expression "(local_28 != (int *)0x0) && (0 < local_24)" (parenthesized_expression "(local_28 != (int *)0x0)" (( "(") (binary_expression "local_28 != (int *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(0 < local_24)" (( "(") (binary_expression "0 < local_24" (number_literal "0") (< "<") (identifier "local_24")) () ")"))) () ")")) (compound_statement "{\n    FUN_0003cf70(param_1);\n    if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }\n    *(undefined4 *)(param_1 + 0x1074) = 0;\n    *(undefined4 *)(param_1 + 0x1078) = 0;\n    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);\n    *(undefined4 **)(param_1 + 0x1070) = puVar4;\n    if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }\n    piVar1 = local_28 + local_24;\n    piVar2 = local_28 + local_24 + -1;\nLAB_00044ec8:\n    iVar5 = iVar9;\n    piVar6 = local_28;\n    if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }\nLAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }\n    if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }\n  }" ({ "{") (expression_statement "FUN_0003cf70(param_1);" (call_expression "FUN_0003cf70(param_1)" (identifier "FUN_0003cf70") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x1070) != 0) {\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1070) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1070) != 0" (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0002da80(*(int *)(param_1 + 0x1070));\n    }" ({ "{") (expression_statement "FUN_0002da80(*(int *)(param_1 + 0x1070));" (call_expression "FUN_0002da80(*(int *)(param_1 + 0x1070))" (identifier "FUN_0002da80") (argument_list "(*(int *)(param_1 + 0x1070))" (( "(") (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1074)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1078)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1078)" (( "(") (binary_expression "param_1 + 0x1078" (identifier "param_1") (+ "+") (number_literal "0x1078")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);" (assignment_expression "puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_0002d1f0(local_24 + 0xc,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002d1f0(local_24 + 0xc,4)" (identifier "FUN_0002d1f0") (argument_list "(local_24 + 0xc,4)" (( "(") (binary_expression "local_24 + 0xc" (identifier "local_24") (+ "+") (number_literal "0xc")) (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x1070) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x1070) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x1070)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1070)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x16c) == 0) {\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }\n    else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x16c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x16c) == 0" (pointer_expression "*(int *)(param_1 + 0x16c)" (* "*") (cast_expression "(int *)(param_1 + 0x16c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16c)" (( "(") (binary_expression "param_1 + 0x16c" (identifier "param_1") (+ "+") (number_literal "0x16c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar9 = *(int *)(param_1 + 0x1074);\n      local_30 = 0;\n    }" ({ "{") (expression_statement "iVar9 = *(int *)(param_1 + 0x1074);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")"))))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" (else "else") (compound_statement "{\n      *puVar4 = DAT_000822b4;\n      puVar4[1] = DAT_000822b8;\n      puVar4[2] = DAT_000822bc;\n      puVar4[3] = DAT_000822c0;\n      puVar4[4] = DAT_000822c4;\n      puVar4[5] = DAT_000822c8;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      local_30 = *(int *)(param_1 + 0x16c);\n    }" ({ "{") (expression_statement "*puVar4 = DAT_000822b4;" (assignment_expression "*puVar4 = DAT_000822b4" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "DAT_000822b4")) (; ";")) (expression_statement "puVar4[1] = DAT_000822b8;" (assignment_expression "puVar4[1] = DAT_000822b8" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_000822b8")) (; ";")) (expression_statement "puVar4[2] = DAT_000822bc;" (assignment_expression "puVar4[2] = DAT_000822bc" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_000822bc")) (; ";")) (expression_statement "puVar4[3] = DAT_000822c0;" (assignment_expression "puVar4[3] = DAT_000822c0" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "DAT_000822c0")) (; ";")) (expression_statement "puVar4[4] = DAT_000822c4;" (assignment_expression "puVar4[4] = DAT_000822c4" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "DAT_000822c4")) (; ";")) (expression_statement "puVar4[5] = DAT_000822c8;" (assignment_expression "puVar4[5] = DAT_000822c8" (subscript_expression "puVar4[5]" (identifier "puVar4") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "DAT_000822c8")) (; ";")) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" (identifier "iVar9") (= "=") (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (+ "+") (number_literal "6"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "local_30 = *(int *)(param_1 + 0x16c);" (assignment_expression "local_30 = *(int *)(param_1 + 0x16c)" (identifier "local_30") (= "=") (pointer_expression "*(int *)(param_1 + 0x16c)" (* "*") (cast_expression "(int *)(param_1 + 0x16c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16c)" (( "(") (binary_expression "param_1 + 0x16c" (identifier "param_1") (+ "+") (number_literal "0x16c")) () ")"))))) (; ";")) (} "}")))) (expression_statement "piVar1 = local_28 + local_24;" (assignment_expression "piVar1 = local_28 + local_24" (identifier "piVar1") (= "=") (binary_expression "local_28 + local_24" (identifier "local_28") (+ "+") (identifier "local_24"))) (; ";")) (expression_statement "piVar2 = local_28 + local_24 + -1;" (assignment_expression "piVar2 = local_28 + local_24 + -1" (identifier "piVar2") (= "=") (binary_expression "local_28 + local_24 + -1" (binary_expression "local_28 + local_24" (identifier "local_28") (+ "+") (identifier "local_24")) (+ "+") (number_literal "-1"))) (; ";")) (labeled_statement "LAB_00044ec8:\n    iVar5 = iVar9;" (statement_identifier "LAB_00044ec8") (: ":") (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" (identifier "iVar5") (= "=") (identifier "iVar9")) (; ";"))) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" (identifier "piVar6") (= "=") (identifier "local_28")) (; ";")) (if_statement "if (local_28 < piVar1) {\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" (if "if") (parenthesized_expression "(local_28 < piVar1)" (( "(") (binary_expression "local_28 < piVar1" (identifier "local_28") (< "<") (identifier "piVar1")) () ")")) (compound_statement "{\nLAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;\n      local_40 = (int)local_28 - (int)piVar6;\n      if (0 < local_40) goto LAB_00044efd;\n      goto LAB_00044f59;\n    }" ({ "{") (labeled_statement "LAB_00044ed8:\n      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" (statement_identifier "LAB_00044ed8") (: ":") (if_statement "if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;" (if "if") (parenthesized_expression "((piVar2 < local_28) || (*local_28 != 10))" (( "(") (binary_expression "(piVar2 < local_28) || (*local_28 != 10)" (parenthesized_expression "(piVar2 < local_28)" (( "(") (binary_expression "piVar2 < local_28" (identifier "piVar2") (< "<") (identifier "local_28")) () ")")) (|| "||") (parenthesized_expression "(*local_28 != 10)" (( "(") (binary_expression "*local_28 != 10" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (!= "!=") (number_literal "10")) () ")"))) () ")")) (goto_statement "goto LAB_00044ee5;" (goto "goto") (statement_identifier "LAB_00044ee5") (; ";")))) (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" (identifier "local_40") (= "=") (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (- "-") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6")))) (; ";")) (if_statement "if (0 < local_40) goto LAB_00044efd;" (if "if") (parenthesized_expression "(0 < local_40)" (( "(") (binary_expression "0 < local_40" (number_literal "0") (< "<") (identifier "local_40")) () ")")) (goto_statement "goto LAB_00044efd;" (goto "goto") (statement_identifier "LAB_00044efd") (; ";"))) (goto_statement "goto LAB_00044f59;" (goto "goto") (statement_identifier "LAB_00044f59") (; ";")) (} "}"))) (labeled_statement "LAB_00044f89:\n    if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" (statement_identifier "LAB_00044f89") (: ":") (if_statement "if (local_30 != 0) {\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);\n      *puVar4 = DAT_000822d0;\n      puVar4[1] = DAT_000822d4;\n      puVar4[2] = DAT_000822d8;\n      puVar4[3] = DAT_000822dc;\n      puVar4[4] = DAT_000822e0;\n      puVar4[5] = DAT_000822e4;\n      iVar9 = *(int *)(param_1 + 0x1074) + 6;\n      *(int *)(param_1 + 0x1074) = iVar9;\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);" (assignment_expression "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar9 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x1070) + iVar9 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*puVar4 = DAT_000822d0;" (assignment_expression "*puVar4 = DAT_000822d0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "DAT_000822d0")) (; ";")) (expression_statement "puVar4[1] = DAT_000822d4;" (assignment_expression "puVar4[1] = DAT_000822d4" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_000822d4")) (; ";")) (expression_statement "puVar4[2] = DAT_000822d8;" (assignment_expression "puVar4[2] = DAT_000822d8" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_000822d8")) (; ";")) (expression_statement "puVar4[3] = DAT_000822dc;" (assignment_expression "puVar4[3] = DAT_000822dc" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "DAT_000822dc")) (; ";")) (expression_statement "puVar4[4] = DAT_000822e0;" (assignment_expression "puVar4[4] = DAT_000822e0" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "DAT_000822e0")) (; ";")) (expression_statement "puVar4[5] = DAT_000822e4;" (assignment_expression "puVar4[5] = DAT_000822e4" (subscript_expression "puVar4[5]" (identifier "puVar4") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "DAT_000822e4")) (; ";")) (expression_statement "iVar9 = *(int *)(param_1 + 0x1074) + 6;" (assignment_expression "iVar9 = *(int *)(param_1 + 0x1074) + 6" (identifier "iVar9") (= "=") (binary_expression "*(int *)(param_1 + 0x1074) + 6" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (+ "+") (number_literal "6"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (identifier "iVar9")) (; ";")) (} "}")))) (if_statement "if (iVar9 < 0x100) {\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" (if "if") (parenthesized_expression "(iVar9 < 0x100)" (( "(") (binary_expression "iVar9 < 0x100" (identifier "iVar9") (< "<") (number_literal "0x100")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x1070);\n      if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }\n      if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }\n      *(undefined4 *)(param_1 + 0x1070) = 0;\n      *(undefined4 *)(param_1 + 0x1074) = 0;\n      *(undefined4 *)(param_1 + 0x1078) = 0;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x1084) != 0) {\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1084) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1084) != 0" (pointer_expression "*(int *)(param_1 + 0x1084)" (* "*") (cast_expression "(int *)(param_1 + 0x1084)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1084)" (( "(") (binary_expression "param_1 + 0x1084" (identifier "param_1") (+ "+") (number_literal "0x1084")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);\n        iVar5 = *(int *)(param_1 + 0x1070);\n      }" ({ "{") (expression_statement "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);" (call_expression "FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" (identifier "FUN_00029520") (argument_list "(*(int *)(param_1 + 0x1084),iVar5,iVar9,0)" (( "(") (pointer_expression "*(int *)(param_1 + 0x1084)" (* "*") (cast_expression "(int *)(param_1 + 0x1084)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1084)" (( "(") (binary_expression "param_1 + 0x1084" (identifier "param_1") (+ "+") (number_literal "0x1084")) () ")")))) (, ",") (identifier "iVar5") (, ",") (identifier "iVar9") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x1070)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (iVar5 != 0) {\n        FUN_0002da80(iVar5);\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0002da80(iVar5);\n      }" ({ "{") (expression_statement "FUN_0002da80(iVar5);" (call_expression "FUN_0002da80(iVar5)" (identifier "FUN_0002da80") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x1070) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1070) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1070)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1070)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1074) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1074) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1074)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1074)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1078) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1078) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1078)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1078)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1078)" (( "(") (binary_expression "param_1 + 0x1078" (identifier "param_1") (+ "+") (number_literal "0x1078")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);" (call_expression "FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0)" (identifier "FUN_00059cc0") (argument_list "(*(undefined4 *)(param_1 + 0x1088),0,0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1088)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1088)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1088)" (( "(") (binary_expression "param_1 + 0x1088" (identifier "param_1") (+ "+") (number_literal "0x1088")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0001b930(FUN_0003aae0,param_1);" (call_expression "FUN_0001b930(FUN_0003aae0,param_1)" (identifier "FUN_0001b930") (argument_list "(FUN_0003aae0,param_1)" (( "(") (identifier "FUN_0003aae0") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\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                    \n    FUN_00066390();\n  }" ({ "{") (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" (identifier "FUN_00066390") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (labeled_statement "LAB_00044ee5:\n  local_28 = local_28 + 1;" (statement_identifier "LAB_00044ee5") (: ":") (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (piVar1 <= local_28) {\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" (if "if") (parenthesized_expression "(piVar1 <= local_28)" (( "(") (binary_expression "piVar1 <= local_28" (identifier "piVar1") (<= "<=") (identifier "local_28")) () ")")) (compound_statement "{\n    local_40 = (int)local_28 - (int)piVar6;\n    if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }\n    iVar9 = iVar5;\n    if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }\n    goto LAB_00044ec8;\n  }" ({ "{") (expression_statement "local_40 = (int)local_28 - (int)piVar6;" (assignment_expression "local_40 = (int)local_28 - (int)piVar6" (identifier "local_40") (= "=") (binary_expression "(int)local_28 - (int)piVar6" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (- "-") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6")))) (; ";")) (if_statement "if (0 < local_40) {\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" (if "if") (parenthesized_expression "(0 < local_40)" (( "(") (binary_expression "0 < local_40" (number_literal "0") (< "<") (identifier "local_40")) () ")")) (compound_statement "{\nLAB_00044efd:\n      local_40 = local_40 >> 2;\n      iVar3 = *(int *)(param_1 + 0x1070);\n      iVar9 = iVar5 * 4;\n      iVar8 = iVar5 + 1;\n      iVar7 = 0;\n      do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);\n      *(int *)(param_1 + 0x1074) = iVar5;\n    }" ({ "{") (labeled_statement "LAB_00044efd:\n      local_40 = local_40 >> 2;" (statement_identifier "LAB_00044efd") (: ":") (expression_statement "local_40 = local_40 >> 2;" (assignment_expression "local_40 = local_40 >> 2" (identifier "local_40") (= "=") (binary_expression "local_40 >> 2" (identifier "local_40") (>> ">>") (number_literal "2"))) (; ";"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x1070);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x1070)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")"))))) (; ";")) (expression_statement "iVar9 = iVar5 * 4;" (assignment_expression "iVar9 = iVar5 * 4" (identifier "iVar9") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar8 = iVar5 + 1;" (assignment_expression "iVar8 = iVar5 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      } while (iVar7 < local_40);" (do "do") (compound_statement "{\n        iVar5 = iVar8 + iVar7;\n        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];\n        iVar7 = iVar7 + 1;\n      }" ({ "{") (expression_statement "iVar5 = iVar8 + iVar7;" (assignment_expression "iVar5 = iVar8 + iVar7" (identifier "iVar5") (= "=") (binary_expression "iVar8 + iVar7" (identifier "iVar8") (+ "+") (identifier "iVar7"))) (; ";")) (expression_statement "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];" (assignment_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7]" (pointer_expression "*(int *)(iVar3 + iVar9 + iVar7 * 4)" (* "*") (cast_expression "(int *)(iVar3 + iVar9 + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar9 + iVar7 * 4)" (( "(") (binary_expression "iVar3 + iVar9 + iVar7 * 4" (binary_expression "iVar3 + iVar9" (identifier "iVar3") (+ "+") (identifier "iVar9")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "piVar6[iVar7]" (identifier "piVar6") ([ "[") (identifier "iVar7") (] "]"))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < local_40)" (( "(") (binary_expression "iVar7 < local_40" (identifier "iVar7") (< "<") (identifier "local_40")) () ")")) (; ";")) (expression_statement "*(int *)(param_1 + 0x1074) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" (identifier "iVar9") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (local_28 <= piVar2) {\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" (if "if") (parenthesized_expression "(local_28 <= piVar2)" (( "(") (binary_expression "local_28 <= piVar2" (identifier "local_28") (<= "<=") (identifier "piVar2")) () ")")) (compound_statement "{\nLAB_00044f59:\n      iVar9 = iVar5;\n      if (*local_28 != 10) goto LAB_00044ec8;\n      iVar9 = iVar5 + 1;\n      *(int *)(param_1 + 0x1074) = iVar9;\n      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;\n      local_28 = local_28 + 1;\n      iVar5 = iVar9;\n      piVar6 = local_28;\n      if (piVar1 <= local_28) goto LAB_00044f89;\n      goto LAB_00044ed8;\n    }" ({ "{") (labeled_statement "LAB_00044f59:\n      iVar9 = iVar5;" (statement_identifier "LAB_00044f59") (: ":") (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" (identifier "iVar9") (= "=") (identifier "iVar5")) (; ";"))) (if_statement "if (*local_28 != 10) goto LAB_00044ec8;" (if "if") (parenthesized_expression "(*local_28 != 10)" (( "(") (binary_expression "*local_28 != 10" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (!= "!=") (number_literal "10")) () ")")) (goto_statement "goto LAB_00044ec8;" (goto "goto") (statement_identifier "LAB_00044ec8") (; ";"))) (expression_statement "iVar9 = iVar5 + 1;" (assignment_expression "iVar9 = iVar5 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x1074) = iVar9;" (assignment_expression "*(int *)(param_1 + 0x1074) = iVar9" (pointer_expression "*(int *)(param_1 + 0x1074)" (* "*") (cast_expression "(int *)(param_1 + 0x1074)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1074)" (( "(") (binary_expression "param_1 + 0x1074" (identifier "param_1") (+ "+") (number_literal "0x1074")) () ")")))) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x1070) + iVar5 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x1070) + iVar5 * 4" (pointer_expression "*(int *)(param_1 + 0x1070)" (* "*") (cast_expression "(int *)(param_1 + 0x1070)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1070)" (( "(") (binary_expression "param_1 + 0x1070" (identifier "param_1") (+ "+") (number_literal "0x1070")) () ")")))) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0xd")) (; ";")) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar9;" (assignment_expression "iVar5 = iVar9" (identifier "iVar5") (= "=") (identifier "iVar9")) (; ";")) (expression_statement "piVar6 = local_28;" (assignment_expression "piVar6 = local_28" (identifier "piVar6") (= "=") (identifier "local_28")) (; ";")) (if_statement "if (piVar1 <= local_28) goto LAB_00044f89;" (if "if") (parenthesized_expression "(piVar1 <= local_28)" (( "(") (binary_expression "piVar1 <= local_28" (identifier "piVar1") (<= "<=") (identifier "local_28")) () ")")) (goto_statement "goto LAB_00044f89;" (goto "goto") (statement_identifier "LAB_00044f89") (; ";"))) (goto_statement "goto LAB_00044ed8;" (goto "goto") (statement_identifier "LAB_00044ed8") (; ";")) (} "}"))) (goto_statement "goto LAB_00044ec8;" (goto "goto") (statement_identifier "LAB_00044ec8") (; ";")) (} "}"))) (goto_statement "goto LAB_00044ed8;" (goto "goto") (statement_identifier "LAB_00044ed8") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *term)

{
  type_2 *var_9;
  type_2 *pwVar2;
  type_2 *var_8;
  type_2 *pwVar4;
  int var_18;
  int var_17;
  int var_12;
  int var_1;
  int var_10;
  int var_11;
  type_2 *var_3;
  int var_4;
  int var_15;
  type_3 uStack_14;
  
  uStack_14 = 0x44da9;
  var_15 = *(int *)(var_1 + 0x14);
  var_2(term->frontend,&var_3,&var_4);
  if ((var_3 != (type_2 *)0x0) && (0 < var_4)) {
    var_5(term);
    if (term->paste_buffer != (type_2 *)0x0) {
      var_6(term->paste_buffer);
    }
    term->paste_len = 0;
    term->paste_pos = 0;
    var_8 = (type_2 *)var_7(var_4 + 0xc,4);
    term->paste_buffer = var_8;
    if (term->bracketed_paste == 0) {
      var_12 = term->paste_len;
      var_11 = 0;
    }
    else {
      *var_8 = DAT_000822b4;
      var_8[1] = DAT_000822b8;
      var_8[2] = DAT_000822bc;
      var_8[3] = DAT_000822c0;
      var_8[4] = DAT_000822c4;
      var_8[5] = DAT_000822c8;
      var_12 = term->paste_len + 6;
      term->paste_len = var_12;
      var_11 = term->bracketed_paste;
    }
    var_8 = var_3 + var_4;
    var_9 = var_3 + var_4 + -1;
LAB_00044ec8:
    var_17 = var_12;
    pwVar4 = var_3;
    if (var_3 < var_8) {
LAB_00044ed8:
      if ((var_9 < var_3) || (*var_3 != L'\n')) goto LAB_00044ee5;
      var_10 = (int)var_3 - (int)pwVar4;
      if (0 < var_10) goto LAB_00044efd;
      goto LAB_00044f59;
    }
LAB_00044f89:
    if (var_11 != 0) {
      var_8 = term->paste_buffer + var_12;
      *var_8 = DAT_000822d0;
      var_8[1] = DAT_000822d4;
      var_8[2] = DAT_000822d8;
      var_8[3] = DAT_000822dc;
      var_8[4] = DAT_000822e0;
      var_8[5] = DAT_000822e4;
      var_12 = term->paste_len + 6;
      term->paste_len = var_12;
    }
    if (var_12 < 0x100) {
      var_8 = term->paste_buffer;
      if (term->ldisc != (void *)0x0) {
        var_13(term->ldisc,var_8,var_12,0);
        var_8 = term->paste_buffer;
      }
      if (var_8 != (type_2 *)0x0) {
        var_6(var_8);
      }
      term->paste_buffer = (type_2 *)0x0;
      term->paste_len = 0;
      term->paste_pos = 0;
    }
  }
  var_2(term->frontend,(type_2 **)0x0,(int *)0x0);
  var_14(term_paste_callback,term);
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return;
LAB_00044ee5:
  var_3 = var_3 + 1;
  if (var_8 <= var_3) {
    var_10 = (int)var_3 - (int)pwVar4;
    var_12 = var_17;
    if (0 < var_10) {
LAB_00044efd:
      var_10 = var_10 >> 2;
      pwVar2 = term->paste_buffer;
      var_18 = 0;
      do {
        var_12 = var_17 + 1 + var_18;
        pwVar2[var_17 + var_18] = pwVar4[var_18];
        var_18 = var_18 + 1;
      } while (var_18 < var_10);
      term->paste_len = var_12;
    }
    var_17 = var_12;
    if (var_3 <= var_9) {
LAB_00044f59:
      var_12 = var_17;
      if (*var_3 != L'\n') goto LAB_00044ec8;
      var_12 = var_17 + 1;
      term->paste_len = var_12;
      term->paste_buffer[var_17] = L'\r';
      var_3 = var_3 + 1;
      var_17 = var_12;
      pwVar4 = var_3;
      if (var_8 <= var_3) goto LAB_00044f89;
      goto LAB_00044ed8;
    }
    goto LAB_00044ec8;
  }
  goto LAB_00044ed8;
}


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

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

void MASKED(int param_1)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_40;
  int local_30;
  int *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x44da9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),&local_28,&local_24);
  if ((local_28 != (int *)0x0) && (0 < local_24)) {
    FUN_0003cf70(param_1);
    if (*(int *)(param_1 + 0x1070) != 0) {
      FUN_0002da80(*(int *)(param_1 + 0x1070));
    }
    *(undefined4 *)(param_1 + 0x1074) = 0;
    *(undefined4 *)(param_1 + 0x1078) = 0;
    puVar4 = (undefined4 *)FUN_0002d1f0(local_24 + 0xc,4);
    *(undefined4 **)(param_1 + 0x1070) = puVar4;
    if (*(int *)(param_1 + 0x16c) == 0) {
      iVar9 = *(int *)(param_1 + 0x1074);
      local_30 = 0;
    }
    else {
      *puVar4 = DAT_000822b4;
      puVar4[1] = DAT_000822b8;
      puVar4[2] = DAT_000822bc;
      puVar4[3] = DAT_000822c0;
      puVar4[4] = DAT_000822c4;
      puVar4[5] = DAT_000822c8;
      iVar9 = *(int *)(param_1 + 0x1074) + 6;
      *(int *)(param_1 + 0x1074) = iVar9;
      local_30 = *(int *)(param_1 + 0x16c);
    }
    piVar1 = local_28 + local_24;
    piVar2 = local_28 + local_24 + -1;
LAB_00044ec8:
    iVar5 = iVar9;
    piVar6 = local_28;
    if (local_28 < piVar1) {
LAB_00044ed8:
      if ((piVar2 < local_28) || (*local_28 != 10)) goto LAB_00044ee5;
      local_40 = (int)local_28 - (int)piVar6;
      if (0 < local_40) goto LAB_00044efd;
      goto LAB_00044f59;
    }
LAB_00044f89:
    if (local_30 != 0) {
      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x1070) + iVar9 * 4);
      *puVar4 = DAT_000822d0;
      puVar4[1] = DAT_000822d4;
      puVar4[2] = DAT_000822d8;
      puVar4[3] = DAT_000822dc;
      puVar4[4] = DAT_000822e0;
      puVar4[5] = DAT_000822e4;
      iVar9 = *(int *)(param_1 + 0x1074) + 6;
      *(int *)(param_1 + 0x1074) = iVar9;
    }
    if (iVar9 < 0x100) {
      iVar5 = *(int *)(param_1 + 0x1070);
      if (*(int *)(param_1 + 0x1084) != 0) {
        FUN_00029520(*(int *)(param_1 + 0x1084),iVar5,iVar9,0);
        iVar5 = *(int *)(param_1 + 0x1070);
      }
      if (iVar5 != 0) {
        FUN_0002da80(iVar5);
      }
      *(undefined4 *)(param_1 + 0x1070) = 0;
      *(undefined4 *)(param_1 + 0x1074) = 0;
      *(undefined4 *)(param_1 + 0x1078) = 0;
    }
  }
  FUN_00059cc0(*(undefined4 *)(param_1 + 0x1088),0,0);
  FUN_0001b930(FUN_0003aae0,param_1);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00066390();
  }
  return;
LAB_00044ee5:
  local_28 = local_28 + 1;
  if (piVar1 <= local_28) {
    local_40 = (int)local_28 - (int)piVar6;
    if (0 < local_40) {
LAB_00044efd:
      local_40 = local_40 >> 2;
      iVar3 = *(int *)(param_1 + 0x1070);
      iVar9 = iVar5 * 4;
      iVar8 = iVar5 + 1;
      iVar7 = 0;
      do {
        iVar5 = iVar8 + iVar7;
        *(int *)(iVar3 + iVar9 + iVar7 * 4) = piVar6[iVar7];
        iVar7 = iVar7 + 1;
      } while (iVar7 < local_40);
      *(int *)(param_1 + 0x1074) = iVar5;
    }
    iVar9 = iVar5;
    if (local_28 <= piVar2) {
LAB_00044f59:
      iVar9 = iVar5;
      if (*local_28 != 10) goto LAB_00044ec8;
      iVar9 = iVar5 + 1;
      *(int *)(param_1 + 0x1074) = iVar9;
      *(undefined4 *)(*(int *)(param_1 + 0x1070) + iVar5 * 4) = 0xd;
      local_28 = local_28 + 1;
      iVar5 = iVar9;
      piVar6 = local_28;
      if (piVar1 <= local_28) goto LAB_00044f89;
      goto LAB_00044ed8;
    }
    goto LAB_00044ec8;
  }
  goto LAB_00044ed8;
}

