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

void __regparm3 erase_lots(Terminal *term,int line_only,int from_begin,int to_end)

{
  termline **pptVar1;
  termchar *ptVar2;
  bool bVar3;
  bool bVar4;
  termline *line;
  ulong *puVar5;
  wchar_t wVar6;
  int iVar7;
  Terminal *term_00;
  Terminal *pTVar8;
  Terminal *y;
  int x;
  Terminal *in_stack_ffffffbc;
  int in_stack_ffffffc0;
  Terminal *in_stack_ffffffc4;
  int local_34;
  
  if (line_only == 0) {
    term_00 = (Terminal *)term->rows;
    bVar3 = true;
    bVar4 = true;
    y = (Terminal *)0x0;
    if (from_begin == 0) goto LAB_0003d217;
LAB_0003d4a5:
    if (to_end == 0) {
      pTVar8 = (Terminal *)(term->curs).y;
      iVar7 = (term->curs).x;
      x = 0;
LAB_0003d225:
      local_34 = iVar7 + 1;
      term_00 = pTVar8;
      if (term->cols != iVar7) goto LAB_0003d23c;
      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);
      local_34 = 0;
      if (iVar7 < 1) goto LAB_0003d250;
      goto LAB_0003d240;
    }
    local_34 = 0;
    x = 0;
  }
  else {
    y = (Terminal *)(term->curs).y;
    bVar3 = false;
    bVar4 = false;
    term_00 = (Terminal *)((int)&y->compatibility_level + 1);
    if (from_begin != 0) goto LAB_0003d4a5;
LAB_0003d217:
    pTVar8 = (Terminal *)(term->curs).y;
    iVar7 = (term->curs).x;
    y = pTVar8;
    x = iVar7;
    local_34 = from_begin;
    if (to_end == 0) goto LAB_0003d225;
LAB_0003d23c:
    if (0 < iVar7) {
LAB_0003d240:
      if (iVar7 <= term->cols) {
        in_stack_ffffffc0 = 0x3d4e7;
        check_boundary(term,iVar7,(int)pTVar8);
      }
    }
  }
LAB_0003d250:
  pTVar8 = (Terminal *)(term->selend).y;
  if (((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&
     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||
      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))) {
    term->selstate = ADDRTYPE_UNSPEC;
    (term->selend).y = 0;
    (term->selend).x = 0;
    (term->selstart).y = 0;
    (term->selstart).x = 0;
  }
  if (y == (Terminal *)0x0 && x == 0) {
    if ((Terminal *)term->rows == term_00) {
      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {
        pptVar1 = term->disptext;
        pTVar8 = (Terminal *)0x0;
        do {
          ptVar2 = pptVar1[(int)pTVar8]->chars;
          puVar5 = &ptVar2->attr;
          do {
            *puVar5 = *puVar5 | 0x3ffff;
            puVar5 = puVar5 + 3;
          } while (puVar5 != &ptVar2[iVar7].attr);
          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);
        } while (pTVar8 != term_00);
      }
      if (term->window_update_pending == 0) {
        term->window_update_pending = 1;
        in_stack_ffffffbc = term;
        wVar6 = schedule_timer(0x14,term_timer,term);
        term->next_update = wVar6;
      }
    }
    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;
    if (term->erase_to_scrollback != 0) {
      if ((Terminal *)term->rows == term_00) {
        in_stack_ffffffc0 = 0x3d5c2;
        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);
        term_00 = (Terminal *)(iVar7 + 1);
      }
      if (0 < (int)term_00) {
        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);
      }
      goto LAB_0003d2c2;
    }
    bVar3 = true;
  }
  else {
LAB_0003d2e0:
    bVar3 = false;
  }
  line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4);
  if (bVar4) {
    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {
      iVar7 = line->cols;
      if (iVar7 != term->cols) {
        resizeline(term,line,term->cols);
        iVar7 = term->cols;
      }
      if (iVar7 == x) {
        line->lattr = 0;
LAB_0003d34f:
        y = (Terminal *)((int)&y->compatibility_level + 1);
        x = 0;
        if ((int)y < term->rows) {
          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);
        }
      }
      else {
        copy_termchar(line,x,&term->erase_char);
        if (term->cols == x) goto LAB_0003d34f;
        x = x + 1;
      }
    }
  }
  else {
    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {
      iVar7 = line->cols;
      if (term->cols != iVar7) {
        resizeline(term,line,term->cols);
        iVar7 = term->cols;
      }
      if (x == iVar7) {
        line->lattr = line->lattr & 0xffcf;
LAB_0003d3be:
        y = (Terminal *)((int)&y->compatibility_level + 1);
        if ((int)y < term->rows) {
          x = 0;
          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);
        }
        else {
          x = 0;
        }
      }
      else {
        copy_termchar(line,x,&term->erase_char);
        if (term->cols == x) goto LAB_0003d3be;
        x = x + 1;
      }
    }
  }
  if (!bVar3) {
    return;
  }
LAB_0003d2c2:
  if (term->alt_which == 0) {
    term->tempsblines = 0;
  }
  return;
}



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

void __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)

{
  int iVar1;
  bool bVar2;
  bool bVar3;
  ushort *puVar4;
  int iVar5;
  uint *puVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int local_38;
  int local_34;
  
  if (param_2 == 0) {
    local_38 = *(int *)(param_1 + 0x128);
    bVar2 = true;
    bVar3 = true;
    iVar10 = 0;
    if (param_3 == 0) goto LAB_0003d217;
LAB_0003d4a5:
    if (param_4 == 0) {
      iVar5 = *(int *)(param_1 + 0x6c);
      iVar9 = *(int *)(param_1 + 0x70);
      iVar11 = 0;
LAB_0003d225:
      local_34 = iVar9 + 1;
      local_38 = iVar5;
      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;
      local_38 = iVar5 + 1;
      local_34 = 0;
      if (iVar9 < 1) goto LAB_0003d250;
      goto LAB_0003d240;
    }
    local_34 = 0;
    iVar11 = 0;
  }
  else {
    iVar10 = *(int *)(param_1 + 0x6c);
    bVar2 = false;
    bVar3 = false;
    local_38 = iVar10 + 1;
    if (param_3 != 0) goto LAB_0003d4a5;
LAB_0003d217:
    iVar5 = *(int *)(param_1 + 0x6c);
    iVar9 = *(int *)(param_1 + 0x70);
    iVar10 = iVar5;
    iVar11 = iVar9;
    local_34 = param_3;
    if (param_4 == 0) goto LAB_0003d225;
LAB_0003d23c:
    if (0 < iVar9) {
LAB_0003d240:
      if (iVar9 <= *(int *)(param_1 + 300)) {
        FUN_0003cb40();
      }
    }
  }
LAB_0003d250:
  iVar5 = *(int *)(param_1 + 0xe5c);
  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||
      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&
     ((*(int *)(param_1 + 0xe54) < local_38 ||
      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {
    *(undefined4 *)(param_1 + 0xe48) = 0;
    *(undefined4 *)(param_1 + 0xe5c) = 0;
    *(undefined4 *)(param_1 + 0xe60) = 0;
    *(undefined4 *)(param_1 + 0xe54) = 0;
    *(undefined4 *)(param_1 + 0xe58) = 0;
  }
  if (iVar10 == 0 && iVar11 == 0) {
    if (*(int *)(param_1 + 0x128) == local_38) {
      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {
        iVar9 = *(int *)(param_1 + 0x18);
        iVar8 = 0;
        do {
          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);
          puVar6 = (uint *)(iVar1 + 4);
          do {
            *puVar6 = *puVar6 | 0x3ffff;
            puVar6 = puVar6 + 3;
          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));
          iVar8 = iVar8 + 1;
        } while (iVar8 != local_38);
      }
      if (*(int *)(param_1 + 0x109c) == 0) {
        *(undefined4 *)(param_1 + 0x109c) = 1;
        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);
        *(undefined4 *)(param_1 + 0x10a0) = uVar7;
      }
    }
    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;
    if (*(int *)(param_1 + 0x1118) != 0) {
      if (*(int *)(param_1 + 0x128) == local_38) {
        local_38 = FUN_000381c0();
        local_38 = local_38 + 1;
      }
      if (0 < local_38) {
        FUN_0003b710(local_38,1);
      }
      goto LAB_0003d2c2;
    }
    bVar2 = true;
  }
  else {
LAB_0003d2e0:
    bVar2 = false;
  }
  puVar4 = (ushort *)FUN_00039490();
  if (bVar3) {
    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {
      iVar5 = *(int *)(puVar4 + 2);
      if (iVar5 != *(int *)(param_1 + 300)) {
        FUN_00039240();
        iVar5 = *(int *)(param_1 + 300);
      }
      if (iVar5 == iVar11) {
        *puVar4 = 0;
LAB_0003d34f:
        iVar10 = iVar10 + 1;
        iVar11 = 0;
        if (iVar10 < *(int *)(param_1 + 0x128)) {
          puVar4 = (ushort *)FUN_00039490();
        }
      }
      else {
        FUN_0003b240();
        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;
        iVar11 = iVar11 + 1;
      }
    }
  }
  else {
    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {
      iVar5 = *(int *)(puVar4 + 2);
      if (*(int *)(param_1 + 300) != iVar5) {
        FUN_00039240();
        iVar5 = *(int *)(param_1 + 300);
      }
      if (iVar11 == iVar5) {
        *puVar4 = *puVar4 & 0xffcf;
LAB_0003d3be:
        iVar10 = iVar10 + 1;
        if (iVar10 < *(int *)(param_1 + 0x128)) {
          iVar11 = 0;
          puVar4 = (ushort *)FUN_00039490();
        }
        else {
          iVar11 = 0;
        }
      }
      else {
        FUN_0003b240();
        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;
        iVar11 = iVar11 + 1;
      }
    }
  }
  if (!bVar2) {
    return;
  }
