
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)

{
  byte bVar1;
  int iVar2;
  char *pcVar3;
  Packet *pPVar4;
  uchar *puVar5;
  int *type;
  Ssh_conflict ssh_00;
  size_t n;
  undefined4 *puVar6;
  Packet *pPVar7;
  void *pvVar8;
  ulong uVar9;
  int iVar10;
  undefined *puVar11;
  char *str;
  int slen;
  logblank_t blanks [4];
  
  puVar11 = PTR___stack_chk_guard_000adcd4;
  iVar10 = ssh->logomitdata;
  type = (int *)pkt->type;
  pkt->savedpos = 0;
  iVar2 = *(int *)puVar11;
  if ((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)) {
    pPVar4 = pkt;
    ssh_pkt_getuint32(pkt);
    if (pkt->type == 0x5f) {
      ssh_pkt_getuint32(pPVar4);
    }
    blanks[0].type = 2;
    blanks[0].offset = pkt->savedpos + 4;
    ssh_pkt_getstring(pkt,&str,&slen);
    if (str == (char *)0x0) {
      type = (int *)pkt->type;
      iVar10 = 0;
    }
    else {
      iVar10 = 1;
      type = (int *)pkt->type;
    }
  }
  pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type);
  puVar6 = (undefined4 *)0x0;
  ssh_00 = (Ssh_conflict)ssh->logctx;
  log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,
             (char *)0x0);
  if (iVar2 == *(int *)puVar11) {
    return;
  }
  puVar11 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  iVar2 = ssh_00->ssh2_bare_rdpkt_crstate;
  if (iVar2 != 0x78e) {
    if (iVar2 == 0x7a5) goto LAB_00032540;
    if (iVar2 != 0) goto LAB_0003243c;
    (ssh_00->rdpkt2_bare_state).i = 0;
  }
  do {
    if (*type == 0) {
      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;
      return;
    }
    pcVar3 = (char *)*puVar6;
    iVar2 = (ssh_00->rdpkt2_bare_state).i;
    *puVar6 = pcVar3 + 1;
    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;
    *type = *type + -1;
    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;
    (ssh_00->rdpkt2_bare_state).i = iVar2;
  } while (iVar2 < 4);
  iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length);
  (ssh_00->rdpkt2_bare_state).packetlen = iVar2;
  if (0x8ffe < iVar2 - 1U) {
    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));
    bomb_out(ssh_00,pcVar3);
    ssh_00->ssh2_bare_rdpkt_crstate = 0;
    return;
  }
  pPVar4 = (Packet *)safemalloc(1,0x2c);
  n = (ssh_00->rdpkt2_bare_state).packetlen;
  pPVar4->data = (uchar *)0x0;
  pPVar4->body = (uchar *)0x0;
  pPVar4->maxlen = 0;
  (ssh_00->rdpkt2_bare_state).pktin = pPVar4;
  puVar5 = (uchar *)safemalloc(n,1);
  iVar2 = 0;
  uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence;
  pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;
  iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;
  pPVar4->data = puVar5;
  pPVar7->encrypted_len = iVar10;
  (ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1;
  pPVar7->sequence = uVar9;
  (ssh_00->rdpkt2_bare_state).i = 0;
  while (iVar2 < iVar10) {
LAB_00032540:
    if (*type == 0) {
      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;
      return;
    }
    puVar5 = (uchar *)*puVar6;
    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
    iVar2 = (ssh_00->rdpkt2_bare_state).i;
    *puVar6 = puVar5 + 1;
    pPVar4->data[iVar2] = *puVar5;
    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;
    *type = *type + -1;
    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;
    (ssh_00->rdpkt2_bare_state).i = iVar2;
  }
  pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
  pvVar8 = ssh_00->logctx;
  bVar1 = *pPVar4->data;
  pPVar4->body = pPVar4->data + 1;
  pPVar4->length = iVar10 + -1;
  pPVar4->type = (uint)bVar1;
  if (pvVar8 != (void *)0x0) {
    ssh2_log_incoming_packet(ssh_00,pPVar4);
    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
  }
  pPVar4->savedpos = 0;
LAB_0003243c:
  ssh_00->ssh2_bare_rdpkt_crstate = 0;
  return;
}



int * FUN_00032278(int param_1,int param_2)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 *puVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  undefined *puVar13;
  int local_4c;
  undefined1 local_48 [4];
  int local_44;
  undefined4 local_3c;
  int *local_14;
  
  puVar13 = PTR___stack_chk_guard_000adcd4;
  iVar12 = *(int *)(param_1 + 0x24c);
  piVar4 = *(int **)(param_2 + 8);
  *(undefined4 *)(param_2 + 0x18) = 0;
  local_14 = *(int **)puVar13;
  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {
    FUN_0002f068(param_2);
    if (*(int *)(param_2 + 8) == 0x5f) {
      FUN_0002f068();
    }
    local_3c = 2;
    local_44 = *(int *)(param_2 + 0x18) + 4;
    FUN_0002fb84(param_2,&local_4c,local_48);
    if (local_4c == 0) {
      piVar4 = *(int **)(param_2 + 8);
    }
    else {
      piVar4 = *(int **)(param_2 + 8);
    }
  }
  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));
  puVar9 = (undefined4 *)0x0;
  iVar12 = *(int *)(param_1 + 0x18);
  log_packet();
  piVar2 = *(int **)puVar13;
  if (local_14 == piVar2) {
    return piVar2;
  }
  puVar13 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  iVar3 = *(int *)(iVar12 + 0x1b8);
  if (iVar3 != 0x78e) {
    if (iVar3 == 0x7a5) goto LAB_00032540;
    if (iVar3 != 0) {
      piVar4 = *(int **)(iVar12 + 0x234);
      goto LAB_0003243c;
    }
    *(undefined4 *)(iVar12 + 0x22c) = 0;
  }
  do {
    if (*piVar4 == 0) {
      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;
      return (int *)0x0;
    }
    puVar5 = (undefined1 *)*puVar9;
    iVar3 = *(int *)(iVar12 + 0x22c);
    *puVar9 = puVar5 + 1;
    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;
    *piVar4 = *piVar4 + -1;
    iVar3 = *(int *)(iVar12 + 0x22c) + 1;
    *(int *)(iVar12 + 0x22c) = iVar3;
  } while (iVar3 < 4);
  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));
  *(int *)(iVar12 + 0x228) = iVar3;
  if (0x8ffe < iVar3 - 1U) {
    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);
    FUN_000306ac(iVar12,uVar7);
    *(undefined4 *)(iVar12 + 0x1b8) = 0;
    return (int *)0x0;
  }
  iVar3 = safemalloc(1,0x2c);
  uVar7 = *(undefined4 *)(iVar12 + 0x228);
  *(undefined4 *)(iVar3 + 0x10) = 0;
  *(undefined4 *)(iVar3 + 0x14) = 0;
  *(undefined4 *)(iVar3 + 0x1c) = 0;
  *(int *)(iVar12 + 0x234) = iVar3;
  uVar7 = safemalloc(uVar7,1);
  iVar6 = 0;
  iVar11 = *(int *)(iVar12 + 0x230);
  iVar10 = *(int *)(iVar12 + 0x234);
  iVar8 = *(int *)(iVar12 + 0x228);
  *(undefined4 *)(iVar3 + 0x10) = uVar7;
  *(int *)(iVar10 + 0x20) = iVar8;
  *(int *)(iVar12 + 0x230) = iVar11 + 1;
  *(int *)(iVar10 + 0xc) = iVar11;
  *(undefined4 *)(iVar12 + 0x22c) = 0;
  while (iVar6 < iVar8) {
LAB_00032540:
    if (*piVar4 == 0) {
      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;
      return (int *)0x0;
    }
    puVar5 = (undefined1 *)*puVar9;
    iVar3 = *(int *)(iVar12 + 0x234);
    iVar6 = *(int *)(iVar12 + 0x22c);
    *puVar9 = puVar5 + 1;
    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;
    iVar8 = *(int *)(iVar12 + 0x228);
    *piVar4 = *piVar4 + -1;
    iVar6 = *(int *)(iVar12 + 0x22c) + 1;
    *(int *)(iVar12 + 0x22c) = iVar6;
  }
  piVar4 = *(int **)(iVar12 + 0x234);
  iVar3 = *(int *)(iVar12 + 0x18);
  bVar1 = *(byte *)piVar4[4];
  piVar4[5] = (int)((byte *)piVar4[4] + 1);
  *piVar4 = iVar8 + -1;
  piVar4[2] = (uint)bVar1;
  if (iVar3 != 0) {
    FUN_00032278(iVar12,piVar4);
    piVar4 = *(int **)(iVar12 + 0x234);
  }
  piVar4[6] = 0;
LAB_0003243c:
  *(undefined4 *)(iVar12 + 0x1b8) = 0;
  return piVar4;
}


