
/* 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 */

int __regparm3 s_wrpkt_prepare(Ssh_conflict ssh,Packet *pkt,int *offset_p)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  char *texttype;
  int iVar4;
  ulong uVar5;
  long lVar6;
  uchar *puVar7;
  int iVar8;
  int iVar9;
  uchar *puVar10;
  int in_GS_OFFSET;
  uchar *compblk;
  int complen;
  logblank_t blanks [4];
  
  puVar10 = (uchar *)pkt->length;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (ssh->logctx == (void *)0x0) goto LAB_0002e672;
  pkt->savedpos = 0;
  uVar3 = pkt->type;
  pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data);
  iVar9 = ssh->logomitdata;
  if ((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))) {
    blanks[0].offset = 4;
    if (uVar3 == 0x17) {
      ssh_pkt_getuint32(pkt);
      blanks[0].offset = pkt->savedpos + 4;
    }
    blanks[0].type = 2;
    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);
    if (compblk == (uchar *)0x0) {
      uVar3 = pkt->type;
      iVar9 = 0;
    }
    else {
      iVar9 = 1;
      uVar3 = pkt->type;
    }
  }
  if (((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)) {
    iVar8 = conf_get_int(ssh->conf,0x7b);
    if (iVar8 == 0) {
      uVar3 = pkt->type;
      goto LAB_0002e621;
    }
    lVar6 = pkt->length;
    iVar8 = iVar9 + 1;
    blanks[iVar9].offset = 0;
    blanks[iVar9].len = lVar6;
    blanks[iVar9].type = 1;
  }
  else {
LAB_0002e621:
    iVar8 = iVar9;
    if (uVar3 == 0x22) {
      iVar4 = conf_get_int(ssh->conf,0x7b);
      if (iVar4 != 0) {
        pkt->savedpos = 0;
        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);
        lVar6 = pkt->savedpos;
        blanks[iVar9].type = 1;
        blanks[iVar9].offset = lVar6;
        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);
        if (compblk != (uchar *)0x0) {
          iVar8 = iVar9 + 1;
          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;
        }
      }
    }
    lVar6 = pkt->length;
  }
  bVar1 = pkt->data[0xc];
  texttype = ssh1_pkt_type((uint)bVar1);
  log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,
             (char *)0x0);
  puVar10 = pkt->body + (pkt->length - (int)pkt->data);
  pkt->length = (long)puVar10;
LAB_0002e672:
  if (ssh->v1_compressing != 0) {
    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);
    if (pkt->maxlen < complen + 2) {
      ssh_pkt_ensure(pkt,complen + 2);
    }
    memcpy(pkt->data + 0xc,compblk,complen);
    safefree(compblk);
    puVar10 = (uchar *)(complen + 0xc);
    pkt->length = (long)puVar10;
  }
  puVar7 = puVar10 + 4;
  if (pkt->maxlen < (int)puVar7) {
    ssh_pkt_ensure(pkt,(int)puVar7);
    puVar10 = (uchar *)pkt->length;
    puVar7 = puVar10 + 4;
  }
  puVar10 = puVar10 + -8;
  pkt->length = (long)puVar7;
  iVar8 = (int)puVar10 % 8;
  iVar9 = iVar8;
  do {
    iVar4 = random_byte();
    pkt->data[iVar9] = (uchar)iVar4;
    iVar9 = iVar9 + 1;
  } while (iVar9 != 0xc);
  uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)));
  puVar7 = puVar10 + (8 - iVar8) + iVar8;
  pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18);
  pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10);
  pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8);
  pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5;
  pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18);
  pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10);
  pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8);
  pkt->data[iVar8 + 3] = (uchar)puVar10;
  if (ssh->cipher != (ssh_cipher *)0x0) {
    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));
  }
  *offset_p = iVar8;
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return (int)(puVar10 + (0xc - iVar8));
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)

{
  undefined1 uVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  void *local_58;
  size_t local_54;
  int local_50 [12];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2e5ab;
  iVar6 = *param_2;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;
  param_2[6] = 0;
  uVar2 = param_2[2];
  *param_2 = iVar6 - (param_2[5] - param_2[4]);
  iVar6 = *(int *)(param_1 + 0x24c);
  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {
    local_50[0] = 4;
    if (uVar2 == 0x17) {
      FUN_0002b1c0();
      local_50[0] = param_2[6] + 4;
    }
    local_50[2] = 2;
    FUN_0002bab0();
    if (local_58 == (void *)0x0) {
      uVar2 = param_2[2];
      iVar6 = 0;
    }
    else {
      iVar6 = 1;
      uVar2 = param_2[2];
    }
  }
  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {
    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);
    if (iVar7 == 0) {
      uVar2 = param_2[2];
      goto LAB_0002e621;
    }
    iVar7 = *param_2;
    iVar4 = iVar6 + 1;
    local_50[iVar6 * 3] = 0;
    local_50[iVar6 * 3 + 1] = iVar7;
    local_50[iVar6 * 3 + 2] = 1;
  }
  else {
LAB_0002e621:
    iVar4 = iVar6;
    if (uVar2 == 0x22) {
      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);
      if (iVar7 != 0) {
        param_2[6] = 0;
        FUN_0002bab0();
        iVar7 = param_2[6];
        local_50[iVar6 * 3 + 2] = 1;
        local_50[iVar6 * 3] = iVar7;
        FUN_0002bab0();
        if (local_58 != (void *)0x0) {
          iVar4 = iVar6 + 1;
          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];
        }
      }
    }
    iVar7 = *param_2;
  }
  uVar1 = *(undefined1 *)(param_2[4] + 0xc);
  uVar3 = FUN_0002d720();
  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);
  iVar6 = (param_2[5] - param_2[4]) + *param_2;
  *param_2 = iVar6;
LAB_0002e672:
  if (*(int *)(param_1 + 0x3c) != 0) {
    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);
    if (param_2[7] < (int)(local_54 + 2)) {
      FUN_0002e2c0();
    }
    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);
    FUN_0001b240(local_58);
    iVar6 = local_54 + 0xc;
    *param_2 = iVar6;
  }
  iVar7 = iVar6 + 4;
  if (param_2[7] < iVar7) {
    FUN_0002e2c0();
    iVar6 = *param_2;
    iVar7 = iVar6 + 4;
  }
  iVar6 = iVar6 + -8;
  *param_2 = iVar7;
  iVar5 = iVar6 % 8;
  iVar4 = iVar6 - iVar5;
  iVar7 = iVar5;
  do {
    uVar1 = FUN_00057df0();
    *(undefined1 *)(param_2[4] + iVar7) = uVar1;
    iVar7 = iVar7 + 1;
  } while (iVar7 != 0xc);
  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);
  iVar7 = iVar4 + 8 + iVar5;
  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);
  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);
  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);
  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;
  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);
  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);
  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);
  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;
  if (*(int *)(param_1 + 0x54) != 0) {
    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))
              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);
  }
  *param_3 = iVar5;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4 + 0xc;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014970