LAB_0003d2c2:
  if (*(int *)(param_1 + 0x1a4) == 0) {
    *(undefined4 *)(param_1 + 0x14) = 0;
  }
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x78609
SUB ESP,0x2c
MOV dword ptr [ESP + 0x8],ECX
MOV EAX,dword ptr [ESP + 0x40]
TEST EDX,EDX
JZ 0x0003d480
MOV EBP,dword ptr [EDI + 0x6c]
MOV byte ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0xc],0x0
LEA EDX,[EBP + 0x1]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JNZ 0x0003d4a5
MOV EBP,dword ptr [EDI + 0x6c]
MOV ESI,dword ptr [EDI + 0x70]
MOV ECX,EBP
MOV EDX,ESI
TEST EAX,EAX
JNZ 0x0003d23c
LEA EAX,[EDX + 0x1]
MOV dword ptr [ESP + 0x4],ECX
MOV dword ptr [ESP + 0x8],EAX
CMP dword ptr [EDI + 0x12c],EDX
JZ 0x0003d4f0
TEST EDX,EDX
JLE 0x0003d250
CMP dword ptr [EDI + 0x12c],EDX
JGE 0x0003d4e0
LEA ESI,[ESI]
CMP dword ptr [EDI + 0xe5c],EBP
JG 0x0003d438
JZ 0x0003d428
MOV ECX,EBP
OR ECX,ESI
JNZ 0x0003d2e0
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EDI + 0x128],EAX
JZ 0x0003d50c
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JNZ 0x0003d2e0
CMP byte ptr [ESP + 0x10],0x0
JZ 0x0003d2e0
MOV ECX,dword ptr [EDI + 0x1118]
TEST ECX,ECX
JZ 0x0003d5ce
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EDI + 0x128],EAX
JZ 0x0003d5b8
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JLE 0x0003d2c2
SUB ESP,0x8
LEA ECX,[EAX + -0x1]
XOR EDX,EDX
PUSH 0x1
PUSH EAX
MOV EAX,EDI
CALL 0x0003b710
ADD ESP,0x10
MOV EDX,dword ptr [EDI + 0x1a4]
TEST EDX,EDX
JNZ 0x0003d2d3
MOV dword ptr [EDI + 0x14],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x10],0x0
MOV EDX,EBP
MOV ECX,0x99b
MOV EAX,EDI
CALL 0x00039490
MOV EDX,dword ptr [ESP + 0xc]
MOV EBX,EAX
LEA EAX,[EDI + 0x54]
TEST EDX,EDX
MOV dword ptr [ESP + 0xc],EAX
JZ 0x0003d388
LEA ESI,[ESI]
NOP
CMP dword ptr [ESP + 0x4],EBP
JG 0x0003d326
JNZ 0x0003d410
CMP ESI,dword ptr [ESP + 0x8]
JGE 0x0003d410
MOV ECX,dword ptr [EDI + 0x12c]
MOV EAX,dword ptr [EBX + 0x4]
CMP EAX,ECX
JZ 0x0003d342
MOV EAX,EDI
MOV EDX,EBX
CALL 0x00039240
MOV EAX,dword ptr [EDI + 0x12c]
CMP EAX,ESI
JNZ 0x0003d3e8
XOR ESI,ESI
MOV word ptr [EBX],SI
ADD EBP,0x1
XOR ESI,ESI
CMP dword ptr [EDI + 0x128],EBP
JLE 0x0003d310
MOV ECX,0x9a7
MOV EDX,EBP
MOV EAX,EDI
CALL 0x00039490
MOV EBX,EAX
JMP 0x0003d310
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,ESI
MOV EAX,EBX
CALL 0x0003b240
CMP dword ptr [EDI + 0x12c],ESI
JZ 0x0003d3be
ADD ESI,0x1
CMP EBP,dword ptr [ESP + 0x4]
JL 0x0003d39a
JNZ 0x0003d410
CMP ESI,dword ptr [ESP + 0x8]
JGE 0x0003d410
MOV ECX,dword ptr [EDI + 0x12c]
MOV EAX,dword ptr [EBX + 0x4]
CMP ECX,EAX
JZ 0x0003d3b6
MOV EAX,EDI
MOV EDX,EBX
CALL 0x00039240
MOV EAX,dword ptr [EDI + 0x12c]
CMP ESI,EAX
JNZ 0x0003d370
AND word ptr [EBX],0xffcf
ADD EBP,0x1
CMP EBP,dword ptr [EDI + 0x128]
JL 0x0003d3d0
XOR ESI,ESI
JMP 0x0003d388
MOV ECX,0x9a7
MOV EDX,EBP
MOV EAX,EDI
XOR ESI,ESI
CALL 0x00039490
MOV EBX,EAX
JMP 0x0003d388
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,ESI
MOV EAX,EBX
CALL 0x0003b240
CMP dword ptr [EDI + 0x12c],ESI
JZ 0x0003d34f
ADD ESI,0x1
JMP 0x0003d310
MOV ECX,dword ptr [ESP + 0x10]
TEST ECX,ECX
JNZ 0x0003d2c2
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [EDI + 0xe60],ESI
JLE 0x0003d262
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EDI + 0xe54],EAX
JGE 0x0003d4c0
MOV dword ptr [EDI + 0xe48],0x0
MOV dword ptr [EDI + 0xe5c],0x0
MOV dword ptr [EDI + 0xe60],0x0
MOV dword ptr [EDI + 0xe54],0x0
MOV dword ptr [EDI + 0xe58],0x0
JMP 0x0003d262
MOV EBP,EDX
MOV EDX,dword ptr [EDI + 0x128]
MOV byte ptr [ESP + 0x10],0x1
MOV dword ptr [ESP + 0xc],0x1
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x0003d217
TEST EAX,EAX
JZ 0x0003d5db
MOV dword ptr [ESP + 0x8],0x0
XOR ESI,ESI
JMP 0x0003d250
JNZ 0x0003d262
MOV EAX,dword ptr [ESP + 0x8]
CMP dword ptr [EDI + 0xe58],EAX
JGE 0x0003d262
JMP 0x0003d444
MOV EAX,EDI
CALL 0x0003cb40
JMP 0x0003d250
LEA EAX,[ECX + 0x1]
MOV dword ptr [ESP + 0x8],0x0
MOV dword ptr [ESP + 0x4],EAX
TEST EDX,EDX
JG 0x0003d240
JMP 0x0003d250
MOV EDX,EAX
TEST EAX,EAX
JLE 0x0003d580
MOV EAX,dword ptr [EDI + 0x12c]
MOV dword ptr [ESP + 0x14],EAX
TEST EAX,EAX
JLE 0x0003d580
MOV EAX,dword ptr [EDI + 0x18]
MOV dword ptr [ESP + 0x1c],EDI
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x14],ESI
MOV ESI,EDX
LEA EAX,[EAX + EAX*0x2]
MOV dword ptr [ESP + 0x18],EBP
LEA EAX,[EAX*0x4 + 0x4]
MOV EBP,EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + ECX*0x4]
MOV EDX,dword ptr [EAX + 0x14]
LEA EAX,[EDX + 0x4]
ADD EDX,EBP
LEA ESI,[ESI]
NOP
OR dword ptr [EAX],0x3ffff
ADD EAX,0xc
CMP EAX,EDX
JNZ 0x0003d560
ADD ECX,0x1
CMP ECX,ESI
JNZ 0x0003d550
MOV ESI,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [ESP + 0x1c]
MOV EBP,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDI + 0x109c]
TEST EAX,EAX
JNZ 0x0003d278
SUB ESP,0x4
LEA EAX,[EBX + 0xfff88e8c]
MOV dword ptr [EDI + 0x109c],0x1
PUSH EDI
PUSH EAX
PUSH 0x14
CALL 0x000479e0
ADD ESP,0x10
MOV dword ptr [EDI + 0x10a0],EAX
JMP 0x0003d278
MOV EDX,dword ptr [EDI + 0x8]
MOV EAX,EDI
CALL 0x000381c0
ADD EAX,0x1
MOV dword ptr [ESP + 0x4],EAX
JMP 0x0003d2a5
MOV dword ptr [ESP + 0x10],0x1
JMP 0x0003d2e8
MOV ECX,dword ptr [EDI + 0x6c]
MOV EDX,dword ptr [EDI + 0x70]
XOR ESI,ESI
JMP 0x0003d225
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "ushort *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }" { (expression_statement "local_38 = *(int *)(param_1 + 0x128);" (assignment_expression "local_38 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) goto LAB_0003d217;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d217;" goto statement_identifier ;)) (labeled_statement "LAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" statement_identifier : (if_statement "if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d225:\n      local_34 = iVar9 + 1;" statement_identifier : (expression_statement "local_34 = iVar9 + 1;" (assignment_expression "local_34 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;)) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar9)" ( (binary_expression "*(int *)(param_1 + 300) != iVar9" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (goto_statement "goto LAB_0003d23c;" goto statement_identifier ;)) (expression_statement "local_38 = iVar5 + 1;" (assignment_expression "local_38 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) goto LAB_0003d250;" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0003d250;" goto statement_identifier ;)) (goto_statement "goto LAB_0003d240;" goto statement_identifier ;) }))) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" else (compound_statement "{\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" { (expression_statement "iVar10 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "local_38 = iVar10 + 1;" (assignment_expression "local_38 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 != 0) goto LAB_0003d4a5;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d4a5;" goto statement_identifier ;)) (labeled_statement "LAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;)) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = iVar5;" (assignment_expression "iVar10 = iVar5" identifier = identifier) ;) (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" identifier = identifier) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" identifier = identifier) ;) (if_statement "if (param_4 == 0) goto LAB_0003d225;" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d225;" goto statement_identifier ;)) (labeled_statement "LAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" statement_identifier : (if_statement "if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (compound_statement "{\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" { (labeled_statement "LAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" statement_identifier : (if_statement "if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" if (parenthesized_expression "(iVar9 <= *(int *)(param_1 + 300))" ( (binary_expression "iVar9 <= *(int *)(param_1 + 300)" identifier <= (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        FUN_0003cb40();\n      }" { (expression_statement "FUN_0003cb40();" (call_expression "FUN_0003cb40()" identifier (argument_list "()" ( ))) ;) }))) }))) }))) (labeled_statement "LAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0xe5c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xe5c)" identifier = (pointer_expression "*(int *)(param_1 + 0xe5c)" * (cast_expression "(int *)(param_1 + 0xe5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) ))))) ;)) (if_statement "if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" if (parenthesized_expression "(((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))))" ( (binary_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" (parenthesized_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))))" ( (binary_expression "(iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" (parenthesized_expression "(iVar5 != iVar10 && iVar10 <= iVar5)" ( (binary_expression "iVar5 != iVar10 && iVar10 <= iVar5" (binary_expression "iVar5 != iVar10" identifier != identifier) && (binary_expression "iVar10 <= iVar5" identifier <= identifier)) )) || (parenthesized_expression "((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" ( (parenthesized_expression "(iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))" ( (binary_expression "iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))" (binary_expression "iVar5 == iVar10" identifier == identifier) && (parenthesized_expression "(iVar11 < *(int *)(param_1 + 0xe60))" ( (binary_expression "iVar11 < *(int *)(param_1 + 0xe60)" identifier < (pointer_expression "*(int *)(param_1 + 0xe60)" * (cast_expression "(int *)(param_1 + 0xe60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) ))))) ))) )) ))) )) && (parenthesized_expression "((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" ( (parenthesized_expression "(*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))" ( (binary_expression "*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" (binary_expression "*(int *)(param_1 + 0xe54) < local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" * (cast_expression "(int *)(param_1 + 0xe54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) < identifier) || (parenthesized_expression "((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" ( (parenthesized_expression "(*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))" ( (binary_expression "*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)" (binary_expression "*(int *)(param_1 + 0xe54) == local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" * (cast_expression "(int *)(param_1 + 0xe54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(int *)(param_1 + 0xe58) < local_34)" ( (binary_expression "*(int *)(param_1 + 0xe58) < local_34" (pointer_expression "*(int *)(param_1 + 0xe58)" * (cast_expression "(int *)(param_1 + 0xe58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) < identifier) ))) )) ))) )) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" * (cast_expression "(undefined4 *)(param_1 + 0xe48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe48)" ( (binary_expression "param_1 + 0xe48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" * (cast_expression "(undefined4 *)(param_1 + 0xe5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" * (cast_expression "(undefined4 *)(param_1 + 0xe60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" * (cast_expression "(undefined4 *)(param_1 + 0xe54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" * (cast_expression "(undefined4 *)(param_1 + 0xe58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" if (parenthesized_expression "(iVar10 == 0 && iVar11 == 0)" ( (binary_expression "iVar10 == 0 && iVar11 == 0" (binary_expression "iVar10 == 0" identifier == number_literal) && (binary_expression "iVar11 == 0" identifier == number_literal)) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }" { (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" ( (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" { (if_statement "if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" if (parenthesized_expression "((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5))" ( (binary_expression "(0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" (parenthesized_expression "(0 < local_38)" ( (binary_expression "0 < local_38" number_literal < identifier) )) && (parenthesized_expression "(iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" ( (comma_expression "iVar5 = *(int *)(param_1 + 300), 0 < iVar5" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) , (binary_expression "0 < iVar5" number_literal < identifier)) ))) )) (compound_statement "{\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" { (expression_statement "iVar9 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);" do (compound_statement "{\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        }" { (expression_statement "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);" (assignment_expression "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + iVar8 * 4) + 0x14)" ( (binary_expression "*(int *)(iVar9 + iVar8 * 4) + 0x14" (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" * (cast_expression "(int *)(iVar9 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar8 * 4)" ( (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "puVar6 = (uint *)(iVar1 + 4);" (assignment_expression "puVar6 = (uint *)(iVar1 + 4)" identifier = (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));" do (compound_statement "{\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          }" { (expression_statement "*puVar6 = *puVar6 | 0x3ffff;" (assignment_expression "*puVar6 = *puVar6 | 0x3ffff" (pointer_expression "*puVar6" * identifier) = (binary_expression "*puVar6 | 0x3ffff" (pointer_expression "*puVar6" * identifier) | number_literal)) ;) (expression_statement "puVar6 = puVar6 + 3;" (assignment_expression "puVar6 = puVar6 + 3" identifier = (binary_expression "puVar6 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4))" ( (binary_expression "puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4)" identifier != (cast_expression "(uint *)(iVar1 + iVar5 * 0xc + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5 * 0xc + 4)" ( (binary_expression "iVar1 + iVar5 * 0xc + 4" (binary_expression "iVar1 + iVar5 * 0xc" identifier + (binary_expression "iVar5 * 0xc" identifier * number_literal)) + number_literal) )))) )) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != local_38)" ( (binary_expression "iVar8 != local_38" identifier != identifier) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x109c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x109c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x109c)" * (cast_expression "(undefined4 *)(param_1 + 0x109c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);" (assignment_expression "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1)" identifier = (call_expression "FUN_000479e0(0x14,FUN_0003e670,param_1)" identifier (argument_list "(0x14,FUN_0003e670,param_1)" ( number_literal , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10a0) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a0) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 0x10a0)" * (cast_expression "(undefined4 *)(param_1 + 0x10a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a0)" ( (binary_expression "param_1 + 0x10a0" identifier + number_literal) )))) = identifier) ;) })) })) (if_statement "if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;" if (parenthesized_expression "((local_34 != 0) || (!bVar2))" ( (binary_expression "(local_34 != 0) || (!bVar2)" (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) || (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) ))) )) (goto_statement "goto LAB_0003d2e0;" goto statement_identifier ;)) (if_statement "if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1118) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1118) != 0" (pointer_expression "*(int *)(param_1 + 0x1118)" * (cast_expression "(int *)(param_1 + 0x1118)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1118)" ( (binary_expression "param_1 + 0x1118" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" { (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" ( (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" { (expression_statement "local_38 = FUN_000381c0();" (assignment_expression "local_38 = FUN_000381c0()" identifier = (call_expression "FUN_000381c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" identifier = (binary_expression "local_38 + 1" identifier + number_literal)) ;) })) (if_statement "if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }" if (parenthesized_expression "(0 < local_38)" ( (binary_expression "0 < local_38" number_literal < identifier) )) (compound_statement "{\n        FUN_0003b710(local_38,1);\n      }" { (expression_statement "FUN_0003b710(local_38,1);" (call_expression "FUN_0003b710(local_38,1)" identifier (argument_list "(local_38,1)" ( identifier , number_literal ))) ;) })) (goto_statement "goto LAB_0003d2c2;" goto statement_identifier ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" else (compound_statement "{\nLAB_0003d2e0:\n    bVar2 = false;\n  }" { (labeled_statement "LAB_0003d2e0:\n    bVar2 = false;" statement_identifier : (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;)) }))) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" { (while_statement "while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" while (parenthesized_expression "((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))))" ( (parenthesized_expression "(iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))" ( (binary_expression "iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" identifier < identifier) || (parenthesized_expression "((local_38 == iVar10 && (iVar11 < local_34)))" ( (parenthesized_expression "(local_38 == iVar10 && (iVar11 < local_34))" ( (binary_expression "local_38 == iVar10 && (iVar11 < local_34)" (binary_expression "local_38 == iVar10" identifier == identifier) && (parenthesized_expression "(iVar11 < local_34)" ( (binary_expression "iVar11 < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" { (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" identifier = (pointer_expression "*(int *)(puVar4 + 2)" * (cast_expression "(int *)(puVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" if (parenthesized_expression "(iVar5 != *(int *)(param_1 + 300))" ( (binary_expression "iVar5 != *(int *)(param_1 + 300)" identifier != (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" { (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" if (parenthesized_expression "(iVar5 == iVar11)" ( (binary_expression "iVar5 == iVar11" identifier == identifier) )) (compound_statement "{\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (labeled_statement "LAB_0003d34f:\n        iVar10 = iVar10 + 1;" statement_identifier : (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;)) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }" if (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n          puVar4 = (ushort *)FUN_00039490();\n        }" { (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) })) }) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" else (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" { (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;" if (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" ( (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0003d34f;" goto statement_identifier ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" else (compound_statement "{\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" { (while_statement "while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" while (parenthesized_expression "((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))))" ( (parenthesized_expression "(iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))" ( (binary_expression "iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" identifier < identifier) || (parenthesized_expression "((iVar10 == local_38 && (iVar11 < local_34)))" ( (parenthesized_expression "(iVar10 == local_38 && (iVar11 < local_34))" ( (binary_expression "iVar10 == local_38 && (iVar11 < local_34)" (binary_expression "iVar10 == local_38" identifier == identifier) && (parenthesized_expression "(iVar11 < local_34)" ( (binary_expression "iVar11 < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" { (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" identifier = (pointer_expression "*(int *)(puVar4 + 2)" * (cast_expression "(int *)(puVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar5)" ( (binary_expression "*(int *)(param_1 + 300) != iVar5" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" { (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" if (parenthesized_expression "(iVar11 == iVar5)" ( (binary_expression "iVar11 == iVar5" identifier == identifier) )) (compound_statement "{\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }" { (expression_statement "*puVar4 = *puVar4 & 0xffcf;" (assignment_expression "*puVar4 = *puVar4 & 0xffcf" (pointer_expression "*puVar4" * identifier) = (binary_expression "*puVar4 & 0xffcf" (pointer_expression "*puVar4" * identifier) & number_literal)) ;) (labeled_statement "LAB_0003d3be:\n        iVar10 = iVar10 + 1;" statement_identifier : (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }" if (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n          iVar11 = 0;\n        }" else (compound_statement "{\n          iVar11 = 0;\n        }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" else (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" { (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;" if (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" ( (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0003d3be;" goto statement_identifier ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) })) }))) (if_statement "if (!bVar2) {\n    return;\n  }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1a4) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1a4) == 0" (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 erase_lots(Terminal *term,int line_only,int from_begin,int to_end)\n\n{\n  termline **pptVar1;\n  termchar *ptVar2;\n  bool bVar3;\n  bool bVar4;\n  termline *line;\n  ulong *puVar5;\n  wchar_t wVar6;\n  int iVar7;\n  Terminal *term_00;\n  Terminal *pTVar8;\n  Terminal *y;\n  int x;\n  Terminal *in_stack_ffffffbc;\n  int in_stack_ffffffc0;\n  Terminal *in_stack_ffffffc4;\n  int local_34;\n  \n  if (line_only == 0) {\n    term_00 = (Terminal *)term->rows;\n    bVar3 = true;\n    bVar4 = true;\n    y = (Terminal *)0x0;\n    if (from_begin == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    x = 0;\n  }\n  else {\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }\nLAB_0003d250:\n  pTVar8 = (Terminal *)(term->selend).y;\n  if (((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))) {\n    term->selstate = ADDRTYPE_UNSPEC;\n    (term->selend).y = 0;\n    (term->selend).x = 0;\n    (term->selstart).y = 0;\n    (term->selstart).x = 0;\n  }\n  if (y == (Terminal *)0x0 && x == 0) {\n    if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }\n    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;\n    if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar3 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar3 = false;\n  }\n  line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4);\n  if (bVar4) {\n    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }\n  }\n  else {\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }\n  if (!bVar3) {\n    return;\n  }\nLAB_0003d2c2:\n  if (term->alt_which == 0) {\n    term->tempsblines = 0;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 erase_lots(Terminal *term,int line_only,int from_begin,int to_end)\n\n{\n  termline **pptVar1;\n  termchar *ptVar2;\n  bool bVar3;\n  bool bVar4;\n  termline *line;\n  ulong *puVar5;\n  wchar_t wVar6;\n  int iVar7;\n  Terminal *term_00;\n  Terminal *pTVar8;\n  Terminal *y;\n  int x;\n  Terminal *in_stack_ffffffbc;\n  int in_stack_ffffffc0;\n  Terminal *in_stack_ffffffc4;\n  int local_34;\n  \n  if (line_only == 0) {\n    term_00 = (Terminal *)term->rows;\n    bVar3 = true;\n    bVar4 = true;\n    y = (Terminal *)0x0;\n    if (from_begin == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    x = 0;\n  }\n  else {\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }\nLAB_0003d250:\n  pTVar8 = (Terminal *)(term->selend).y;\n  if (((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))) {\n    term->selstate = ADDRTYPE_UNSPEC;\n    (term->selend).y = 0;\n    (term->selend).x = 0;\n    (term->selstart).y = 0;\n    (term->selstart).x = 0;\n  }\n  if (y == (Terminal *)0x0 && x == 0) {\n    if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }\n    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;\n    if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar3 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar3 = false;\n  }\n  line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4);\n  if (bVar4) {\n    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }\n  }\n  else {\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }\n  if (!bVar3) {\n    return;\n  }\nLAB_0003d2c2:\n  if (term->alt_which == 0) {\n    term->tempsblines = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "erase_lots(Terminal *term,int line_only,int from_begin,int to_end)" identifier (parameter_list "(Terminal *term,int line_only,int from_begin,int to_end)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) , (parameter_declaration "int line_only" primitive_type identifier) , (parameter_declaration "int from_begin" primitive_type identifier) , (parameter_declaration "int to_end" primitive_type identifier) ))) (compound_statement "{\n  termline **pptVar1;\n  termchar *ptVar2;\n  bool bVar3;\n  bool bVar4;\n  termline *line;\n  ulong *puVar5;\n  wchar_t wVar6;\n  int iVar7;\n  Terminal *term_00;\n  Terminal *pTVar8;\n  Terminal *y;\n  int x;\n  Terminal *in_stack_ffffffbc;\n  int in_stack_ffffffc0;\n  Terminal *in_stack_ffffffc4;\n  int local_34;\n  \n  if (line_only == 0) {\n    term_00 = (Terminal *)term->rows;\n    bVar3 = true;\n    bVar4 = true;\n    y = (Terminal *)0x0;\n    if (from_begin == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    x = 0;\n  }\n  else {\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }\nLAB_0003d250:\n  pTVar8 = (Terminal *)(term->selend).y;\n  if (((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))) {\n    term->selstate = ADDRTYPE_UNSPEC;\n    (term->selend).y = 0;\n    (term->selend).x = 0;\n    (term->selstart).y = 0;\n    (term->selstart).x = 0;\n  }\n  if (y == (Terminal *)0x0 && x == 0) {\n    if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }\n    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;\n    if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar3 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar3 = false;\n  }\n  line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4);\n  if (bVar4) {\n    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }\n  }\n  else {\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }\n  if (!bVar3) {\n    return;\n  }\nLAB_0003d2c2:\n  if (term->alt_which == 0) {\n    term->tempsblines = 0;\n  }\n  return;\n}" { (declaration "termline **pptVar1;" type_identifier (pointer_declarator "**pptVar1" * (pointer_declarator "*pptVar1" * identifier)) ;) (declaration "termchar *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "termline *line;" type_identifier (pointer_declarator "*line" * identifier) ;) (declaration "ulong *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "wchar_t wVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "Terminal *term_00;" type_identifier (pointer_declarator "*term_00" * identifier) ;) (declaration "Terminal *pTVar8;" type_identifier (pointer_declarator "*pTVar8" * identifier) ;) (declaration "Terminal *y;" type_identifier (pointer_declarator "*y" * identifier) ;) (declaration "int x;" primitive_type identifier ;) (declaration "Terminal *in_stack_ffffffbc;" type_identifier (pointer_declarator "*in_stack_ffffffbc" * identifier) ;) (declaration "int in_stack_ffffffc0;" primitive_type identifier ;) (declaration "Terminal *in_stack_ffffffc4;" type_identifier (pointer_declarator "*in_stack_ffffffc4" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (if_statement "if (line_only == 0) {\n    term_00 = (Terminal *)term->rows;\n    bVar3 = true;\n    bVar4 = true;\n    y = (Terminal *)0x0;\n    if (from_begin == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    x = 0;\n  }\n  else {\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }" if (parenthesized_expression "(line_only == 0)" ( (binary_expression "line_only == 0" identifier == number_literal) )) (compound_statement "{\n    term_00 = (Terminal *)term->rows;\n    bVar3 = true;\n    bVar4 = true;\n    y = (Terminal *)0x0;\n    if (from_begin == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    x = 0;\n  }" { (expression_statement "term_00 = (Terminal *)term->rows;" (assignment_expression "term_00 = (Terminal *)term->rows" identifier = (cast_expression "(Terminal *)term->rows" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "term->rows" identifier -> field_identifier))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (expression_statement "y = (Terminal *)0x0;" (assignment_expression "y = (Terminal *)0x0" identifier = (cast_expression "(Terminal *)0x0" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (from_begin == 0) goto LAB_0003d217;" if (parenthesized_expression "(from_begin == 0)" ( (binary_expression "from_begin == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d217;" goto statement_identifier ;)) (labeled_statement "LAB_0003d4a5:\n    if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" statement_identifier : (if_statement "if (to_end == 0) {\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" if (parenthesized_expression "(to_end == 0)" ( (binary_expression "to_end == 0" identifier == number_literal) )) (compound_statement "{\n      pTVar8 = (Terminal *)(term->curs).y;\n      iVar7 = (term->curs).x;\n      x = 0;\nLAB_0003d225:\n      local_34 = iVar7 + 1;\n      term_00 = pTVar8;\n      if (term->cols != iVar7) goto LAB_0003d23c;\n      term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n      local_34 = 0;\n      if (iVar7 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" { (expression_statement "pTVar8 = (Terminal *)(term->curs).y;" (assignment_expression "pTVar8 = (Terminal *)(term->curs).y" identifier = (cast_expression "(Terminal *)(term->curs).y" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "iVar7 = (term->curs).x;" (assignment_expression "iVar7 = (term->curs).x" identifier = (field_expression "(term->curs).x" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "x = 0;" (assignment_expression "x = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d225:\n      local_34 = iVar7 + 1;" statement_identifier : (expression_statement "local_34 = iVar7 + 1;" (assignment_expression "local_34 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "term_00 = pTVar8;" (assignment_expression "term_00 = pTVar8" identifier = identifier) ;) (if_statement "if (term->cols != iVar7) goto LAB_0003d23c;" if (parenthesized_expression "(term->cols != iVar7)" ( (binary_expression "term->cols != iVar7" (field_expression "term->cols" identifier -> field_identifier) != identifier) )) (goto_statement "goto LAB_0003d23c;" goto statement_identifier ;)) (expression_statement "term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1);" (assignment_expression "term_00 = (Terminal *)((int)&pTVar8->compatibility_level + 1)" identifier = (cast_expression "(Terminal *)((int)&pTVar8->compatibility_level + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTVar8->compatibility_level + 1)" ( (binary_expression "(int)&pTVar8->compatibility_level + 1" (cast_expression "(int)&pTVar8->compatibility_level" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTVar8->compatibility_level" & (field_expression "pTVar8->compatibility_level" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (iVar7 < 1) goto LAB_0003d250;" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0003d250;" goto statement_identifier ;)) (goto_statement "goto LAB_0003d240;" goto statement_identifier ;) }))) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "x = 0;" (assignment_expression "x = 0" identifier = number_literal) ;) }) (else_clause "else {\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }" else (compound_statement "{\n    y = (Terminal *)(term->curs).y;\n    bVar3 = false;\n    bVar4 = false;\n    term_00 = (Terminal *)((int)&y->compatibility_level + 1);\n    if (from_begin != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;\n    iVar7 = (term->curs).x;\n    y = pTVar8;\n    x = iVar7;\n    local_34 = from_begin;\n    if (to_end == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }\n  }" { (expression_statement "y = (Terminal *)(term->curs).y;" (assignment_expression "y = (Terminal *)(term->curs).y" identifier = (cast_expression "(Terminal *)(term->curs).y" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "term_00 = (Terminal *)((int)&y->compatibility_level + 1);" (assignment_expression "term_00 = (Terminal *)((int)&y->compatibility_level + 1)" identifier = (cast_expression "(Terminal *)((int)&y->compatibility_level + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&y->compatibility_level + 1)" ( (binary_expression "(int)&y->compatibility_level + 1" (cast_expression "(int)&y->compatibility_level" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&y->compatibility_level" & (field_expression "y->compatibility_level" identifier -> field_identifier))) + number_literal) )))) ;) (if_statement "if (from_begin != 0) goto LAB_0003d4a5;" if (parenthesized_expression "(from_begin != 0)" ( (binary_expression "from_begin != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d4a5;" goto statement_identifier ;)) (labeled_statement "LAB_0003d217:\n    pTVar8 = (Terminal *)(term->curs).y;" statement_identifier : (expression_statement "pTVar8 = (Terminal *)(term->curs).y;" (assignment_expression "pTVar8 = (Terminal *)(term->curs).y" identifier = (cast_expression "(Terminal *)(term->curs).y" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(term->curs).y" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier))) ;)) (expression_statement "iVar7 = (term->curs).x;" (assignment_expression "iVar7 = (term->curs).x" identifier = (field_expression "(term->curs).x" (parenthesized_expression "(term->curs)" ( (field_expression "term->curs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "y = pTVar8;" (assignment_expression "y = pTVar8" identifier = identifier) ;) (expression_statement "x = iVar7;" (assignment_expression "x = iVar7" identifier = identifier) ;) (expression_statement "local_34 = from_begin;" (assignment_expression "local_34 = from_begin" identifier = identifier) ;) (if_statement "if (to_end == 0) goto LAB_0003d225;" if (parenthesized_expression "(to_end == 0)" ( (binary_expression "to_end == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d225;" goto statement_identifier ;)) (labeled_statement "LAB_0003d23c:\n    if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }" statement_identifier : (if_statement "if (0 < iVar7) {\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\nLAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }\n    }" { (labeled_statement "LAB_0003d240:\n      if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }" statement_identifier : (if_statement "if (iVar7 <= term->cols) {\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }" if (parenthesized_expression "(iVar7 <= term->cols)" ( (binary_expression "iVar7 <= term->cols" identifier <= (field_expression "term->cols" identifier -> field_identifier)) )) (compound_statement "{\n        in_stack_ffffffc0 = 0x3d4e7;\n        check_boundary(term,iVar7,(int)pTVar8);\n      }" { (expression_statement "in_stack_ffffffc0 = 0x3d4e7;" (assignment_expression "in_stack_ffffffc0 = 0x3d4e7" identifier = number_literal) ;) (expression_statement "check_boundary(term,iVar7,(int)pTVar8);" (call_expression "check_boundary(term,iVar7,(int)pTVar8)" identifier (argument_list "(term,iVar7,(int)pTVar8)" ( identifier , identifier , (cast_expression "(int)pTVar8" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) }))) }))) }))) (labeled_statement "LAB_0003d250:\n  pTVar8 = (Terminal *)(term->selend).y;" statement_identifier : (expression_statement "pTVar8 = (Terminal *)(term->selend).y;" (assignment_expression "pTVar8 = (Terminal *)(term->selend).y" identifier = (cast_expression "(Terminal *)(term->selend).y" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier))) ;)) (if_statement "if (((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))) {\n    term->selstate = ADDRTYPE_UNSPEC;\n    (term->selend).y = 0;\n    (term->selend).x = 0;\n    (term->selstart).y = 0;\n    (term->selstart).x = 0;\n  }" if (parenthesized_expression "(((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34))))))" ( (binary_expression "((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))) &&\n     ((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))" (parenthesized_expression "((pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x))))" ( (binary_expression "(pTVar8 != y && (int)y <= (int)pTVar8) || ((pTVar8 == y && (x < (term->selend).x)))" (parenthesized_expression "(pTVar8 != y && (int)y <= (int)pTVar8)" ( (binary_expression "pTVar8 != y && (int)y <= (int)pTVar8" (binary_expression "pTVar8 != y" identifier != identifier) && (binary_expression "(int)y <= (int)pTVar8" (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)pTVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) || (parenthesized_expression "((pTVar8 == y && (x < (term->selend).x)))" ( (parenthesized_expression "(pTVar8 == y && (x < (term->selend).x))" ( (binary_expression "pTVar8 == y && (x < (term->selend).x)" (binary_expression "pTVar8 == y" identifier == identifier) && (parenthesized_expression "(x < (term->selend).x)" ( (binary_expression "x < (term->selend).x" identifier < (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier)) ))) )) ))) )) && (parenthesized_expression "((pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))))" ( (parenthesized_expression "(pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34))))" ( (comma_expression "pTVar8 = (Terminal *)(term->selstart).y, (int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))" (assignment_expression "pTVar8 = (Terminal *)(term->selstart).y" identifier = (cast_expression "(Terminal *)(term->selstart).y" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(term->selstart).y" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier))) , (binary_expression "(int)pTVar8 < (int)term_00 ||\n      ((pTVar8 == term_00 && ((term->selstart).x < local_34)))" (binary_expression "(int)pTVar8 < (int)term_00" (cast_expression "(int)pTVar8" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)term_00" ( (type_descriptor "int" primitive_type) ) identifier)) || (parenthesized_expression "((pTVar8 == term_00 && ((term->selstart).x < local_34)))" ( (parenthesized_expression "(pTVar8 == term_00 && ((term->selstart).x < local_34))" ( (binary_expression "pTVar8 == term_00 && ((term->selstart).x < local_34)" (binary_expression "pTVar8 == term_00" identifier == identifier) && (parenthesized_expression "((term->selstart).x < local_34)" ( (binary_expression "(term->selstart).x < local_34" (field_expression "(term->selstart).x" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier) < identifier) ))) )) )))) )) ))) )) (compound_statement "{\n    term->selstate = ADDRTYPE_UNSPEC;\n    (term->selend).y = 0;\n    (term->selend).x = 0;\n    (term->selstart).y = 0;\n    (term->selstart).x = 0;\n  }" { (expression_statement "term->selstate = ADDRTYPE_UNSPEC;" (assignment_expression "term->selstate = ADDRTYPE_UNSPEC" (field_expression "term->selstate" identifier -> field_identifier) = identifier) ;) (expression_statement "(term->selend).y = 0;" (assignment_expression "(term->selend).y = 0" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(term->selend).x = 0;" (assignment_expression "(term->selend).x = 0" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(term->selstart).y = 0;" (assignment_expression "(term->selstart).y = 0" (field_expression "(term->selstart).y" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(term->selstart).x = 0;" (assignment_expression "(term->selstart).x = 0" (field_expression "(term->selstart).x" (parenthesized_expression "(term->selstart)" ( (field_expression "term->selstart" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) })) (if_statement "if (y == (Terminal *)0x0 && x == 0) {\n    if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }\n    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;\n    if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar3 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar3 = false;\n  }" if (parenthesized_expression "(y == (Terminal *)0x0 && x == 0)" ( (binary_expression "y == (Terminal *)0x0 && x == 0" (binary_expression "y == (Terminal *)0x0" identifier == (cast_expression "(Terminal *)0x0" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "x == 0" identifier == number_literal)) )) (compound_statement "{\n    if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }\n    if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;\n    if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar3 = true;\n  }" { (if_statement "if ((Terminal *)term->rows == term_00) {\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }" if (parenthesized_expression "((Terminal *)term->rows == term_00)" ( (binary_expression "(Terminal *)term->rows == term_00" (cast_expression "(Terminal *)term->rows" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "term->rows" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }\n      if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }\n    }" { (if_statement "if ((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)) {\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }" if (parenthesized_expression "((0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7))" ( (binary_expression "(0 < (int)term_00) && (iVar7 = term->cols, 0 < iVar7)" (parenthesized_expression "(0 < (int)term_00)" ( (binary_expression "0 < (int)term_00" number_literal < (cast_expression "(int)term_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(iVar7 = term->cols, 0 < iVar7)" ( (comma_expression "iVar7 = term->cols, 0 < iVar7" (assignment_expression "iVar7 = term->cols" identifier = (field_expression "term->cols" identifier -> field_identifier)) , (binary_expression "0 < iVar7" number_literal < identifier)) ))) )) (compound_statement "{\n        pptVar1 = term->disptext;\n        pTVar8 = (Terminal *)0x0;\n        do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);\n      }" { (expression_statement "pptVar1 = term->disptext;" (assignment_expression "pptVar1 = term->disptext" identifier = (field_expression "term->disptext" identifier -> field_identifier)) ;) (expression_statement "pTVar8 = (Terminal *)0x0;" (assignment_expression "pTVar8 = (Terminal *)0x0" identifier = (cast_expression "(Terminal *)0x0" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        } while (pTVar8 != term_00);" do (compound_statement "{\n          ptVar2 = pptVar1[(int)pTVar8]->chars;\n          puVar5 = &ptVar2->attr;\n          do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);\n          pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);\n        }" { (expression_statement "ptVar2 = pptVar1[(int)pTVar8]->chars;" (assignment_expression "ptVar2 = pptVar1[(int)pTVar8]->chars" identifier = (field_expression "pptVar1[(int)pTVar8]->chars" (subscript_expression "pptVar1[(int)pTVar8]" identifier [ (cast_expression "(int)pTVar8" ( (type_descriptor "int" primitive_type) ) identifier) ]) -> field_identifier)) ;) (expression_statement "puVar5 = &ptVar2->attr;" (assignment_expression "puVar5 = &ptVar2->attr" identifier = (pointer_expression "&ptVar2->attr" & (field_expression "ptVar2->attr" identifier -> field_identifier))) ;) (do_statement "do {\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          } while (puVar5 != &ptVar2[iVar7].attr);" do (compound_statement "{\n            *puVar5 = *puVar5 | 0x3ffff;\n            puVar5 = puVar5 + 3;\n          }" { (expression_statement "*puVar5 = *puVar5 | 0x3ffff;" (assignment_expression "*puVar5 = *puVar5 | 0x3ffff" (pointer_expression "*puVar5" * identifier) = (binary_expression "*puVar5 | 0x3ffff" (pointer_expression "*puVar5" * identifier) | number_literal)) ;) (expression_statement "puVar5 = puVar5 + 3;" (assignment_expression "puVar5 = puVar5 + 3" identifier = (binary_expression "puVar5 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != &ptVar2[iVar7].attr)" ( (binary_expression "puVar5 != &ptVar2[iVar7].attr" identifier != (pointer_expression "&ptVar2[iVar7].attr" & (field_expression "ptVar2[iVar7].attr" (subscript_expression "ptVar2[iVar7]" identifier [ identifier ]) . field_identifier))) )) ;) (expression_statement "pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1);" (assignment_expression "pTVar8 = (Terminal *)((int)&pTVar8->compatibility_level + 1)" identifier = (cast_expression "(Terminal *)((int)&pTVar8->compatibility_level + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTVar8->compatibility_level + 1)" ( (binary_expression "(int)&pTVar8->compatibility_level + 1" (cast_expression "(int)&pTVar8->compatibility_level" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTVar8->compatibility_level" & (field_expression "pTVar8->compatibility_level" identifier -> field_identifier))) + number_literal) )))) ;) }) while (parenthesized_expression "(pTVar8 != term_00)" ( (binary_expression "pTVar8 != term_00" identifier != identifier) )) ;) })) (if_statement "if (term->window_update_pending == 0) {\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }" if (parenthesized_expression "(term->window_update_pending == 0)" ( (binary_expression "term->window_update_pending == 0" (field_expression "term->window_update_pending" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        term->window_update_pending = 1;\n        in_stack_ffffffbc = term;\n        wVar6 = schedule_timer(0x14,term_timer,term);\n        term->next_update = wVar6;\n      }" { (expression_statement "term->window_update_pending = 1;" (assignment_expression "term->window_update_pending = 1" (field_expression "term->window_update_pending" identifier -> field_identifier) = number_literal) ;) (expression_statement "in_stack_ffffffbc = term;" (assignment_expression "in_stack_ffffffbc = term" identifier = identifier) ;) (expression_statement "wVar6 = schedule_timer(0x14,term_timer,term);" (assignment_expression "wVar6 = schedule_timer(0x14,term_timer,term)" identifier = (call_expression "schedule_timer(0x14,term_timer,term)" identifier (argument_list "(0x14,term_timer,term)" ( number_literal , identifier , identifier )))) ;) (expression_statement "term->next_update = wVar6;" (assignment_expression "term->next_update = wVar6" (field_expression "term->next_update" identifier -> field_identifier) = identifier) ;) })) })) (if_statement "if ((local_34 != 0) || (!bVar3)) goto LAB_0003d2e0;" if (parenthesized_expression "((local_34 != 0) || (!bVar3))" ( (binary_expression "(local_34 != 0) || (!bVar3)" (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) || (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) ))) )) (goto_statement "goto LAB_0003d2e0;" goto statement_identifier ;)) (if_statement "if (term->erase_to_scrollback != 0) {\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }" if (parenthesized_expression "(term->erase_to_scrollback != 0)" ( (binary_expression "term->erase_to_scrollback != 0" (field_expression "term->erase_to_scrollback" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }\n      if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }\n      goto LAB_0003d2c2;\n    }" { (if_statement "if ((Terminal *)term->rows == term_00) {\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }" if (parenthesized_expression "((Terminal *)term->rows == term_00)" ( (binary_expression "(Terminal *)term->rows == term_00" (cast_expression "(Terminal *)term->rows" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "term->rows" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n        in_stack_ffffffc0 = 0x3d5c2;\n        iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);\n        term_00 = (Terminal *)(iVar7 + 1);\n      }" { (expression_statement "in_stack_ffffffc0 = 0x3d5c2;" (assignment_expression "in_stack_ffffffc0 = 0x3d5c2" identifier = number_literal) ;) (expression_statement "iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00);" (assignment_expression "iVar7 = find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00)" identifier = (call_expression "find_last_nonempty_line(in_stack_ffffffc4,(tree234 *)term_00)" identifier (argument_list "(in_stack_ffffffc4,(tree234 *)term_00)" ( identifier , (cast_expression "(tree234 *)term_00" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "term_00 = (Terminal *)(iVar7 + 1);" (assignment_expression "term_00 = (Terminal *)(iVar7 + 1)" identifier = (cast_expression "(Terminal *)(iVar7 + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 1)" ( (binary_expression "iVar7 + 1" identifier + number_literal) )))) ;) })) (if_statement "if (0 < (int)term_00) {\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }" if (parenthesized_expression "(0 < (int)term_00)" ( (binary_expression "0 < (int)term_00" number_literal < (cast_expression "(int)term_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);\n      }" { (expression_statement "scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);" (call_expression "scroll(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4)" identifier (argument_list "(term_00,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4)" ( identifier , number_literal , (cast_expression "(int)in_stack_ffffffbc" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (goto_statement "goto LAB_0003d2c2;" goto statement_identifier ;) })) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else {\nLAB_0003d2e0:\n    bVar3 = false;\n  }" else (compound_statement "{\nLAB_0003d2e0:\n    bVar3 = false;\n  }" { (labeled_statement "LAB_0003d2e0:\n    bVar3 = false;" statement_identifier : (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;)) }))) (expression_statement "line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4);" (assignment_expression "line = lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4)" identifier = (call_expression "lineptr(term,(int)y,0x99b,(int)in_stack_ffffffc4)" identifier (argument_list "(term,(int)y,0x99b,(int)in_stack_ffffffc4)" ( identifier , (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (bVar4) {\n    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }\n  }\n  else {\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }\n  }" { (while_statement "while (((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }" while (parenthesized_expression "(((int)y < (int)term_00 || ((term_00 == y && (x < local_34)))))" ( (parenthesized_expression "((int)y < (int)term_00 || ((term_00 == y && (x < local_34))))" ( (binary_expression "(int)y < (int)term_00 || ((term_00 == y && (x < local_34)))" (binary_expression "(int)y < (int)term_00" (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)term_00" ( (type_descriptor "int" primitive_type) ) identifier)) || (parenthesized_expression "((term_00 == y && (x < local_34)))" ( (parenthesized_expression "(term_00 == y && (x < local_34))" ( (binary_expression "term_00 == y && (x < local_34)" (binary_expression "term_00 == y" identifier == identifier) && (parenthesized_expression "(x < local_34)" ( (binary_expression "x < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar7 = line->cols;\n      if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }\n    }" { (expression_statement "iVar7 = line->cols;" (assignment_expression "iVar7 = line->cols" identifier = (field_expression "line->cols" identifier -> field_identifier)) ;) (if_statement "if (iVar7 != term->cols) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }" if (parenthesized_expression "(iVar7 != term->cols)" ( (binary_expression "iVar7 != term->cols" identifier != (field_expression "term->cols" identifier -> field_identifier)) )) (compound_statement "{\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }" { (expression_statement "resizeline(term,line,term->cols);" (call_expression "resizeline(term,line,term->cols)" identifier (argument_list "(term,line,term->cols)" ( identifier , identifier , (field_expression "term->cols" identifier -> field_identifier) ))) ;) (expression_statement "iVar7 = term->cols;" (assignment_expression "iVar7 = term->cols" identifier = (field_expression "term->cols" identifier -> field_identifier)) ;) })) (if_statement "if (iVar7 == x) {\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }" if (parenthesized_expression "(iVar7 == x)" ( (binary_expression "iVar7 == x" identifier == identifier) )) (compound_statement "{\n        line->lattr = 0;\nLAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        x = 0;\n        if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n      }" { (expression_statement "line->lattr = 0;" (assignment_expression "line->lattr = 0" (field_expression "line->lattr" identifier -> field_identifier) = number_literal) ;) (labeled_statement "LAB_0003d34f:\n        y = (Terminal *)((int)&y->compatibility_level + 1);" statement_identifier : (expression_statement "y = (Terminal *)((int)&y->compatibility_level + 1);" (assignment_expression "y = (Terminal *)((int)&y->compatibility_level + 1)" identifier = (cast_expression "(Terminal *)((int)&y->compatibility_level + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&y->compatibility_level + 1)" ( (binary_expression "(int)&y->compatibility_level + 1" (cast_expression "(int)&y->compatibility_level" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&y->compatibility_level" & (field_expression "y->compatibility_level" identifier -> field_identifier))) + number_literal) )))) ;)) (expression_statement "x = 0;" (assignment_expression "x = 0" identifier = number_literal) ;) (if_statement "if ((int)y < term->rows) {\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }" if (parenthesized_expression "((int)y < term->rows)" ( (binary_expression "(int)y < term->rows" (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) < (field_expression "term->rows" identifier -> field_identifier)) )) (compound_statement "{\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }" { (expression_statement "line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);" (assignment_expression "line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" identifier = (call_expression "lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" identifier (argument_list "(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" ( identifier , (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) })) }) (else_clause "else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }" else (compound_statement "{\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d34f;\n        x = x + 1;\n      }" { (expression_statement "copy_termchar(line,x,&term->erase_char);" (call_expression "copy_termchar(line,x,&term->erase_char)" identifier (argument_list "(line,x,&term->erase_char)" ( identifier , identifier , (pointer_expression "&term->erase_char" & (field_expression "term->erase_char" identifier -> field_identifier)) ))) ;) (if_statement "if (term->cols == x) goto LAB_0003d34f;" if (parenthesized_expression "(term->cols == x)" ( (binary_expression "term->cols == x" (field_expression "term->cols" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_0003d34f;" goto statement_identifier ;)) (expression_statement "x = x + 1;" (assignment_expression "x = x + 1" identifier = (binary_expression "x + 1" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }" else (compound_statement "{\n    while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }\n  }" { (while_statement "while (((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))) {\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }" while (parenthesized_expression "(((int)y < (int)term_00 || ((y == term_00 && (x < local_34)))))" ( (parenthesized_expression "((int)y < (int)term_00 || ((y == term_00 && (x < local_34))))" ( (binary_expression "(int)y < (int)term_00 || ((y == term_00 && (x < local_34)))" (binary_expression "(int)y < (int)term_00" (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)term_00" ( (type_descriptor "int" primitive_type) ) identifier)) || (parenthesized_expression "((y == term_00 && (x < local_34)))" ( (parenthesized_expression "(y == term_00 && (x < local_34))" ( (binary_expression "y == term_00 && (x < local_34)" (binary_expression "y == term_00" identifier == identifier) && (parenthesized_expression "(x < local_34)" ( (binary_expression "x < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar7 = line->cols;\n      if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }\n      if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }\n    }" { (expression_statement "iVar7 = line->cols;" (assignment_expression "iVar7 = line->cols" identifier = (field_expression "line->cols" identifier -> field_identifier)) ;) (if_statement "if (term->cols != iVar7) {\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }" if (parenthesized_expression "(term->cols != iVar7)" ( (binary_expression "term->cols != iVar7" (field_expression "term->cols" identifier -> field_identifier) != identifier) )) (compound_statement "{\n        resizeline(term,line,term->cols);\n        iVar7 = term->cols;\n      }" { (expression_statement "resizeline(term,line,term->cols);" (call_expression "resizeline(term,line,term->cols)" identifier (argument_list "(term,line,term->cols)" ( identifier , identifier , (field_expression "term->cols" identifier -> field_identifier) ))) ;) (expression_statement "iVar7 = term->cols;" (assignment_expression "iVar7 = term->cols" identifier = (field_expression "term->cols" identifier -> field_identifier)) ;) })) (if_statement "if (x == iVar7) {\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }\n      else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }" if (parenthesized_expression "(x == iVar7)" ( (binary_expression "x == iVar7" identifier == identifier) )) (compound_statement "{\n        line->lattr = line->lattr & 0xffcf;\nLAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);\n        if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }\n      }" { (expression_statement "line->lattr = line->lattr & 0xffcf;" (assignment_expression "line->lattr = line->lattr & 0xffcf" (field_expression "line->lattr" identifier -> field_identifier) = (binary_expression "line->lattr & 0xffcf" (field_expression "line->lattr" identifier -> field_identifier) & number_literal)) ;) (labeled_statement "LAB_0003d3be:\n        y = (Terminal *)((int)&y->compatibility_level + 1);" statement_identifier : (expression_statement "y = (Terminal *)((int)&y->compatibility_level + 1);" (assignment_expression "y = (Terminal *)((int)&y->compatibility_level + 1)" identifier = (cast_expression "(Terminal *)((int)&y->compatibility_level + 1)" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&y->compatibility_level + 1)" ( (binary_expression "(int)&y->compatibility_level + 1" (cast_expression "(int)&y->compatibility_level" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&y->compatibility_level" & (field_expression "y->compatibility_level" identifier -> field_identifier))) + number_literal) )))) ;)) (if_statement "if ((int)y < term->rows) {\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }\n        else {\n          x = 0;\n        }" if (parenthesized_expression "((int)y < term->rows)" ( (binary_expression "(int)y < term->rows" (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) < (field_expression "term->rows" identifier -> field_identifier)) )) (compound_statement "{\n          x = 0;\n          line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);\n        }" { (expression_statement "x = 0;" (assignment_expression "x = 0" identifier = number_literal) ;) (expression_statement "line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4);" (assignment_expression "line = lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" identifier = (call_expression "lineptr(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" identifier (argument_list "(term,(int)y,0x9a7,(int)in_stack_ffffffc4)" ( identifier , (cast_expression "(int)y" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) }) (else_clause "else {\n          x = 0;\n        }" else (compound_statement "{\n          x = 0;\n        }" { (expression_statement "x = 0;" (assignment_expression "x = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }" else (compound_statement "{\n        copy_termchar(line,x,&term->erase_char);\n        if (term->cols == x) goto LAB_0003d3be;\n        x = x + 1;\n      }" { (expression_statement "copy_termchar(line,x,&term->erase_char);" (call_expression "copy_termchar(line,x,&term->erase_char)" identifier (argument_list "(line,x,&term->erase_char)" ( identifier , identifier , (pointer_expression "&term->erase_char" & (field_expression "term->erase_char" identifier -> field_identifier)) ))) ;) (if_statement "if (term->cols == x) goto LAB_0003d3be;" if (parenthesized_expression "(term->cols == x)" ( (binary_expression "term->cols == x" (field_expression "term->cols" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_0003d3be;" goto statement_identifier ;)) (expression_statement "x = x + 1;" (assignment_expression "x = x + 1" identifier = (binary_expression "x + 1" identifier + number_literal)) ;) }))) })) }))) (if_statement "if (!bVar3) {\n    return;\n  }" if (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0003d2c2:\n  if (term->alt_which == 0) {\n    term->tempsblines = 0;\n  }" statement_identifier : (if_statement "if (term->alt_which == 0) {\n    term->tempsblines = 0;\n  }" if (parenthesized_expression "(term->alt_which == 0)" ( (binary_expression "term->alt_which == 0" (field_expression "term->alt_which" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    term->tempsblines = 0;\n  }" { (expression_statement "term->tempsblines = 0;" (assignment_expression "term->tempsblines = 0" (field_expression "term->tempsblines" identifier -> field_identifier) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "ushort *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }" { (expression_statement "local_38 = *(int *)(param_1 + 0x128);" (assignment_expression "local_38 = *(int *)(param_1 + 0x128)" identifier = (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) goto LAB_0003d217;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d217;" goto statement_identifier ;)) (labeled_statement "LAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" statement_identifier : (if_statement "if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d225:\n      local_34 = iVar9 + 1;" statement_identifier : (expression_statement "local_34 = iVar9 + 1;" (assignment_expression "local_34 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;)) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar9)" ( (binary_expression "*(int *)(param_1 + 300) != iVar9" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (goto_statement "goto LAB_0003d23c;" goto statement_identifier ;)) (expression_statement "local_38 = iVar5 + 1;" (assignment_expression "local_38 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) goto LAB_0003d250;" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0003d250;" goto statement_identifier ;)) (goto_statement "goto LAB_0003d240;" goto statement_identifier ;) }))) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" else (compound_statement "{\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" { (expression_statement "iVar10 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "local_38 = iVar10 + 1;" (assignment_expression "local_38 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 != 0) goto LAB_0003d4a5;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d4a5;" goto statement_identifier ;)) (labeled_statement "LAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;)) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = iVar5;" (assignment_expression "iVar10 = iVar5" identifier = identifier) ;) (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" identifier = identifier) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" identifier = identifier) ;) (if_statement "if (param_4 == 0) goto LAB_0003d225;" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003d225;" goto statement_identifier ;)) (labeled_statement "LAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" statement_identifier : (if_statement "if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (compound_statement "{\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" { (labeled_statement "LAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" statement_identifier : (if_statement "if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" if (parenthesized_expression "(iVar9 <= *(int *)(param_1 + 300))" ( (binary_expression "iVar9 <= *(int *)(param_1 + 300)" identifier <= (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        FUN_0003cb40();\n      }" { (expression_statement "FUN_0003cb40();" (call_expression "FUN_0003cb40()" identifier (argument_list "()" ( ))) ;) }))) }))) }))) (labeled_statement "LAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0xe5c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xe5c)" identifier = (pointer_expression "*(int *)(param_1 + 0xe5c)" * (cast_expression "(int *)(param_1 + 0xe5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) ))))) ;)) (if_statement "if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" if (parenthesized_expression "(((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))))" ( (binary_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" (parenthesized_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))))" ( (binary_expression "(iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" (parenthesized_expression "(iVar5 != iVar10 && iVar10 <= iVar5)" ( (binary_expression "iVar5 != iVar10 && iVar10 <= iVar5" (binary_expression "iVar5 != iVar10" identifier != identifier) && (binary_expression "iVar10 <= iVar5" identifier <= identifier)) )) || (parenthesized_expression "((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" ( (parenthesized_expression "(iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))" ( (binary_expression "iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))" (binary_expression "iVar5 == iVar10" identifier == identifier) && (parenthesized_expression "(iVar11 < *(int *)(param_1 + 0xe60))" ( (binary_expression "iVar11 < *(int *)(param_1 + 0xe60)" identifier < (pointer_expression "*(int *)(param_1 + 0xe60)" * (cast_expression "(int *)(param_1 + 0xe60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) ))))) ))) )) ))) )) && (parenthesized_expression "((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" ( (parenthesized_expression "(*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))" ( (binary_expression "*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" (binary_expression "*(int *)(param_1 + 0xe54) < local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" * (cast_expression "(int *)(param_1 + 0xe54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) < identifier) || (parenthesized_expression "((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" ( (parenthesized_expression "(*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))" ( (binary_expression "*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)" (binary_expression "*(int *)(param_1 + 0xe54) == local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" * (cast_expression "(int *)(param_1 + 0xe54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(int *)(param_1 + 0xe58) < local_34)" ( (binary_expression "*(int *)(param_1 + 0xe58) < local_34" (pointer_expression "*(int *)(param_1 + 0xe58)" * (cast_expression "(int *)(param_1 + 0xe58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) < identifier) ))) )) ))) )) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" * (cast_expression "(undefined4 *)(param_1 + 0xe48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe48)" ( (binary_expression "param_1 + 0xe48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" * (cast_expression "(undefined4 *)(param_1 + 0xe5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe5c)" ( (binary_expression "param_1 + 0xe5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" * (cast_expression "(undefined4 *)(param_1 + 0xe60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe60)" ( (binary_expression "param_1 + 0xe60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" * (cast_expression "(undefined4 *)(param_1 + 0xe54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe54)" ( (binary_expression "param_1 + 0xe54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" * (cast_expression "(undefined4 *)(param_1 + 0xe58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe58)" ( (binary_expression "param_1 + 0xe58" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" if (parenthesized_expression "(iVar10 == 0 && iVar11 == 0)" ( (binary_expression "iVar10 == 0 && iVar11 == 0" (binary_expression "iVar10 == 0" identifier == number_literal) && (binary_expression "iVar11 == 0" identifier == number_literal)) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }" { (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" ( (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" { (if_statement "if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" if (parenthesized_expression "((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5))" ( (binary_expression "(0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" (parenthesized_expression "(0 < local_38)" ( (binary_expression "0 < local_38" number_literal < identifier) )) && (parenthesized_expression "(iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" ( (comma_expression "iVar5 = *(int *)(param_1 + 300), 0 < iVar5" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) , (binary_expression "0 < iVar5" number_literal < identifier)) ))) )) (compound_statement "{\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" { (expression_statement "iVar9 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);" do (compound_statement "{\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        }" { (expression_statement "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);" (assignment_expression "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + iVar8 * 4) + 0x14)" ( (binary_expression "*(int *)(iVar9 + iVar8 * 4) + 0x14" (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" * (cast_expression "(int *)(iVar9 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar8 * 4)" ( (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "puVar6 = (uint *)(iVar1 + 4);" (assignment_expression "puVar6 = (uint *)(iVar1 + 4)" identifier = (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));" do (compound_statement "{\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          }" { (expression_statement "*puVar6 = *puVar6 | 0x3ffff;" (assignment_expression "*puVar6 = *puVar6 | 0x3ffff" (pointer_expression "*puVar6" * identifier) = (binary_expression "*puVar6 | 0x3ffff" (pointer_expression "*puVar6" * identifier) | number_literal)) ;) (expression_statement "puVar6 = puVar6 + 3;" (assignment_expression "puVar6 = puVar6 + 3" identifier = (binary_expression "puVar6 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4))" ( (binary_expression "puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4)" identifier != (cast_expression "(uint *)(iVar1 + iVar5 * 0xc + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5 * 0xc + 4)" ( (binary_expression "iVar1 + iVar5 * 0xc + 4" (binary_expression "iVar1 + iVar5 * 0xc" identifier + (binary_expression "iVar5 * 0xc" identifier * number_literal)) + number_literal) )))) )) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != local_38)" ( (binary_expression "iVar8 != local_38" identifier != identifier) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x109c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x109c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x109c)" * (cast_expression "(undefined4 *)(param_1 + 0x109c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);" (assignment_expression "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1)" identifier = (call_expression "FUN_000479e0(0x14,FUN_0003e670,param_1)" identifier (argument_list "(0x14,FUN_0003e670,param_1)" ( number_literal , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10a0) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a0) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 0x10a0)" * (cast_expression "(undefined4 *)(param_1 + 0x10a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a0)" ( (binary_expression "param_1 + 0x10a0" identifier + number_literal) )))) = identifier) ;) })) })) (if_statement "if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;" if (parenthesized_expression "((local_34 != 0) || (!bVar2))" ( (binary_expression "(local_34 != 0) || (!bVar2)" (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) || (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) ))) )) (goto_statement "goto LAB_0003d2e0;" goto statement_identifier ;)) (if_statement "if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1118) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1118) != 0" (pointer_expression "*(int *)(param_1 + 0x1118)" * (cast_expression "(int *)(param_1 + 0x1118)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1118)" ( (binary_expression "param_1 + 0x1118" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" { (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" ( (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" { (expression_statement "local_38 = FUN_000381c0();" (assignment_expression "local_38 = FUN_000381c0()" identifier = (call_expression "FUN_000381c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" identifier = (binary_expression "local_38 + 1" identifier + number_literal)) ;) })) (if_statement "if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }" if (parenthesized_expression "(0 < local_38)" ( (binary_expression "0 < local_38" number_literal < identifier) )) (compound_statement "{\n        FUN_0003b710(local_38,1);\n      }" { (expression_statement "FUN_0003b710(local_38,1);" (call_expression "FUN_0003b710(local_38,1)" identifier (argument_list "(local_38,1)" ( identifier , number_literal ))) ;) })) (goto_statement "goto LAB_0003d2c2;" goto statement_identifier ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" else (compound_statement "{\nLAB_0003d2e0:\n    bVar2 = false;\n  }" { (labeled_statement "LAB_0003d2e0:\n    bVar2 = false;" statement_identifier : (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;)) }))) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" { (while_statement "while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" while (parenthesized_expression "((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))))" ( (parenthesized_expression "(iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))" ( (binary_expression "iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" identifier < identifier) || (parenthesized_expression "((local_38 == iVar10 && (iVar11 < local_34)))" ( (parenthesized_expression "(local_38 == iVar10 && (iVar11 < local_34))" ( (binary_expression "local_38 == iVar10 && (iVar11 < local_34)" (binary_expression "local_38 == iVar10" identifier == identifier) && (parenthesized_expression "(iVar11 < local_34)" ( (binary_expression "iVar11 < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" { (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" identifier = (pointer_expression "*(int *)(puVar4 + 2)" * (cast_expression "(int *)(puVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" if (parenthesized_expression "(iVar5 != *(int *)(param_1 + 300))" ( (binary_expression "iVar5 != *(int *)(param_1 + 300)" identifier != (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) )) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" { (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" if (parenthesized_expression "(iVar5 == iVar11)" ( (binary_expression "iVar5 == iVar11" identifier == identifier) )) (compound_statement "{\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (labeled_statement "LAB_0003d34f:\n        iVar10 = iVar10 + 1;" statement_identifier : (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;)) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }" if (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n          puVar4 = (ushort *)FUN_00039490();\n        }" { (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) })) }) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" else (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" { (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;" if (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" ( (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0003d34f;" goto statement_identifier ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) })) }) (else_clause "else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" else (compound_statement "{\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" { (while_statement "while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" while (parenthesized_expression "((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))))" ( (parenthesized_expression "(iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))" ( (binary_expression "iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" identifier < identifier) || (parenthesized_expression "((iVar10 == local_38 && (iVar11 < local_34)))" ( (parenthesized_expression "(iVar10 == local_38 && (iVar11 < local_34))" ( (binary_expression "iVar10 == local_38 && (iVar11 < local_34)" (binary_expression "iVar10 == local_38" identifier == identifier) && (parenthesized_expression "(iVar11 < local_34)" ( (binary_expression "iVar11 < local_34" identifier < identifier) ))) )) ))) )) )) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" { (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" identifier = (pointer_expression "*(int *)(puVar4 + 2)" * (cast_expression "(int *)(puVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar5)" ( (binary_expression "*(int *)(param_1 + 300) != iVar5" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" { (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" if (parenthesized_expression "(iVar11 == iVar5)" ( (binary_expression "iVar11 == iVar5" identifier == identifier) )) (compound_statement "{\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }" { (expression_statement "*puVar4 = *puVar4 & 0xffcf;" (assignment_expression "*puVar4 = *puVar4 & 0xffcf" (pointer_expression "*puVar4" * identifier) = (binary_expression "*puVar4 & 0xffcf" (pointer_expression "*puVar4" * identifier) & number_literal)) ;) (labeled_statement "LAB_0003d3be:\n        iVar10 = iVar10 + 1;" statement_identifier : (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }" if (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" ( (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" identifier < (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" identifier = (cast_expression "(ushort *)FUN_00039490()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00039490()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n          iVar11 = 0;\n        }" else (compound_statement "{\n          iVar11 = 0;\n        }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" else (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" { (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;" if (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" ( (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0003d3be;" goto statement_identifier ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) })) }))) (if_statement "if (!bVar2) {\n    return;\n  }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1a4) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1a4) == 0" (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration 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 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) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) }))) }))) (labeled_statement statement_identifier : (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (binary_expression IDENT <= IDENT)) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) ))) )) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression LIT < IDENT)) ))) )) (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) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (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 + (binary_expression IDENT * LIT)) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (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 (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (goto_statement goto statement_identifier ;)) (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) ))) )) )) (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 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 ( ))) ;) (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 == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) ))) )) )) (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) )))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (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 (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) }))) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003d1d0(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0003d1d0") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  bool bVar3;\n  ushort *puVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int local_38;\n  int local_34;\n  \n  if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }\nLAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);\n  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }\n  if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }\n  puVar4 = (ushort *)FUN_00039490();\n  if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  if (!bVar2) {\n    return;\n  }\nLAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "ushort *puVar4;" (type_identifier "ushort") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (if_statement "if (param_2 == 0) {\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }\n  else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_38 = *(int *)(param_1 + 0x128);\n    bVar2 = true;\n    bVar3 = true;\n    iVar10 = 0;\n    if (param_3 == 0) goto LAB_0003d217;\nLAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }\n    local_34 = 0;\n    iVar11 = 0;\n  }" ({ "{") (expression_statement "local_38 = *(int *)(param_1 + 0x128);" (assignment_expression "local_38 = *(int *)(param_1 + 0x128)" (identifier "local_38") (= "=") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) goto LAB_0003d217;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003d217;" (goto "goto") (statement_identifier "LAB_0003d217") (; ";"))) (labeled_statement "LAB_0003d4a5:\n    if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" (statement_identifier "LAB_0003d4a5") (: ":") (if_statement "if (param_4 == 0) {\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x6c);\n      iVar9 = *(int *)(param_1 + 0x70);\n      iVar11 = 0;\nLAB_0003d225:\n      local_34 = iVar9 + 1;\n      local_38 = iVar5;\n      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;\n      local_38 = iVar5 + 1;\n      local_34 = 0;\n      if (iVar9 < 1) goto LAB_0003d250;\n      goto LAB_0003d240;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003d225:\n      local_34 = iVar9 + 1;" (statement_identifier "LAB_0003d225") (: ":") (expression_statement "local_34 = iVar9 + 1;" (assignment_expression "local_34 = iVar9 + 1" (identifier "local_34") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" (identifier "local_38") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 300) != iVar9)" (( "(") (binary_expression "*(int *)(param_1 + 300) != iVar9" (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (!= "!=") (identifier "iVar9")) () ")")) (goto_statement "goto LAB_0003d23c;" (goto "goto") (statement_identifier "LAB_0003d23c") (; ";"))) (expression_statement "local_38 = iVar5 + 1;" (assignment_expression "local_38 = iVar5 + 1" (identifier "local_38") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar9 < 1) goto LAB_0003d250;" (if "if") (parenthesized_expression "(iVar9 < 1)" (( "(") (binary_expression "iVar9 < 1" (identifier "iVar9") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_0003d250;" (goto "goto") (statement_identifier "LAB_0003d250") (; ";"))) (goto_statement "goto LAB_0003d240;" (goto "goto") (statement_identifier "LAB_0003d240") (; ";")) (} "}")))) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar10 = *(int *)(param_1 + 0x6c);\n    bVar2 = false;\n    bVar3 = false;\n    local_38 = iVar10 + 1;\n    if (param_3 != 0) goto LAB_0003d4a5;\nLAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);\n    iVar9 = *(int *)(param_1 + 0x70);\n    iVar10 = iVar5;\n    iVar11 = iVar9;\n    local_34 = param_3;\n    if (param_4 == 0) goto LAB_0003d225;\nLAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }\n  }" ({ "{") (expression_statement "iVar10 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x6c)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (expression_statement "local_38 = iVar10 + 1;" (assignment_expression "local_38 = iVar10 + 1" (identifier "local_38") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 != 0) goto LAB_0003d4a5;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003d4a5;" (goto "goto") (statement_identifier "LAB_0003d4a5") (; ";"))) (labeled_statement "LAB_0003d217:\n    iVar5 = *(int *)(param_1 + 0x6c);" (statement_identifier "LAB_0003d217") (: ":") (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";"))) (expression_statement "iVar9 = *(int *)(param_1 + 0x70);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x70)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "iVar10 = iVar5;" (assignment_expression "iVar10 = iVar5" (identifier "iVar10") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" (identifier "iVar11") (= "=") (identifier "iVar9")) (; ";")) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" (identifier "local_34") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_4 == 0) goto LAB_0003d225;" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003d225;" (goto "goto") (statement_identifier "LAB_0003d225") (; ";"))) (labeled_statement "LAB_0003d23c:\n    if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" (statement_identifier "LAB_0003d23c") (: ":") (if_statement "if (0 < iVar9) {\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" (if "if") (parenthesized_expression "(0 < iVar9)" (( "(") (binary_expression "0 < iVar9" (number_literal "0") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\nLAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }\n    }" ({ "{") (labeled_statement "LAB_0003d240:\n      if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" (statement_identifier "LAB_0003d240") (: ":") (if_statement "if (iVar9 <= *(int *)(param_1 + 300)) {\n        FUN_0003cb40();\n      }" (if "if") (parenthesized_expression "(iVar9 <= *(int *)(param_1 + 300))" (( "(") (binary_expression "iVar9 <= *(int *)(param_1 + 300)" (identifier "iVar9") (<= "<=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) () ")")) (compound_statement "{\n        FUN_0003cb40();\n      }" ({ "{") (expression_statement "FUN_0003cb40();" (call_expression "FUN_0003cb40()" (identifier "FUN_0003cb40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (labeled_statement "LAB_0003d250:\n  iVar5 = *(int *)(param_1 + 0xe5c);" (statement_identifier "LAB_0003d250") (: ":") (expression_statement "iVar5 = *(int *)(param_1 + 0xe5c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xe5c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0xe5c)" (* "*") (cast_expression "(int *)(param_1 + 0xe5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe5c)" (( "(") (binary_expression "param_1 + 0xe5c" (identifier "param_1") (+ "+") (number_literal "0xe5c")) () ")"))))) (; ";"))) (if_statement "if (((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" (if "if") (parenthesized_expression "(((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))))" (( "(") (binary_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&\n     ((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" (parenthesized_expression "((iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))))" (( "(") (binary_expression "(iVar5 != iVar10 && iVar10 <= iVar5) ||\n      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" (parenthesized_expression "(iVar5 != iVar10 && iVar10 <= iVar5)" (( "(") (binary_expression "iVar5 != iVar10 && iVar10 <= iVar5" (binary_expression "iVar5 != iVar10" (identifier "iVar5") (!= "!=") (identifier "iVar10")) (&& "&&") (binary_expression "iVar10 <= iVar5" (identifier "iVar10") (<= "<=") (identifier "iVar5"))) () ")")) (|| "||") (parenthesized_expression "((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))" (( "(") (parenthesized_expression "(iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60)))" (( "(") (binary_expression "iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))" (binary_expression "iVar5 == iVar10" (identifier "iVar5") (== "==") (identifier "iVar10")) (&& "&&") (parenthesized_expression "(iVar11 < *(int *)(param_1 + 0xe60))" (( "(") (binary_expression "iVar11 < *(int *)(param_1 + 0xe60)" (identifier "iVar11") (< "<") (pointer_expression "*(int *)(param_1 + 0xe60)" (* "*") (cast_expression "(int *)(param_1 + 0xe60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe60)" (( "(") (binary_expression "param_1 + 0xe60" (identifier "param_1") (+ "+") (number_literal "0xe60")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))" (( "(") (parenthesized_expression "(*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))))" (( "(") (binary_expression "*(int *)(param_1 + 0xe54) < local_38 ||\n      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" (binary_expression "*(int *)(param_1 + 0xe54) < local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" (* "*") (cast_expression "(int *)(param_1 + 0xe54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe54)" (( "(") (binary_expression "param_1 + 0xe54" (identifier "param_1") (+ "+") (number_literal "0xe54")) () ")")))) (< "<") (identifier "local_38")) (|| "||") (parenthesized_expression "((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))" (( "(") (parenthesized_expression "(*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34))" (( "(") (binary_expression "*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)" (binary_expression "*(int *)(param_1 + 0xe54) == local_38" (pointer_expression "*(int *)(param_1 + 0xe54)" (* "*") (cast_expression "(int *)(param_1 + 0xe54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe54)" (( "(") (binary_expression "param_1 + 0xe54" (identifier "param_1") (+ "+") (number_literal "0xe54")) () ")")))) (== "==") (identifier "local_38")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0xe58) < local_34)" (( "(") (binary_expression "*(int *)(param_1 + 0xe58) < local_34" (pointer_expression "*(int *)(param_1 + 0xe58)" (* "*") (cast_expression "(int *)(param_1 + 0xe58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe58)" (( "(") (binary_expression "param_1 + 0xe58" (identifier "param_1") (+ "+") (number_literal "0xe58")) () ")")))) (< "<") (identifier "local_34")) () ")"))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xe48) = 0;\n    *(undefined4 *)(param_1 + 0xe5c) = 0;\n    *(undefined4 *)(param_1 + 0xe60) = 0;\n    *(undefined4 *)(param_1 + 0xe54) = 0;\n    *(undefined4 *)(param_1 + 0xe58) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xe48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe48)" (( "(") (binary_expression "param_1 + 0xe48" (identifier "param_1") (+ "+") (number_literal "0xe48")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe5c)" (( "(") (binary_expression "param_1 + 0xe5c" (identifier "param_1") (+ "+") (number_literal "0xe5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe60)" (( "(") (binary_expression "param_1 + 0xe60" (identifier "param_1") (+ "+") (number_literal "0xe60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe54)" (( "(") (binary_expression "param_1 + 0xe54" (identifier "param_1") (+ "+") (number_literal "0xe54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe58)" (( "(") (binary_expression "param_1 + 0xe58" (identifier "param_1") (+ "+") (number_literal "0xe58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (iVar10 == 0 && iVar11 == 0) {\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }\n  else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" (if "if") (parenthesized_expression "(iVar10 == 0 && iVar11 == 0)" (( "(") (binary_expression "iVar10 == 0 && iVar11 == 0" (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) (&& "&&") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }\n    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;\n    if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }\n    bVar2 = true;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (== "==") (identifier "local_38")) () ")")) (compound_statement "{\n      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }\n      if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }\n    }" ({ "{") (if_statement "if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" (if "if") (parenthesized_expression "((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5))" (( "(") (binary_expression "(0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" (parenthesized_expression "(0 < local_38)" (( "(") (binary_expression "0 < local_38" (number_literal "0") (< "<") (identifier "local_38")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = *(int *)(param_1 + 300), 0 < iVar5)" (( "(") (comma_expression "iVar5 = *(int *)(param_1 + 300), 0 < iVar5" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) (, ",") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5"))) () ")"))) () ")")) (compound_statement "{\n        iVar9 = *(int *)(param_1 + 0x18);\n        iVar8 = 0;\n        do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);\n      }" ({ "{") (expression_statement "iVar9 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar9 = *(int *)(param_1 + 0x18)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        } while (iVar8 != local_38);" (do "do") (compound_statement "{\n          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);\n          puVar6 = (uint *)(iVar1 + 4);\n          do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));\n          iVar8 = iVar8 + 1;\n        }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);" (assignment_expression "iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar9 + iVar8 * 4) + 0x14)" (( "(") (binary_expression "*(int *)(iVar9 + iVar8 * 4) + 0x14" (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" (* "*") (cast_expression "(int *)(iVar9 + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + iVar8 * 4)" (( "(") (binary_expression "iVar9 + iVar8 * 4" (identifier "iVar9") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar6 = (uint *)(iVar1 + 4);" (assignment_expression "puVar6 = (uint *)(iVar1 + 4)" (identifier "puVar6") (= "=") (cast_expression "(uint *)(iVar1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (do_statement "do {\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));" (do "do") (compound_statement "{\n            *puVar6 = *puVar6 | 0x3ffff;\n            puVar6 = puVar6 + 3;\n          }" ({ "{") (expression_statement "*puVar6 = *puVar6 | 0x3ffff;" (assignment_expression "*puVar6 = *puVar6 | 0x3ffff" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (binary_expression "*puVar6 | 0x3ffff" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (| "|") (number_literal "0x3ffff"))) (; ";")) (expression_statement "puVar6 = puVar6 + 3;" (assignment_expression "puVar6 = puVar6 + 3" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 3" (identifier "puVar6") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4))" (( "(") (binary_expression "puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4)" (identifier "puVar6") (!= "!=") (cast_expression "(uint *)(iVar1 + iVar5 * 0xc + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar5 * 0xc + 4)" (( "(") (binary_expression "iVar1 + iVar5 * 0xc + 4" (binary_expression "iVar1 + iVar5 * 0xc" (identifier "iVar1") (+ "+") (binary_expression "iVar5 * 0xc" (identifier "iVar5") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "4")) () ")")))) () ")")) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != local_38)" (( "(") (binary_expression "iVar8 != local_38" (identifier "iVar8") (!= "!=") (identifier "local_38")) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x109c) == 0) {\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" (* "*") (cast_expression "(int *)(param_1 + 0x109c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x109c)" (( "(") (binary_expression "param_1 + 0x109c" (identifier "param_1") (+ "+") (number_literal "0x109c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x109c) = 1;\n        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);\n        *(undefined4 *)(param_1 + 0x10a0) = uVar7;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x109c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x109c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x109c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x109c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x109c)" (( "(") (binary_expression "param_1 + 0x109c" (identifier "param_1") (+ "+") (number_literal "0x109c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);" (assignment_expression "uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1)" (identifier "uVar7") (= "=") (call_expression "FUN_000479e0(0x14,FUN_0003e670,param_1)" (identifier "FUN_000479e0") (argument_list "(0x14,FUN_0003e670,param_1)" (( "(") (number_literal "0x14") (, ",") (identifier "FUN_0003e670") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10a0) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a0) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 0x10a0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a0)" (( "(") (binary_expression "param_1 + 0x10a0" (identifier "param_1") (+ "+") (number_literal "0x10a0")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}"))) (} "}"))) (if_statement "if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;" (if "if") (parenthesized_expression "((local_34 != 0) || (!bVar2))" (( "(") (binary_expression "(local_34 != 0) || (!bVar2)" (parenthesized_expression "(local_34 != 0)" (( "(") (binary_expression "local_34 != 0" (identifier "local_34") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(!bVar2)" (( "(") (unary_expression "!bVar2" (! "!") (identifier "bVar2")) () ")"))) () ")")) (goto_statement "goto LAB_0003d2e0;" (goto "goto") (statement_identifier "LAB_0003d2e0") (; ";"))) (if_statement "if (*(int *)(param_1 + 0x1118) != 0) {\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1118) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1118) != 0" (pointer_expression "*(int *)(param_1 + 0x1118)" (* "*") (cast_expression "(int *)(param_1 + 0x1118)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1118)" (( "(") (binary_expression "param_1 + 0x1118" (identifier "param_1") (+ "+") (number_literal "0x1118")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }\n      if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }\n      goto LAB_0003d2c2;\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x128) == local_38) {\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x128) == local_38)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) == local_38" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (== "==") (identifier "local_38")) () ")")) (compound_statement "{\n        local_38 = FUN_000381c0();\n        local_38 = local_38 + 1;\n      }" ({ "{") (expression_statement "local_38 = FUN_000381c0();" (assignment_expression "local_38 = FUN_000381c0()" (identifier "local_38") (= "=") (call_expression "FUN_000381c0()" (identifier "FUN_000381c0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" (identifier "local_38") (= "=") (binary_expression "local_38 + 1" (identifier "local_38") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (0 < local_38) {\n        FUN_0003b710(local_38,1);\n      }" (if "if") (parenthesized_expression "(0 < local_38)" (( "(") (binary_expression "0 < local_38" (number_literal "0") (< "<") (identifier "local_38")) () ")")) (compound_statement "{\n        FUN_0003b710(local_38,1);\n      }" ({ "{") (expression_statement "FUN_0003b710(local_38,1);" (call_expression "FUN_0003b710(local_38,1)" (identifier "FUN_0003b710") (argument_list "(local_38,1)" (( "(") (identifier "local_38") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0003d2c2;" (goto "goto") (statement_identifier "LAB_0003d2c2") (; ";")) (} "}"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\nLAB_0003d2e0:\n    bVar2 = false;\n  }" (else "else") (compound_statement "{\nLAB_0003d2e0:\n    bVar2 = false;\n  }" ({ "{") (labeled_statement "LAB_0003d2e0:\n    bVar2 = false;" (statement_identifier "LAB_0003d2e0") (: ":") (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";"))) (} "}")))) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" (identifier "puVar4") (= "=") (cast_expression "(ushort *)FUN_00039490()" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00039490()" (identifier "FUN_00039490") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (bVar3) {\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }\n  else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" ({ "{") (while_statement "while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" (while "while") (parenthesized_expression "((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))))" (( "(") (parenthesized_expression "(iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))" (( "(") (binary_expression "iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" (identifier "iVar10") (< "<") (identifier "local_38")) (|| "||") (parenthesized_expression "((local_38 == iVar10 && (iVar11 < local_34)))" (( "(") (parenthesized_expression "(local_38 == iVar10 && (iVar11 < local_34))" (( "(") (binary_expression "local_38 == iVar10 && (iVar11 < local_34)" (binary_expression "local_38 == iVar10" (identifier "local_38") (== "==") (identifier "iVar10")) (&& "&&") (parenthesized_expression "(iVar11 < local_34)" (( "(") (binary_expression "iVar11 < local_34" (identifier "iVar11") (< "<") (identifier "local_34")) () ")"))) () ")")) () ")"))) () ")")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar4 + 2)" (* "*") (cast_expression "(int *)(puVar4 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 2)" (( "(") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (iVar5 != *(int *)(param_1 + 300)) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" (if "if") (parenthesized_expression "(iVar5 != *(int *)(param_1 + 300))" (( "(") (binary_expression "iVar5 != *(int *)(param_1 + 300)" (identifier "iVar5") (!= "!=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) () ")")) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" ({ "{") (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" (identifier "FUN_00039240") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (iVar5 == iVar11) {\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" (if "if") (parenthesized_expression "(iVar5 == iVar11)" (( "(") (binary_expression "iVar5 == iVar11" (identifier "iVar5") (== "==") (identifier "iVar11")) () ")")) (compound_statement "{\n        *puVar4 = 0;\nLAB_0003d34f:\n        iVar10 = iVar10 + 1;\n        iVar11 = 0;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }\n      }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003d34f:\n        iVar10 = iVar10 + 1;" (statement_identifier "LAB_0003d34f") (: ":") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          puVar4 = (ushort *)FUN_00039490();\n        }" (if "if") (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" (( "(") (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" (identifier "iVar10") (< "<") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (compound_statement "{\n          puVar4 = (ushort *)FUN_00039490();\n        }" ({ "{") (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" (identifier "puVar4") (= "=") (cast_expression "(ushort *)FUN_00039490()" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00039490()" (identifier "FUN_00039490") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" (else "else") (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;\n        iVar11 = iVar11 + 1;\n      }" ({ "{") (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" (identifier "FUN_0003b240") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" (( "(") (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (== "==") (identifier "iVar11")) () ")")) (goto_statement "goto LAB_0003d34f;" (goto "goto") (statement_identifier "LAB_0003d34f") (; ";"))) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }\n  }" ({ "{") (while_statement "while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" (while "while") (parenthesized_expression "((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))))" (( "(") (parenthesized_expression "(iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))" (( "(") (binary_expression "iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34)))" (binary_expression "iVar10 < local_38" (identifier "iVar10") (< "<") (identifier "local_38")) (|| "||") (parenthesized_expression "((iVar10 == local_38 && (iVar11 < local_34)))" (( "(") (parenthesized_expression "(iVar10 == local_38 && (iVar11 < local_34))" (( "(") (binary_expression "iVar10 == local_38 && (iVar11 < local_34)" (binary_expression "iVar10 == local_38" (identifier "iVar10") (== "==") (identifier "local_38")) (&& "&&") (parenthesized_expression "(iVar11 < local_34)" (( "(") (binary_expression "iVar11 < local_34" (identifier "iVar11") (< "<") (identifier "local_34")) () ")"))) () ")")) () ")"))) () ")")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(puVar4 + 2);\n      if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }\n      if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(puVar4 + 2);" (assignment_expression "iVar5 = *(int *)(puVar4 + 2)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar4 + 2)" (* "*") (cast_expression "(int *)(puVar4 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 2)" (( "(") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 300) != iVar5) {\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 300) != iVar5)" (( "(") (binary_expression "*(int *)(param_1 + 300) != iVar5" (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (!= "!=") (identifier "iVar5")) () ")")) (compound_statement "{\n        FUN_00039240();\n        iVar5 = *(int *)(param_1 + 300);\n      }" ({ "{") (expression_statement "FUN_00039240();" (call_expression "FUN_00039240()" (identifier "FUN_00039240") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 300);" (assignment_expression "iVar5 = *(int *)(param_1 + 300)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (iVar11 == iVar5) {\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }\n      else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" (if "if") (parenthesized_expression "(iVar11 == iVar5)" (( "(") (binary_expression "iVar11 == iVar5" (identifier "iVar11") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n        *puVar4 = *puVar4 & 0xffcf;\nLAB_0003d3be:\n        iVar10 = iVar10 + 1;\n        if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }\n      }" ({ "{") (expression_statement "*puVar4 = *puVar4 & 0xffcf;" (assignment_expression "*puVar4 = *puVar4 & 0xffcf" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (binary_expression "*puVar4 & 0xffcf" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (& "&") (number_literal "0xffcf"))) (; ";")) (labeled_statement "LAB_0003d3be:\n        iVar10 = iVar10 + 1;" (statement_identifier "LAB_0003d3be") (: ":") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (iVar10 < *(int *)(param_1 + 0x128)) {\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }\n        else {\n          iVar11 = 0;\n        }" (if "if") (parenthesized_expression "(iVar10 < *(int *)(param_1 + 0x128))" (( "(") (binary_expression "iVar10 < *(int *)(param_1 + 0x128)" (identifier "iVar10") (< "<") (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (compound_statement "{\n          iVar11 = 0;\n          puVar4 = (ushort *)FUN_00039490();\n        }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (ushort *)FUN_00039490();" (assignment_expression "puVar4 = (ushort *)FUN_00039490()" (identifier "puVar4") (= "=") (cast_expression "(ushort *)FUN_00039490()" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00039490()" (identifier "FUN_00039490") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          iVar11 = 0;\n        }" (else "else") (compound_statement "{\n          iVar11 = 0;\n        }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" (else "else") (compound_statement "{\n        FUN_0003b240();\n        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;\n        iVar11 = iVar11 + 1;\n      }" ({ "{") (expression_statement "FUN_0003b240();" (call_expression "FUN_0003b240()" (identifier "FUN_0003b240") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 300) == iVar11)" (( "(") (binary_expression "*(int *)(param_1 + 300) == iVar11" (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (== "==") (identifier "iVar11")) () ")")) (goto_statement "goto LAB_0003d3be;" (goto "goto") (statement_identifier "LAB_0003d3be") (; ";"))) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (} "}")))) (if_statement "if (!bVar2) {\n    return;\n  }" (if "if") (parenthesized_expression "(!bVar2)" (( "(") (unary_expression "!bVar2" (! "!") (identifier "bVar2")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0003d2c2:\n  if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" (statement_identifier "LAB_0003d2c2") (: ":") (if_statement "if (*(int *)(param_1 + 0x1a4) == 0) {\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1a4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1a4) == 0" (pointer_expression "*(int *)(param_1 + 0x1a4)" (* "*") (cast_expression "(int *)(param_1 + 0x1a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a4)" (( "(") (binary_expression "param_1 + 0x1a4" (identifier "param_1") (+ "+") (number_literal "0x1a4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *term,int var_1,int var_2,int var_3)

{
  type_2 **pptVar1;
  type_3 *ptVar2;
  bool bVar3;
  bool bVar4;
  type_2 *line;
  type_4 *var_11;
  type_5 wVar6;
  int var_4;
  type_1 *var_9;
  type_1 *var_6;
  type_1 *var_7;
  int var_8;
  type_1 *in_stack_ffffffbc;
  int in_stack_ffffffc0;
  type_1 *in_stack_ffffffc4;
  int var_10;
  
  if (var_1 == 0) {
    var_9 = (type_1 *)term->rows;
    bVar3 = true;
    bVar4 = true;
    var_7 = (type_1 *)0x0;
    if (var_2 == 0) goto LAB_0003d217;
LAB_0003d4a5:
    if (var_3 == 0) {
      var_6 = (type_1 *)(term->curs).var_7;
      var_4 = (term->curs).var_8;
      var_8 = 0;
LAB_0003d225:
      var_10 = var_4 + 1;
      var_9 = var_6;
      if (term->cols != var_4) goto LAB_0003d23c;
      var_9 = (type_1 *)((int)&var_6->compatibility_level + 1);
      var_10 = 0;
      if (var_4 < 1) goto LAB_0003d250;
      goto LAB_0003d240;
    }
    var_10 = 0;
    var_8 = 0;
  }
  else {
    var_7 = (type_1 *)(term->curs).var_7;
    bVar3 = false;
    bVar4 = false;
    var_9 = (type_1 *)((int)&var_7->compatibility_level + 1);
    if (var_2 != 0) goto LAB_0003d4a5;
LAB_0003d217:
    var_6 = (type_1 *)(term->curs).var_7;
    var_4 = (term->curs).var_8;
    var_7 = var_6;
    var_8 = var_4;
    var_10 = var_2;
    if (var_3 == 0) goto LAB_0003d225;
LAB_0003d23c:
    if (0 < var_4) {
LAB_0003d240:
      if (var_4 <= term->cols) {
        in_stack_ffffffc0 = 0x3d4e7;
        var_5(term,var_4,(int)var_6);
      }
    }
  }
LAB_0003d250:
  var_6 = (type_1 *)(term->selend).var_7;
  if (((var_6 != var_7 && (int)var_7 <= (int)var_6) || ((var_6 == var_7 && (var_8 < (term->selend).var_8)))) &&
     ((var_6 = (type_1 *)(term->selstart).var_7, (int)var_6 < (int)var_9 ||
      ((var_6 == var_9 && ((term->selstart).var_8 < var_10)))))) {
    term->selstate = ADDRTYPE_UNSPEC;
    (term->selend).var_7 = 0;
    (term->selend).var_8 = 0;
    (term->selstart).var_7 = 0;
    (term->selstart).var_8 = 0;
  }
  if (var_7 == (type_1 *)0x0 && var_8 == 0) {
    if ((type_1 *)term->rows == var_9) {
      if ((0 < (int)var_9) && (var_4 = term->cols, 0 < var_4)) {
        pptVar1 = term->disptext;
        var_6 = (type_1 *)0x0;
        do {
          ptVar2 = pptVar1[(int)var_6]->chars;
          var_11 = &ptVar2->attr;
          do {
            *var_11 = *var_11 | 0x3ffff;
            var_11 = var_11 + 3;
          } while (var_11 != &ptVar2[var_4].attr);
          var_6 = (type_1 *)((int)&var_6->compatibility_level + 1);
        } while (var_6 != var_9);
      }
      if (term->window_update_pending == 0) {
        term->window_update_pending = 1;
        in_stack_ffffffbc = term;
        wVar6 = var_12(0x14,term_timer,term);
        term->next_update = wVar6;
      }
    }
    if ((var_10 != 0) || (!bVar3)) goto LAB_0003d2e0;
    if (term->erase_to_scrollback != 0) {
      if ((type_1 *)term->rows == var_9) {
        in_stack_ffffffc0 = 0x3d5c2;
        var_4 = var_13(in_stack_ffffffc4,(type_6 *)var_9);
        var_9 = (type_1 *)(var_4 + 1);
      }
      if (0 < (int)var_9) {
        var_14(var_9,1,(int)in_stack_ffffffbc,in_stack_ffffffc0,(int)in_stack_ffffffc4);
      }
      goto LAB_0003d2c2;
    }
    bVar3 = true;
  }
  else {
LAB_0003d2e0:
    bVar3 = false;
  }
  line = var_15(term,(int)var_7,0x99b,(int)in_stack_ffffffc4);
  if (bVar4) {
    while (((int)var_7 < (int)var_9 || ((var_9 == var_7 && (var_8 < var_10))))) {
      var_4 = line->cols;
      if (var_4 != term->cols) {
        var_16(term,line,term->cols);
        var_4 = term->cols;
      }
      if (var_4 == var_8) {
        line->lattr = 0;
LAB_0003d34f:
        var_7 = (type_1 *)((int)&var_7->compatibility_level + 1);
        var_8 = 0;
        if ((int)var_7 < term->rows) {
          line = var_15(term,(int)var_7,0x9a7,(int)in_stack_ffffffc4);
        }
      }
      else {
        var_17(line,var_8,&term->erase_char);
        if (term->cols == var_8) goto LAB_0003d34f;
        var_8 = var_8 + 1;
      }
    }
  }
  else {
    while (((int)var_7 < (int)var_9 || ((var_7 == var_9 && (var_8 < var_10))))) {
      var_4 = line->cols;
      if (term->cols != var_4) {
        var_16(term,line,term->cols);
        var_4 = term->cols;
      }
      if (var_8 == var_4) {
        line->lattr = line->lattr & 0xffcf;
LAB_0003d3be:
        var_7 = (type_1 *)((int)&var_7->compatibility_level + 1);
        if ((int)var_7 < term->rows) {
          var_8 = 0;
          line = var_15(term,(int)var_7,0x9a7,(int)in_stack_ffffffc4);
        }
        else {
          var_8 = 0;
        }
      }
      else {
        var_17(line,var_8,&term->erase_char);
        if (term->cols == var_8) goto LAB_0003d3be;
        var_8 = var_8 + 1;
      }
    }
  }
  if (!bVar3) {
    return;
  }
LAB_0003d2c2:
  if (term->alt_which == 0) {
    term->tempsblines = 0;
  }
  return;
}


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

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

void __regparm3 MASKED(int param_1,int param_2,int param_3,int param_4)

{
  int iVar1;
  bool bVar2;
  bool bVar3;
  ushort *puVar4;
  int iVar5;
  uint *puVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int local_38;
  int local_34;
  
  if (param_2 == 0) {
    local_38 = *(int *)(param_1 + 0x128);
    bVar2 = true;
    bVar3 = true;
    iVar10 = 0;
    if (param_3 == 0) goto LAB_0003d217;
LAB_0003d4a5:
    if (param_4 == 0) {
      iVar5 = *(int *)(param_1 + 0x6c);
      iVar9 = *(int *)(param_1 + 0x70);
      iVar11 = 0;
LAB_0003d225:
      local_34 = iVar9 + 1;
      local_38 = iVar5;
      if (*(int *)(param_1 + 300) != iVar9) goto LAB_0003d23c;
      local_38 = iVar5 + 1;
      local_34 = 0;
      if (iVar9 < 1) goto LAB_0003d250;
      goto LAB_0003d240;
    }
    local_34 = 0;
    iVar11 = 0;
  }
  else {
    iVar10 = *(int *)(param_1 + 0x6c);
    bVar2 = false;
    bVar3 = false;
    local_38 = iVar10 + 1;
    if (param_3 != 0) goto LAB_0003d4a5;
LAB_0003d217:
    iVar5 = *(int *)(param_1 + 0x6c);
    iVar9 = *(int *)(param_1 + 0x70);
    iVar10 = iVar5;
    iVar11 = iVar9;
    local_34 = param_3;
    if (param_4 == 0) goto LAB_0003d225;
LAB_0003d23c:
    if (0 < iVar9) {
LAB_0003d240:
      if (iVar9 <= *(int *)(param_1 + 300)) {
        FUN_0003cb40();
      }
    }
  }
LAB_0003d250:
  iVar5 = *(int *)(param_1 + 0xe5c);
  if (((iVar5 != iVar10 && iVar10 <= iVar5) ||
      ((iVar5 == iVar10 && (iVar11 < *(int *)(param_1 + 0xe60))))) &&
     ((*(int *)(param_1 + 0xe54) < local_38 ||
      ((*(int *)(param_1 + 0xe54) == local_38 && (*(int *)(param_1 + 0xe58) < local_34)))))) {
    *(undefined4 *)(param_1 + 0xe48) = 0;
    *(undefined4 *)(param_1 + 0xe5c) = 0;
    *(undefined4 *)(param_1 + 0xe60) = 0;
    *(undefined4 *)(param_1 + 0xe54) = 0;
    *(undefined4 *)(param_1 + 0xe58) = 0;
  }
  if (iVar10 == 0 && iVar11 == 0) {
    if (*(int *)(param_1 + 0x128) == local_38) {
      if ((0 < local_38) && (iVar5 = *(int *)(param_1 + 300), 0 < iVar5)) {
        iVar9 = *(int *)(param_1 + 0x18);
        iVar8 = 0;
        do {
          iVar1 = *(int *)(*(int *)(iVar9 + iVar8 * 4) + 0x14);
          puVar6 = (uint *)(iVar1 + 4);
          do {
            *puVar6 = *puVar6 | 0x3ffff;
            puVar6 = puVar6 + 3;
          } while (puVar6 != (uint *)(iVar1 + iVar5 * 0xc + 4));
          iVar8 = iVar8 + 1;
        } while (iVar8 != local_38);
      }
      if (*(int *)(param_1 + 0x109c) == 0) {
        *(undefined4 *)(param_1 + 0x109c) = 1;
        uVar7 = FUN_000479e0(0x14,FUN_0003e670,param_1);
        *(undefined4 *)(param_1 + 0x10a0) = uVar7;
      }
    }
    if ((local_34 != 0) || (!bVar2)) goto LAB_0003d2e0;
    if (*(int *)(param_1 + 0x1118) != 0) {
      if (*(int *)(param_1 + 0x128) == local_38) {
        local_38 = FUN_000381c0();
        local_38 = local_38 + 1;
      }
      if (0 < local_38) {
        FUN_0003b710(local_38,1);
      }
      goto LAB_0003d2c2;
    }
    bVar2 = true;
  }
  else {
LAB_0003d2e0:
    bVar2 = false;
  }
  puVar4 = (ushort *)FUN_00039490();
  if (bVar3) {
    while ((iVar10 < local_38 || ((local_38 == iVar10 && (iVar11 < local_34))))) {
      iVar5 = *(int *)(puVar4 + 2);
      if (iVar5 != *(int *)(param_1 + 300)) {
        FUN_00039240();
        iVar5 = *(int *)(param_1 + 300);
      }
      if (iVar5 == iVar11) {
        *puVar4 = 0;
LAB_0003d34f:
        iVar10 = iVar10 + 1;
        iVar11 = 0;
        if (iVar10 < *(int *)(param_1 + 0x128)) {
          puVar4 = (ushort *)FUN_00039490();
        }
      }
      else {
        FUN_0003b240();
        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d34f;
        iVar11 = iVar11 + 1;
      }
    }
  }
  else {
    while ((iVar10 < local_38 || ((iVar10 == local_38 && (iVar11 < local_34))))) {
      iVar5 = *(int *)(puVar4 + 2);
      if (*(int *)(param_1 + 300) != iVar5) {
        FUN_00039240();
        iVar5 = *(int *)(param_1 + 300);
      }
      if (iVar11 == iVar5) {
        *puVar4 = *puVar4 & 0xffcf;
LAB_0003d3be:
        iVar10 = iVar10 + 1;
        if (iVar10 < *(int *)(param_1 + 0x128)) {
          iVar11 = 0;
          puVar4 = (ushort *)FUN_00039490();
        }
        else {
          iVar11 = 0;
        }
      }
      else {
        FUN_0003b240();
        if (*(int *)(param_1 + 300) == iVar11) goto LAB_0003d3be;
        iVar11 = iVar11 + 1;
      }
    }
  }
  if (!bVar2) {
    return;
  }
LAB_0003d2c2:
  if (*(int *)(param_1 + 0x1a4) == 0) {
    *(undefined4 *)(param_1 + 0x14) = 0;
  }
  return;
}