lui gp,0x8
addiu gp,gp,0x3018
addu gp,gp,t9
addiu sp,sp,-0x88
lw t0,0x24c(a0)
lw v1,0x8(a1)
sw s2,0x80(sp)
lw s2,-0x75bc(gp)
sw gp,0x30(sp)
sw s1,0x7c(sp)
or s1,a0,zero
sw s0,0x78(sp)
or s0,a1,zero
sw ra,0x84(sp)
sw zero,0x18(a1)
lw v0,0x0(s2)
sw v0,0x74(sp)
beq t0,zero,0x000322d8
_lw t9,-0x7ce0(gp)
addiu v0,v1,-0x5e
sltiu v0,v0,0x2
bne v0,zero,0x00032358
_or t0,zero,zero
lw t9,-0x7ce0(gp)
or a2,v1,zero
lw a1,0x188(s1)
addiu t9,t9,0x1e0c
bal 0x00031e0c
_lw a0,0x184(s1)
addiu t3,s0,0xc
lw gp,0x30(sp)
or a3,v0,zero
lw t2,0x0(s0)
addiu v0,sp,0x44
lw t1,0x14(s0)
or a1,zero,zero
lw a0,0x18(s1)
lw t9,-0x7c20(gp)
sw v0,0x1c(sp)
sw zero,0x28(sp)
sw zero,0x24(sp)
sw t3,0x20(sp)
sw t0,0x18(sp)
sw t2,0x14(sp)
bal 0x00020ac4
_sw t1,0x10(sp)
lw v1,0x74(sp)
lw v0,0x0(s2)
bne v1,v0,0x000323e0
_lw gp,0x30(sp)
lw ra,0x84(sp)
lw s2,0x80(sp)
lw s1,0x7c(sp)
lw s0,0x78(sp)
jr ra
_addiu sp,sp,0x88
lw t9,-0x7ce0(gp)
addiu t9,t9,-0xf98
bal 0x0002f068
_or a0,a1,zero
li v0,0x5f
lw v1,0x8(s0)
beq v1,v0,0x000323d0
_lw gp,0x30(sp)
lw v0,0x18(s0)
li v1,0x2
lw t9,-0x7ce0(gp)
addiu a2,sp,0x40
addiu a1,sp,0x3c
sw v1,0x4c(sp)
addiu v0,v0,0x4
addiu t9,t9,-0x47c
sw v0,0x44(sp)
bal 0x0002fb84
_or a0,s0,zero
lw v0,0x3c(sp)
beq v0,zero,0x000323c4
_lw gp,0x30(sp)
lw v0,0x40(sp)
li t0,0x1
lw v1,0x8(s0)
b 0x000322d4
_sw v0,0x48(sp)
lw v1,0x8(s0)
b 0x000322d4
_or t0,zero,zero
bal 0x0002f068
_nop
b 0x00032378
_lw gp,0x30(sp)
lw t9,-0x75ec(gp)
jalr t9
_nop
lui gp,0x8
addiu gp,gp,0x2ea4
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x1b8(a0)
li v1,0x78e
sw gp,0x10(sp)
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x24(sp)
beq v0,v1,0x0003245c
_sw s2,0x20(sp)
li v1,0x7a5
beq v0,v1,0x00032540
_nop
beq v0,zero,0x00032458
_nop
lw v0,0x234(a0)
sw zero,0x1b8(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
sw zero,0x22c(a0)
lw v0,0x0(a2)
beq v0,zero,0x000325dc
_lw ra,0x24(sp)
lw v1,0x0(s1)
lw v0,0x22c(s0)
addiu a0,v1,0x1
addu v0,s0,v0
sw a0,0x0(s1)
lbu v1,0x0(v1)
sb v1,0x224(v0)
lw v0,0x0(a2)
addiu v0,v0,-0x1
sw v0,0x0(a2)
lw v0,0x22c(s0)
addiu v0,v0,0x1
slti v1,v0,0x4
bne v1,zero,0x0003245c
_sw v0,0x22c(s0)
lw t9,-0x7dfc(gp)
lw a0,0x224(s0)
bal 0x00021a40
_sw a2,0x30(sp)
addiu v1,v0,-0x1
lw gp,0x10(sp)
lw a2,0x30(sp)
sw v0,0x228(s0)
ori v0,zero,0x8fff
sltu v1,v1,v0
beq v1,zero,0x00032608
_lw t9,-0x7e7c(gp)
li a1,0x2c
li a0,0x1
bal 0x00022094
_sw a2,0x30(sp)
li a1,0x1
lw gp,0x10(sp)
or s2,v0,zero
lw a0,0x228(s0)
sw zero,0x10(v0)
sw zero,0x14(v0)
sw zero,0x1c(v0)
lw t9,-0x7e7c(gp)
bal 0x00022094
_sw v0,0x234(s0)
or v1,zero,zero
lw a3,0x230(s0)
lw a1,0x234(s0)
lw a0,0x228(s0)
addiu t0,a3,0x1
lw gp,0x10(sp)
lw a2,0x30(sp)
sw v0,0x10(s2)
sw a0,0x20(a1)
sw t0,0x230(s0)
sw a3,0xc(a1)
b 0x0003258c
_sw zero,0x22c(s0)
lw v0,0x0(a2)
beq v0,zero,0x000325fc
_li v1,0x7a5
lw v1,0x0(s1)
lw v0,0x234(s0)
lw a0,0x22c(s0)
addiu a1,v1,0x1
sw a1,0x0(s1)
lw v0,0x10(v0)
lbu v1,0x0(v1)
addu v0,v0,a0
sb v1,0x0(v0)
lw v0,0x0(a2)
lw a0,0x228(s0)
addiu v0,v0,-0x1
sw v0,0x0(a2)
lw v1,0x22c(s0)
addiu v1,v1,0x1
sw v1,0x22c(s0)
slt v1,v1,a0
bne v1,zero,0x00032540
_addiu a0,a0,-0x1
lw v0,0x234(s0)
lw a1,0x18(s0)
lw v1,0x10(v0)
addiu a2,v1,0x1
lbu v1,0x0(v1)
sw a2,0x14(v0)
sw a0,0x0(v0)
beq a1,zero,0x000325d4
_sw v1,0x8(v0)
lw t9,-0x7ce0(gp)
or a1,v0,zero
addiu t9,t9,0x2278
bal 0x00032278
_or a0,s0,zero
lw v0,0x234(s0)
b 0x0003243c
_sw zero,0x18(v0)
li v1,0x78e
lw s2,0x20(sp)
or v0,zero,zero
lw s1,0x1c(sp)
sw v1,0x1b8(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
or v0,zero,zero
b 0x00032440
_sw v1,0x1b8(s0)
lw a0,-0x7fc8(gp)
lw t9,-0x7fb8(gp)
bal 0x00022a38
_addiu a0,a0,-0x2bbc
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7ce0(gp)
addiu t9,t9,0x6ac
bal 0x000306ac
_or a1,v0,zero
or v0,zero,zero
b 0x00032440
_sw zero,0x1b8(s0)
(translation_unit "int * FUN_00032278(int param_1,int param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}\n\n" (function_definition "int * FUN_00032278(int param_1,int param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" primitive_type (pointer_declarator "* FUN_00032278(int param_1,int param_2)" * (function_declarator "FUN_00032278(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "undefined1 local_48 [4];" type_identifier (array_declarator "local_48 [4]" identifier [ number_literal ]) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar13 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar12 = *(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) ))))) ;) (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_14 = *(int **)puVar13;" (assignment_expression "local_14 = *(int **)puVar13" identifier = (pointer_expression "*(int **)puVar13" * (cast_expression "(int **)puVar13" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" if (parenthesized_expression "((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2))" ( (binary_expression "(iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)" (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) && (parenthesized_expression "((int)piVar4 - 0x5eU < 2)" ( (binary_expression "(int)piVar4 - 0x5eU < 2" (binary_expression "(int)piVar4 - 0x5eU" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal) ))) )) (compound_statement "{\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" { (expression_statement "FUN_0002f068(param_2);" (call_expression "FUN_0002f068(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" ( (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_0002f068();\n    }" { (expression_statement "FUN_0002f068();" (call_expression "FUN_0002f068()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_3c = 2;" (assignment_expression "local_3c = 2" identifier = number_literal) ;) (expression_statement "local_44 = *(int *)(param_2 + 0x18) + 4;" (assignment_expression "local_44 = *(int *)(param_2 + 0x18) + 4" identifier = (binary_expression "*(int *)(param_2 + 0x18) + 4" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0002fb84(param_2,&local_4c,local_48);" (call_expression "FUN_0002fb84(param_2,&local_4c,local_48)" identifier (argument_list "(param_2,&local_4c,local_48)" ( identifier , (pointer_expression "&local_4c" & identifier) , identifier ))) ;) (if_statement "if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" if (parenthesized_expression "(local_4c == 0)" ( (binary_expression "local_4c == 0" identifier == number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" { (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" else (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" { (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }))) })) (expression_statement "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));" (call_expression "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x184)" * (cast_expression "(undefined4 *)(param_1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x184)" ( (binary_expression "param_1 + 0x184" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x188)" * (cast_expression "(undefined4 *)(param_1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) ))) ;) (expression_statement "puVar9 = (undefined4 *)0x0;" (assignment_expression "puVar9 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "log_packet();" (call_expression "log_packet()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = *(int **)puVar13;" (assignment_expression "piVar2 = *(int **)puVar13" identifier = (pointer_expression "*(int **)puVar13" * (cast_expression "(int **)puVar13" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (local_14 == piVar2) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_14 == piVar2)" ( (binary_expression "local_14 == piVar2" identifier == identifier) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "puVar13 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar13 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x1b8);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x1b8)" identifier = (pointer_expression "*(int *)(iVar12 + 0x1b8)" * (cast_expression "(int *)(iVar12 + 0x1b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" if (parenthesized_expression "(iVar3 != 0x78e)" ( (binary_expression "iVar3 != 0x78e" identifier != number_literal) )) (compound_statement "{\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" { (if_statement "if (iVar3 == 0x7a5) goto LAB_00032540;" if (parenthesized_expression "(iVar3 == 0x7a5)" ( (binary_expression "iVar3 == 0x7a5" identifier == number_literal) )) (goto_statement "goto LAB_00032540;" goto statement_identifier ;)) (if_statement "if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" { (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0003243c;" goto statement_identifier ;) })) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" * (cast_expression "(undefined4 *)(iVar12 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = number_literal) ;) })) (do_statement "do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);" do (compound_statement "{\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  }" { (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" { (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" identifier = (cast_expression "(undefined1 *)*puVar9" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c)" identifier = (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;" (assignment_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5" (pointer_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224)" * (cast_expression "(undefined1 *)(iVar12 + iVar3 + 0x224)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar3 + 0x224)" ( (binary_expression "iVar12 + iVar3 + 0x224" (binary_expression "iVar12 + iVar3" identifier + identifier) + number_literal) )))) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c) + 1" identifier = (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar3 < 4)" ( (binary_expression "iVar3 < 4" identifier < number_literal) )) ;) (expression_statement "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));" (assignment_expression "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224))" identifier = (call_expression "toint(*(undefined4 *)(iVar12 + 0x224))" identifier (argument_list "(*(undefined4 *)(iVar12 + 0x224))" ( (pointer_expression "*(undefined4 *)(iVar12 + 0x224)" * (cast_expression "(undefined4 *)(iVar12 + 0x224)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x224)" ( (binary_expression "iVar12 + 0x224" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(iVar12 + 0x228) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x228) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" if (parenthesized_expression "(0x8ffe < iVar3 - 1U)" ( (binary_expression "0x8ffe < iVar3 - 1U" number_literal < (binary_expression "iVar3 - 1U" identifier - number_literal)) )) (compound_statement "{\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" { (expression_statement "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);" (assignment_expression "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" identifier = (call_expression "dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" identifier (argument_list "(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" ( (binary_expression "*(int *)(puVar13 + 0x7aedc) + -0x2bbc" (pointer_expression "*(int *)(puVar13 + 0x7aedc)" * (cast_expression "(int *)(puVar13 + 0x7aedc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x7aedc)" ( (binary_expression "puVar13 + 0x7aedc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "FUN_000306ac(iVar12,uVar7);" (call_expression "FUN_000306ac(iVar12,uVar7)" identifier (argument_list "(iVar12,uVar7)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = safemalloc(1,0x2c);" (assignment_expression "iVar3 = safemalloc(1,0x2c)" identifier = (call_expression "safemalloc(1,0x2c)" identifier (argument_list "(1,0x2c)" ( number_literal , number_literal )))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar12 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar12 + 0x228)" identifier = (pointer_expression "*(undefined4 *)(iVar12 + 0x228)" * (cast_expression "(undefined4 *)(iVar12 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar12 + 0x234) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x234) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar7 = safemalloc(uVar7,1);" (assignment_expression "uVar7 = safemalloc(uVar7,1)" identifier = (call_expression "safemalloc(uVar7,1)" identifier (argument_list "(uVar7,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = *(int *)(iVar12 + 0x230);" (assignment_expression "iVar11 = *(int *)(iVar12 + 0x230)" identifier = (pointer_expression "*(int *)(iVar12 + 0x230)" * (cast_expression "(int *)(iVar12 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x230)" ( (binary_expression "iVar12 + 0x230" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar10 = *(int *)(iVar12 + 0x234)" identifier = (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" identifier = (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar10 + 0x20) = iVar8;" (assignment_expression "*(int *)(iVar10 + 0x20) = iVar8" (pointer_expression "*(int *)(iVar10 + 0x20)" * (cast_expression "(int *)(iVar10 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x20)" ( (binary_expression "iVar10 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar12 + 0x230) = iVar11 + 1;" (assignment_expression "*(int *)(iVar12 + 0x230) = iVar11 + 1" (pointer_expression "*(int *)(iVar12 + 0x230)" * (cast_expression "(int *)(iVar12 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x230)" ( (binary_expression "iVar12 + 0x230" identifier + number_literal) )))) = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar10 + 0xc) = iVar11;" (assignment_expression "*(int *)(iVar10 + 0xc) = iVar11" (pointer_expression "*(int *)(iVar10 + 0xc)" * (cast_expression "(int *)(iVar10 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0xc)" ( (binary_expression "iVar10 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" * (cast_expression "(undefined4 *)(iVar12 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = number_literal) ;) (while_statement "while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" while (parenthesized_expression "(iVar6 < iVar8)" ( (binary_expression "iVar6 < iVar8" identifier < identifier) )) (compound_statement "{\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" { (labeled_statement "LAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" statement_identifier : (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" { (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" identifier = (cast_expression "(undefined1 *)*puVar9" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x234)" identifier = (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c)" identifier = (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;" (assignment_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5" (pointer_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" * (cast_expression "(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x10) + iVar6)" ( (binary_expression "*(int *)(iVar3 + 0x10) + iVar6" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) + identifier) )))) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" identifier = (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c) + 1" identifier = (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar6;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar6" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x18);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x18)" identifier = (pointer_expression "*(int *)(iVar12 + 0x18)" * (cast_expression "(int *)(iVar12 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x18)" ( (binary_expression "iVar12 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *(byte *)piVar4[4];" (assignment_expression "bVar1 = *(byte *)piVar4[4]" identifier = (pointer_expression "*(byte *)piVar4[4]" * (cast_expression "(byte *)piVar4[4]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[4]" identifier [ number_literal ])))) ;) (expression_statement "piVar4[5] = (int)((byte *)piVar4[4] + 1);" (assignment_expression "piVar4[5] = (int)((byte *)piVar4[4] + 1)" (subscript_expression "piVar4[5]" identifier [ number_literal ]) = (cast_expression "(int)((byte *)piVar4[4] + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((byte *)piVar4[4] + 1)" ( (binary_expression "(byte *)piVar4[4] + 1" (cast_expression "(byte *)piVar4[4]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[4]" identifier [ number_literal ])) + number_literal) )))) ;) (expression_statement "*piVar4 = iVar8 + -1;" (assignment_expression "*piVar4 = iVar8 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "piVar4[2] = (uint)bVar1;" (assignment_expression "piVar4[2] = (uint)bVar1" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" { (expression_statement "FUN_00032278(iVar12,piVar4);" (call_expression "FUN_00032278(iVar12,piVar4)" identifier (argument_list "(iVar12,piVar4)" ( identifier , identifier ))) ;) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) })) (expression_statement "piVar4[6] = 0;" (assignment_expression "piVar4[6] = 0" (subscript_expression "piVar4[6]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)\n\n{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  Packet *pPVar4;\n  uchar *puVar5;\n  int *type;\n  Ssh_conflict ssh_00;\n  size_t n;\n  undefined4 *puVar6;\n  Packet *pPVar7;\n  void *pvVar8;\n  ulong uVar9;\n  int iVar10;\n  undefined *puVar11;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  puVar11 = PTR___stack_chk_guard_000adcd4;\n  iVar10 = ssh->logomitdata;\n  type = (int *)pkt->type;\n  pkt->savedpos = 0;\n  iVar2 = *(int *)puVar11;\n  if ((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)) {\n    pPVar4 = pkt;\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }\n  }\n  pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type);\n  puVar6 = (undefined4 *)0x0;\n  ssh_00 = (Ssh_conflict)ssh->logctx;\n  log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar2 == *(int *)puVar11) {\n    return;\n  }\n  puVar11 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar2 = ssh_00->ssh2_bare_rdpkt_crstate;\n  if (iVar2 != 0x78e) {\n    if (iVar2 == 0x7a5) goto LAB_00032540;\n    if (iVar2 != 0) goto LAB_0003243c;\n    (ssh_00->rdpkt2_bare_state).i = 0;\n  }\n  do {\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }\n    pcVar3 = (char *)*puVar6;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = pcVar3 + 1;\n    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  } while (iVar2 < 4);\n  iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length);\n  (ssh_00->rdpkt2_bare_state).packetlen = iVar2;\n  if (0x8ffe < iVar2 - 1U) {\n    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));\n    bomb_out(ssh_00,pcVar3);\n    ssh_00->ssh2_bare_rdpkt_crstate = 0;\n    return;\n  }\n  pPVar4 = (Packet *)safemalloc(1,0x2c);\n  n = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = (uchar *)0x0;\n  pPVar4->body = (uchar *)0x0;\n  pPVar4->maxlen = 0;\n  (ssh_00->rdpkt2_bare_state).pktin = pPVar4;\n  puVar5 = (uchar *)safemalloc(n,1);\n  iVar2 = 0;\n  uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence;\n  pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;\n  iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = puVar5;\n  pPVar7->encrypted_len = iVar10;\n  (ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1;\n  pPVar7->sequence = uVar9;\n  (ssh_00->rdpkt2_bare_state).i = 0;\n  while (iVar2 < iVar10) {\nLAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }\n    puVar5 = (uchar *)*puVar6;\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = puVar5 + 1;\n    pPVar4->data[iVar2] = *puVar5;\n    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }\n  pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  pvVar8 = ssh_00->logctx;\n  bVar1 = *pPVar4->data;\n  pPVar4->body = pPVar4->data + 1;\n  pPVar4->length = iVar10 + -1;\n  pPVar4->type = (uint)bVar1;\n  if (pvVar8 != (void *)0x0) {\n    ssh2_log_incoming_packet(ssh_00,pPVar4);\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  }\n  pPVar4->savedpos = 0;\nLAB_0003243c:\n  ssh_00->ssh2_bare_rdpkt_crstate = 0;\n  return;\n}\n\n" comment (function_definition "void ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)\n\n{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  Packet *pPVar4;\n  uchar *puVar5;\n  int *type;\n  Ssh_conflict ssh_00;\n  size_t n;\n  undefined4 *puVar6;\n  Packet *pPVar7;\n  void *pvVar8;\n  ulong uVar9;\n  int iVar10;\n  undefined *puVar11;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  puVar11 = PTR___stack_chk_guard_000adcd4;\n  iVar10 = ssh->logomitdata;\n  type = (int *)pkt->type;\n  pkt->savedpos = 0;\n  iVar2 = *(int *)puVar11;\n  if ((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)) {\n    pPVar4 = pkt;\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }\n  }\n  pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type);\n  puVar6 = (undefined4 *)0x0;\n  ssh_00 = (Ssh_conflict)ssh->logctx;\n  log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar2 == *(int *)puVar11) {\n    return;\n  }\n  puVar11 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar2 = ssh_00->ssh2_bare_rdpkt_crstate;\n  if (iVar2 != 0x78e) {\n    if (iVar2 == 0x7a5) goto LAB_00032540;\n    if (iVar2 != 0) goto LAB_0003243c;\n    (ssh_00->rdpkt2_bare_state).i = 0;\n  }\n  do {\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }\n    pcVar3 = (char *)*puVar6;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = pcVar3 + 1;\n    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  } while (iVar2 < 4);\n  iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length);\n  (ssh_00->rdpkt2_bare_state).packetlen = iVar2;\n  if (0x8ffe < iVar2 - 1U) {\n    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));\n    bomb_out(ssh_00,pcVar3);\n    ssh_00->ssh2_bare_rdpkt_crstate = 0;\n    return;\n  }\n  pPVar4 = (Packet *)safemalloc(1,0x2c);\n  n = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = (uchar *)0x0;\n  pPVar4->body = (uchar *)0x0;\n  pPVar4->maxlen = 0;\n  (ssh_00->rdpkt2_bare_state).pktin = pPVar4;\n  puVar5 = (uchar *)safemalloc(n,1);\n  iVar2 = 0;\n  uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence;\n  pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;\n  iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = puVar5;\n  pPVar7->encrypted_len = iVar10;\n  (ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1;\n  pPVar7->sequence = uVar9;\n  (ssh_00->rdpkt2_bare_state).i = 0;\n  while (iVar2 < iVar10) {\nLAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }\n    puVar5 = (uchar *)*puVar6;\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = puVar5 + 1;\n    pPVar4->data[iVar2] = *puVar5;\n    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }\n  pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  pvVar8 = ssh_00->logctx;\n  bVar1 = *pPVar4->data;\n  pPVar4->body = pPVar4->data + 1;\n  pPVar4->length = iVar10 + -1;\n  pPVar4->type = (uint)bVar1;\n  if (pvVar8 != (void *)0x0) {\n    ssh2_log_incoming_packet(ssh_00,pPVar4);\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  }\n  pPVar4->savedpos = 0;\nLAB_0003243c:\n  ssh_00->ssh2_bare_rdpkt_crstate = 0;\n  return;\n}" primitive_type (function_declarator "ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pkt)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  Packet *pPVar4;\n  uchar *puVar5;\n  int *type;\n  Ssh_conflict ssh_00;\n  size_t n;\n  undefined4 *puVar6;\n  Packet *pPVar7;\n  void *pvVar8;\n  ulong uVar9;\n  int iVar10;\n  undefined *puVar11;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  puVar11 = PTR___stack_chk_guard_000adcd4;\n  iVar10 = ssh->logomitdata;\n  type = (int *)pkt->type;\n  pkt->savedpos = 0;\n  iVar2 = *(int *)puVar11;\n  if ((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)) {\n    pPVar4 = pkt;\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }\n  }\n  pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type);\n  puVar6 = (undefined4 *)0x0;\n  ssh_00 = (Ssh_conflict)ssh->logctx;\n  log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar2 == *(int *)puVar11) {\n    return;\n  }\n  puVar11 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar2 = ssh_00->ssh2_bare_rdpkt_crstate;\n  if (iVar2 != 0x78e) {\n    if (iVar2 == 0x7a5) goto LAB_00032540;\n    if (iVar2 != 0) goto LAB_0003243c;\n    (ssh_00->rdpkt2_bare_state).i = 0;\n  }\n  do {\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }\n    pcVar3 = (char *)*puVar6;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = pcVar3 + 1;\n    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  } while (iVar2 < 4);\n  iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length);\n  (ssh_00->rdpkt2_bare_state).packetlen = iVar2;\n  if (0x8ffe < iVar2 - 1U) {\n    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));\n    bomb_out(ssh_00,pcVar3);\n    ssh_00->ssh2_bare_rdpkt_crstate = 0;\n    return;\n  }\n  pPVar4 = (Packet *)safemalloc(1,0x2c);\n  n = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = (uchar *)0x0;\n  pPVar4->body = (uchar *)0x0;\n  pPVar4->maxlen = 0;\n  (ssh_00->rdpkt2_bare_state).pktin = pPVar4;\n  puVar5 = (uchar *)safemalloc(n,1);\n  iVar2 = 0;\n  uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence;\n  pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;\n  iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n  pPVar4->data = puVar5;\n  pPVar7->encrypted_len = iVar10;\n  (ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1;\n  pPVar7->sequence = uVar9;\n  (ssh_00->rdpkt2_bare_state).i = 0;\n  while (iVar2 < iVar10) {\nLAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }\n    puVar5 = (uchar *)*puVar6;\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = puVar5 + 1;\n    pPVar4->data[iVar2] = *puVar5;\n    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }\n  pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  pvVar8 = ssh_00->logctx;\n  bVar1 = *pPVar4->data;\n  pPVar4->body = pPVar4->data + 1;\n  pPVar4->length = iVar10 + -1;\n  pPVar4->type = (uint)bVar1;\n  if (pvVar8 != (void *)0x0) {\n    ssh2_log_incoming_packet(ssh_00,pPVar4);\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  }\n  pPVar4->savedpos = 0;\nLAB_0003243c:\n  ssh_00->ssh2_bare_rdpkt_crstate = 0;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Packet *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *type;" primitive_type (pointer_declarator "*type" * identifier) ;) (declaration "Ssh_conflict ssh_00;" type_identifier identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "Packet *pPVar7;" type_identifier (pointer_declarator "*pPVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *str;" primitive_type (pointer_declarator "*str" * identifier) ;) (declaration "int slen;" primitive_type identifier ;) (declaration "logblank_t blanks [4];" type_identifier (array_declarator "blanks [4]" identifier [ number_literal ]) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "iVar10 = ssh->logomitdata;" (assignment_expression "iVar10 = ssh->logomitdata" identifier = (field_expression "ssh->logomitdata" identifier -> field_identifier)) ;) (expression_statement "type = (int *)pkt->type;" (assignment_expression "type = (int *)pkt->type" identifier = (cast_expression "(int *)pkt->type" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pkt->type" identifier -> field_identifier))) ;) (expression_statement "pkt->savedpos = 0;" (assignment_expression "pkt->savedpos = 0" (field_expression "pkt->savedpos" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar2 = *(int *)puVar11;" (assignment_expression "iVar2 = *(int *)puVar11" identifier = (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)) {\n    pPVar4 = pkt;\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }\n  }" if (parenthesized_expression "((iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2))" ( (binary_expression "(iVar10 != 0) && (iVar10 = 0, (int)type - 0x5eU < 2)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar10 = 0, (int)type - 0x5eU < 2)" ( (comma_expression "iVar10 = 0, (int)type - 0x5eU < 2" (assignment_expression "iVar10 = 0" identifier = number_literal) , (binary_expression "(int)type - 0x5eU < 2" (binary_expression "(int)type - 0x5eU" (cast_expression "(int)type" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal)) ))) )) (compound_statement "{\n    pPVar4 = pkt;\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }\n  }" { (expression_statement "pPVar4 = pkt;" (assignment_expression "pPVar4 = pkt" identifier = identifier) ;) (expression_statement "ssh_pkt_getuint32(pkt);" (call_expression "ssh_pkt_getuint32(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) (if_statement "if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pPVar4);\n    }" if (parenthesized_expression "(pkt->type == 0x5f)" ( (binary_expression "pkt->type == 0x5f" (field_expression "pkt->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      ssh_pkt_getuint32(pPVar4);\n    }" { (expression_statement "ssh_pkt_getuint32(pPVar4);" (call_expression "ssh_pkt_getuint32(pPVar4)" identifier (argument_list "(pPVar4)" ( identifier ))) ;) })) (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 "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 "ssh_pkt_getstring(pkt,&str,&slen);" (call_expression "ssh_pkt_getstring(pkt,&str,&slen)" identifier (argument_list "(pkt,&str,&slen)" ( identifier , (pointer_expression "&str" & identifier) , (pointer_expression "&slen" & identifier) ))) ;) (if_statement "if (str == (char *)0x0) {\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }\n    else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }" if (parenthesized_expression "(str == (char *)0x0)" ( (binary_expression "str == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      type = (int *)pkt->type;\n      iVar10 = 0;\n    }" { (expression_statement "type = (int *)pkt->type;" (assignment_expression "type = (int *)pkt->type" identifier = (cast_expression "(int *)pkt->type" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pkt->type" identifier -> field_identifier))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }" else (compound_statement "{\n      iVar10 = 1;\n      type = (int *)pkt->type;\n    }" { (expression_statement "iVar10 = 1;" (assignment_expression "iVar10 = 1" identifier = number_literal) ;) (expression_statement "type = (int *)pkt->type;" (assignment_expression "type = (int *)pkt->type" identifier = (cast_expression "(int *)pkt->type" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pkt->type" identifier -> field_identifier))) ;) }))) })) (expression_statement "pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type);" (assignment_expression "pcVar3 = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type)" identifier = (call_expression "ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,(int)type)" identifier (argument_list "(ssh->pkt_kctx,ssh->pkt_actx,(int)type)" ( (field_expression "ssh->pkt_kctx" identifier -> field_identifier) , (field_expression "ssh->pkt_actx" identifier -> field_identifier) , (cast_expression "(int)type" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ssh_00 = (Ssh_conflict)ssh->logctx;" (assignment_expression "ssh_00 = (Ssh_conflict)ssh->logctx" identifier = (cast_expression "(Ssh_conflict)ssh->logctx" ( (type_descriptor "Ssh_conflict" type_identifier) ) (field_expression "ssh->logctx" identifier -> field_identifier))) ;) (expression_statement "log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0);" (call_expression "log_packet(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0)" identifier (argument_list "(ssh_00,0,(int)type,pcVar3,pkt->body,pkt->length,iVar10,blanks,&pkt->sequence,0,\n             (char *)0x0)" ( identifier , number_literal , (cast_expression "(int)type" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , (field_expression "pkt->body" identifier -> field_identifier) , (field_expression "pkt->length" identifier -> field_identifier) , identifier , identifier , (pointer_expression "&pkt->sequence" & (field_expression "pkt->sequence" identifier -> field_identifier)) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (iVar2 == *(int *)puVar11) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar11)" ( (binary_expression "iVar2 == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar11 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = ssh_00->ssh2_bare_rdpkt_crstate;" (assignment_expression "iVar2 = ssh_00->ssh2_bare_rdpkt_crstate" identifier = (field_expression "ssh_00->ssh2_bare_rdpkt_crstate" identifier -> field_identifier)) ;) (if_statement "if (iVar2 != 0x78e) {\n    if (iVar2 == 0x7a5) goto LAB_00032540;\n    if (iVar2 != 0) goto LAB_0003243c;\n    (ssh_00->rdpkt2_bare_state).i = 0;\n  }" if (parenthesized_expression "(iVar2 != 0x78e)" ( (binary_expression "iVar2 != 0x78e" identifier != number_literal) )) (compound_statement "{\n    if (iVar2 == 0x7a5) goto LAB_00032540;\n    if (iVar2 != 0) goto LAB_0003243c;\n    (ssh_00->rdpkt2_bare_state).i = 0;\n  }" { (if_statement "if (iVar2 == 0x7a5) goto LAB_00032540;" if (parenthesized_expression "(iVar2 == 0x7a5)" ( (binary_expression "iVar2 == 0x7a5" identifier == number_literal) )) (goto_statement "goto LAB_00032540;" goto statement_identifier ;)) (if_statement "if (iVar2 != 0) goto LAB_0003243c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003243c;" goto statement_identifier ;)) (expression_statement "(ssh_00->rdpkt2_bare_state).i = 0;" (assignment_expression "(ssh_00->rdpkt2_bare_state).i = 0" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) })) (do_statement "do {\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }\n    pcVar3 = (char *)*puVar6;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = pcVar3 + 1;\n    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  } while (iVar2 < 4);" do (compound_statement "{\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }\n    pcVar3 = (char *)*puVar6;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = pcVar3 + 1;\n    (ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }" { (if_statement "if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }" if (parenthesized_expression "(*type == 0)" ( (binary_expression "*type == 0" (pointer_expression "*type" * identifier) == number_literal) )) (compound_statement "{\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;\n      return;\n    }" { (expression_statement "ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;" (assignment_expression "ssh_00->ssh2_bare_rdpkt_crstate = 0x78e" (field_expression "ssh_00->ssh2_bare_rdpkt_crstate" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar3 = (char *)*puVar6;" (assignment_expression "pcVar3 = (char *)*puVar6" identifier = (cast_expression "(char *)*puVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "iVar2 = (ssh_00->rdpkt2_bare_state).i;" (assignment_expression "iVar2 = (ssh_00->rdpkt2_bare_state).i" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*puVar6 = pcVar3 + 1;" (assignment_expression "*puVar6 = pcVar3 + 1" (pointer_expression "*puVar6" * identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3;" (assignment_expression "(ssh_00->rdpkt2_bare_state).length[iVar2] = *pcVar3" (subscript_expression "(ssh_00->rdpkt2_bare_state).length[iVar2]" (field_expression "(ssh_00->rdpkt2_bare_state).length" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) [ identifier ]) = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "*type = *type + -1;" (assignment_expression "*type = *type + -1" (pointer_expression "*type" * identifier) = (binary_expression "*type + -1" (pointer_expression "*type" * identifier) + number_literal)) ;) (expression_statement "iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;" (assignment_expression "iVar2 = (ssh_00->rdpkt2_bare_state).i + 1" identifier = (binary_expression "(ssh_00->rdpkt2_bare_state).i + 1" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).i = iVar2;" (assignment_expression "(ssh_00->rdpkt2_bare_state).i = iVar2" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }) while (parenthesized_expression "(iVar2 < 4)" ( (binary_expression "iVar2 < 4" identifier < number_literal) )) ;) (expression_statement "iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length);" (assignment_expression "iVar2 = toint(*(uint *)(ssh_00->rdpkt2_bare_state).length)" identifier = (call_expression "toint(*(uint *)(ssh_00->rdpkt2_bare_state).length)" identifier (argument_list "(*(uint *)(ssh_00->rdpkt2_bare_state).length)" ( (pointer_expression "*(uint *)(ssh_00->rdpkt2_bare_state).length" * (cast_expression "(uint *)(ssh_00->rdpkt2_bare_state).length" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(ssh_00->rdpkt2_bare_state).length" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier))) )))) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).packetlen = iVar2;" (assignment_expression "(ssh_00->rdpkt2_bare_state).packetlen = iVar2" (field_expression "(ssh_00->rdpkt2_bare_state).packetlen" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (0x8ffe < iVar2 - 1U) {\n    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));\n    bomb_out(ssh_00,pcVar3);\n    ssh_00->ssh2_bare_rdpkt_crstate = 0;\n    return;\n  }" if (parenthesized_expression "(0x8ffe < iVar2 - 1U)" ( (binary_expression "0x8ffe < iVar2 - 1U" number_literal < (binary_expression "iVar2 - 1U" identifier - number_literal)) )) (compound_statement "{\n    pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));\n    bomb_out(ssh_00,pcVar3);\n    ssh_00->ssh2_bare_rdpkt_crstate = 0;\n    return;\n  }" { (expression_statement "pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc));" (assignment_expression "pcVar3 = dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc))" identifier = (call_expression "dupprintf((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc))" identifier (argument_list "((char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc))" ( (cast_expression "(char *)(*(int *)(puVar11 + 0x7aedc) + -0x2bbc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar11 + 0x7aedc) + -0x2bbc)" ( (binary_expression "*(int *)(puVar11 + 0x7aedc) + -0x2bbc" (pointer_expression "*(int *)(puVar11 + 0x7aedc)" * (cast_expression "(int *)(puVar11 + 0x7aedc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x7aedc)" ( (binary_expression "puVar11 + 0x7aedc" identifier + number_literal) )))) + number_literal) ))) )))) ;) (expression_statement "bomb_out(ssh_00,pcVar3);" (call_expression "bomb_out(ssh_00,pcVar3)" identifier (argument_list "(ssh_00,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "ssh_00->ssh2_bare_rdpkt_crstate = 0;" (assignment_expression "ssh_00->ssh2_bare_rdpkt_crstate = 0" (field_expression "ssh_00->ssh2_bare_rdpkt_crstate" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "pPVar4 = (Packet *)safemalloc(1,0x2c);" (assignment_expression "pPVar4 = (Packet *)safemalloc(1,0x2c)" identifier = (cast_expression "(Packet *)safemalloc(1,0x2c)" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x2c)" identifier (argument_list "(1,0x2c)" ( number_literal , number_literal ))))) ;) (expression_statement "n = (ssh_00->rdpkt2_bare_state).packetlen;" (assignment_expression "n = (ssh_00->rdpkt2_bare_state).packetlen" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).packetlen" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pPVar4->data = (uchar *)0x0;" (assignment_expression "pPVar4->data = (uchar *)0x0" (field_expression "pPVar4->data" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pPVar4->body = (uchar *)0x0;" (assignment_expression "pPVar4->body = (uchar *)0x0" (field_expression "pPVar4->body" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pPVar4->maxlen = 0;" (assignment_expression "pPVar4->maxlen = 0" (field_expression "pPVar4->maxlen" identifier -> field_identifier) = number_literal) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).pktin = pPVar4;" (assignment_expression "(ssh_00->rdpkt2_bare_state).pktin = pPVar4" (field_expression "(ssh_00->rdpkt2_bare_state).pktin" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "puVar5 = (uchar *)safemalloc(n,1);" (assignment_expression "puVar5 = (uchar *)safemalloc(n,1)" identifier = (cast_expression "(uchar *)safemalloc(n,1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(n,1)" identifier (argument_list "(n,1)" ( identifier , number_literal ))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence;" (assignment_expression "uVar9 = (ssh_00->rdpkt2_bare_state).incoming_sequence" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).incoming_sequence" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;" (assignment_expression "pPVar7 = (ssh_00->rdpkt2_bare_state).pktin" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).pktin" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;" (assignment_expression "iVar10 = (ssh_00->rdpkt2_bare_state).packetlen" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).packetlen" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pPVar4->data = puVar5;" (assignment_expression "pPVar4->data = puVar5" (field_expression "pPVar4->data" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar7->encrypted_len = iVar10;" (assignment_expression "pPVar7->encrypted_len = iVar10" (field_expression "pPVar7->encrypted_len" identifier -> field_identifier) = identifier) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1;" (assignment_expression "(ssh_00->rdpkt2_bare_state).incoming_sequence = uVar9 + 1" (field_expression "(ssh_00->rdpkt2_bare_state).incoming_sequence" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "pPVar7->sequence = uVar9;" (assignment_expression "pPVar7->sequence = uVar9" (field_expression "pPVar7->sequence" identifier -> field_identifier) = identifier) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).i = 0;" (assignment_expression "(ssh_00->rdpkt2_bare_state).i = 0" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (while_statement "while (iVar2 < iVar10) {\nLAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }\n    puVar5 = (uchar *)*puVar6;\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = puVar5 + 1;\n    pPVar4->data[iVar2] = *puVar5;\n    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }" while (parenthesized_expression "(iVar2 < iVar10)" ( (binary_expression "iVar2 < iVar10" identifier < identifier) )) (compound_statement "{\nLAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }\n    puVar5 = (uchar *)*puVar6;\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i;\n    *puVar6 = puVar5 + 1;\n    pPVar4->data[iVar2] = *puVar5;\n    iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;\n    *type = *type + -1;\n    iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;\n    (ssh_00->rdpkt2_bare_state).i = iVar2;\n  }" { (labeled_statement "LAB_00032540:\n    if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }" statement_identifier : (if_statement "if (*type == 0) {\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }" if (parenthesized_expression "(*type == 0)" ( (binary_expression "*type == 0" (pointer_expression "*type" * identifier) == number_literal) )) (compound_statement "{\n      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;\n      return;\n    }" { (expression_statement "ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;" (assignment_expression "ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5" (field_expression "ssh_00->ssh2_bare_rdpkt_crstate" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) }))) (expression_statement "puVar5 = (uchar *)*puVar6;" (assignment_expression "puVar5 = (uchar *)*puVar6" identifier = (cast_expression "(uchar *)*puVar6" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;" (assignment_expression "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).pktin" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar2 = (ssh_00->rdpkt2_bare_state).i;" (assignment_expression "iVar2 = (ssh_00->rdpkt2_bare_state).i" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*puVar6 = puVar5 + 1;" (assignment_expression "*puVar6 = puVar5 + 1" (pointer_expression "*puVar6" * identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "pPVar4->data[iVar2] = *puVar5;" (assignment_expression "pPVar4->data[iVar2] = *puVar5" (subscript_expression "pPVar4->data[iVar2]" (field_expression "pPVar4->data" identifier -> field_identifier) [ identifier ]) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "iVar10 = (ssh_00->rdpkt2_bare_state).packetlen;" (assignment_expression "iVar10 = (ssh_00->rdpkt2_bare_state).packetlen" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).packetlen" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*type = *type + -1;" (assignment_expression "*type = *type + -1" (pointer_expression "*type" * identifier) = (binary_expression "*type + -1" (pointer_expression "*type" * identifier) + number_literal)) ;) (expression_statement "iVar2 = (ssh_00->rdpkt2_bare_state).i + 1;" (assignment_expression "iVar2 = (ssh_00->rdpkt2_bare_state).i + 1" identifier = (binary_expression "(ssh_00->rdpkt2_bare_state).i + 1" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "(ssh_00->rdpkt2_bare_state).i = iVar2;" (assignment_expression "(ssh_00->rdpkt2_bare_state).i = iVar2" (field_expression "(ssh_00->rdpkt2_bare_state).i" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (expression_statement "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;" (assignment_expression "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).pktin" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pvVar8 = ssh_00->logctx;" (assignment_expression "pvVar8 = ssh_00->logctx" identifier = (field_expression "ssh_00->logctx" identifier -> field_identifier)) ;) (expression_statement "bVar1 = *pPVar4->data;" (assignment_expression "bVar1 = *pPVar4->data" identifier = (pointer_expression "*pPVar4->data" * (field_expression "pPVar4->data" identifier -> field_identifier))) ;) (expression_statement "pPVar4->body = pPVar4->data + 1;" (assignment_expression "pPVar4->body = pPVar4->data + 1" (field_expression "pPVar4->body" identifier -> field_identifier) = (binary_expression "pPVar4->data + 1" (field_expression "pPVar4->data" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pPVar4->length = iVar10 + -1;" (assignment_expression "pPVar4->length = iVar10 + -1" (field_expression "pPVar4->length" identifier -> field_identifier) = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) (expression_statement "pPVar4->type = (uint)bVar1;" (assignment_expression "pPVar4->type = (uint)bVar1" (field_expression "pPVar4->type" identifier -> field_identifier) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (pvVar8 != (void *)0x0) {\n    ssh2_log_incoming_packet(ssh_00,pPVar4);\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  }" if (parenthesized_expression "(pvVar8 != (void *)0x0)" ( (binary_expression "pvVar8 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ssh2_log_incoming_packet(ssh_00,pPVar4);\n    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;\n  }" { (expression_statement "ssh2_log_incoming_packet(ssh_00,pPVar4);" (call_expression "ssh2_log_incoming_packet(ssh_00,pPVar4)" identifier (argument_list "(ssh_00,pPVar4)" ( identifier , identifier ))) ;) (expression_statement "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;" (assignment_expression "pPVar4 = (ssh_00->rdpkt2_bare_state).pktin" identifier = (field_expression "(ssh_00->rdpkt2_bare_state).pktin" (parenthesized_expression "(ssh_00->rdpkt2_bare_state)" ( (field_expression "ssh_00->rdpkt2_bare_state" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "pPVar4->savedpos = 0;" (assignment_expression "pPVar4->savedpos = 0" (field_expression "pPVar4->savedpos" identifier -> field_identifier) = number_literal) ;) (labeled_statement "LAB_0003243c:\n  ssh_00->ssh2_bare_rdpkt_crstate = 0;" statement_identifier : (expression_statement "ssh_00->ssh2_bare_rdpkt_crstate = 0;" (assignment_expression "ssh_00->ssh2_bare_rdpkt_crstate = 0" (field_expression "ssh_00->ssh2_bare_rdpkt_crstate" identifier -> field_identifier) = number_literal) ;)) (return_statement "return;" return ;) })))
(translation_unit "int * FUN_00032278(int param_1,int param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}\n\n" (function_definition "int * FUN_00032278(int param_1,int param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" primitive_type (pointer_declarator "* FUN_00032278(int param_1,int param_2)" * (function_declarator "FUN_00032278(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "undefined1 local_48 [4];" type_identifier (array_declarator "local_48 [4]" identifier [ number_literal ]) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar13 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar12 = *(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) ))))) ;) (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_14 = *(int **)puVar13;" (assignment_expression "local_14 = *(int **)puVar13" identifier = (pointer_expression "*(int **)puVar13" * (cast_expression "(int **)puVar13" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" if (parenthesized_expression "((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2))" ( (binary_expression "(iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)" (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) && (parenthesized_expression "((int)piVar4 - 0x5eU < 2)" ( (binary_expression "(int)piVar4 - 0x5eU < 2" (binary_expression "(int)piVar4 - 0x5eU" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal) ))) )) (compound_statement "{\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" { (expression_statement "FUN_0002f068(param_2);" (call_expression "FUN_0002f068(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" ( (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_0002f068();\n    }" { (expression_statement "FUN_0002f068();" (call_expression "FUN_0002f068()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_3c = 2;" (assignment_expression "local_3c = 2" identifier = number_literal) ;) (expression_statement "local_44 = *(int *)(param_2 + 0x18) + 4;" (assignment_expression "local_44 = *(int *)(param_2 + 0x18) + 4" identifier = (binary_expression "*(int *)(param_2 + 0x18) + 4" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0002fb84(param_2,&local_4c,local_48);" (call_expression "FUN_0002fb84(param_2,&local_4c,local_48)" identifier (argument_list "(param_2,&local_4c,local_48)" ( identifier , (pointer_expression "&local_4c" & identifier) , identifier ))) ;) (if_statement "if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" if (parenthesized_expression "(local_4c == 0)" ( (binary_expression "local_4c == 0" identifier == number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" { (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" else (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" { (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" identifier = (pointer_expression "*(int **)(param_2 + 8)" * (cast_expression "(int **)(param_2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }))) })) (expression_statement "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));" (call_expression "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x184)" * (cast_expression "(undefined4 *)(param_1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x184)" ( (binary_expression "param_1 + 0x184" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x188)" * (cast_expression "(undefined4 *)(param_1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) ))) ;) (expression_statement "puVar9 = (undefined4 *)0x0;" (assignment_expression "puVar9 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "log_packet();" (call_expression "log_packet()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = *(int **)puVar13;" (assignment_expression "piVar2 = *(int **)puVar13" identifier = (pointer_expression "*(int **)puVar13" * (cast_expression "(int **)puVar13" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (local_14 == piVar2) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_14 == piVar2)" ( (binary_expression "local_14 == piVar2" identifier == identifier) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "puVar13 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar13 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x1b8);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x1b8)" identifier = (pointer_expression "*(int *)(iVar12 + 0x1b8)" * (cast_expression "(int *)(iVar12 + 0x1b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" if (parenthesized_expression "(iVar3 != 0x78e)" ( (binary_expression "iVar3 != 0x78e" identifier != number_literal) )) (compound_statement "{\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" { (if_statement "if (iVar3 == 0x7a5) goto LAB_00032540;" if (parenthesized_expression "(iVar3 == 0x7a5)" ( (binary_expression "iVar3 == 0x7a5" identifier == number_literal) )) (goto_statement "goto LAB_00032540;" goto statement_identifier ;)) (if_statement "if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" { (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0003243c;" goto statement_identifier ;) })) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" * (cast_expression "(undefined4 *)(iVar12 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = number_literal) ;) })) (do_statement "do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);" do (compound_statement "{\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  }" { (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" { (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" identifier = (cast_expression "(undefined1 *)*puVar9" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c)" identifier = (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;" (assignment_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5" (pointer_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224)" * (cast_expression "(undefined1 *)(iVar12 + iVar3 + 0x224)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar3 + 0x224)" ( (binary_expression "iVar12 + iVar3 + 0x224" (binary_expression "iVar12 + iVar3" identifier + identifier) + number_literal) )))) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c) + 1" identifier = (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar3 < 4)" ( (binary_expression "iVar3 < 4" identifier < number_literal) )) ;) (expression_statement "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));" (assignment_expression "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224))" identifier = (call_expression "toint(*(undefined4 *)(iVar12 + 0x224))" identifier (argument_list "(*(undefined4 *)(iVar12 + 0x224))" ( (pointer_expression "*(undefined4 *)(iVar12 + 0x224)" * (cast_expression "(undefined4 *)(iVar12 + 0x224)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x224)" ( (binary_expression "iVar12 + 0x224" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(iVar12 + 0x228) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x228) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" if (parenthesized_expression "(0x8ffe < iVar3 - 1U)" ( (binary_expression "0x8ffe < iVar3 - 1U" number_literal < (binary_expression "iVar3 - 1U" identifier - number_literal)) )) (compound_statement "{\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" { (expression_statement "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);" (assignment_expression "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" identifier = (call_expression "dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" identifier (argument_list "(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" ( (binary_expression "*(int *)(puVar13 + 0x7aedc) + -0x2bbc" (pointer_expression "*(int *)(puVar13 + 0x7aedc)" * (cast_expression "(int *)(puVar13 + 0x7aedc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x7aedc)" ( (binary_expression "puVar13 + 0x7aedc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "FUN_000306ac(iVar12,uVar7);" (call_expression "FUN_000306ac(iVar12,uVar7)" identifier (argument_list "(iVar12,uVar7)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = safemalloc(1,0x2c);" (assignment_expression "iVar3 = safemalloc(1,0x2c)" identifier = (call_expression "safemalloc(1,0x2c)" identifier (argument_list "(1,0x2c)" ( number_literal , number_literal )))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar12 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar12 + 0x228)" identifier = (pointer_expression "*(undefined4 *)(iVar12 + 0x228)" * (cast_expression "(undefined4 *)(iVar12 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" * (cast_expression "(undefined4 *)(iVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar12 + 0x234) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x234) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar7 = safemalloc(uVar7,1);" (assignment_expression "uVar7 = safemalloc(uVar7,1)" identifier = (call_expression "safemalloc(uVar7,1)" identifier (argument_list "(uVar7,1)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = *(int *)(iVar12 + 0x230);" (assignment_expression "iVar11 = *(int *)(iVar12 + 0x230)" identifier = (pointer_expression "*(int *)(iVar12 + 0x230)" * (cast_expression "(int *)(iVar12 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x230)" ( (binary_expression "iVar12 + 0x230" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar10 = *(int *)(iVar12 + 0x234)" identifier = (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" identifier = (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar10 + 0x20) = iVar8;" (assignment_expression "*(int *)(iVar10 + 0x20) = iVar8" (pointer_expression "*(int *)(iVar10 + 0x20)" * (cast_expression "(int *)(iVar10 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x20)" ( (binary_expression "iVar10 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar12 + 0x230) = iVar11 + 1;" (assignment_expression "*(int *)(iVar12 + 0x230) = iVar11 + 1" (pointer_expression "*(int *)(iVar12 + 0x230)" * (cast_expression "(int *)(iVar12 + 0x230)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x230)" ( (binary_expression "iVar12 + 0x230" identifier + number_literal) )))) = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar10 + 0xc) = iVar11;" (assignment_expression "*(int *)(iVar10 + 0xc) = iVar11" (pointer_expression "*(int *)(iVar10 + 0xc)" * (cast_expression "(int *)(iVar10 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0xc)" ( (binary_expression "iVar10 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" * (cast_expression "(undefined4 *)(iVar12 + 0x22c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = number_literal) ;) (while_statement "while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" while (parenthesized_expression "(iVar6 < iVar8)" ( (binary_expression "iVar6 < iVar8" identifier < identifier) )) (compound_statement "{\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" { (labeled_statement "LAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" statement_identifier : (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" { (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" identifier = (cast_expression "(undefined1 *)*puVar9" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x234)" identifier = (pointer_expression "*(int *)(iVar12 + 0x234)" * (cast_expression "(int *)(iVar12 + 0x234)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c)" identifier = (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) ))))) ;) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;" (assignment_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5" (pointer_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" * (cast_expression "(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0x10) + iVar6)" ( (binary_expression "*(int *)(iVar3 + 0x10) + iVar6" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) + identifier) )))) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" identifier = (pointer_expression "*(int *)(iVar12 + 0x228)" * (cast_expression "(int *)(iVar12 + 0x228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x228)" ( (binary_expression "iVar12 + 0x228" identifier + number_literal) ))))) ;) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c) + 1" identifier = (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar6;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar6" (pointer_expression "*(int *)(iVar12 + 0x22c)" * (cast_expression "(int *)(iVar12 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x22c)" ( (binary_expression "iVar12 + 0x22c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar12 + 0x18);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x18)" identifier = (pointer_expression "*(int *)(iVar12 + 0x18)" * (cast_expression "(int *)(iVar12 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x18)" ( (binary_expression "iVar12 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *(byte *)piVar4[4];" (assignment_expression "bVar1 = *(byte *)piVar4[4]" identifier = (pointer_expression "*(byte *)piVar4[4]" * (cast_expression "(byte *)piVar4[4]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[4]" identifier [ number_literal ])))) ;) (expression_statement "piVar4[5] = (int)((byte *)piVar4[4] + 1);" (assignment_expression "piVar4[5] = (int)((byte *)piVar4[4] + 1)" (subscript_expression "piVar4[5]" identifier [ number_literal ]) = (cast_expression "(int)((byte *)piVar4[4] + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((byte *)piVar4[4] + 1)" ( (binary_expression "(byte *)piVar4[4] + 1" (cast_expression "(byte *)piVar4[4]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[4]" identifier [ number_literal ])) + number_literal) )))) ;) (expression_statement "*piVar4 = iVar8 + -1;" (assignment_expression "*piVar4 = iVar8 + -1" (pointer_expression "*piVar4" * identifier) = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "piVar4[2] = (uint)bVar1;" (assignment_expression "piVar4[2] = (uint)bVar1" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" { (expression_statement "FUN_00032278(iVar12,piVar4);" (call_expression "FUN_00032278(iVar12,piVar4)" identifier (argument_list "(iVar12,piVar4)" ( identifier , identifier ))) ;) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" identifier = (pointer_expression "*(int **)(iVar12 + 0x234)" * (cast_expression "(int **)(iVar12 + 0x234)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x234)" ( (binary_expression "iVar12 + 0x234" identifier + number_literal) ))))) ;) })) (expression_statement "piVar4[6] = 0;" (assignment_expression "piVar4[6] = 0" (subscript_expression "piVar4[6]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1b8)" ( (binary_expression "iVar12 + 0x1b8" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) < LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (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) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00032278(int param_1,int param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" (primitive_type "int") (pointer_declarator "* FUN_00032278(int param_1,int param_2)" (* "*") (function_declarator "FUN_00032278(int param_1,int param_2)" (identifier "FUN_00032278") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  int local_4c;\n  undefined1 local_48 [4];\n  int local_44;\n  undefined4 local_3c;\n  int *local_14;\n  \n  puVar13 = PTR___stack_chk_guard_000adcd4;\n  iVar12 = *(int *)(param_1 + 0x24c);\n  piVar4 = *(int **)(param_2 + 8);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  local_14 = *(int **)puVar13;\n  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }\n  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));\n  puVar9 = (undefined4 *)0x0;\n  iVar12 = *(int *)(param_1 + 0x18);\n  log_packet();\n  piVar2 = *(int **)puVar13;\n  if (local_14 == piVar2) {\n    return piVar2;\n  }\n  puVar13 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  iVar3 = *(int *)(iVar12 + 0x1b8);\n  if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }\n  do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);\n  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));\n  *(int *)(iVar12 + 0x228) = iVar3;\n  if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }\n  iVar3 = safemalloc(1,0x2c);\n  uVar7 = *(undefined4 *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = 0;\n  *(undefined4 *)(iVar3 + 0x14) = 0;\n  *(undefined4 *)(iVar3 + 0x1c) = 0;\n  *(int *)(iVar12 + 0x234) = iVar3;\n  uVar7 = safemalloc(uVar7,1);\n  iVar6 = 0;\n  iVar11 = *(int *)(iVar12 + 0x230);\n  iVar10 = *(int *)(iVar12 + 0x234);\n  iVar8 = *(int *)(iVar12 + 0x228);\n  *(undefined4 *)(iVar3 + 0x10) = uVar7;\n  *(int *)(iVar10 + 0x20) = iVar8;\n  *(int *)(iVar12 + 0x230) = iVar11 + 1;\n  *(int *)(iVar10 + 0xc) = iVar11;\n  *(undefined4 *)(iVar12 + 0x22c) = 0;\n  while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }\n  piVar4 = *(int **)(iVar12 + 0x234);\n  iVar3 = *(int *)(iVar12 + 0x18);\n  bVar1 = *(byte *)piVar4[4];\n  piVar4[5] = (int)((byte *)piVar4[4] + 1);\n  *piVar4 = iVar8 + -1;\n  piVar4[2] = (uint)bVar1;\n  if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }\n  piVar4[6] = 0;\nLAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;\n  return piVar4;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined *puVar13;" (type_identifier "undefined") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "int local_4c;" (primitive_type "int") (identifier "local_4c") (; ";")) (declaration "undefined1 local_48 [4];" (type_identifier "undefined1") (array_declarator "local_48 [4]" (identifier "local_48") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "int *local_14;" (primitive_type "int") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (expression_statement "puVar13 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar13 = PTR___stack_chk_guard_000adcd4" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_guard_000adcd4")) (; ";")) (expression_statement "iVar12 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x24c)" (identifier "iVar12") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_2 + 8)" (* "*") (cast_expression "(int **)(param_2 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = *(int **)puVar13;" (assignment_expression "local_14 = *(int **)puVar13" (identifier "local_14") (= "=") (pointer_expression "*(int **)puVar13" (* "*") (cast_expression "(int **)puVar13" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar13")))) (; ";")) (if_statement "if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" (if "if") (parenthesized_expression "((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2))" (( "(") (binary_expression "(iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)" (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((int)piVar4 - 0x5eU < 2)" (( "(") (binary_expression "(int)piVar4 - 0x5eU < 2" (binary_expression "(int)piVar4 - 0x5eU" (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4")) (- "-") (number_literal "0x5eU")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    FUN_0002f068(param_2);\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }\n    local_3c = 2;\n    local_44 = *(int *)(param_2 + 0x18) + 4;\n    FUN_0002fb84(param_2,&local_4c,local_48);\n    if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n  }" ({ "{") (expression_statement "FUN_0002f068(param_2);" (call_expression "FUN_0002f068(param_2)" (identifier "FUN_0002f068") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      FUN_0002f068();\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0x5f")) () ")")) (compound_statement "{\n      FUN_0002f068();\n    }" ({ "{") (expression_statement "FUN_0002f068();" (call_expression "FUN_0002f068()" (identifier "FUN_0002f068") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_3c = 2;" (assignment_expression "local_3c = 2" (identifier "local_3c") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_44 = *(int *)(param_2 + 0x18) + 4;" (assignment_expression "local_44 = *(int *)(param_2 + 0x18) + 4" (identifier "local_44") (= "=") (binary_expression "*(int *)(param_2 + 0x18) + 4" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "FUN_0002fb84(param_2,&local_4c,local_48);" (call_expression "FUN_0002fb84(param_2,&local_4c,local_48)" (identifier "FUN_0002fb84") (argument_list "(param_2,&local_4c,local_48)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_4c" (& "&") (identifier "local_4c")) (, ",") (identifier "local_48") () ")"))) (; ";")) (if_statement "if (local_4c == 0) {\n      piVar4 = *(int **)(param_2 + 8);\n    }\n    else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" (if "if") (parenthesized_expression "(local_4c == 0)" (( "(") (binary_expression "local_4c == 0" (identifier "local_4c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" ({ "{") (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_2 + 8)" (* "*") (cast_expression "(int **)(param_2 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      piVar4 = *(int **)(param_2 + 8);\n    }" (else "else") (compound_statement "{\n      piVar4 = *(int **)(param_2 + 8);\n    }" ({ "{") (expression_statement "piVar4 = *(int **)(param_2 + 8);" (assignment_expression "piVar4 = *(int **)(param_2 + 8)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_2 + 8)" (* "*") (cast_expression "(int **)(param_2 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));" (call_expression "FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" (identifier "FUN_00031e0c") (argument_list "(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x184)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x184)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x184)" (( "(") (binary_expression "param_1 + 0x184" (identifier "param_1") (+ "+") (number_literal "0x184")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x188)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x188)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar9 = (undefined4 *)0x0;" (assignment_expression "puVar9 = (undefined4 *)0x0" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar12 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x18)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "log_packet();" (call_expression "log_packet()" (identifier "log_packet") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar2 = *(int **)puVar13;" (assignment_expression "piVar2 = *(int **)puVar13" (identifier "piVar2") (= "=") (pointer_expression "*(int **)puVar13" (* "*") (cast_expression "(int **)puVar13" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar13")))) (; ";")) (if_statement "if (local_14 == piVar2) {\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(local_14 == piVar2)" (( "(") (binary_expression "local_14 == piVar2" (identifier "local_14") (== "==") (identifier "piVar2")) () ")")) (compound_statement "{\n    return piVar2;\n  }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "puVar13 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar13 = PTR___stack_chk_fail_000adca4" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_fail_000adca4")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000adca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000adca4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar12 + 0x1b8);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x1b8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar12 + 0x1b8)" (* "*") (cast_expression "(int *)(iVar12 + 0x1b8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1b8)" (( "(") (binary_expression "iVar12 + 0x1b8" (identifier "iVar12") (+ "+") (number_literal "0x1b8")) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0x78e) {\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0x78e)" (( "(") (binary_expression "iVar3 != 0x78e" (identifier "iVar3") (!= "!=") (number_literal "0x78e")) () ")")) (compound_statement "{\n    if (iVar3 == 0x7a5) goto LAB_00032540;\n    if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }\n    *(undefined4 *)(iVar12 + 0x22c) = 0;\n  }" ({ "{") (if_statement "if (iVar3 == 0x7a5) goto LAB_00032540;" (if "if") (parenthesized_expression "(iVar3 == 0x7a5)" (( "(") (binary_expression "iVar3 == 0x7a5" (identifier "iVar3") (== "==") (number_literal "0x7a5")) () ")")) (goto_statement "goto LAB_00032540;" (goto "goto") (statement_identifier "LAB_00032540") (; ";"))) (if_statement "if (iVar3 != 0) {\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = *(int **)(iVar12 + 0x234);\n      goto LAB_0003243c;\n    }" ({ "{") (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(iVar12 + 0x234)" (* "*") (cast_expression "(int **)(iVar12 + 0x234)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (goto_statement "goto LAB_0003243c;" (goto "goto") (statement_identifier "LAB_0003243c") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x22c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (do_statement "do {\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  } while (iVar3 < 4);" (do "do") (compound_statement "{\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;\n    *piVar4 = *piVar4 + -1;\n    iVar3 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar3;\n  }" ({ "{") (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;\n      return (int *)0x0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x78e" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1b8)" (( "(") (binary_expression "iVar12 + 0x1b8" (identifier "iVar12") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (number_literal "0x78e")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)*puVar9" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")"))))) (; ";")) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;" (assignment_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5" (pointer_expression "*(undefined1 *)(iVar12 + iVar3 + 0x224)" (* "*") (cast_expression "(undefined1 *)(iVar12 + iVar3 + 0x224)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar3 + 0x224)" (( "(") (binary_expression "iVar12 + iVar3 + 0x224" (binary_expression "iVar12 + iVar3" (identifier "iVar12") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "0x224")) () ")")))) (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x22c) + 1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < 4)" (( "(") (binary_expression "iVar3 < 4" (identifier "iVar3") (< "<") (number_literal "4")) () ")")) (; ";")) (expression_statement "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));" (assignment_expression "iVar3 = toint(*(undefined4 *)(iVar12 + 0x224))" (identifier "iVar3") (= "=") (call_expression "toint(*(undefined4 *)(iVar12 + 0x224))" (identifier "toint") (argument_list "(*(undefined4 *)(iVar12 + 0x224))" (( "(") (pointer_expression "*(undefined4 *)(iVar12 + 0x224)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x224)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x224)" (( "(") (binary_expression "iVar12 + 0x224" (identifier "iVar12") (+ "+") (number_literal "0x224")) () ")")))) () ")")))) (; ";")) (expression_statement "*(int *)(iVar12 + 0x228) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x228) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x228)" (* "*") (cast_expression "(int *)(iVar12 + 0x228)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x228)" (( "(") (binary_expression "iVar12 + 0x228" (identifier "iVar12") (+ "+") (number_literal "0x228")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (0x8ffe < iVar3 - 1U) {\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(0x8ffe < iVar3 - 1U)" (( "(") (binary_expression "0x8ffe < iVar3 - 1U" (number_literal "0x8ffe") (< "<") (binary_expression "iVar3 - 1U" (identifier "iVar3") (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);\n    FUN_000306ac(iVar12,uVar7);\n    *(undefined4 *)(iVar12 + 0x1b8) = 0;\n    return (int *)0x0;\n  }" ({ "{") (expression_statement "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);" (assignment_expression "uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" (identifier "uVar7") (= "=") (call_expression "dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" (identifier "dupprintf") (argument_list "(*(int *)(puVar13 + 0x7aedc) + -0x2bbc)" (( "(") (binary_expression "*(int *)(puVar13 + 0x7aedc) + -0x2bbc" (pointer_expression "*(int *)(puVar13 + 0x7aedc)" (* "*") (cast_expression "(int *)(puVar13 + 0x7aedc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x7aedc)" (( "(") (binary_expression "puVar13 + 0x7aedc" (identifier "puVar13") (+ "+") (number_literal "0x7aedc")) () ")")))) (+ "+") (number_literal "-0x2bbc")) () ")")))) (; ";")) (expression_statement "FUN_000306ac(iVar12,uVar7);" (call_expression "FUN_000306ac(iVar12,uVar7)" (identifier "FUN_000306ac") (argument_list "(iVar12,uVar7)" (( "(") (identifier "iVar12") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1b8)" (( "(") (binary_expression "iVar12 + 0x1b8" (identifier "iVar12") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar3 = safemalloc(1,0x2c);" (assignment_expression "iVar3 = safemalloc(1,0x2c)" (identifier "iVar3") (= "=") (call_expression "safemalloc(1,0x2c)" (identifier "safemalloc") (argument_list "(1,0x2c)" (( "(") (number_literal "1") (, ",") (number_literal "0x2c") () ")")))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(iVar12 + 0x228);" (assignment_expression "uVar7 = *(undefined4 *)(iVar12 + 0x228)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar12 + 0x228)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x228)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x228)" (( "(") (binary_expression "iVar12 + 0x228" (identifier "iVar12") (+ "+") (number_literal "0x228")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar12 + 0x234) = iVar3;" (assignment_expression "*(int *)(iVar12 + 0x234) = iVar3" (pointer_expression "*(int *)(iVar12 + 0x234)" (* "*") (cast_expression "(int *)(iVar12 + 0x234)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "uVar7 = safemalloc(uVar7,1);" (assignment_expression "uVar7 = safemalloc(uVar7,1)" (identifier "uVar7") (= "=") (call_expression "safemalloc(uVar7,1)" (identifier "safemalloc") (argument_list "(uVar7,1)" (( "(") (identifier "uVar7") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar11 = *(int *)(iVar12 + 0x230);" (assignment_expression "iVar11 = *(int *)(iVar12 + 0x230)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(iVar12 + 0x230)" (* "*") (cast_expression "(int *)(iVar12 + 0x230)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x230)" (( "(") (binary_expression "iVar12 + 0x230" (identifier "iVar12") (+ "+") (number_literal "0x230")) () ")"))))) (; ";")) (expression_statement "iVar10 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar10 = *(int *)(iVar12 + 0x234)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar12 + 0x234)" (* "*") (cast_expression "(int *)(iVar12 + 0x234)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar12 + 0x228)" (* "*") (cast_expression "(int *)(iVar12 + 0x228)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x228)" (( "(") (binary_expression "iVar12 + 0x228" (identifier "iVar12") (+ "+") (number_literal "0x228")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*(int *)(iVar10 + 0x20) = iVar8;" (assignment_expression "*(int *)(iVar10 + 0x20) = iVar8" (pointer_expression "*(int *)(iVar10 + 0x20)" (* "*") (cast_expression "(int *)(iVar10 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 0x20)" (( "(") (binary_expression "iVar10 + 0x20" (identifier "iVar10") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "*(int *)(iVar12 + 0x230) = iVar11 + 1;" (assignment_expression "*(int *)(iVar12 + 0x230) = iVar11 + 1" (pointer_expression "*(int *)(iVar12 + 0x230)" (* "*") (cast_expression "(int *)(iVar12 + 0x230)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x230)" (( "(") (binary_expression "iVar12 + 0x230" (identifier "iVar12") (+ "+") (number_literal "0x230")) () ")")))) (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar10 + 0xc) = iVar11;" (assignment_expression "*(int *)(iVar10 + 0xc) = iVar11" (pointer_expression "*(int *)(iVar10 + 0xc)" (* "*") (cast_expression "(int *)(iVar10 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 0xc)" (( "(") (binary_expression "iVar10 + 0xc" (identifier "iVar10") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar11")) (; ";")) (expression_statement "*(undefined4 *)(iVar12 + 0x22c) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x22c) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x22c)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x22c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar6 < iVar8) {\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" (while "while") (parenthesized_expression "(iVar6 < iVar8)" (( "(") (binary_expression "iVar6 < iVar8" (identifier "iVar6") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\nLAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }\n    puVar5 = (undefined1 *)*puVar9;\n    iVar3 = *(int *)(iVar12 + 0x234);\n    iVar6 = *(int *)(iVar12 + 0x22c);\n    *puVar9 = puVar5 + 1;\n    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;\n    iVar8 = *(int *)(iVar12 + 0x228);\n    *piVar4 = *piVar4 + -1;\n    iVar6 = *(int *)(iVar12 + 0x22c) + 1;\n    *(int *)(iVar12 + 0x22c) = iVar6;\n  }" ({ "{") (labeled_statement "LAB_00032540:\n    if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" (statement_identifier "LAB_00032540") (: ":") (if_statement "if (*piVar4 == 0) {\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;\n      return (int *)0x0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0x7a5" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1b8)" (( "(") (binary_expression "iVar12 + 0x1b8" (identifier "iVar12") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (number_literal "0x7a5")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))) (expression_statement "puVar5 = (undefined1 *)*puVar9;" (assignment_expression "puVar5 = (undefined1 *)*puVar9" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)*puVar9" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar12 + 0x234);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x234)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar12 + 0x234)" (* "*") (cast_expression "(int *)(iVar12 + 0x234)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c);" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")"))))) (; ";")) (expression_statement "*puVar9 = puVar5 + 1;" (assignment_expression "*puVar9 = puVar5 + 1" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;" (assignment_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5" (pointer_expression "*(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" (* "*") (cast_expression "(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar3 + 0x10) + iVar6)" (( "(") (binary_expression "*(int *)(iVar3 + 0x10) + iVar6" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar12 + 0x228);" (assignment_expression "iVar8 = *(int *)(iVar12 + 0x228)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar12 + 0x228)" (* "*") (cast_expression "(int *)(iVar12 + 0x228)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x228)" (( "(") (binary_expression "iVar12 + 0x228" (identifier "iVar12") (+ "+") (number_literal "0x228")) () ")"))))) (; ";")) (expression_statement "*piVar4 = *piVar4 + -1;" (assignment_expression "*piVar4 = *piVar4 + -1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + -1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar12 + 0x22c) + 1;" (assignment_expression "iVar6 = *(int *)(iVar12 + 0x22c) + 1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(iVar12 + 0x22c) + 1" (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar12 + 0x22c) = iVar6;" (assignment_expression "*(int *)(iVar12 + 0x22c) = iVar6" (pointer_expression "*(int *)(iVar12 + 0x22c)" (* "*") (cast_expression "(int *)(iVar12 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x22c)" (( "(") (binary_expression "iVar12 + 0x22c" (identifier "iVar12") (+ "+") (number_literal "0x22c")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(iVar12 + 0x234)" (* "*") (cast_expression "(int **)(iVar12 + 0x234)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar12 + 0x18);" (assignment_expression "iVar3 = *(int *)(iVar12 + 0x18)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar12 + 0x18)" (* "*") (cast_expression "(int *)(iVar12 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x18)" (( "(") (binary_expression "iVar12 + 0x18" (identifier "iVar12") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "bVar1 = *(byte *)piVar4[4];" (assignment_expression "bVar1 = *(byte *)piVar4[4]" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)piVar4[4]" (* "*") (cast_expression "(byte *)piVar4[4]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[4]" (identifier "piVar4") ([ "[") (number_literal "4") (] "]"))))) (; ";")) (expression_statement "piVar4[5] = (int)((byte *)piVar4[4] + 1);" (assignment_expression "piVar4[5] = (int)((byte *)piVar4[4] + 1)" (subscript_expression "piVar4[5]" (identifier "piVar4") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(int)((byte *)piVar4[4] + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((byte *)piVar4[4] + 1)" (( "(") (binary_expression "(byte *)piVar4[4] + 1" (cast_expression "(byte *)piVar4[4]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[4]" (identifier "piVar4") ([ "[") (number_literal "4") (] "]"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*piVar4 = iVar8 + -1;" (assignment_expression "*piVar4 = iVar8 + -1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar4[2] = (uint)bVar1;" (assignment_expression "piVar4[2] = (uint)bVar1" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (if_statement "if (iVar3 != 0) {\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00032278(iVar12,piVar4);\n    piVar4 = *(int **)(iVar12 + 0x234);\n  }" ({ "{") (expression_statement "FUN_00032278(iVar12,piVar4);" (call_expression "FUN_00032278(iVar12,piVar4)" (identifier "FUN_00032278") (argument_list "(iVar12,piVar4)" (( "(") (identifier "iVar12") (, ",") (identifier "piVar4") () ")"))) (; ";")) (expression_statement "piVar4 = *(int **)(iVar12 + 0x234);" (assignment_expression "piVar4 = *(int **)(iVar12 + 0x234)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(iVar12 + 0x234)" (* "*") (cast_expression "(int **)(iVar12 + 0x234)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + 0x234)" (( "(") (binary_expression "iVar12 + 0x234" (identifier "iVar12") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (} "}"))) (expression_statement "piVar4[6] = 0;" (assignment_expression "piVar4[6] = 0" (subscript_expression "piVar4[6]" (identifier "piVar4") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003243c:\n  *(undefined4 *)(iVar12 + 0x1b8) = 0;" (statement_identifier "LAB_0003243c") (: ":") (expression_statement "*(undefined4 *)(iVar12 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar12 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar12 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1b8)" (( "(") (binary_expression "iVar12 + 0x1b8" (identifier "iVar12") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 ssh,type_2 *pkt)

{
  type_3 bVar1;
  int var_7;
  char *var_8;
  type_2 *pPVar4;
  type_4 *var_15;
  int *type;
  type_1 ssh_00;
  size_t n;
  type_5 *puVar6;
  type_2 *pPVar7;
  void *var_16;
  type_6 var_14;
  int var_1;
  type_7 *var_11;
  char *var_4;
  int slen;
  type_8 blanks [4];
  
  var_11 = PTR___stack_chk_guard_000adcd4;
  var_1 = ssh->logomitdata;
  type = (int *)pkt->type;
  pkt->savedpos = 0;
  var_7 = *(int *)var_11;
  if ((var_1 != 0) && (var_1 = 0, (int)type - 0x5eU < 2)) {
    pPVar4 = pkt;
    var_2(pkt);
    if (pkt->type == 0x5f) {
      var_2(pPVar4);
    }
    blanks[0].type = 2;
    blanks[0].offset = pkt->savedpos + 4;
    var_3(pkt,&var_4,&slen);
    if (var_4 == (char *)0x0) {
      type = (int *)pkt->type;
      var_1 = 0;
    }
    else {
      var_1 = 1;
      type = (int *)pkt->type;
    }
  }
  var_8 = var_5(ssh->pkt_kctx,ssh->pkt_actx,(int)type);
  puVar6 = (type_5 *)0x0;
  ssh_00 = (type_1)ssh->logctx;
  var_6(ssh_00,0,(int)type,var_8,pkt->body,pkt->length,var_1,blanks,&pkt->sequence,0,
             (char *)0x0);
  if (var_7 == *(int *)var_11) {
    return;
  }
  var_11 = PTR___stack_chk_fail_000adca4;
  (*(type_9 *)PTR___stack_chk_fail_000adca4)();
  var_7 = ssh_00->ssh2_bare_rdpkt_crstate;
  if (var_7 != 0x78e) {
    if (var_7 == 0x7a5) goto LAB_00032540;
    if (var_7 != 0) goto LAB_0003243c;
    (ssh_00->rdpkt2_bare_state).i = 0;
  }
  do {
    if (*type == 0) {
      ssh_00->ssh2_bare_rdpkt_crstate = 0x78e;
      return;
    }
    var_8 = (char *)*puVar6;
    var_7 = (ssh_00->rdpkt2_bare_state).i;
    *puVar6 = var_8 + 1;
    (ssh_00->rdpkt2_bare_state).length[var_7] = *var_8;
    *type = *type + -1;
    var_7 = (ssh_00->rdpkt2_bare_state).i + 1;
    (ssh_00->rdpkt2_bare_state).i = var_7;
  } while (var_7 < 4);
  var_7 = var_9(*(type_10 *)(ssh_00->rdpkt2_bare_state).length);
  (ssh_00->rdpkt2_bare_state).packetlen = var_7;
  if (0x8ffe < var_7 - 1U) {
    var_8 = var_10((char *)(*(int *)(var_11 + 0x7aedc) + -0x2bbc));
    var_12(ssh_00,var_8);
    ssh_00->ssh2_bare_rdpkt_crstate = 0;
    return;
  }
  pPVar4 = (type_2 *)var_13(1,0x2c);
  n = (ssh_00->rdpkt2_bare_state).packetlen;
  pPVar4->data = (type_4 *)0x0;
  pPVar4->body = (type_4 *)0x0;
  pPVar4->maxlen = 0;
  (ssh_00->rdpkt2_bare_state).pktin = pPVar4;
  var_15 = (type_4 *)var_13(n,1);
  var_7 = 0;
  var_14 = (ssh_00->rdpkt2_bare_state).incoming_sequence;
  pPVar7 = (ssh_00->rdpkt2_bare_state).pktin;
  var_1 = (ssh_00->rdpkt2_bare_state).packetlen;
  pPVar4->data = var_15;
  pPVar7->encrypted_len = var_1;
  (ssh_00->rdpkt2_bare_state).incoming_sequence = var_14 + 1;
  pPVar7->sequence = var_14;
  (ssh_00->rdpkt2_bare_state).i = 0;
  while (var_7 < var_1) {
LAB_00032540:
    if (*type == 0) {
      ssh_00->ssh2_bare_rdpkt_crstate = 0x7a5;
      return;
    }
    var_15 = (type_4 *)*puVar6;
    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
    var_7 = (ssh_00->rdpkt2_bare_state).i;
    *puVar6 = var_15 + 1;
    pPVar4->data[var_7] = *var_15;
    var_1 = (ssh_00->rdpkt2_bare_state).packetlen;
    *type = *type + -1;
    var_7 = (ssh_00->rdpkt2_bare_state).i + 1;
    (ssh_00->rdpkt2_bare_state).i = var_7;
  }
  pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
  var_16 = ssh_00->logctx;
  bVar1 = *pPVar4->data;
  pPVar4->body = pPVar4->data + 1;
  pPVar4->length = var_1 + -1;
  pPVar4->type = (type_10)bVar1;
  if (var_16 != (void *)0x0) {
    function_1(ssh_00,pPVar4);
    pPVar4 = (ssh_00->rdpkt2_bare_state).pktin;
  }
  pPVar4->savedpos = 0;
LAB_0003243c:
  ssh_00->ssh2_bare_rdpkt_crstate = 0;
  return;
}


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

int * MASKED(int param_1,int param_2)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 *puVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  undefined *puVar13;
  int local_4c;
  undefined1 local_48 [4];
  int local_44;
  undefined4 local_3c;
  int *local_14;
  
  puVar13 = PTR___stack_chk_guard_000adcd4;
  iVar12 = *(int *)(param_1 + 0x24c);
  piVar4 = *(int **)(param_2 + 8);
  *(undefined4 *)(param_2 + 0x18) = 0;
  local_14 = *(int **)puVar13;
  if ((iVar12 != 0) && ((int)piVar4 - 0x5eU < 2)) {
    FUN_0002f068(param_2);
    if (*(int *)(param_2 + 8) == 0x5f) {
      FUN_0002f068();
    }
    local_3c = 2;
    local_44 = *(int *)(param_2 + 0x18) + 4;
    FUN_0002fb84(param_2,&local_4c,local_48);
    if (local_4c == 0) {
      piVar4 = *(int **)(param_2 + 8);
    }
    else {
      piVar4 = *(int **)(param_2 + 8);
    }
  }
  FUN_00031e0c(*(undefined4 *)(param_1 + 0x184),*(undefined4 *)(param_1 + 0x188));
  puVar9 = (undefined4 *)0x0;
  iVar12 = *(int *)(param_1 + 0x18);
  log_packet();
  piVar2 = *(int **)puVar13;
  if (local_14 == piVar2) {
    return piVar2;
  }
  puVar13 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  iVar3 = *(int *)(iVar12 + 0x1b8);
  if (iVar3 != 0x78e) {
    if (iVar3 == 0x7a5) goto LAB_00032540;
    if (iVar3 != 0) {
      piVar4 = *(int **)(iVar12 + 0x234);
      goto LAB_0003243c;
    }
    *(undefined4 *)(iVar12 + 0x22c) = 0;
  }
  do {
    if (*piVar4 == 0) {
      *(undefined4 *)(iVar12 + 0x1b8) = 0x78e;
      return (int *)0x0;
    }
    puVar5 = (undefined1 *)*puVar9;
    iVar3 = *(int *)(iVar12 + 0x22c);
    *puVar9 = puVar5 + 1;
    *(undefined1 *)(iVar12 + iVar3 + 0x224) = *puVar5;
    *piVar4 = *piVar4 + -1;
    iVar3 = *(int *)(iVar12 + 0x22c) + 1;
    *(int *)(iVar12 + 0x22c) = iVar3;
  } while (iVar3 < 4);
  iVar3 = toint(*(undefined4 *)(iVar12 + 0x224));
  *(int *)(iVar12 + 0x228) = iVar3;
  if (0x8ffe < iVar3 - 1U) {
    uVar7 = dupprintf(*(int *)(puVar13 + 0x7aedc) + -0x2bbc);
    FUN_000306ac(iVar12,uVar7);
    *(undefined4 *)(iVar12 + 0x1b8) = 0;
    return (int *)0x0;
  }
  iVar3 = safemalloc(1,0x2c);
  uVar7 = *(undefined4 *)(iVar12 + 0x228);
  *(undefined4 *)(iVar3 + 0x10) = 0;
  *(undefined4 *)(iVar3 + 0x14) = 0;
  *(undefined4 *)(iVar3 + 0x1c) = 0;
  *(int *)(iVar12 + 0x234) = iVar3;
  uVar7 = safemalloc(uVar7,1);
  iVar6 = 0;
  iVar11 = *(int *)(iVar12 + 0x230);
  iVar10 = *(int *)(iVar12 + 0x234);
  iVar8 = *(int *)(iVar12 + 0x228);
  *(undefined4 *)(iVar3 + 0x10) = uVar7;
  *(int *)(iVar10 + 0x20) = iVar8;
  *(int *)(iVar12 + 0x230) = iVar11 + 1;
  *(int *)(iVar10 + 0xc) = iVar11;
  *(undefined4 *)(iVar12 + 0x22c) = 0;
  while (iVar6 < iVar8) {
LAB_00032540:
    if (*piVar4 == 0) {
      *(undefined4 *)(iVar12 + 0x1b8) = 0x7a5;
      return (int *)0x0;
    }
    puVar5 = (undefined1 *)*puVar9;
    iVar3 = *(int *)(iVar12 + 0x234);
    iVar6 = *(int *)(iVar12 + 0x22c);
    *puVar9 = puVar5 + 1;
    *(undefined1 *)(*(int *)(iVar3 + 0x10) + iVar6) = *puVar5;
    iVar8 = *(int *)(iVar12 + 0x228);
    *piVar4 = *piVar4 + -1;
    iVar6 = *(int *)(iVar12 + 0x22c) + 1;
    *(int *)(iVar12 + 0x22c) = iVar6;
  }
  piVar4 = *(int **)(iVar12 + 0x234);
  iVar3 = *(int *)(iVar12 + 0x18);
  bVar1 = *(byte *)piVar4[4];
  piVar4[5] = (int)((byte *)piVar4[4] + 1);
  *piVar4 = iVar8 + -1;
  piVar4[2] = (uint)bVar1;
  if (iVar3 != 0) {
    MASKED(iVar12,piVar4);
    piVar4 = *(int **)(iVar12 + 0x234);
  }
  piVar4[6] = 0;
LAB_0003243c:
  *(undefined4 *)(iVar12 + 0x1b8) = 0;
  return piVar4;
}