ADD EBX,0x7b7e5
SUB ESP,0x6c
MOV EBP,dword ptr [EAX + 0x18]
MOV EDI,dword ptr [EDX]
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x18],ECX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x5c],ECX
XOR ECX,ECX
TEST EBP,EBP
JZ 0x0002e672
MOV ECX,EAX
MOV EAX,dword ptr [EDX + 0x14]
SUB EAX,dword ptr [EDX + 0x10]
MOV dword ptr [EDX + 0x18],0x0
SUB EDI,EAX
MOV EAX,dword ptr [EDX + 0x8]
MOV dword ptr [EDX],EDI
MOV EDI,dword ptr [ECX + 0x24c]
TEST EDI,EDI
JZ 0x0002e60a
CMP EAX,0x10
JZ 0x0002e8e0
XOR EDI,EDI
CMP EAX,0x17
JZ 0x0002e8e0
MOV EDX,EAX
AND EDX,0xffffffdf
CMP EDX,0x9
JZ 0x0002e798
CMP EAX,0x48
JZ 0x0002e798
CMP EAX,0x22
JZ 0x0002e858
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [ESP + 0xc],EDX
MOVZX EBP,byte ptr [EAX + 0xc]
MOV EAX,EBP
CALL 0x0002d720
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH 0x0
LEA ECX,[ESP + 0x3c]
PUSH ECX
PUSH EDI
MOV EDX,dword ptr [ESP + 0x24]
PUSH EDX
PUSH dword ptr [ESI + 0x14]
PUSH EAX
PUSH EBP
PUSH 0x1
MOV EAX,dword ptr [ESP + 0x3c]
PUSH dword ptr [EAX + 0x18]
CALL 0x00019860
MOV EDI,dword ptr [ESI + 0x14]
SUB EDI,dword ptr [ESI + 0x10]
ADD ESP,0x30
ADD EDI,dword ptr [ESI]
MOV dword ptr [ESI],EDI
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x3c]
TEST EAX,EAX
JNZ 0x0002e7e0
LEA EDX,[EDI + 0x4]
CMP EDX,dword ptr [ESI + 0x1c]
JLE 0x0002e695
MOV EAX,ESI
CALL 0x0002e2c0
MOV EDI,dword ptr [ESI]
LEA EDX,[EDI + 0x4]
LEA ECX,[EDI + -0x8]
MOV dword ptr [ESI],EDX
MOV EAX,ECX
MOV dword ptr [ESP + 0x14],ECX
SAR EAX,0x1f
SHR EAX,0x1d
LEA EBP,[ECX + EAX*0x1]
AND EBP,0x7
SUB EBP,EAX
MOV EAX,ECX
SUB EAX,EBP
MOV EDI,EBP
ADD EAX,0x8
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
CALL 0x00057df0
MOV EDX,dword ptr [ESI + 0x10]
MOV byte ptr [EDX + EDI*0x1],AL
ADD EDI,0x1
CMP EDI,0xc
JNZ 0x0002e6c0
SUB ESP,0x8
LEA ECX,[EBP + 0x4]
MOV EDI,dword ptr [ESP + 0x14]
LEA EAX,[EDI + -0x4]
PUSH EAX
MOV EAX,ECX
ADD EAX,dword ptr [ESI + 0x10]
MOV dword ptr [ESP + 0x28],ECX
PUSH EAX
CALL 0x00049530
LEA EDX,[EDI + EBP*0x1]
MOV dword ptr [ESP + 0x1c],EDI
MOV EDI,dword ptr [ESI + 0x10]
MOV EBX,EAX
MOV ECX,dword ptr [ESP + 0x24]
SHR EBX,0x18
MOV byte ptr [EDI + EDX*0x1],BL
MOV EBX,EAX
MOV EDI,dword ptr [ESI + 0x10]
SHR EBX,0x10
MOV byte ptr [EDI + EDX*0x1 + 0x1],BL
MOV EBX,dword ptr [ESI + 0x10]
MOV byte ptr [EBX + EDX*0x1 + 0x2],AH
MOV EBX,dword ptr [ESI + 0x10]
MOV byte ptr [EBX + EDX*0x1 + 0x3],AL
MOV EDX,ECX
MOV EAX,dword ptr [ESI + 0x10]
SAR EDX,0x18
MOV EBX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV byte ptr [EAX + EBP*0x1],DL
MOV EDX,ECX
MOV EAX,dword ptr [ESI + 0x10]
SAR EDX,0x10
MOV byte ptr [EAX + EBP*0x1 + 0x1],DL
MOV EAX,dword ptr [ESI + 0x10]
MOV byte ptr [EAX + EBP*0x1 + 0x2],CH
MOV EAX,dword ptr [ESI + 0x10]
MOV byte ptr [EAX + EBP*0x1 + 0x3],CL
MOV EDX,dword ptr [EBX + 0x54]
TEST EDX,EDX
JZ 0x0002e76d
SUB ESP,0x4
MOV EAX,dword ptr [ESI + 0x10]
PUSH dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x24]
ADD EAX,ECX
PUSH EAX
PUSH dword ptr [EBX + 0x58]
CALL dword ptr [EDX + 0xc]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EBP
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,0x4
MOV ESI,dword ptr [ESP + 0x5c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x0002e93b
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x7b
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x248]
CALL 0x00017370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002e850
LEA EAX,[EDI + EDI*0x2]
MOV EDX,dword ptr [ESI]
ADD EDI,0x1
SHL EAX,0x2
MOV dword ptr [ESP + EAX*0x1 + 0x2c],0x0
MOV dword ptr [ESP + EAX*0x1 + 0x30],EDX
MOV dword ptr [ESP + EAX*0x1 + 0x34],0x1
JMP 0x0002e62c
SUB ESP,0xc
SUB EDI,0xc
LEA EAX,[ESP + 0x34]
PUSH EAX
LEA EAX,[ESP + 0x34]
PUSH EAX
MOV EAX,dword ptr [ESI + 0x10]
PUSH EDI
ADD EAX,0xc
PUSH EAX
MOV EAX,dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX + 0x90]
CALL 0x000627b0
MOV ECX,dword ptr [ESP + 0x48]
ADD ESP,0x20
LEA EDX,[ECX + 0x2]
CMP EDX,dword ptr [ESI + 0x1c]
JLE 0x0002e821
MOV EAX,ESI
CALL 0x0002e2c0
MOV ECX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESI + 0x10]
MOV EDI,dword ptr [ESP + 0x24]
SUB ESP,0x4
PUSH ECX
ADD EAX,0xc
PUSH EDI
PUSH EAX
CALL 0x00014130
MOV dword ptr [ESP],EDI
CALL 0x0001b240
MOV EAX,dword ptr [ESP + 0x38]
ADD ESP,0x10
LEA EDI,[EAX + 0xc]
MOV dword ptr [ESI],EDI
JMP 0x0002e681
MOV EAX,dword ptr [ESI + 0x8]
JMP 0x0002e621
SUB ESP,0x8
PUSH 0x7b
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x248]
CALL 0x00017370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002e62a
MOV dword ptr [ESI + 0x18],0x0
LEA EAX,[ESP + 0x28]
LEA EDX,[ESP + 0x24]
MOV ECX,EAX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ESI
LEA EBP,[EDI + EDI*0x2]
MOV dword ptr [ESP + 0x14],EDX
SHL EBP,0x2
CALL 0x0002bab0
MOV EAX,dword ptr [ESI + 0x18]
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + EBP*0x1 + 0x34],0x1
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + EBP*0x1 + 0x2c],EAX
MOV EAX,ESI
CALL 0x0002bab0
MOV EDX,dword ptr [ESP + 0x24]
TEST EDX,EDX
JZ 0x0002e62a
MOV EAX,dword ptr [ESI + 0x18]
SUB EAX,dword ptr [ESP + EBP*0x1 + 0x2c]
ADD EDI,0x1
MOV dword ptr [ESP + EBP*0x1 + 0x30],EAX
JMP 0x0002e62a
MOV EDX,0x4
CMP EAX,0x17
JZ 0x0002e92c
MOV dword ptr [ESP + 0x2c],EDX
LEA ECX,[ESP + 0x28]
LEA EDX,[ESP + 0x24]
MOV EAX,ESI
MOV dword ptr [ESP + 0x34],0x2
CALL 0x0002bab0
MOV ECX,dword ptr [ESP + 0x24]
TEST ECX,ECX
JZ 0x0002e922
MOV EAX,dword ptr [ESP + 0x28]
MOV EDI,0x1
MOV dword ptr [ESP + 0x30],EAX
MOV EAX,dword ptr [ESI + 0x8]
JMP 0x0002e60a
MOV EAX,dword ptr [ESI + 0x8]
XOR EDI,EDI
JMP 0x0002e60a
MOV EAX,ESI
CALL 0x0002b1c0
MOV EAX,dword ptr [ESI + 0x18]
LEA EDX,[EAX + 0x4]
JMP 0x0002e8ea
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)\n\n{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "int __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)\n\n{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002e5a0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "void *local_58;" primitive_type (pointer_declarator "*local_58" * identifier) ;) (declaration "size_t local_54;" primitive_type identifier ;) (declaration "int local_50 [12];" primitive_type (array_declarator "local_50 [12]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2e5ab;" (assignment_expression "uStack_14 = 0x2e5ab" identifier = number_literal) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (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) )))) == number_literal) )) (goto_statement "goto LAB_0002e672;" goto statement_identifier ;)) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = iVar6 - (param_2[5] - param_2[4]);" (assignment_expression "*param_2 = iVar6 - (param_2[5] - param_2[4])" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar6 - (param_2[5] - param_2[4])" identifier - (parenthesized_expression "(param_2[5] - param_2[4])" ( (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" identifier [ number_literal ]) - (subscript_expression "param_2[4]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x24c)" identifier = (pointer_expression "*(int *)(param_1 + 0x24c)" * (cast_expression "(int *)(param_1 + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) ))))) ;) (if_statement "if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" if (parenthesized_expression "((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))))" ( (binary_expression "(iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" ( (parenthesized_expression "(uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))" ( (binary_expression "uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)" (binary_expression "uVar2 == 0x10" identifier == number_literal) || (parenthesized_expression "(iVar6 = 0, uVar2 == 0x17)" ( (comma_expression "iVar6 = 0, uVar2 == 0x17" (assignment_expression "iVar6 = 0" identifier = number_literal) , (binary_expression "uVar2 == 0x17" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" { (expression_statement "local_50[0] = 4;" (assignment_expression "local_50[0] = 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" if (parenthesized_expression "(uVar2 == 0x17)" ( (binary_expression "uVar2 == 0x17" identifier == number_literal) )) (compound_statement "{\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" identifier [ number_literal ]) + number_literal)) ;) })) (expression_statement "local_50[2] = 2;" (assignment_expression "local_50[2] = 2" (subscript_expression "local_50[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" if (parenthesized_expression "(local_58 == (void *)0x0)" ( (binary_expression "local_58 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" else (compound_statement "{\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) })) (if_statement "if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" if (parenthesized_expression "(((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48))" ( (binary_expression "((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)" (parenthesized_expression "((uVar2 & 0xffffffdf) == 9)" ( (binary_expression "(uVar2 & 0xffffffdf) == 9" (parenthesized_expression "(uVar2 & 0xffffffdf)" ( (binary_expression "uVar2 & 0xffffffdf" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(uVar2 == 0x48)" ( (binary_expression "uVar2 == 0x48" identifier == number_literal) ))) )) (compound_statement "{\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }" { (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier = (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0002e621;" goto statement_identifier ;) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_50[iVar6 * 3] = 0;" (assignment_expression "local_50[iVar6 * 3] = 0" (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]) = number_literal) ;) (expression_statement "local_50[iVar6 * 3 + 1] = iVar7;" (assignment_expression "local_50[iVar6 * 3 + 1] = iVar7" (subscript_expression "local_50[iVar6 * 3 + 1]" identifier [ (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" identifier [ (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = number_literal) ;) }) (else_clause "else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" else (compound_statement "{\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" { (labeled_statement "LAB_0002e621:\n    iVar4 = iVar6;" statement_identifier : (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;)) (if_statement "if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" if (parenthesized_expression "(uVar2 == 0x22)" ( (binary_expression "uVar2 == 0x22" identifier == number_literal) )) (compound_statement "{\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" { (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier = (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" { (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" identifier = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" identifier [ (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "local_50[iVar6 * 3] = iVar7;" (assignment_expression "local_50[iVar6 * 3] = iVar7" (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]) = identifier) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" if (parenthesized_expression "(local_58 != (void *)0x0)" ( (binary_expression "local_58 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" { (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];" (assignment_expression "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3]" (subscript_expression "local_50[iVar6 * 3 + 1]" identifier [ (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[6] - local_50[iVar6 * 3]" (subscript_expression "param_2[6]" identifier [ number_literal ]) - (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]))) ;) })) })) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "uVar1 = *(undefined1 *)(param_2[4] + 0xc);" (assignment_expression "uVar1 = *(undefined1 *)(param_2[4] + 0xc)" identifier = (pointer_expression "*(undefined1 *)(param_2[4] + 0xc)" * (cast_expression "(undefined1 *)(param_2[4] + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 0xc)" ( (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_0002d720();" (assignment_expression "uVar3 = FUN_0002d720()" identifier = (call_expression "FUN_0002d720()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal , identifier , identifier , (subscript_expression "param_2[5]" identifier [ number_literal ]) , identifier , identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "iVar6 = (param_2[5] - param_2[4]) + *param_2;" (assignment_expression "iVar6 = (param_2[5] - param_2[4]) + *param_2" identifier = (binary_expression "(param_2[5] - param_2[4]) + *param_2" (parenthesized_expression "(param_2[5] - param_2[4])" ( (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" identifier [ number_literal ]) - (subscript_expression "param_2[4]" identifier [ number_literal ])) )) + (pointer_expression "*param_2" * identifier))) ;) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (labeled_statement "LAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3c) != 0" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" { (expression_statement "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);" (call_expression "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) , (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) , (binary_expression "iVar6 + -0xc" identifier + number_literal) , (pointer_expression "&local_58" & identifier) , (pointer_expression "&local_54" & identifier) ))) ;) (if_statement "if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }" if (parenthesized_expression "(param_2[7] < (int)(local_54 + 2))" ( (binary_expression "param_2[7] < (int)(local_54 + 2)" (subscript_expression "param_2[7]" identifier [ number_literal ]) < (cast_expression "(int)(local_54 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_54 + 2)" ( (binary_expression "local_54 + 2" identifier + number_literal) )))) )) (compound_statement "{\n      FUN_0002e2c0();\n    }" { (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)(param_2[4] + 0xc),local_58,local_54);" (call_expression "memcpy((void *)(param_2[4] + 0xc),local_58,local_54)" identifier (argument_list "((void *)(param_2[4] + 0xc),local_58,local_54)" ( (cast_expression "(void *)(param_2[4] + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 0xc)" ( (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "FUN_0001b240(local_58);" (call_expression "FUN_0001b240(local_58)" identifier (argument_list "(local_58)" ( identifier ))) ;) (expression_statement "iVar6 = local_54 + 0xc;" (assignment_expression "iVar6 = local_54 + 0xc" identifier = (binary_expression "local_54 + 0xc" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) (if_statement "if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" if (parenthesized_expression "(param_2[7] < iVar7)" ( (binary_expression "param_2[7] < iVar7" (subscript_expression "param_2[7]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" { (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar6 + -8;" (assignment_expression "iVar6 = iVar6 + -8" identifier = (binary_expression "iVar6 + -8" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar7;" (assignment_expression "*param_2 = iVar7" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar5 = iVar6 % 8;" (assignment_expression "iVar5 = iVar6 % 8" identifier = (binary_expression "iVar6 % 8" identifier % number_literal)) ;) (expression_statement "iVar4 = iVar6 - iVar5;" (assignment_expression "iVar4 = iVar6 - iVar5" identifier = (binary_expression "iVar6 - iVar5" identifier - identifier)) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) (do_statement "do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);" do (compound_statement "{\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "uVar1 = FUN_00057df0();" (assignment_expression "uVar1 = FUN_00057df0()" identifier = (call_expression "FUN_00057df0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(param_2[4] + iVar7) = uVar1;" (assignment_expression "*(undefined1 *)(param_2[4] + iVar7) = uVar1" (pointer_expression "*(undefined1 *)(param_2[4] + iVar7)" * (cast_expression "(undefined1 *)(param_2[4] + iVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar7)" ( (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = identifier) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0xc)" ( (binary_expression "iVar7 != 0xc" identifier != number_literal) )) ;) (expression_statement "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);" (assignment_expression "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" identifier = (call_expression "FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" identifier (argument_list "(iVar5 + 4 + param_2[4],iVar4 + 4)" ( (binary_expression "iVar5 + 4 + param_2[4]" (binary_expression "iVar5 + 4" identifier + number_literal) + (subscript_expression "param_2[4]" identifier [ number_literal ])) , (binary_expression "iVar4 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar7 = iVar4 + 8 + iVar5;" (assignment_expression "iVar7 = iVar4 + 8 + iVar5" identifier = (binary_expression "iVar4 + 8 + iVar5" (binary_expression "iVar4 + 8" identifier + number_literal) + identifier)) ;) (expression_statement "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar7)" * (cast_expression "(char *)(param_2[4] + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar7)" ( (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x18)" ( (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar7)" * (cast_expression "(char *)(param_2[4] + 1 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 1 + iVar7)" ( (binary_expression "param_2[4] + 1 + iVar7" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x10)" ( (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar7)" * (cast_expression "(char *)(param_2[4] + 2 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 2 + iVar7)" ( (binary_expression "param_2[4] + 2 + iVar7" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 8)" ( (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3" (pointer_expression "*(char *)(param_2[4] + 3 + iVar7)" * (cast_expression "(char *)(param_2[4] + 3 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 3 + iVar7)" ( (binary_expression "param_2[4] + 3 + iVar7" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar5)" * (cast_expression "(char *)(param_2[4] + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar5)" ( (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 0x18)" ( (binary_expression "(uint)iVar6 >> 0x18" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar5)" * (cast_expression "(char *)(param_2[4] + 1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 1 + iVar5)" ( (binary_expression "param_2[4] + 1 + iVar5" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 0x10)" ( (binary_expression "(uint)iVar6 >> 0x10" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar5)" * (cast_expression "(char *)(param_2[4] + 2 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 2 + iVar5)" ( (binary_expression "param_2[4] + 2 + iVar5" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 8)" ( (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6" (pointer_expression "*(char *)(param_2[4] + 3 + iVar5)" * (cast_expression "(char *)(param_2[4] + 3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 3 + iVar5)" ( (binary_expression "param_2[4] + 3 + iVar5" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" { (expression_statement "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 0x54) + 0xc)" * (pointer_expression "*(code **)(*(int *)(param_1 + 0x54) + 0xc)" * (cast_expression "(code **)(*(int *)(param_1 + 0x54) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0xc" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , (binary_expression "param_2[4] + iVar5 + 4" (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) + number_literal) , (binary_expression "iVar4 + 8" identifier + number_literal) ))) ;) })) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4 + 0xc;\n  }" { (return_statement "return iVar4 + 0xc;" return (binary_expression "iVar4 + 0xc" identifier + number_literal) ;) })) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(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\nint __regparm3 s_wrpkt_prepare(Ssh_conflict ssh,Packet *pkt,int *offset_p)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  char *texttype;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  uchar *puVar7;\n  int iVar8;\n  int iVar9;\n  uchar *puVar10;\n  int in_GS_OFFSET;\n  uchar *compblk;\n  int complen;\n  logblank_t blanks [4];\n  \n  puVar10 = (uchar *)pkt->length;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (ssh->logctx == (void *)0x0) goto LAB_0002e672;\n  pkt->savedpos = 0;\n  uVar3 = pkt->type;\n  pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data);\n  iVar9 = ssh->logomitdata;\n  if ((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))) {\n    blanks[0].offset = 4;\n    if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }\n    blanks[0].type = 2;\n    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n    if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }\n  }\n  if (((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)) {\n    iVar8 = conf_get_int(ssh->conf,0x7b);\n    if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }\n    lVar6 = pkt->length;\n    iVar8 = iVar9 + 1;\n    blanks[iVar9].offset = 0;\n    blanks[iVar9].len = lVar6;\n    blanks[iVar9].type = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }\n  bVar1 = pkt->data[0xc];\n  texttype = ssh1_pkt_type((uint)bVar1);\n  log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0);\n  puVar10 = pkt->body + (pkt->length - (int)pkt->data);\n  pkt->length = (long)puVar10;\nLAB_0002e672:\n  if (ssh->v1_compressing != 0) {\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }\n  puVar7 = puVar10 + 4;\n  if (pkt->maxlen < (int)puVar7) {\n    ssh_pkt_ensure(pkt,(int)puVar7);\n    puVar10 = (uchar *)pkt->length;\n    puVar7 = puVar10 + 4;\n  }\n  puVar10 = puVar10 + -8;\n  pkt->length = (long)puVar7;\n  iVar8 = (int)puVar10 % 8;\n  iVar9 = iVar8;\n  do {\n    iVar4 = random_byte();\n    pkt->data[iVar9] = (uchar)iVar4;\n    iVar9 = iVar9 + 1;\n  } while (iVar9 != 0xc);\n  uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)));\n  puVar7 = puVar10 + (8 - iVar8) + iVar8;\n  pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18);\n  pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10);\n  pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8);\n  pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5;\n  pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18);\n  pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10);\n  pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8);\n  pkt->data[iVar8 + 3] = (uchar)puVar10;\n  if (ssh->cipher != (ssh_cipher *)0x0) {\n    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));\n  }\n  *offset_p = iVar8;\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)(puVar10 + (0xc - iVar8));\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int __regparm3 s_wrpkt_prepare(Ssh_conflict ssh,Packet *pkt,int *offset_p)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  char *texttype;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  uchar *puVar7;\n  int iVar8;\n  int iVar9;\n  uchar *puVar10;\n  int in_GS_OFFSET;\n  uchar *compblk;\n  int complen;\n  logblank_t blanks [4];\n  \n  puVar10 = (uchar *)pkt->length;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (ssh->logctx == (void *)0x0) goto LAB_0002e672;\n  pkt->savedpos = 0;\n  uVar3 = pkt->type;\n  pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data);\n  iVar9 = ssh->logomitdata;\n  if ((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))) {\n    blanks[0].offset = 4;\n    if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }\n    blanks[0].type = 2;\n    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n    if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }\n  }\n  if (((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)) {\n    iVar8 = conf_get_int(ssh->conf,0x7b);\n    if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }\n    lVar6 = pkt->length;\n    iVar8 = iVar9 + 1;\n    blanks[iVar9].offset = 0;\n    blanks[iVar9].len = lVar6;\n    blanks[iVar9].type = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }\n  bVar1 = pkt->data[0xc];\n  texttype = ssh1_pkt_type((uint)bVar1);\n  log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0);\n  puVar10 = pkt->body + (pkt->length - (int)pkt->data);\n  pkt->length = (long)puVar10;\nLAB_0002e672:\n  if (ssh->v1_compressing != 0) {\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }\n  puVar7 = puVar10 + 4;\n  if (pkt->maxlen < (int)puVar7) {\n    ssh_pkt_ensure(pkt,(int)puVar7);\n    puVar10 = (uchar *)pkt->length;\n    puVar7 = puVar10 + 4;\n  }\n  puVar10 = puVar10 + -8;\n  pkt->length = (long)puVar7;\n  iVar8 = (int)puVar10 % 8;\n  iVar9 = iVar8;\n  do {\n    iVar4 = random_byte();\n    pkt->data[iVar9] = (uchar)iVar4;\n    iVar9 = iVar9 + 1;\n  } while (iVar9 != 0xc);\n  uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)));\n  puVar7 = puVar10 + (8 - iVar8) + iVar8;\n  pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18);\n  pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10);\n  pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8);\n  pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5;\n  pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18);\n  pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10);\n  pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8);\n  pkt->data[iVar8 + 3] = (uchar)puVar10;\n  if (ssh->cipher != (ssh_cipher *)0x0) {\n    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));\n  }\n  *offset_p = iVar8;\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)(puVar10 + (0xc - iVar8));\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "s_wrpkt_prepare(Ssh_conflict ssh,Packet *pkt,int *offset_p)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pkt,int *offset_p)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) , (parameter_declaration "int *offset_p" primitive_type (pointer_declarator "*offset_p" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  char *texttype;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  uchar *puVar7;\n  int iVar8;\n  int iVar9;\n  uchar *puVar10;\n  int in_GS_OFFSET;\n  uchar *compblk;\n  int complen;\n  logblank_t blanks [4];\n  \n  puVar10 = (uchar *)pkt->length;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (ssh->logctx == (void *)0x0) goto LAB_0002e672;\n  pkt->savedpos = 0;\n  uVar3 = pkt->type;\n  pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data);\n  iVar9 = ssh->logomitdata;\n  if ((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))) {\n    blanks[0].offset = 4;\n    if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }\n    blanks[0].type = 2;\n    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n    if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }\n  }\n  if (((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)) {\n    iVar8 = conf_get_int(ssh->conf,0x7b);\n    if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }\n    lVar6 = pkt->length;\n    iVar8 = iVar9 + 1;\n    blanks[iVar9].offset = 0;\n    blanks[iVar9].len = lVar6;\n    blanks[iVar9].type = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }\n  bVar1 = pkt->data[0xc];\n  texttype = ssh1_pkt_type((uint)bVar1);\n  log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0);\n  puVar10 = pkt->body + (pkt->length - (int)pkt->data);\n  pkt->length = (long)puVar10;\nLAB_0002e672:\n  if (ssh->v1_compressing != 0) {\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }\n  puVar7 = puVar10 + 4;\n  if (pkt->maxlen < (int)puVar7) {\n    ssh_pkt_ensure(pkt,(int)puVar7);\n    puVar10 = (uchar *)pkt->length;\n    puVar7 = puVar10 + 4;\n  }\n  puVar10 = puVar10 + -8;\n  pkt->length = (long)puVar7;\n  iVar8 = (int)puVar10 % 8;\n  iVar9 = iVar8;\n  do {\n    iVar4 = random_byte();\n    pkt->data[iVar9] = (uchar)iVar4;\n    iVar9 = iVar9 + 1;\n  } while (iVar9 != 0xc);\n  uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)));\n  puVar7 = puVar10 + (8 - iVar8) + iVar8;\n  pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18);\n  pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10);\n  pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8);\n  pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5;\n  pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18);\n  pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10);\n  pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8);\n  pkt->data[iVar8 + 3] = (uchar)puVar10;\n  if (ssh->cipher != (ssh_cipher *)0x0) {\n    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));\n  }\n  *offset_p = iVar8;\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)(puVar10 + (0xc - iVar8));\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *texttype;" primitive_type (pointer_declarator "*texttype" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uchar *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar *compblk;" type_identifier (pointer_declarator "*compblk" * identifier) ;) (declaration "int complen;" primitive_type identifier ;) (declaration "logblank_t blanks [4];" type_identifier (array_declarator "blanks [4]" identifier [ number_literal ]) ;) (expression_statement "puVar10 = (uchar *)pkt->length;" (assignment_expression "puVar10 = (uchar *)pkt->length" identifier = (cast_expression "(uchar *)pkt->length" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pkt->length" identifier -> field_identifier))) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (ssh->logctx == (void *)0x0) goto LAB_0002e672;" if (parenthesized_expression "(ssh->logctx == (void *)0x0)" ( (binary_expression "ssh->logctx == (void *)0x0" (field_expression "ssh->logctx" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002e672;" goto statement_identifier ;)) (expression_statement "pkt->savedpos = 0;" (assignment_expression "pkt->savedpos = 0" (field_expression "pkt->savedpos" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar3 = pkt->type;" (assignment_expression "uVar3 = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (expression_statement "pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data);" (assignment_expression "pkt->length = (int)puVar10 - ((int)pkt->body - (int)pkt->data)" (field_expression "pkt->length" identifier -> field_identifier) = (binary_expression "(int)puVar10 - ((int)pkt->body - (int)pkt->data)" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((int)pkt->body - (int)pkt->data)" ( (binary_expression "(int)pkt->body - (int)pkt->data" (cast_expression "(int)pkt->body" ( (type_descriptor "int" primitive_type) ) (field_expression "pkt->body" identifier -> field_identifier)) - (cast_expression "(int)pkt->data" ( (type_descriptor "int" primitive_type) ) (field_expression "pkt->data" identifier -> field_identifier))) )))) ;) (expression_statement "iVar9 = ssh->logomitdata;" (assignment_expression "iVar9 = ssh->logomitdata" identifier = (field_expression "ssh->logomitdata" identifier -> field_identifier)) ;) (if_statement "if ((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))) {\n    blanks[0].offset = 4;\n    if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }\n    blanks[0].type = 2;\n    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n    if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }\n  }" if (parenthesized_expression "((iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17))))" ( (binary_expression "(iVar9 != 0) && ((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))" (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) && (parenthesized_expression "((uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)))" ( (parenthesized_expression "(uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17))" ( (binary_expression "uVar3 == 0x10 || (iVar9 = 0, uVar3 == 0x17)" (binary_expression "uVar3 == 0x10" identifier == number_literal) || (parenthesized_expression "(iVar9 = 0, uVar3 == 0x17)" ( (comma_expression "iVar9 = 0, uVar3 == 0x17" (assignment_expression "iVar9 = 0" identifier = number_literal) , (binary_expression "uVar3 == 0x17" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    blanks[0].offset = 4;\n    if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }\n    blanks[0].type = 2;\n    ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n    if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }\n  }" { (expression_statement "blanks[0].offset = 4;" (assignment_expression "blanks[0].offset = 4" (field_expression "blanks[0].offset" (subscript_expression "blanks[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (if_statement "if (uVar3 == 0x17) {\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }" if (parenthesized_expression "(uVar3 == 0x17)" ( (binary_expression "uVar3 == 0x17" identifier == number_literal) )) (compound_statement "{\n      ssh_pkt_getuint32(pkt);\n      blanks[0].offset = pkt->savedpos + 4;\n    }" { (expression_statement "ssh_pkt_getuint32(pkt);" (call_expression "ssh_pkt_getuint32(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) (expression_statement "blanks[0].offset = pkt->savedpos + 4;" (assignment_expression "blanks[0].offset = pkt->savedpos + 4" (field_expression "blanks[0].offset" (subscript_expression "blanks[0]" identifier [ number_literal ]) . field_identifier) = (binary_expression "pkt->savedpos + 4" (field_expression "pkt->savedpos" identifier -> field_identifier) + number_literal)) ;) })) (expression_statement "blanks[0].type = 2;" (assignment_expression "blanks[0].type = 2" (field_expression "blanks[0].type" (subscript_expression "blanks[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "ssh_pkt_getstring(pkt,(char **)&compblk,&complen);" (call_expression "ssh_pkt_getstring(pkt,(char **)&compblk,&complen)" identifier (argument_list "(pkt,(char **)&compblk,&complen)" ( identifier , (cast_expression "(char **)&compblk" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&compblk" & identifier)) , (pointer_expression "&complen" & identifier) ))) ;) (if_statement "if (compblk == (uchar *)0x0) {\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }\n    else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }" if (parenthesized_expression "(compblk == (uchar *)0x0)" ( (binary_expression "compblk == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = pkt->type;\n      iVar9 = 0;\n    }" { (expression_statement "uVar3 = pkt->type;" (assignment_expression "uVar3 = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }" else (compound_statement "{\n      iVar9 = 1;\n      uVar3 = pkt->type;\n    }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = pkt->type;" (assignment_expression "uVar3 = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) }))) })) (if_statement "if (((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)) {\n    iVar8 = conf_get_int(ssh->conf,0x7b);\n    if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }\n    lVar6 = pkt->length;\n    iVar8 = iVar9 + 1;\n    blanks[iVar9].offset = 0;\n    blanks[iVar9].len = lVar6;\n    blanks[iVar9].type = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }" if (parenthesized_expression "(((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48))" ( (binary_expression "((uVar3 & 0xffffffdf) == 9) || (uVar3 == 0x48)" (parenthesized_expression "((uVar3 & 0xffffffdf) == 9)" ( (binary_expression "(uVar3 & 0xffffffdf) == 9" (parenthesized_expression "(uVar3 & 0xffffffdf)" ( (binary_expression "uVar3 & 0xffffffdf" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(uVar3 == 0x48)" ( (binary_expression "uVar3 == 0x48" identifier == number_literal) ))) )) (compound_statement "{\n    iVar8 = conf_get_int(ssh->conf,0x7b);\n    if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }\n    lVar6 = pkt->length;\n    iVar8 = iVar9 + 1;\n    blanks[iVar9].offset = 0;\n    blanks[iVar9].len = lVar6;\n    blanks[iVar9].type = 1;\n  }" { (expression_statement "iVar8 = conf_get_int(ssh->conf,0x7b);" (assignment_expression "iVar8 = conf_get_int(ssh->conf,0x7b)" identifier = (call_expression "conf_get_int(ssh->conf,0x7b)" identifier (argument_list "(ssh->conf,0x7b)" ( (field_expression "ssh->conf" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar8 == 0) {\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = pkt->type;\n      goto LAB_0002e621;\n    }" { (expression_statement "uVar3 = pkt->type;" (assignment_expression "uVar3 = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (goto_statement "goto LAB_0002e621;" goto statement_identifier ;) })) (expression_statement "lVar6 = pkt->length;" (assignment_expression "lVar6 = pkt->length" identifier = (field_expression "pkt->length" identifier -> field_identifier)) ;) (expression_statement "iVar8 = iVar9 + 1;" (assignment_expression "iVar8 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "blanks[iVar9].offset = 0;" (assignment_expression "blanks[iVar9].offset = 0" (field_expression "blanks[iVar9].offset" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = number_literal) ;) (expression_statement "blanks[iVar9].len = lVar6;" (assignment_expression "blanks[iVar9].len = lVar6" (field_expression "blanks[iVar9].len" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "blanks[iVar9].type = 1;" (assignment_expression "blanks[iVar9].type = 1" (field_expression "blanks[iVar9].type" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = number_literal) ;) }) (else_clause "else {\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }" else (compound_statement "{\nLAB_0002e621:\n    iVar8 = iVar9;\n    if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }\n    lVar6 = pkt->length;\n  }" { (labeled_statement "LAB_0002e621:\n    iVar8 = iVar9;" statement_identifier : (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" identifier = identifier) ;)) (if_statement "if (uVar3 == 0x22) {\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }" if (parenthesized_expression "(uVar3 == 0x22)" ( (binary_expression "uVar3 == 0x22" identifier == number_literal) )) (compound_statement "{\n      iVar4 = conf_get_int(ssh->conf,0x7b);\n      if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }\n    }" { (expression_statement "iVar4 = conf_get_int(ssh->conf,0x7b);" (assignment_expression "iVar4 = conf_get_int(ssh->conf,0x7b)" identifier = (call_expression "conf_get_int(ssh->conf,0x7b)" identifier (argument_list "(ssh->conf,0x7b)" ( (field_expression "ssh->conf" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        pkt->savedpos = 0;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        lVar6 = pkt->savedpos;\n        blanks[iVar9].type = 1;\n        blanks[iVar9].offset = lVar6;\n        ssh_pkt_getstring(pkt,(char **)&compblk,&complen);\n        if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }\n      }" { (expression_statement "pkt->savedpos = 0;" (assignment_expression "pkt->savedpos = 0" (field_expression "pkt->savedpos" identifier -> field_identifier) = number_literal) ;) (expression_statement "ssh_pkt_getstring(pkt,(char **)&compblk,&complen);" (call_expression "ssh_pkt_getstring(pkt,(char **)&compblk,&complen)" identifier (argument_list "(pkt,(char **)&compblk,&complen)" ( identifier , (cast_expression "(char **)&compblk" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&compblk" & identifier)) , (pointer_expression "&complen" & identifier) ))) ;) (expression_statement "lVar6 = pkt->savedpos;" (assignment_expression "lVar6 = pkt->savedpos" identifier = (field_expression "pkt->savedpos" identifier -> field_identifier)) ;) (expression_statement "blanks[iVar9].type = 1;" (assignment_expression "blanks[iVar9].type = 1" (field_expression "blanks[iVar9].type" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = number_literal) ;) (expression_statement "blanks[iVar9].offset = lVar6;" (assignment_expression "blanks[iVar9].offset = lVar6" (field_expression "blanks[iVar9].offset" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "ssh_pkt_getstring(pkt,(char **)&compblk,&complen);" (call_expression "ssh_pkt_getstring(pkt,(char **)&compblk,&complen)" identifier (argument_list "(pkt,(char **)&compblk,&complen)" ( identifier , (cast_expression "(char **)&compblk" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&compblk" & identifier)) , (pointer_expression "&complen" & identifier) ))) ;) (if_statement "if (compblk != (uchar *)0x0) {\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }" if (parenthesized_expression "(compblk != (uchar *)0x0)" ( (binary_expression "compblk != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar8 = iVar9 + 1;\n          blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;\n        }" { (expression_statement "iVar8 = iVar9 + 1;" (assignment_expression "iVar8 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset;" (assignment_expression "blanks[iVar9].len = pkt->savedpos - blanks[iVar9].offset" (field_expression "blanks[iVar9].len" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier) = (binary_expression "pkt->savedpos - blanks[iVar9].offset" (field_expression "pkt->savedpos" identifier -> field_identifier) - (field_expression "blanks[iVar9].offset" (subscript_expression "blanks[iVar9]" identifier [ identifier ]) . field_identifier))) ;) })) })) })) (expression_statement "lVar6 = pkt->length;" (assignment_expression "lVar6 = pkt->length" identifier = (field_expression "pkt->length" identifier -> field_identifier)) ;) }))) (expression_statement "bVar1 = pkt->data[0xc];" (assignment_expression "bVar1 = pkt->data[0xc]" identifier = (subscript_expression "pkt->data[0xc]" (field_expression "pkt->data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "texttype = ssh1_pkt_type((uint)bVar1);" (assignment_expression "texttype = ssh1_pkt_type((uint)bVar1)" identifier = (call_expression "ssh1_pkt_type((uint)bVar1)" identifier (argument_list "((uint)bVar1)" ( (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (expression_statement "log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0);" (call_expression "log_packet(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0)" identifier (argument_list "(ssh->logctx,1,(uint)bVar1,texttype,pkt->body,lVar6,iVar8,blanks,(ulong *)0x0,0,\n             (char *)0x0)" ( (field_expression "ssh->logctx" identifier -> field_identifier) , number_literal , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , (field_expression "pkt->body" identifier -> field_identifier) , identifier , identifier , identifier , (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "puVar10 = pkt->body + (pkt->length - (int)pkt->data);" (assignment_expression "puVar10 = pkt->body + (pkt->length - (int)pkt->data)" identifier = (binary_expression "pkt->body + (pkt->length - (int)pkt->data)" (field_expression "pkt->body" identifier -> field_identifier) + (parenthesized_expression "(pkt->length - (int)pkt->data)" ( (binary_expression "pkt->length - (int)pkt->data" (field_expression "pkt->length" identifier -> field_identifier) - (cast_expression "(int)pkt->data" ( (type_descriptor "int" primitive_type) ) (field_expression "pkt->data" identifier -> field_identifier))) )))) ;) (expression_statement "pkt->length = (long)puVar10;" (assignment_expression "pkt->length = (long)puVar10" (field_expression "pkt->length" identifier -> field_identifier) = (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (labeled_statement "LAB_0002e672:\n  if (ssh->v1_compressing != 0) {\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }" statement_identifier : (if_statement "if (ssh->v1_compressing != 0) {\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }" if (parenthesized_expression "(ssh->v1_compressing != 0)" ( (binary_expression "ssh->v1_compressing != 0" (field_expression "ssh->v1_compressing" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);\n    if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }\n    memcpy(pkt->data + 0xc,compblk,complen);\n    safefree(compblk);\n    puVar10 = (uchar *)(complen + 0xc);\n    pkt->length = (long)puVar10;\n  }" { (expression_statement "zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen);" (call_expression "zlib_compress_block(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen)" identifier (argument_list "(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(puVar10 + -0xc),&compblk,&complen)" ( (field_expression "ssh->cs_comp_ctx" identifier -> field_identifier) , (binary_expression "pkt->data + 0xc" (field_expression "pkt->data" identifier -> field_identifier) + number_literal) , (cast_expression "(int)(puVar10 + -0xc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar10 + -0xc)" ( (binary_expression "puVar10 + -0xc" identifier + number_literal) ))) , (pointer_expression "&compblk" & identifier) , (pointer_expression "&complen" & identifier) ))) ;) (if_statement "if (pkt->maxlen < complen + 2) {\n      ssh_pkt_ensure(pkt,complen + 2);\n    }" if (parenthesized_expression "(pkt->maxlen < complen + 2)" ( (binary_expression "pkt->maxlen < complen + 2" (field_expression "pkt->maxlen" identifier -> field_identifier) < (binary_expression "complen + 2" identifier + number_literal)) )) (compound_statement "{\n      ssh_pkt_ensure(pkt,complen + 2);\n    }" { (expression_statement "ssh_pkt_ensure(pkt,complen + 2);" (call_expression "ssh_pkt_ensure(pkt,complen + 2)" identifier (argument_list "(pkt,complen + 2)" ( identifier , (binary_expression "complen + 2" identifier + number_literal) ))) ;) })) (expression_statement "memcpy(pkt->data + 0xc,compblk,complen);" (call_expression "memcpy(pkt->data + 0xc,compblk,complen)" identifier (argument_list "(pkt->data + 0xc,compblk,complen)" ( (binary_expression "pkt->data + 0xc" (field_expression "pkt->data" identifier -> field_identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "safefree(compblk);" (call_expression "safefree(compblk)" identifier (argument_list "(compblk)" ( identifier ))) ;) (expression_statement "puVar10 = (uchar *)(complen + 0xc);" (assignment_expression "puVar10 = (uchar *)(complen + 0xc)" identifier = (cast_expression "(uchar *)(complen + 0xc)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(complen + 0xc)" ( (binary_expression "complen + 0xc" identifier + number_literal) )))) ;) (expression_statement "pkt->length = (long)puVar10;" (assignment_expression "pkt->length = (long)puVar10" (field_expression "pkt->length" identifier -> field_identifier) = (cast_expression "(long)puVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }))) (expression_statement "puVar7 = puVar10 + 4;" (assignment_expression "puVar7 = puVar10 + 4" identifier = (binary_expression "puVar10 + 4" identifier + number_literal)) ;) (if_statement "if (pkt->maxlen < (int)puVar7) {\n    ssh_pkt_ensure(pkt,(int)puVar7);\n    puVar10 = (uchar *)pkt->length;\n    puVar7 = puVar10 + 4;\n  }" if (parenthesized_expression "(pkt->maxlen < (int)puVar7)" ( (binary_expression "pkt->maxlen < (int)puVar7" (field_expression "pkt->maxlen" identifier -> field_identifier) < (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    ssh_pkt_ensure(pkt,(int)puVar7);\n    puVar10 = (uchar *)pkt->length;\n    puVar7 = puVar10 + 4;\n  }" { (expression_statement "ssh_pkt_ensure(pkt,(int)puVar7);" (call_expression "ssh_pkt_ensure(pkt,(int)puVar7)" identifier (argument_list "(pkt,(int)puVar7)" ( identifier , (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "puVar10 = (uchar *)pkt->length;" (assignment_expression "puVar10 = (uchar *)pkt->length" identifier = (cast_expression "(uchar *)pkt->length" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pkt->length" identifier -> field_identifier))) ;) (expression_statement "puVar7 = puVar10 + 4;" (assignment_expression "puVar7 = puVar10 + 4" identifier = (binary_expression "puVar10 + 4" identifier + number_literal)) ;) })) (expression_statement "puVar10 = puVar10 + -8;" (assignment_expression "puVar10 = puVar10 + -8" identifier = (binary_expression "puVar10 + -8" identifier + number_literal)) ;) (expression_statement "pkt->length = (long)puVar7;" (assignment_expression "pkt->length = (long)puVar7" (field_expression "pkt->length" identifier -> field_identifier) = (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "iVar8 = (int)puVar10 % 8;" (assignment_expression "iVar8 = (int)puVar10 % 8" identifier = (binary_expression "(int)puVar10 % 8" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) % number_literal)) ;) (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) (do_statement "do {\n    iVar4 = random_byte();\n    pkt->data[iVar9] = (uchar)iVar4;\n    iVar9 = iVar9 + 1;\n  } while (iVar9 != 0xc);" do (compound_statement "{\n    iVar4 = random_byte();\n    pkt->data[iVar9] = (uchar)iVar4;\n    iVar9 = iVar9 + 1;\n  }" { (expression_statement "iVar4 = random_byte();" (assignment_expression "iVar4 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) (expression_statement "pkt->data[iVar9] = (uchar)iVar4;" (assignment_expression "pkt->data[iVar9] = (uchar)iVar4" (subscript_expression "pkt->data[iVar9]" (field_expression "pkt->data" identifier -> field_identifier) [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != 0xc)" ( (binary_expression "iVar9 != 0xc" identifier != number_literal) )) ;) (expression_statement "uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)));" (assignment_expression "uVar5 = crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)))" identifier = (call_expression "crc32_compute(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)))" identifier (argument_list "(pkt->data + iVar8 + 4,(size_t)(puVar10 + (4 - iVar8)))" ( (binary_expression "pkt->data + iVar8 + 4" (binary_expression "pkt->data + iVar8" (field_expression "pkt->data" identifier -> field_identifier) + identifier) + number_literal) , (cast_expression "(size_t)(puVar10 + (4 - iVar8))" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(puVar10 + (4 - iVar8))" ( (binary_expression "puVar10 + (4 - iVar8)" identifier + (parenthesized_expression "(4 - iVar8)" ( (binary_expression "4 - iVar8" number_literal - identifier) ))) ))) )))) ;) (expression_statement "puVar7 = puVar10 + (8 - iVar8) + iVar8;" (assignment_expression "puVar7 = puVar10 + (8 - iVar8) + iVar8" identifier = (binary_expression "puVar10 + (8 - iVar8) + iVar8" (binary_expression "puVar10 + (8 - iVar8)" identifier + (parenthesized_expression "(8 - iVar8)" ( (binary_expression "8 - iVar8" number_literal - identifier) ))) + identifier)) ;) (expression_statement "pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18);" (assignment_expression "pkt->data[(int)puVar7] = (uchar)(uVar5 >> 0x18)" (subscript_expression "pkt->data[(int)puVar7]" (field_expression "pkt->data" identifier -> field_identifier) [ (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (call_expression "(uchar)(uVar5 >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(uVar5 >> 0x18)" ( (binary_expression "uVar5 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10);" (assignment_expression "pkt->data[(int)(puVar7 + 1)] = (uchar)(uVar5 >> 0x10)" (subscript_expression "pkt->data[(int)(puVar7 + 1)]" (field_expression "pkt->data" identifier -> field_identifier) [ (cast_expression "(int)(puVar7 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar7 + 1)" ( (binary_expression "puVar7 + 1" identifier + number_literal) ))) ]) = (call_expression "(uchar)(uVar5 >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(uVar5 >> 0x10)" ( (binary_expression "uVar5 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8);" (assignment_expression "pkt->data[(int)(puVar7 + 2)] = (uchar)(uVar5 >> 8)" (subscript_expression "pkt->data[(int)(puVar7 + 2)]" (field_expression "pkt->data" identifier -> field_identifier) [ (cast_expression "(int)(puVar7 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar7 + 2)" ( (binary_expression "puVar7 + 2" identifier + number_literal) ))) ]) = (call_expression "(uchar)(uVar5 >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(uVar5 >> 8)" ( (binary_expression "uVar5 >> 8" identifier >> number_literal) )))) ;) (expression_statement "pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5;" (assignment_expression "pkt->data[(int)(puVar7 + 3)] = (uchar)uVar5" (subscript_expression "pkt->data[(int)(puVar7 + 3)]" (field_expression "pkt->data" identifier -> field_identifier) [ (cast_expression "(int)(puVar7 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar7 + 3)" ( (binary_expression "puVar7 + 3" identifier + number_literal) ))) ]) = (cast_expression "(uchar)uVar5" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18);" (assignment_expression "pkt->data[iVar8] = (uchar)((uint)puVar10 >> 0x18)" (subscript_expression "pkt->data[iVar8]" (field_expression "pkt->data" identifier -> field_identifier) [ identifier ]) = (call_expression "(uchar)((uint)puVar10 >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)puVar10 >> 0x18)" ( (binary_expression "(uint)puVar10 >> 0x18" (cast_expression "(uint)puVar10" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10);" (assignment_expression "pkt->data[iVar8 + 1] = (uchar)((uint)puVar10 >> 0x10)" (subscript_expression "pkt->data[iVar8 + 1]" (field_expression "pkt->data" identifier -> field_identifier) [ (binary_expression "iVar8 + 1" identifier + number_literal) ]) = (call_expression "(uchar)((uint)puVar10 >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)puVar10 >> 0x10)" ( (binary_expression "(uint)puVar10 >> 0x10" (cast_expression "(uint)puVar10" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8);" (assignment_expression "pkt->data[iVar8 + 2] = (uchar)((uint)puVar10 >> 8)" (subscript_expression "pkt->data[iVar8 + 2]" (field_expression "pkt->data" identifier -> field_identifier) [ (binary_expression "iVar8 + 2" identifier + number_literal) ]) = (call_expression "(uchar)((uint)puVar10 >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)puVar10 >> 8)" ( (binary_expression "(uint)puVar10 >> 8" (cast_expression "(uint)puVar10" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pkt->data[iVar8 + 3] = (uchar)puVar10;" (assignment_expression "pkt->data[iVar8 + 3] = (uchar)puVar10" (subscript_expression "pkt->data[iVar8 + 3]" (field_expression "pkt->data" identifier -> field_identifier) [ (binary_expression "iVar8 + 3" identifier + number_literal) ]) = (cast_expression "(uchar)puVar10" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (if_statement "if (ssh->cipher != (ssh_cipher *)0x0) {\n    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));\n  }" if (parenthesized_expression "(ssh->cipher != (ssh_cipher *)0x0)" ( (binary_expression "ssh->cipher != (ssh_cipher *)0x0" (field_expression "ssh->cipher" identifier -> field_identifier) != (cast_expression "(ssh_cipher *)0x0" ( (type_descriptor "ssh_cipher *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));\n  }" { (expression_statement "(*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)));" (call_expression "(*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)))" (parenthesized_expression "(*ssh->cipher->encrypt)" ( (pointer_expression "*ssh->cipher->encrypt" * (field_expression "ssh->cipher->encrypt" (field_expression "ssh->cipher" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(ssh->v1_cipher_ctx,pkt->data + iVar8 + 4,(int)(puVar10 + (8 - iVar8)))" ( (field_expression "ssh->v1_cipher_ctx" identifier -> field_identifier) , (binary_expression "pkt->data + iVar8 + 4" (binary_expression "pkt->data + iVar8" (field_expression "pkt->data" identifier -> field_identifier) + identifier) + number_literal) , (cast_expression "(int)(puVar10 + (8 - iVar8))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar10 + (8 - iVar8))" ( (binary_expression "puVar10 + (8 - iVar8)" identifier + (parenthesized_expression "(8 - iVar8)" ( (binary_expression "8 - iVar8" number_literal - identifier) ))) ))) ))) ;) })) (expression_statement "*offset_p = iVar8;" (assignment_expression "*offset_p = iVar8" (pointer_expression "*offset_p" * identifier) = identifier) ;) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)(puVar10 + (0xc - iVar8));\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return (int)(puVar10 + (0xc - iVar8));\n  }" { (return_statement "return (int)(puVar10 + (0xc - iVar8));" return (cast_expression "(int)(puVar10 + (0xc - iVar8))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar10 + (0xc - iVar8))" ( (binary_expression "puVar10 + (0xc - iVar8)" identifier + (parenthesized_expression "(0xc - iVar8)" ( (binary_expression "0xc - iVar8" number_literal - identifier) ))) ))) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)\n\n{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "int __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)\n\n{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002e5a0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "void *local_58;" primitive_type (pointer_declarator "*local_58" * identifier) ;) (declaration "size_t local_54;" primitive_type identifier ;) (declaration "int local_50 [12];" primitive_type (array_declarator "local_50 [12]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2e5ab;" (assignment_expression "uStack_14 = 0x2e5ab" identifier = number_literal) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (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) )))) == number_literal) )) (goto_statement "goto LAB_0002e672;" goto statement_identifier ;)) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = iVar6 - (param_2[5] - param_2[4]);" (assignment_expression "*param_2 = iVar6 - (param_2[5] - param_2[4])" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar6 - (param_2[5] - param_2[4])" identifier - (parenthesized_expression "(param_2[5] - param_2[4])" ( (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" identifier [ number_literal ]) - (subscript_expression "param_2[4]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x24c)" identifier = (pointer_expression "*(int *)(param_1 + 0x24c)" * (cast_expression "(int *)(param_1 + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) ))))) ;) (if_statement "if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" if (parenthesized_expression "((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))))" ( (binary_expression "(iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" ( (parenthesized_expression "(uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))" ( (binary_expression "uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)" (binary_expression "uVar2 == 0x10" identifier == number_literal) || (parenthesized_expression "(iVar6 = 0, uVar2 == 0x17)" ( (comma_expression "iVar6 = 0, uVar2 == 0x17" (assignment_expression "iVar6 = 0" identifier = number_literal) , (binary_expression "uVar2 == 0x17" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" { (expression_statement "local_50[0] = 4;" (assignment_expression "local_50[0] = 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" if (parenthesized_expression "(uVar2 == 0x17)" ( (binary_expression "uVar2 == 0x17" identifier == number_literal) )) (compound_statement "{\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" identifier [ number_literal ]) + number_literal)) ;) })) (expression_statement "local_50[2] = 2;" (assignment_expression "local_50[2] = 2" (subscript_expression "local_50[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" if (parenthesized_expression "(local_58 == (void *)0x0)" ( (binary_expression "local_58 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" else (compound_statement "{\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) })) (if_statement "if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" if (parenthesized_expression "(((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48))" ( (binary_expression "((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)" (parenthesized_expression "((uVar2 & 0xffffffdf) == 9)" ( (binary_expression "(uVar2 & 0xffffffdf) == 9" (parenthesized_expression "(uVar2 & 0xffffffdf)" ( (binary_expression "uVar2 & 0xffffffdf" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(uVar2 == 0x48)" ( (binary_expression "uVar2 == 0x48" identifier == number_literal) ))) )) (compound_statement "{\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }" { (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier = (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" { (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0002e621;" goto statement_identifier ;) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_50[iVar6 * 3] = 0;" (assignment_expression "local_50[iVar6 * 3] = 0" (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]) = number_literal) ;) (expression_statement "local_50[iVar6 * 3 + 1] = iVar7;" (assignment_expression "local_50[iVar6 * 3 + 1] = iVar7" (subscript_expression "local_50[iVar6 * 3 + 1]" identifier [ (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" identifier [ (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = number_literal) ;) }) (else_clause "else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" else (compound_statement "{\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" { (labeled_statement "LAB_0002e621:\n    iVar4 = iVar6;" statement_identifier : (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;)) (if_statement "if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" if (parenthesized_expression "(uVar2 == 0x22)" ( (binary_expression "uVar2 == 0x22" identifier == number_literal) )) (compound_statement "{\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" { (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier = (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" { (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" identifier = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" identifier [ (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "local_50[iVar6 * 3] = iVar7;" (assignment_expression "local_50[iVar6 * 3] = iVar7" (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]) = identifier) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" if (parenthesized_expression "(local_58 != (void *)0x0)" ( (binary_expression "local_58 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" { (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];" (assignment_expression "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3]" (subscript_expression "local_50[iVar6 * 3 + 1]" identifier [ (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[6] - local_50[iVar6 * 3]" (subscript_expression "param_2[6]" identifier [ number_literal ]) - (subscript_expression "local_50[iVar6 * 3]" identifier [ (binary_expression "iVar6 * 3" identifier * number_literal) ]))) ;) })) })) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "uVar1 = *(undefined1 *)(param_2[4] + 0xc);" (assignment_expression "uVar1 = *(undefined1 *)(param_2[4] + 0xc)" identifier = (pointer_expression "*(undefined1 *)(param_2[4] + 0xc)" * (cast_expression "(undefined1 *)(param_2[4] + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 0xc)" ( (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_0002d720();" (assignment_expression "uVar3 = FUN_0002d720()" identifier = (call_expression "FUN_0002d720()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal , identifier , identifier , (subscript_expression "param_2[5]" identifier [ number_literal ]) , identifier , identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "iVar6 = (param_2[5] - param_2[4]) + *param_2;" (assignment_expression "iVar6 = (param_2[5] - param_2[4]) + *param_2" identifier = (binary_expression "(param_2[5] - param_2[4]) + *param_2" (parenthesized_expression "(param_2[5] - param_2[4])" ( (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" identifier [ number_literal ]) - (subscript_expression "param_2[4]" identifier [ number_literal ])) )) + (pointer_expression "*param_2" * identifier))) ;) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (labeled_statement "LAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3c) != 0" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" { (expression_statement "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);" (call_expression "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) , (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) , (binary_expression "iVar6 + -0xc" identifier + number_literal) , (pointer_expression "&local_58" & identifier) , (pointer_expression "&local_54" & identifier) ))) ;) (if_statement "if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }" if (parenthesized_expression "(param_2[7] < (int)(local_54 + 2))" ( (binary_expression "param_2[7] < (int)(local_54 + 2)" (subscript_expression "param_2[7]" identifier [ number_literal ]) < (cast_expression "(int)(local_54 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_54 + 2)" ( (binary_expression "local_54 + 2" identifier + number_literal) )))) )) (compound_statement "{\n      FUN_0002e2c0();\n    }" { (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)(param_2[4] + 0xc),local_58,local_54);" (call_expression "memcpy((void *)(param_2[4] + 0xc),local_58,local_54)" identifier (argument_list "((void *)(param_2[4] + 0xc),local_58,local_54)" ( (cast_expression "(void *)(param_2[4] + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 0xc)" ( (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "FUN_0001b240(local_58);" (call_expression "FUN_0001b240(local_58)" identifier (argument_list "(local_58)" ( identifier ))) ;) (expression_statement "iVar6 = local_54 + 0xc;" (assignment_expression "iVar6 = local_54 + 0xc" identifier = (binary_expression "local_54 + 0xc" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) (if_statement "if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" if (parenthesized_expression "(param_2[7] < iVar7)" ( (binary_expression "param_2[7] < iVar7" (subscript_expression "param_2[7]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" { (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar6 + -8;" (assignment_expression "iVar6 = iVar6 + -8" identifier = (binary_expression "iVar6 + -8" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar7;" (assignment_expression "*param_2 = iVar7" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar5 = iVar6 % 8;" (assignment_expression "iVar5 = iVar6 % 8" identifier = (binary_expression "iVar6 % 8" identifier % number_literal)) ;) (expression_statement "iVar4 = iVar6 - iVar5;" (assignment_expression "iVar4 = iVar6 - iVar5" identifier = (binary_expression "iVar6 - iVar5" identifier - identifier)) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) (do_statement "do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);" do (compound_statement "{\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "uVar1 = FUN_00057df0();" (assignment_expression "uVar1 = FUN_00057df0()" identifier = (call_expression "FUN_00057df0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(param_2[4] + iVar7) = uVar1;" (assignment_expression "*(undefined1 *)(param_2[4] + iVar7) = uVar1" (pointer_expression "*(undefined1 *)(param_2[4] + iVar7)" * (cast_expression "(undefined1 *)(param_2[4] + iVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar7)" ( (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = identifier) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0xc)" ( (binary_expression "iVar7 != 0xc" identifier != number_literal) )) ;) (expression_statement "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);" (assignment_expression "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" identifier = (call_expression "FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" identifier (argument_list "(iVar5 + 4 + param_2[4],iVar4 + 4)" ( (binary_expression "iVar5 + 4 + param_2[4]" (binary_expression "iVar5 + 4" identifier + number_literal) + (subscript_expression "param_2[4]" identifier [ number_literal ])) , (binary_expression "iVar4 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar7 = iVar4 + 8 + iVar5;" (assignment_expression "iVar7 = iVar4 + 8 + iVar5" identifier = (binary_expression "iVar4 + 8 + iVar5" (binary_expression "iVar4 + 8" identifier + number_literal) + identifier)) ;) (expression_statement "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar7)" * (cast_expression "(char *)(param_2[4] + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar7)" ( (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x18)" ( (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar7)" * (cast_expression "(char *)(param_2[4] + 1 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 1 + iVar7)" ( (binary_expression "param_2[4] + 1 + iVar7" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 0x10)" ( (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar7)" * (cast_expression "(char *)(param_2[4] + 2 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 2 + iVar7)" ( (binary_expression "param_2[4] + 2 + iVar7" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)uVar3 >> 8)" ( (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3" (pointer_expression "*(char *)(param_2[4] + 3 + iVar7)" * (cast_expression "(char *)(param_2[4] + 3 + iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 3 + iVar7)" ( (binary_expression "param_2[4] + 3 + iVar7" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar5)" * (cast_expression "(char *)(param_2[4] + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + iVar5)" ( (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 0x18)" ( (binary_expression "(uint)iVar6 >> 0x18" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar5)" * (cast_expression "(char *)(param_2[4] + 1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 1 + iVar5)" ( (binary_expression "param_2[4] + 1 + iVar5" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 0x10)" ( (binary_expression "(uint)iVar6 >> 0x10" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar5)" * (cast_expression "(char *)(param_2[4] + 2 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 2 + iVar5)" ( (binary_expression "param_2[4] + 2 + iVar5" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)((uint)iVar6 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 8)" ( (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6" (pointer_expression "*(char *)(param_2[4] + 3 + iVar5)" * (cast_expression "(char *)(param_2[4] + 3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + 3 + iVar5)" ( (binary_expression "param_2[4] + 3 + iVar5" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" { (expression_statement "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 0x54) + 0xc)" * (pointer_expression "*(code **)(*(int *)(param_1 + 0x54) + 0xc)" * (cast_expression "(code **)(*(int *)(param_1 + 0x54) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0xc" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , (binary_expression "param_2[4] + iVar5 + 4" (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) + number_literal) , (binary_expression "iVar4 + 8" identifier + number_literal) ))) ;) })) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4 + 0xc;\n  }" { (return_statement "return iVar4 + 0xc;" return (binary_expression "iVar4 + 0xc" identifier + number_literal) ;) })) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT == LIT)) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]))) ;) })) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + LIT) , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return (binary_expression IDENT + LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3 FUN_0002e5a0(int param_1,int *param_2,int *param_3)\n\n{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002e5a0(int param_1,int *param_2,int *param_3)" (identifier "FUN_0002e5a0") (parameter_list "(int param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  void *local_58;\n  size_t local_54;\n  int local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2e5ab;\n  iVar6 = *param_2;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;\n  param_2[6] = 0;\n  uVar2 = param_2[2];\n  *param_2 = iVar6 - (param_2[5] - param_2[4]);\n  iVar6 = *(int *)(param_1 + 0x24c);\n  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }\n  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }\n  uVar1 = *(undefined1 *)(param_2[4] + 0xc);\n  uVar3 = FUN_0002d720();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);\n  iVar6 = (param_2[5] - param_2[4]) + *param_2;\n  *param_2 = iVar6;\nLAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }\n  iVar7 = iVar6 + 4;\n  if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }\n  iVar6 = iVar6 + -8;\n  *param_2 = iVar7;\n  iVar5 = iVar6 % 8;\n  iVar4 = iVar6 - iVar5;\n  iVar7 = iVar5;\n  do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);\n  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);\n  iVar7 = iVar4 + 8 + iVar5;\n  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);\n  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;\n  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);\n  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);\n  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);\n  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }\n  *param_3 = iVar5;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "void *local_58;" (primitive_type "void") (pointer_declarator "*local_58" (* "*") (identifier "local_58")) (; ";")) (declaration "size_t local_54;" (primitive_type "size_t") (identifier "local_54") (; ";")) (declaration "int local_50 [12];" (primitive_type "int") (array_declarator "local_50 [12]" (identifier "local_50") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2e5ab;" (assignment_expression "uStack_14 = 0x2e5ab" (identifier "uStack_14") (= "=") (number_literal "0x2e5ab")) (; ";")) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" (identifier "iVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) == 0" (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")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002e672;" (goto "goto") (statement_identifier "LAB_0002e672") (; ";"))) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_2 = iVar6 - (param_2[5] - param_2[4]);" (assignment_expression "*param_2 = iVar6 - (param_2[5] - param_2[4])" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar6 - (param_2[5] - param_2[4])" (identifier "iVar6") (- "-") (parenthesized_expression "(param_2[5] - param_2[4])" (( "(") (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (- "-") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) () ")")))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x24c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x24c)" (* "*") (cast_expression "(int *)(param_1 + 0x24c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24c)" (( "(") (binary_expression "param_1 + 0x24c" (identifier "param_1") (+ "+") (number_literal "0x24c")) () ")"))))) (; ";")) (if_statement "if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" (if "if") (parenthesized_expression "((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))))" (( "(") (binary_expression "(iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))" (( "(") (parenthesized_expression "(uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17))" (( "(") (binary_expression "uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)" (binary_expression "uVar2 == 0x10" (identifier "uVar2") (== "==") (number_literal "0x10")) (|| "||") (parenthesized_expression "(iVar6 = 0, uVar2 == 0x17)" (( "(") (comma_expression "iVar6 = 0, uVar2 == 0x17" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (, ",") (binary_expression "uVar2 == 0x17" (identifier "uVar2") (== "==") (number_literal "0x17"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    local_50[0] = 4;\n    if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }\n    local_50[2] = 2;\n    FUN_0002bab0();\n    if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }\n  }" ({ "{") (expression_statement "local_50[0] = 4;" (assignment_expression "local_50[0] = 4" (subscript_expression "local_50[0]" (identifier "local_50") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "4")) (; ";")) (if_statement "if (uVar2 == 0x17) {\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0x17)" (( "(") (binary_expression "uVar2 == 0x17" (identifier "uVar2") (== "==") (number_literal "0x17")) () ")")) (compound_statement "{\n      FUN_0002b1c0();\n      local_50[0] = param_2[6] + 4;\n    }" ({ "{") (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" (identifier "FUN_0002b1c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" (identifier "local_50") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (expression_statement "local_50[2] = 2;" (assignment_expression "local_50[2] = 2" (subscript_expression "local_50[2]" (identifier "local_50") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" (identifier "FUN_0002bab0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_58 == (void *)0x0) {\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" (if "if") (parenthesized_expression "(local_58 == (void *)0x0)" (( "(") (binary_expression "local_58 == (void *)0x0" (identifier "local_58") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar2 = param_2[2];\n      iVar6 = 0;\n    }" ({ "{") (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" (else "else") (compound_statement "{\n      iVar6 = 1;\n      uVar2 = param_2[2];\n    }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }\n  else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" (if "if") (parenthesized_expression "(((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48))" (( "(") (binary_expression "((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)" (parenthesized_expression "((uVar2 & 0xffffffdf) == 9)" (( "(") (binary_expression "(uVar2 & 0xffffffdf) == 9" (parenthesized_expression "(uVar2 & 0xffffffdf)" (( "(") (binary_expression "uVar2 & 0xffffffdf" (identifier "uVar2") (& "&") (number_literal "0xffffffdf")) () ")")) (== "==") (number_literal "9")) () ")")) (|| "||") (parenthesized_expression "(uVar2 == 0x48)" (( "(") (binary_expression "uVar2 == 0x48" (identifier "uVar2") (== "==") (number_literal "0x48")) () ")"))) () ")")) (compound_statement "{\n    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n    if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }\n    iVar7 = *param_2;\n    iVar4 = iVar6 + 1;\n    local_50[iVar6 * 3] = 0;\n    local_50[iVar6 * 3 + 1] = iVar7;\n    local_50[iVar6 * 3 + 2] = 1;\n  }" ({ "{") (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" (identifier "iVar7") (= "=") (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" (identifier "FUN_00017370") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x7b") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = param_2[2];\n      goto LAB_0002e621;\n    }" ({ "{") (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (goto_statement "goto LAB_0002e621;" (goto "goto") (statement_identifier "LAB_0002e621") (; ";")) (} "}"))) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" (identifier "iVar7") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_50[iVar6 * 3] = 0;" (assignment_expression "local_50[iVar6 * 3] = 0" (subscript_expression "local_50[iVar6 * 3]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50[iVar6 * 3 + 1] = iVar7;" (assignment_expression "local_50[iVar6 * 3 + 1] = iVar7" (subscript_expression "local_50[iVar6 * 3 + 1]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (+ "+") (number_literal "1")) (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (+ "+") (number_literal "2")) (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" (else "else") (compound_statement "{\nLAB_0002e621:\n    iVar4 = iVar6;\n    if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }\n    iVar7 = *param_2;\n  }" ({ "{") (labeled_statement "LAB_0002e621:\n    iVar4 = iVar6;" (statement_identifier "LAB_0002e621") (: ":") (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" (identifier "iVar4") (= "=") (identifier "iVar6")) (; ";"))) (if_statement "if (uVar2 == 0x22) {\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" (if "if") (parenthesized_expression "(uVar2 == 0x22)" (( "(") (binary_expression "uVar2 == 0x22" (identifier "uVar2") (== "==") (number_literal "0x22")) () ")")) (compound_statement "{\n      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);\n      if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }\n    }" ({ "{") (expression_statement "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);" (assignment_expression "iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" (identifier "iVar7") (= "=") (call_expression "FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b)" (identifier "FUN_00017370") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x7b)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x7b") () ")")))) (; ";")) (if_statement "if (iVar7 != 0) {\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        param_2[6] = 0;\n        FUN_0002bab0();\n        iVar7 = param_2[6];\n        local_50[iVar6 * 3 + 2] = 1;\n        local_50[iVar6 * 3] = iVar7;\n        FUN_0002bab0();\n        if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }\n      }" ({ "{") (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" (identifier "FUN_0002bab0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" (identifier "iVar7") (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "local_50[iVar6 * 3 + 2] = 1;" (assignment_expression "local_50[iVar6 * 3 + 2] = 1" (subscript_expression "local_50[iVar6 * 3 + 2]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3 + 2" (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (+ "+") (number_literal "2")) (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_50[iVar6 * 3] = iVar7;" (assignment_expression "local_50[iVar6 * 3] = iVar7" (subscript_expression "local_50[iVar6 * 3]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" (identifier "FUN_0002bab0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_58 != (void *)0x0) {\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" (if "if") (parenthesized_expression "(local_58 != (void *)0x0)" (( "(") (binary_expression "local_58 != (void *)0x0" (identifier "local_58") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar4 = iVar6 + 1;\n          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];\n        }" ({ "{") (expression_statement "iVar4 = iVar6 + 1;" (assignment_expression "iVar4 = iVar6 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];" (assignment_expression "local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3]" (subscript_expression "local_50[iVar6 * 3 + 1]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3 + 1" (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (+ "+") (number_literal "1")) (] "]")) (= "=") (binary_expression "param_2[6] - local_50[iVar6 * 3]" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (- "-") (subscript_expression "local_50[iVar6 * 3]" (identifier "local_50") ([ "[") (binary_expression "iVar6 * 3" (identifier "iVar6") (* "*") (number_literal "3")) (] "]")))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" (identifier "iVar7") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")))) (expression_statement "uVar1 = *(undefined1 *)(param_2[4] + 0xc);" (assignment_expression "uVar1 = *(undefined1 *)(param_2[4] + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)(param_2[4] + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2[4] + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 0xc)" (( "(") (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar3 = FUN_0002d720();" (assignment_expression "uVar3 = FUN_0002d720()" (identifier "uVar3") (= "=") (call_expression "FUN_0002d720()" (identifier "FUN_0002d720") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" (identifier "FUN_00019860") (argument_list "(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "uVar1") (, ",") (identifier "uVar3") (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (identifier "iVar7") (, ",") (identifier "iVar4") (, ",") (identifier "local_50") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar6 = (param_2[5] - param_2[4]) + *param_2;" (assignment_expression "iVar6 = (param_2[5] - param_2[4]) + *param_2" (identifier "iVar6") (= "=") (binary_expression "(param_2[5] - param_2[4]) + *param_2" (parenthesized_expression "(param_2[5] - param_2[4])" (( "(") (binary_expression "param_2[5] - param_2[4]" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (- "-") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) () ")")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar6")) (; ";")) (labeled_statement "LAB_0002e672:\n  if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" (statement_identifier "LAB_0002e672") (: ":") (if_statement "if (*(int *)(param_1 + 0x3c) != 0) {\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) != 0" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);\n    if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }\n    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);\n    FUN_0001b240(local_58);\n    iVar6 = local_54 + 0xc;\n    *param_2 = iVar6;\n  }" ({ "{") (expression_statement "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);" (call_expression "FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" (identifier "FUN_000627b0") (argument_list "(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x90)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90)" (( "(") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) () ")")))) (, ",") (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0xc")) (, ",") (binary_expression "iVar6 + -0xc" (identifier "iVar6") (+ "+") (number_literal "-0xc")) (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) (, ",") (pointer_expression "&local_54" (& "&") (identifier "local_54")) () ")"))) (; ";")) (if_statement "if (param_2[7] < (int)(local_54 + 2)) {\n      FUN_0002e2c0();\n    }" (if "if") (parenthesized_expression "(param_2[7] < (int)(local_54 + 2))" (( "(") (binary_expression "param_2[7] < (int)(local_54 + 2)" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (< "<") (cast_expression "(int)(local_54 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(local_54 + 2)" (( "(") (binary_expression "local_54 + 2" (identifier "local_54") (+ "+") (number_literal "2")) () ")")))) () ")")) (compound_statement "{\n      FUN_0002e2c0();\n    }" ({ "{") (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" (identifier "FUN_0002e2c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "memcpy((void *)(param_2[4] + 0xc),local_58,local_54);" (call_expression "memcpy((void *)(param_2[4] + 0xc),local_58,local_54)" (identifier "memcpy") (argument_list "((void *)(param_2[4] + 0xc),local_58,local_54)" (( "(") (cast_expression "(void *)(param_2[4] + 0xc)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 0xc)" (( "(") (binary_expression "param_2[4] + 0xc" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0xc")) () ")"))) (, ",") (identifier "local_58") (, ",") (identifier "local_54") () ")"))) (; ";")) (expression_statement "FUN_0001b240(local_58);" (call_expression "FUN_0001b240(local_58)" (identifier "FUN_0001b240") (argument_list "(local_58)" (( "(") (identifier "local_58") () ")"))) (; ";")) (expression_statement "iVar6 = local_54 + 0xc;" (assignment_expression "iVar6 = local_54 + 0xc" (identifier "iVar6") (= "=") (binary_expression "local_54 + 0xc" (identifier "local_54") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "*param_2 = iVar6;" (assignment_expression "*param_2 = iVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar6")) (; ";")) (} "}")))) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (param_2[7] < iVar7) {\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" (if "if") (parenthesized_expression "(param_2[7] < iVar7)" (( "(") (binary_expression "param_2[7] < iVar7" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n    FUN_0002e2c0();\n    iVar6 = *param_2;\n    iVar7 = iVar6 + 4;\n  }" ({ "{") (expression_statement "FUN_0002e2c0();" (call_expression "FUN_0002e2c0()" (identifier "FUN_0002e2c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" (identifier "iVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar7 = iVar6 + 4;" (assignment_expression "iVar7 = iVar6 + 4" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + -8;" (assignment_expression "iVar6 = iVar6 + -8" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -8" (identifier "iVar6") (+ "+") (number_literal "-8"))) (; ";")) (expression_statement "*param_2 = iVar7;" (assignment_expression "*param_2 = iVar7" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar5 = iVar6 % 8;" (assignment_expression "iVar5 = iVar6 % 8" (identifier "iVar5") (= "=") (binary_expression "iVar6 % 8" (identifier "iVar6") (% "%") (number_literal "8"))) (; ";")) (expression_statement "iVar4 = iVar6 - iVar5;" (assignment_expression "iVar4 = iVar6 - iVar5" (identifier "iVar4") (= "=") (binary_expression "iVar6 - iVar5" (identifier "iVar6") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" (identifier "iVar7") (= "=") (identifier "iVar5")) (; ";")) (do_statement "do {\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 0xc);" (do "do") (compound_statement "{\n    uVar1 = FUN_00057df0();\n    *(undefined1 *)(param_2[4] + iVar7) = uVar1;\n    iVar7 = iVar7 + 1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00057df0();" (assignment_expression "uVar1 = FUN_00057df0()" (identifier "uVar1") (= "=") (call_expression "FUN_00057df0()" (identifier "FUN_00057df0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_2[4] + iVar7) = uVar1;" (assignment_expression "*(undefined1 *)(param_2[4] + iVar7) = uVar1" (pointer_expression "*(undefined1 *)(param_2[4] + iVar7)" (* "*") (cast_expression "(undefined1 *)(param_2[4] + iVar7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + iVar7)" (( "(") (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0xc)" (( "(") (binary_expression "iVar7 != 0xc" (identifier "iVar7") (!= "!=") (number_literal "0xc")) () ")")) (; ";")) (expression_statement "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);" (assignment_expression "uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" (identifier "uVar3") (= "=") (call_expression "FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4)" (identifier "FUN_00049530") (argument_list "(iVar5 + 4 + param_2[4],iVar4 + 4)" (( "(") (binary_expression "iVar5 + 4 + param_2[4]" (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) (+ "+") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (, ",") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar7 = iVar4 + 8 + iVar5;" (assignment_expression "iVar7 = iVar4 + 8 + iVar5" (identifier "iVar7") (= "=") (binary_expression "iVar4 + 8 + iVar5" (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar7)" (* "*") (cast_expression "(char *)(param_2[4] + iVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + iVar7)" (( "(") (binary_expression "param_2[4] + iVar7" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (cast_expression "(char)((uint)uVar3 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 0x18)" (( "(") (binary_expression "(uint)uVar3 >> 0x18" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar7)" (* "*") (cast_expression "(char *)(param_2[4] + 1 + iVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 1 + iVar7)" (( "(") (binary_expression "param_2[4] + 1 + iVar7" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (cast_expression "(char)((uint)uVar3 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 0x10)" (( "(") (binary_expression "(uint)uVar3 >> 0x10" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar7)" (* "*") (cast_expression "(char *)(param_2[4] + 2 + iVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 2 + iVar7)" (( "(") (binary_expression "param_2[4] + 2 + iVar7" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "2")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (cast_expression "(char)((uint)uVar3 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)uVar3 >> 8)" (( "(") (binary_expression "(uint)uVar3 >> 8" (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar7) = (char)uVar3" (pointer_expression "*(char *)(param_2[4] + 3 + iVar7)" (* "*") (cast_expression "(char *)(param_2[4] + 3 + iVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 3 + iVar7)" (( "(") (binary_expression "param_2[4] + 3 + iVar7" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "3")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);" (assignment_expression "*(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18)" (pointer_expression "*(char *)(param_2[4] + iVar5)" (* "*") (cast_expression "(char *)(param_2[4] + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + iVar5)" (( "(") (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar6 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar6 >> 0x18)" (( "(") (binary_expression "(uint)iVar6 >> 0x18" (cast_expression "(uint)iVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar6")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);" (assignment_expression "*(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10)" (pointer_expression "*(char *)(param_2[4] + 1 + iVar5)" (* "*") (cast_expression "(char *)(param_2[4] + 1 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 1 + iVar5)" (( "(") (binary_expression "param_2[4] + 1 + iVar5" (binary_expression "param_2[4] + 1" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar6 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar6 >> 0x10)" (( "(") (binary_expression "(uint)iVar6 >> 0x10" (cast_expression "(uint)iVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar6")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(param_2[4] + 2 + iVar5)" (* "*") (cast_expression "(char *)(param_2[4] + 2 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 2 + iVar5)" (( "(") (binary_expression "param_2[4] + 2 + iVar5" (binary_expression "param_2[4] + 2" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "2")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar6 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar6 >> 8)" (( "(") (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar6")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;" (assignment_expression "*(char *)(param_2[4] + 3 + iVar5) = (char)iVar6" (pointer_expression "*(char *)(param_2[4] + 3 + iVar5)" (* "*") (cast_expression "(char *)(param_2[4] + 3 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + 3 + iVar5)" (( "(") (binary_expression "param_2[4] + 3 + iVar5" (binary_expression "param_2[4] + 3" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "3")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (cast_expression "(char)iVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar6"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);\n  }" ({ "{") (expression_statement "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);" (call_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))\n              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 0x54) + 0xc))" (( "(") (pointer_expression "**(code **)(*(int *)(param_1 + 0x54) + 0xc)" (* "*") (pointer_expression "*(code **)(*(int *)(param_1 + 0x54) + 0xc)" (* "*") (cast_expression "(code **)(*(int *)(param_1 + 0x54) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) + 0xc" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (, ",") (binary_expression "param_2[4] + iVar5 + 4" (binary_expression "param_2[4] + iVar5" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar5")) (+ "+") (number_literal "4")) (, ",") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4 + 0xc;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar4 + 0xc;\n  }" ({ "{") (return_statement "return iVar4 + 0xc;" (return "return") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) (; ";")) (} "}"))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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 */

int __regparm3 function_1(type_1 ssh,type_2 *pkt,int *offset_p)

{
  type_3 bVar1;
  int var_22;
  type_4 var_3;
  char *texttype;
  int var_9;
  type_5 var_20;
  long lVar6;
  type_6 *var_21;
  int var_8;
  int var_2;
  type_6 *var_13;
  int var_1;
  type_6 *var_6;
  int var_14;
  type_7 blanks [4];
  
  var_13 = (type_6 *)pkt->length;
  var_22 = *(int *)(var_1 + 0x14);
  if (ssh->logctx == (void *)0x0) goto LAB_0002e672;
  pkt->savedpos = 0;
  var_3 = pkt->type;
  pkt->length = (int)var_13 - ((int)pkt->body - (int)pkt->data);
  var_2 = ssh->logomitdata;
  if ((var_2 != 0) && ((var_3 == 0x10 || (var_2 = 0, var_3 == 0x17)))) {
    blanks[0].offset = 4;
    if (var_3 == 0x17) {
      var_4(pkt);
      blanks[0].offset = pkt->savedpos + 4;
    }
    blanks[0].type = 2;
    var_5(pkt,(char **)&var_6,&var_14);
    if (var_6 == (type_6 *)0x0) {
      var_3 = pkt->type;
      var_2 = 0;
    }
    else {
      var_2 = 1;
      var_3 = pkt->type;
    }
  }
  if (((var_3 & 0xffffffdf) == 9) || (var_3 == 0x48)) {
    var_8 = var_7(ssh->conf,0x7b);
    if (var_8 == 0) {
      var_3 = pkt->type;
      goto LAB_0002e621;
    }
    lVar6 = pkt->length;
    var_8 = var_2 + 1;
    blanks[var_2].offset = 0;
    blanks[var_2].len = lVar6;
    blanks[var_2].type = 1;
  }
  else {
LAB_0002e621:
    var_8 = var_2;
    if (var_3 == 0x22) {
      var_9 = var_7(ssh->conf,0x7b);
      if (var_9 != 0) {
        pkt->savedpos = 0;
        var_5(pkt,(char **)&var_6,&var_14);
        lVar6 = pkt->savedpos;
        blanks[var_2].type = 1;
        blanks[var_2].offset = lVar6;
        var_5(pkt,(char **)&var_6,&var_14);
        if (var_6 != (type_6 *)0x0) {
          var_8 = var_2 + 1;
          blanks[var_2].len = pkt->savedpos - blanks[var_2].offset;
        }
      }
    }
    lVar6 = pkt->length;
  }
  bVar1 = pkt->data[0xc];
  texttype = var_10((type_4)bVar1);
  var_11(ssh->logctx,1,(type_4)bVar1,texttype,pkt->body,lVar6,var_8,blanks,(type_5 *)0x0,0,
             (char *)0x0);
  var_13 = pkt->body + (pkt->length - (int)pkt->data);
  pkt->length = (long)var_13;
LAB_0002e672:
  if (ssh->v1_compressing != 0) {
    var_12(ssh->cs_comp_ctx,pkt->data + 0xc,(int)(var_13 + -0xc),&var_6,&var_14);
    if (pkt->maxlen < var_14 + 2) {
      var_15(pkt,var_14 + 2);
    }
    var_16(pkt->data + 0xc,var_6,var_14);
    var_17(var_6);
    var_13 = (type_6 *)(var_14 + 0xc);
    pkt->length = (long)var_13;
  }
  var_21 = var_13 + 4;
  if (pkt->maxlen < (int)var_21) {
    var_15(pkt,(int)var_21);
    var_13 = (type_6 *)pkt->length;
    var_21 = var_13 + 4;
  }
  var_13 = var_13 + -8;
  pkt->length = (long)var_21;
  var_8 = (int)var_13 % 8;
  var_2 = var_8;
  do {
    var_9 = var_18();
    pkt->data[var_2] = (type_6)var_9;
    var_2 = var_2 + 1;
  } while (var_2 != 0xc);
  var_20 = var_19(pkt->data + var_8 + 4,(size_t)(var_13 + (4 - var_8)));
  var_21 = var_13 + (8 - var_8) + var_8;
  pkt->data[(int)var_21] = (type_6)(var_20 >> 0x18);
  pkt->data[(int)(var_21 + 1)] = (type_6)(var_20 >> 0x10);
  pkt->data[(int)(var_21 + 2)] = (type_6)(var_20 >> 8);
  pkt->data[(int)(var_21 + 3)] = (type_6)var_20;
  pkt->data[var_8] = (type_6)((type_4)var_13 >> 0x18);
  pkt->data[var_8 + 1] = (type_6)((type_4)var_13 >> 0x10);
  pkt->data[var_8 + 2] = (type_6)((type_4)var_13 >> 8);
  pkt->data[var_8 + 3] = (type_6)var_13;
  if (ssh->cipher != (type_8 *)0x0) {
    (*ssh->cipher->encrypt)(ssh->v1_cipher_ctx,pkt->data + var_8 + 4,(int)(var_13 + (8 - var_8)));
  }
  *offset_p = var_8;
  if (var_22 == *(int *)(var_1 + 0x14)) {
    return (int)(var_13 + (0xc - var_8));
  }
                    /* WARNING: Subroutine does not return */
  var_23();
}


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

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

int __regparm3 MASKED(int param_1,int *param_2,int *param_3)

{
  undefined1 uVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  void *local_58;
  size_t local_54;
  int local_50 [12];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2e5ab;
  iVar6 = *param_2;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0x18) == 0) goto LAB_0002e672;
  param_2[6] = 0;
  uVar2 = param_2[2];
  *param_2 = iVar6 - (param_2[5] - param_2[4]);
  iVar6 = *(int *)(param_1 + 0x24c);
  if ((iVar6 != 0) && ((uVar2 == 0x10 || (iVar6 = 0, uVar2 == 0x17)))) {
    local_50[0] = 4;
    if (uVar2 == 0x17) {
      FUN_0002b1c0();
      local_50[0] = param_2[6] + 4;
    }
    local_50[2] = 2;
    FUN_0002bab0();
    if (local_58 == (void *)0x0) {
      uVar2 = param_2[2];
      iVar6 = 0;
    }
    else {
      iVar6 = 1;
      uVar2 = param_2[2];
    }
  }
  if (((uVar2 & 0xffffffdf) == 9) || (uVar2 == 0x48)) {
    iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);
    if (iVar7 == 0) {
      uVar2 = param_2[2];
      goto LAB_0002e621;
    }
    iVar7 = *param_2;
    iVar4 = iVar6 + 1;
    local_50[iVar6 * 3] = 0;
    local_50[iVar6 * 3 + 1] = iVar7;
    local_50[iVar6 * 3 + 2] = 1;
  }
  else {
LAB_0002e621:
    iVar4 = iVar6;
    if (uVar2 == 0x22) {
      iVar7 = FUN_00017370(*(undefined4 *)(param_1 + 0x248),0x7b);
      if (iVar7 != 0) {
        param_2[6] = 0;
        FUN_0002bab0();
        iVar7 = param_2[6];
        local_50[iVar6 * 3 + 2] = 1;
        local_50[iVar6 * 3] = iVar7;
        FUN_0002bab0();
        if (local_58 != (void *)0x0) {
          iVar4 = iVar6 + 1;
          local_50[iVar6 * 3 + 1] = param_2[6] - local_50[iVar6 * 3];
        }
      }
    }
    iVar7 = *param_2;
  }
  uVar1 = *(undefined1 *)(param_2[4] + 0xc);
  uVar3 = FUN_0002d720();
  FUN_00019860(*(undefined4 *)(param_1 + 0x18),1,uVar1,uVar3,param_2[5],iVar7,iVar4,local_50,0,0,0);
  iVar6 = (param_2[5] - param_2[4]) + *param_2;
  *param_2 = iVar6;
LAB_0002e672:
  if (*(int *)(param_1 + 0x3c) != 0) {
    FUN_000627b0(*(undefined4 *)(param_1 + 0x90),param_2[4] + 0xc,iVar6 + -0xc,&local_58,&local_54);
    if (param_2[7] < (int)(local_54 + 2)) {
      FUN_0002e2c0();
    }
    memcpy((void *)(param_2[4] + 0xc),local_58,local_54);
    FUN_0001b240(local_58);
    iVar6 = local_54 + 0xc;
    *param_2 = iVar6;
  }
  iVar7 = iVar6 + 4;
  if (param_2[7] < iVar7) {
    FUN_0002e2c0();
    iVar6 = *param_2;
    iVar7 = iVar6 + 4;
  }
  iVar6 = iVar6 + -8;
  *param_2 = iVar7;
  iVar5 = iVar6 % 8;
  iVar4 = iVar6 - iVar5;
  iVar7 = iVar5;
  do {
    uVar1 = FUN_00057df0();
    *(undefined1 *)(param_2[4] + iVar7) = uVar1;
    iVar7 = iVar7 + 1;
  } while (iVar7 != 0xc);
  uVar3 = FUN_00049530(iVar5 + 4 + param_2[4],iVar4 + 4);
  iVar7 = iVar4 + 8 + iVar5;
  *(char *)(param_2[4] + iVar7) = (char)((uint)uVar3 >> 0x18);
  *(char *)(param_2[4] + 1 + iVar7) = (char)((uint)uVar3 >> 0x10);
  *(char *)(param_2[4] + 2 + iVar7) = (char)((uint)uVar3 >> 8);
  *(char *)(param_2[4] + 3 + iVar7) = (char)uVar3;
  *(char *)(param_2[4] + iVar5) = (char)((uint)iVar6 >> 0x18);
  *(char *)(param_2[4] + 1 + iVar5) = (char)((uint)iVar6 >> 0x10);
  *(char *)(param_2[4] + 2 + iVar5) = (char)((uint)iVar6 >> 8);
  *(char *)(param_2[4] + 3 + iVar5) = (char)iVar6;
  if (*(int *)(param_1 + 0x54) != 0) {
    (**(code **)(*(int *)(param_1 + 0x54) + 0xc))
              (*(undefined4 *)(param_1 + 0x58),param_2[4] + iVar5 + 4,iVar4 + 8);
  }
  *param_3 = iVar5;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4 + 0xc;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

