
int build_type_desc_hdr_arr
              (sg_pt_base *ptvp,type_desc_hdr_t *tdhp,int max_elems,uint32_t *generationp,
              enclosure_info *primary_ip,opts_t *op)

{
  byte *pbVar1;
  byte *pbVar2;
  byte bVar3;
  undefined8 uVar4;
  long lVar5;
  uint8_t *puVar6;
  type_desc_hdr_t *ptVar7;
  ulong uVar8;
  byte *pbVar9;
  uint uVar10;
  int iVar11;
  element_type_t *peVar12;
  int iVar13;
  int iVar14;
  long in_FS_OFFSET;
  bool bVar15;
  int resp_len;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (config_dp_resp == (uint8_t *)0x0) {
    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);
    if (config_dp_resp == (uint8_t *)0x0) {
      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);
      iVar14 = -1;
      goto LAB_00106c48;
    }
    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);
    if (iVar14 != 0) {
      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);
      free(free_config_dp_resp);
      free_config_dp_resp = (uint8_t *)0x0;
      iVar14 = -1;
      goto LAB_00106c48;
    }
    if (resp_len < 4) {
      free(free_config_dp_resp);
      free_config_dp_resp = (uint8_t *)0x0;
      iVar14 = -1;
      goto LAB_00106c48;
    }
  }
  else {
    resp_len = config_dp_resp_len;
  }
  puVar6 = config_dp_resp;
  bVar3 = config_dp_resp[1];
  pbVar1 = config_dp_resp + (long)resp_len + -1;
  config_dp_resp_len = resp_len;
  if (generationp != (uint32_t *)0x0) {
    uVar10 = *(uint *)(config_dp_resp + 4);
    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |
                   uVar10 << 0x18;
  }
  pbVar9 = puVar6 + 8;
  if (puVar6 + 0xb <= pbVar1) {
    iVar14 = 0;
    iVar13 = 0;
    do {
      uVar10 = pbVar9[3] + 4;
      iVar14 = iVar14 + (uint)pbVar9[2];
      if (uVar10 < 0x28) {
        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);
      }
      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {
        primary_ip->have_info = primary_ip->have_info + 1;
        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;
        primary_ip->num_esp = *pbVar9 & 7;
        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);
        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);
        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);
        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);
        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;
        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);
      }
      iVar13 = iVar13 + 1;
      pbVar9 = pbVar9 + (int)uVar10;
      if (iVar13 == bVar3 + 1) {
        if (iVar14 < 1) {
          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))
          goto LAB_00106bb7;
          iVar13 = op->ind_et_inst;
          goto LAB_00106cb2;
        }
        if (pbVar9 + 3 <= pbVar1) {
          if (max_elems < 1) goto LAB_00106b74;
          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;
          lVar5 = -3 - (long)pbVar9;
          ptVar7 = tdhp;
          goto LAB_00106b3b;
        }
        break;
      }
    } while (pbVar9 + 3 <= pbVar1);
  }
LAB_00106c2a:
  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");
  iVar14 = -1;
  goto LAB_00106c48;
  while( true ) {
    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))
       ) goto LAB_00106c2a;
    ptVar7 = ptVar7 + 1;
    if (pbVar9 == pbVar2) break;
LAB_00106b3b:
    ptVar7->etype = *pbVar9;
    ptVar7->num_elements = pbVar9[1];
    ptVar7->se_id = pbVar9[2];
    ptVar7->txt_len = pbVar9[3];
    pbVar9 = pbVar9 + 4;
    if (tdhp + (iVar14 - 1) == ptVar7) {
      if (op->ind_given == false) goto LAB_00106c48;
      peVar12 = op->ind_etp;
      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;
      iVar13 = op->ind_et_inst;
      uVar8 = 0;
      iVar11 = iVar13;
      goto LAB_00106bd9;
    }
  }
LAB_00106b74:
  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");
  iVar14 = -1;
  goto LAB_00106c48;
LAB_00106bb7:
  if (iVar14 == 0) {
    type_desc_hdr_count = type_desc_hdr_count + 1;
  }
  goto LAB_00106c48;
LAB_00106bd9:
  do {
    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {
      if (iVar11 == 0) {
        if ((int)uVar8 < iVar14) {
          op->ind_th = (int)uVar8;
          goto LAB_00106c48;
        }
        break;
      }
      iVar11 = iVar11 + -1;
    }
    bVar15 = iVar14 - 1 != uVar8;
    uVar8 = uVar8 + 1;
  } while (bVar15);
LAB_00106cb2:
  if (iVar13 == 0) {
    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);
    iVar14 = -1;
  }
  else {
    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);
    iVar14 = -1;
  }
LAB_00106c48:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar14;
}



int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,
                long param_6)

{
  byte *pbVar1;
  byte *pbVar2;
  byte bVar3;
  undefined8 uVar4;
  long lVar5;
  byte *pbVar6;
  ulong uVar7;
  byte *pbVar8;
  uint uVar9;
  int iVar10;
  uint *puVar11;
  int iVar12;
  int iVar13;
  long in_FS_OFFSET;
  bool bVar14;
  int local_44;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (DAT_0011f8b0 == 0) {
    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);
    if (DAT_0011f8b0 == 0) {
      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",
              *(undefined4 *)(param_6 + 0x44));
      iVar13 = -1;
      goto LAB_00106c48;
    }
    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);
    if (iVar13 != 0) {
      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);
      free(DAT_0011f8a8);
      DAT_0011f8a8 = (void *)0x0;
      iVar13 = -1;
      goto LAB_00106c48;
    }
    if (local_44 < 4) {
      free(DAT_0011f8a8);
      DAT_0011f8a8 = (void *)0x0;
      iVar13 = -1;
      goto LAB_00106c48;
    }
  }
  else {
    local_44 = DAT_0011f8a0;
  }
  lVar5 = DAT_0011f8b0;
  bVar3 = *(byte *)(DAT_0011f8b0 + 1);
  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);
  DAT_0011f8a0 = local_44;
  if (param_4 != (uint *)0x0) {
    uVar9 = *(uint *)(DAT_0011f8b0 + 4);
    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;
  }
  pbVar8 = (byte *)(lVar5 + 8);
  if ((byte *)(lVar5 + 0xb) <= pbVar1) {
    iVar13 = 0;
    iVar12 = 0;
    do {
      uVar9 = pbVar8[3] + 4;
      iVar13 = iVar13 + (uint)pbVar8[2];
      if (uVar9 < 0x28) {
        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);
      }
      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {
        *param_5 = *param_5 + 1;
        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;
        param_5[2] = *pbVar8 & 7;
        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);
        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);
        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);
        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);
        *(undefined8 *)(param_5 + 9) = uVar4;
        param_5[0xb] = *(int *)(pbVar8 + 0x24);
      }
      iVar12 = iVar12 + 1;
      pbVar8 = pbVar8 + (int)uVar9;
      if (iVar12 == bVar3 + 1) {
        if (iVar13 < 1) {
          if ((*(char *)(param_6 + 7) == '\0') ||
             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;
          iVar12 = *(int *)(param_6 + 0x40);
          goto LAB_00106cb2;
        }
        if (pbVar8 + 3 <= pbVar1) {
          if (param_3 < 1) goto LAB_00106b74;
          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;
          lVar5 = -3 - (long)pbVar8;
          pbVar6 = param_2;
          goto LAB_00106b3b;
        }
        break;
      }
    } while (pbVar8 + 3 <= pbVar1);
  }
LAB_00106c2a:
  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");
  iVar13 = -1;
  goto LAB_00106c48;
  while( true ) {
    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;
    pbVar6 = pbVar6 + 4;
    if (pbVar8 == pbVar2) break;
LAB_00106b3b:
    *pbVar6 = *pbVar8;
    pbVar6[1] = pbVar8[1];
    pbVar6[2] = pbVar8[2];
    pbVar6[3] = pbVar8[3];
    pbVar8 = pbVar8 + 4;
    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {
      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;
      puVar11 = *(uint **)(param_6 + 0x80);
      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;
      iVar12 = *(int *)(param_6 + 0x40);
      uVar7 = 0;
      iVar10 = iVar12;
      goto LAB_00106bd9;
    }
  }
LAB_00106b74:
  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");
  iVar13 = -1;
  goto LAB_00106c48;
LAB_00106bb7:
  if (iVar13 == 0) {
    DAT_0011f8b8 = DAT_0011f8b8 + 1;
  }
  goto LAB_00106c48;
LAB_00106bd9:
  do {
    if (*puVar11 == (uint)param_2[uVar7 * 4]) {
      if (iVar10 == 0) {
        if ((int)uVar7 < iVar13) {
          *(int *)(param_6 + 0x34) = (int)uVar7;
          goto LAB_00106c48;
        }
        break;
      }
      iVar10 = iVar10 + -1;
    }
    bVar14 = iVar13 - 1 != uVar7;
    uVar7 = uVar7 + 1;
  } while (bVar14);
LAB_00106cb2:
  if (iVar12 == 0) {
    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",
            *(undefined8 *)(puVar11 + 2));
    iVar13 = -1;
  }
  else {
    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",
            *(undefined8 *)(puVar11 + 2));
    iVar13 = -1;
  }
LAB_00106c48:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar13;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RSP + 0x8],RSI
MOV dword ptr [RSP + 0x14],EDX
MOV RBX,RCX
MOV R13,R8
MOV qword ptr [RSP + 0x18],R9
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
CMP qword ptr [0x0011f8b0],0x0
JZ 0x00106978
MOV EAX,dword ptr [0x0011f8a0]
MOV dword ptr [RSP + 0x24],EAX
MOV RAX,qword ptr [0x0011f8b0]
MOVZX EDX,byte ptr [RAX + 0x1]
MOVSXD RCX,dword ptr [RSP + 0x24]
LEA R15,[RAX + RCX*0x1 + -0x1]
TEST RBX,RBX
JZ 0x0010694c
MOV ECX,dword ptr [RAX + 0x4]
BSWAP ECX
MOV dword ptr [RBX],ECX
LEA RBX,[RAX + 0x8]
ADD RAX,0xb
CMP R15,RAX
JC 0x00106c2a
MOVZX EDX,DL
LEA EAX,[RDX + 0x1]
MOV dword ptr [RSP + 0x10],EAX
MOV R14D,0x0
MOV R12D,0x0
JMP 0x00106a98
MOV RBP,RDI
MOV EDI,dword ptr [R9 + 0x44]
MOV ECX,0x0
LEA RDX,[0x11f8a8]
MOV ESI,0x0
CALL 0x00105430
MOV qword ptr [0x0011f8b0],RAX
TEST RAX,RAX
JZ 0x001069d7
MOV R8,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [R8 + 0x44]
LEA R9,[RSP + 0x24]
MOV RDX,RAX
MOV ESI,0x1
MOV RDI,RBP
CALL 0x001063fe
TEST EAX,EAX
JNZ 0x00106a02
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,0x3
JLE 0x00106a3e
MOV dword ptr [0x0011f8a0],EAX
JMP 0x0010692b
MOV RAX,qword ptr [RSP + 0x18]
MOV EDX,dword ptr [RAX + 0x44]
LEA RSI,[0x119fc0]
LEA RDI,[0x113ec0]
MOV EAX,0x0
CALL 0x00105120
MOV R14D,0xffffffff
JMP 0x00106c48
MOV EDX,EAX
LEA RSI,[0x119fc0]
LEA RDI,[0x113ef0]
MOV EAX,0x0
CALL 0x00105120
MOV RDI,qword ptr [0x0011f8a8]
CALL 0x00105050
MOV qword ptr [0x0011f8a8],0x0
MOV R14D,0xffffffff
JMP 0x00106c48
MOV RDI,qword ptr [0x0011f8a8]
CALL 0x00105050
MOV qword ptr [0x0011f8a8],0x0
MOV R14D,0xffffffff
JMP 0x00106c48
MOV EDX,EBP
LEA RSI,[0x119fc0]
LEA RDI,[0x113f18]
MOV EAX,0x0
CALL 0x00105120
ADD R12D,0x1
MOVSXD RBP,EBP
ADD RBX,RBP
CMP R12D,dword ptr [RSP + 0x10]
JZ 0x00106af4
LEA RAX,[RBX + 0x3]
CMP R15,RAX
JC 0x00106c2a
MOVZX EBP,byte ptr [RBX + 0x3]
ADD EBP,0x4
MOVZX EAX,byte ptr [RBX + 0x2]
ADD R14D,EAX
CMP EBP,0x27
JLE 0x00106a60
TEST R12D,R12D
JNZ 0x00106a7a
TEST R13,R13
JZ 0x00106a7a
ADD dword ptr [R13],0x1
MOVZX EAX,byte ptr [RBX]
SAR EAX,0x4
AND EAX,0x7
MOV dword ptr [R13 + 0x4],EAX
MOVZX EAX,byte ptr [RBX]
AND EAX,0x7
MOV dword ptr [R13 + 0x8],EAX
MOV RAX,qword ptr [RBX + 0x4]
MOV qword ptr [R13 + 0xc],RAX
MOV RAX,qword ptr [RBX + 0xc]
MOV qword ptr [R13 + 0x14],RAX
MOVDQU XMM0,xmmword ptr [RBX + 0x14]
MOVUPS xmmword ptr [R13 + 0x1c],XMM0
MOV EAX,dword ptr [RBX + 0x24]
MOV dword ptr [R13 + 0x2c],EAX
JMP 0x00106a7a
TEST R14D,R14D
JLE 0x00106b97
LEA RAX,[RBX + 0x3]
CMP R15,RAX
JC 0x00106c2a
CMP dword ptr [RSP + 0x14],0x0
JLE 0x00106b74
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,RCX
LEA EDX,[R14 + -0x1]
LEA RSI,[RCX + RDX*0x4]
MOV EDI,dword ptr [RSP + 0x14]
LEA EDX,[RDI + -0x1]
LEA RDI,[RBX + RDX*0x4 + 0x4]
LEA RDX,[R15 + -0x3]
SUB RDX,RBX
AND RDX,-0x4
ADD RDX,RCX
MOVZX ECX,byte ptr [RBX]
MOV byte ptr [RAX],CL
MOVZX ECX,byte ptr [RBX + 0x1]
MOV byte ptr [RAX + 0x1],CL
MOVZX ECX,byte ptr [RBX + 0x2]
MOV byte ptr [RAX + 0x2],CL
MOVZX ECX,byte ptr [RBX + 0x3]
MOV byte ptr [RAX + 0x3],CL
ADD RBX,0x4
CMP RSI,RAX
JZ 0x00106c6e
CMP RAX,RDX
JZ 0x00106c2a
ADD RAX,0x4
CMP RBX,RDI
JNZ 0x00106b3b
LEA RSI,[0x119fc0]
LEA RDI,[0x118482]
MOV EAX,0x0
CALL 0x00105120
MOV R14D,0xffffffff
JMP 0x00106c48
MOV RAX,qword ptr [RSP + 0x18]
CMP byte ptr [RAX + 0x7],0x0
JZ 0x00106bb7
MOV RAX,qword ptr [RSP + 0x18]
MOV R10,qword ptr [RAX + 0x80]
TEST R10,R10
JNZ 0x00106caa
TEST R14D,R14D
JNZ 0x00106c48
ADD dword ptr [0x0011f8b8],0x1
JMP 0x00106c48
LEA RDX,[RAX + 0x1]
CMP R9,RAX
JZ 0x00106cb2
MOV RAX,RDX
MOV ESI,EAX
MOV RDX,qword ptr [RSP + 0x8]
MOVZX EDX,byte ptr [RDX + RAX*0x4]
CMP EDI,EDX
JNZ 0x00106bc9
TEST R8D,R8D
JZ 0x00106bf3
SUB R8D,0x1
JMP 0x00106bc9
CMP R14D,EAX
JLE 0x00106cb2
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x34],ESI
JMP 0x00106c48
MOV RDX,qword ptr [R10 + 0x8]
LEA RSI,[0x119fc0]
LEA RDI,[0x113f68]
MOV EAX,0x0
CALL 0x00105120
MOV R14D,0xffffffff
JMP 0x00106c48
LEA RSI,[0x119fc0]
LEA RDI,[0x118499]
MOV EAX,0x0
CALL 0x00105120
MOV R14D,0xffffffff
MOV EAX,R14D
MOV RDI,qword ptr [RSP + 0x28]
XOR RDI,qword ptr FS:[0x28]
JNZ 0x00106ce1
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RAX,qword ptr [RSP + 0x18]
CMP byte ptr [RAX + 0x7],0x0
JZ 0x00106c48
MOV RAX,qword ptr [RSP + 0x18]
MOV R10,qword ptr [RAX + 0x80]
TEST R10,R10
JZ 0x00106bb7
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x40]
MOV EDI,dword ptr [R10]
LEA R9D,[R14 + -0x1]
MOV R8D,ECX
MOV EAX,0x0
JMP 0x00106bd9
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x40]
TEST ECX,ECX
JZ 0x00106c06
MOV RDX,qword ptr [R10 + 0x8]
LEA RSI,[0x119fc0]
LEA RDI,[0x113f40]
MOV EAX,0x0
CALL 0x00105120
MOV R14D,0xffffffff
JMP 0x00106c48
CALL 0x00105100
(translation_unit "int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar13;\n}\n\n" (function_definition "int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar13;\n}" primitive_type (function_declarator "FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" identifier (parameter_list "(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "long param_6" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar13;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }" if (parenthesized_expression "(DAT_0011f8b0 == 0)" ( (binary_expression "DAT_0011f8b0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }" { (expression_statement "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);" (assignment_expression "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" identifier = (call_expression "sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" identifier (argument_list "(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" ( (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) , number_literal , (pointer_expression "&DAT_0011f8a8" & identifier) , number_literal )))) ;) (if_statement "if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(DAT_0011f8b0 == 0)" ( (binary_expression "DAT_0011f8b0 == 0" identifier == number_literal) )) (compound_statement "{\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));" (call_expression "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" identifier (argument_list "("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" ( (string_literal ""%s: unable to allocate %d bytes on heap\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (expression_statement "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);" (assignment_expression "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" identifier = (call_expression "FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" identifier (argument_list "(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) , identifier , (pointer_expression "&local_44" & identifier) )))) ;) (if_statement "if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);" (call_expression "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" identifier (argument_list "("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" ( (string_literal ""%s: couldn\'t read config page, res=%d\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" identifier (argument_list "(DAT_0011f8a8)" ( identifier ))) ;) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (if_statement "if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(local_44 < 4)" ( (binary_expression "local_44 < 4" identifier < number_literal) )) (compound_statement "{\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" identifier (argument_list "(DAT_0011f8a8)" ( identifier ))) ;) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_44 = DAT_0011f8a0;\n  }" else (compound_statement "{\n    local_44 = DAT_0011f8a0;\n  }" { (expression_statement "local_44 = DAT_0011f8a0;" (assignment_expression "local_44 = DAT_0011f8a0" identifier = identifier) ;) }))) (expression_statement "lVar5 = DAT_0011f8b0;" (assignment_expression "lVar5 = DAT_0011f8b0" identifier = identifier) ;) (expression_statement "bVar3 = *(byte *)(DAT_0011f8b0 + 1);" (assignment_expression "bVar3 = *(byte *)(DAT_0011f8b0 + 1)" identifier = (pointer_expression "*(byte *)(DAT_0011f8b0 + 1)" * (cast_expression "(byte *)(DAT_0011f8b0 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + 1)" ( (binary_expression "DAT_0011f8b0 + 1" identifier + number_literal) ))))) ;) (expression_statement "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);" (assignment_expression "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44)" identifier = (cast_expression "(byte *)(DAT_0011f8b0 + -1 + (long)local_44)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + -1 + (long)local_44)" ( (binary_expression "DAT_0011f8b0 + -1 + (long)local_44" (binary_expression "DAT_0011f8b0 + -1" identifier + number_literal) + (cast_expression "(long)local_44" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "DAT_0011f8a0 = local_44;" (assignment_expression "DAT_0011f8a0 = local_44" identifier = identifier) ;) (if_statement "if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" if (parenthesized_expression "(param_4 != (uint *)0x0)" ( (binary_expression "param_4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" { (expression_statement "uVar9 = *(uint *)(DAT_0011f8b0 + 4);" (assignment_expression "uVar9 = *(uint *)(DAT_0011f8b0 + 4)" identifier = (pointer_expression "*(uint *)(DAT_0011f8b0 + 4)" * (cast_expression "(uint *)(DAT_0011f8b0 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + 4)" ( (binary_expression "DAT_0011f8b0 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;" (assignment_expression "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8" (binary_expression "uVar9 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar9 & 0xff0000) >> 8" (parenthesized_expression "(uVar9 & 0xff0000)" ( (binary_expression "uVar9 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar9 & 0xff00) << 8" (parenthesized_expression "(uVar9 & 0xff00)" ( (binary_expression "uVar9 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar9 << 0x18" identifier << number_literal))) ;) })) (expression_statement "pbVar8 = (byte *)(lVar5 + 8);" (assignment_expression "pbVar8 = (byte *)(lVar5 + 8)" identifier = (cast_expression "(byte *)(lVar5 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) ;) (if_statement "if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" if (parenthesized_expression "((byte *)(lVar5 + 0xb) <= pbVar1)" ( (binary_expression "(byte *)(lVar5 + 0xb) <= pbVar1" (cast_expression "(byte *)(lVar5 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0xb)" ( (binary_expression "lVar5 + 0xb" identifier + number_literal) ))) <= identifier) )) (compound_statement "{\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);" do (compound_statement "{\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    }" { (expression_statement "uVar9 = pbVar8[3] + 4;" (assignment_expression "uVar9 = pbVar8[3] + 4" identifier = (binary_expression "pbVar8[3] + 4" (subscript_expression "pbVar8[3]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar13 = iVar13 + (uint)pbVar8[2];" (assignment_expression "iVar13 = iVar13 + (uint)pbVar8[2]" identifier = (binary_expression "iVar13 + (uint)pbVar8[2]" identifier + (cast_expression "(uint)pbVar8[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[2]" identifier [ number_literal ])))) ;) (if_statement "if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" if (parenthesized_expression "(uVar9 < 0x28)" ( (binary_expression "uVar9 < 0x28" identifier < number_literal) )) (compound_statement "{\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }" { (expression_statement "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);" (call_expression "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" identifier (argument_list "("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" ( (string_literal ""%s: short enc descriptor len=%d ??\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) }) (else_clause "else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" else (if_statement "if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" if (parenthesized_expression "((iVar12 == 0) && (param_5 != (int *)0x0))" ( (binary_expression "(iVar12 == 0) && (param_5 != (int *)0x0)" (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_5 != (int *)0x0)" ( (binary_expression "param_5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" { (expression_statement "*param_5 = *param_5 + 1;" (assignment_expression "*param_5 = *param_5 + 1" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 + 1" (pointer_expression "*param_5" * identifier) + number_literal)) ;) (expression_statement "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;" (assignment_expression "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "(int)(uint)*pbVar8 >> 4 & 7" (binary_expression "(int)(uint)*pbVar8 >> 4" (binary_expression "(int)(uint)*pbVar8" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> number_literal) & number_literal)) ;) (expression_statement "param_5[2] = *pbVar8 & 7;" (assignment_expression "param_5[2] = *pbVar8 & 7" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (binary_expression "*pbVar8 & 7" (pointer_expression "*pbVar8" * identifier) & number_literal)) ;) (expression_statement "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);" (assignment_expression "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4)" (pointer_expression "*(undefined8 *)(param_5 + 3)" * (cast_expression "(undefined8 *)(param_5 + 3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 4)" * (cast_expression "(undefined8 *)(pbVar8 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 4)" ( (binary_expression "pbVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);" (assignment_expression "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc)" (pointer_expression "*(undefined8 *)(param_5 + 5)" * (cast_expression "(undefined8 *)(param_5 + 5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 5)" ( (binary_expression "param_5 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 0xc)" * (cast_expression "(undefined8 *)(pbVar8 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0xc)" ( (binary_expression "pbVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined8 *)(pbVar8 + 0x1c);" (assignment_expression "uVar4 = *(undefined8 *)(pbVar8 + 0x1c)" identifier = (pointer_expression "*(undefined8 *)(pbVar8 + 0x1c)" * (cast_expression "(undefined8 *)(pbVar8 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x1c)" ( (binary_expression "pbVar8 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);" (assignment_expression "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14)" (pointer_expression "*(undefined8 *)(param_5 + 7)" * (cast_expression "(undefined8 *)(param_5 + 7)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 7)" ( (binary_expression "param_5 + 7" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 0x14)" * (cast_expression "(undefined8 *)(pbVar8 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x14)" ( (binary_expression "pbVar8 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 9) = uVar4;" (assignment_expression "*(undefined8 *)(param_5 + 9) = uVar4" (pointer_expression "*(undefined8 *)(param_5 + 9)" * (cast_expression "(undefined8 *)(param_5 + 9)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 9)" ( (binary_expression "param_5 + 9" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_5[0xb] = *(int *)(pbVar8 + 0x24);" (assignment_expression "param_5[0xb] = *(int *)(pbVar8 + 0x24)" (subscript_expression "param_5[0xb]" identifier [ number_literal ]) = (pointer_expression "*(int *)(pbVar8 + 0x24)" * (cast_expression "(int *)(pbVar8 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x24)" ( (binary_expression "pbVar8 + 0x24" identifier + number_literal) ))))) ;) })))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + (int)uVar9;" (assignment_expression "pbVar8 = pbVar8 + (int)uVar9" identifier = (binary_expression "pbVar8 + (int)uVar9" identifier + (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar12 == bVar3 + 1)" ( (binary_expression "iVar12 == bVar3 + 1" identifier == (binary_expression "bVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" { (if_statement "if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" if (parenthesized_expression "(iVar13 < 1)" ( (binary_expression "iVar13 < 1" identifier < number_literal) )) (compound_statement "{\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" { (if_statement "if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;" if (parenthesized_expression "((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0))" ( (binary_expression "(*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" ( (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" * (cast_expression "(char *)(param_6 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 7)" ( (binary_expression "param_6 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" ( (comma_expression "puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" identifier = (pointer_expression "*(uint **)(param_6 + 0x80)" * (cast_expression "(uint **)(param_6 + 0x80)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0x80)" ( (binary_expression "param_6 + 0x80" identifier + number_literal) ))))) , (binary_expression "puVar11 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" identifier = (pointer_expression "*(int *)(param_6 + 0x40)" * (cast_expression "(int *)(param_6 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x40)" ( (binary_expression "param_6 + 0x40" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00106cb2;" goto statement_identifier ;) })) (if_statement "if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" if (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" ( (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" identifier + number_literal) <= identifier) )) (compound_statement "{\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" { (if_statement "if (param_3 < 1) goto LAB_00106b74;" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00106b74;" goto statement_identifier ;)) (expression_statement "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;" (assignment_expression "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4" identifier = (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4 + 4" (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4" identifier + (binary_expression "(ulong)(param_3 - 1) * 4" (call_expression "(ulong)(param_3 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) ))) * number_literal)) + number_literal)) ;) (expression_statement "lVar5 = -3 - (long)pbVar8;" (assignment_expression "lVar5 = -3 - (long)pbVar8" identifier = (binary_expression "-3 - (long)pbVar8" number_literal - (cast_expression "(long)pbVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" identifier = identifier) ;) (goto_statement "goto LAB_00106b3b;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" ( (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" identifier + number_literal) <= identifier) )) ;) })) (labeled_statement "LAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: config too short\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: config too short\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: config too short\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (while_statement "while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" { (if_statement "if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;" if (parenthesized_expression "(pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" ( (binary_expression "pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" identifier == (binary_expression "param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" identifier + (parenthesized_expression "((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" ( (binary_expression "(ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc" (call_expression "(ulong)(pbVar1 + lVar5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pbVar1 + lVar5)" ( (binary_expression "pbVar1 + lVar5" identifier + identifier) ))) & number_literal) )))) )) (goto_statement "goto LAB_00106c2a;" goto statement_identifier ;)) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" identifier = (binary_expression "pbVar6 + 4" identifier + number_literal)) ;) (if_statement "if (pbVar8 == pbVar2) break;" if (parenthesized_expression "(pbVar8 == pbVar2)" ( (binary_expression "pbVar8 == pbVar2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00106b3b:\n    *pbVar6 = *pbVar8;" statement_identifier : (expression_statement "*pbVar6 = *pbVar8;" (assignment_expression "*pbVar6 = *pbVar8" (pointer_expression "*pbVar6" * identifier) = (pointer_expression "*pbVar8" * identifier)) ;)) (expression_statement "pbVar6[1] = pbVar8[1];" (assignment_expression "pbVar6[1] = pbVar8[1]" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) = (subscript_expression "pbVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar6[2] = pbVar8[2];" (assignment_expression "pbVar6[2] = pbVar8[2]" (subscript_expression "pbVar6[2]" identifier [ number_literal ]) = (subscript_expression "pbVar8[2]" identifier [ number_literal ])) ;) (expression_statement "pbVar6[3] = pbVar8[3];" (assignment_expression "pbVar6[3] = pbVar8[3]" (subscript_expression "pbVar6[3]" identifier [ number_literal ]) = (subscript_expression "pbVar8[3]" identifier [ number_literal ])) ;) (expression_statement "pbVar8 = pbVar8 + 4;" (assignment_expression "pbVar8 = pbVar8 + 4" identifier = (binary_expression "pbVar8 + 4" identifier + number_literal)) ;) (if_statement "if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" if (parenthesized_expression "(param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6)" ( (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6" (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4" identifier + (binary_expression "(ulong)(iVar13 - 1) * 4" (call_expression "(ulong)(iVar13 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar13 - 1)" ( (binary_expression "iVar13 - 1" identifier - number_literal) ))) * number_literal)) == identifier) )) (compound_statement "{\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" { (if_statement "if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;" if (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" ( (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" * (cast_expression "(char *)(param_6 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 7)" ( (binary_expression "param_6 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;)) (expression_statement "puVar11 = *(uint **)(param_6 + 0x80);" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" identifier = (pointer_expression "*(uint **)(param_6 + 0x80)" * (cast_expression "(uint **)(param_6 + 0x80)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0x80)" ( (binary_expression "param_6 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (puVar11 == (uint *)0x0) goto LAB_00106bb7;" if (parenthesized_expression "(puVar11 == (uint *)0x0)" ( (binary_expression "puVar11 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" identifier = (pointer_expression "*(int *)(param_6 + 0x40)" * (cast_expression "(int *)(param_6 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x40)" ( (binary_expression "param_6 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = iVar12;" (assignment_expression "iVar10 = iVar12" identifier = identifier) ;) (goto_statement "goto LAB_00106bd9;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: too many elements\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: too many elements\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" statement_identifier : (if_statement "if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" { (expression_statement "DAT_0011f8b8 = DAT_0011f8b8 + 1;" (assignment_expression "DAT_0011f8b8 = DAT_0011f8b8 + 1" identifier = (binary_expression "DAT_0011f8b8 + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" statement_identifier : (do_statement "do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" do (compound_statement "{\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  }" { (if_statement "if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" if (parenthesized_expression "(*puVar11 == (uint)param_2[uVar7 * 4])" ( (binary_expression "*puVar11 == (uint)param_2[uVar7 * 4]" (pointer_expression "*puVar11" * identifier) == (cast_expression "(uint)param_2[uVar7 * 4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[uVar7 * 4]" identifier [ (binary_expression "uVar7 * 4" identifier * number_literal) ]))) )) (compound_statement "{\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" { (if_statement "if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" { (if_statement "if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" if (parenthesized_expression "((int)uVar7 < iVar13)" ( (binary_expression "(int)uVar7 < iVar13" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" { (expression_statement "*(int *)(param_6 + 0x34) = (int)uVar7;" (assignment_expression "*(int *)(param_6 + 0x34) = (int)uVar7" (pointer_expression "*(int *)(param_6 + 0x34)" * (cast_expression "(int *)(param_6 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x34)" ( (binary_expression "param_6 + 0x34" identifier + number_literal) )))) = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) })) (expression_statement "bVar14 = iVar13 - 1 != uVar7;" (assignment_expression "bVar14 = iVar13 - 1 != uVar7" identifier = (binary_expression "iVar13 - 1 != uVar7" (binary_expression "iVar13 - 1" identifier - number_literal) != identifier)) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar14)" ( identifier )) ;)) (labeled_statement "LAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" statement_identifier : (if_statement "if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" identifier (argument_list "("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" ( (string_literal ""%s: unable to find element type \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined8 *)(puVar11 + 2)" * (cast_expression "(undefined8 *)(puVar11 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 2)" ( (binary_expression "puVar11 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" else (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" identifier (argument_list "("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" ( (string_literal ""%s: unable to find element type \'%s%d\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined8 *)(puVar11 + 2)" * (cast_expression "(undefined8 *)(puVar11 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 2)" ( (binary_expression "puVar11 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) })))) (labeled_statement "LAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit "int build_type_desc_hdr_arr\n              (sg_pt_base *ptvp,type_desc_hdr_t *tdhp,int max_elems,uint32_t *generationp,\n              enclosure_info *primary_ip,opts_t *op)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint8_t *puVar6;\n  type_desc_hdr_t *ptVar7;\n  ulong uVar8;\n  byte *pbVar9;\n  uint uVar10;\n  int iVar11;\n  element_type_t *peVar12;\n  int iVar13;\n  int iVar14;\n  long in_FS_OFFSET;\n  bool bVar15;\n  int resp_len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (config_dp_resp == (uint8_t *)0x0) {\n    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);\n    if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);\n    if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    resp_len = config_dp_resp_len;\n  }\n  puVar6 = config_dp_resp;\n  bVar3 = config_dp_resp[1];\n  pbVar1 = config_dp_resp + (long)resp_len + -1;\n  config_dp_resp_len = resp_len;\n  if (generationp != (uint32_t *)0x0) {\n    uVar10 = *(uint *)(config_dp_resp + 4);\n    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;\n  }\n  pbVar9 = puVar6 + 8;\n  if (puVar6 + 0xb <= pbVar1) {\n    iVar14 = 0;\n    iVar13 = 0;\n    do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;\n    ptVar7 = ptVar7 + 1;\n    if (pbVar9 == pbVar2) break;\nLAB_00106b3b:\n    ptVar7->etype = *pbVar9;\n    ptVar7->num_elements = pbVar9[1];\n    ptVar7->se_id = pbVar9[2];\n    ptVar7->txt_len = pbVar9[3];\n    pbVar9 = pbVar9 + 4;\n    if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar14 == 0) {\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  } while (bVar15);\nLAB_00106cb2:\n  if (iVar13 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar14;\n}\n\n" (function_definition "int build_type_desc_hdr_arr\n              (sg_pt_base *ptvp,type_desc_hdr_t *tdhp,int max_elems,uint32_t *generationp,\n              enclosure_info *primary_ip,opts_t *op)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint8_t *puVar6;\n  type_desc_hdr_t *ptVar7;\n  ulong uVar8;\n  byte *pbVar9;\n  uint uVar10;\n  int iVar11;\n  element_type_t *peVar12;\n  int iVar13;\n  int iVar14;\n  long in_FS_OFFSET;\n  bool bVar15;\n  int resp_len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (config_dp_resp == (uint8_t *)0x0) {\n    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);\n    if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);\n    if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    resp_len = config_dp_resp_len;\n  }\n  puVar6 = config_dp_resp;\n  bVar3 = config_dp_resp[1];\n  pbVar1 = config_dp_resp + (long)resp_len + -1;\n  config_dp_resp_len = resp_len;\n  if (generationp != (uint32_t *)0x0) {\n    uVar10 = *(uint *)(config_dp_resp + 4);\n    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;\n  }\n  pbVar9 = puVar6 + 8;\n  if (puVar6 + 0xb <= pbVar1) {\n    iVar14 = 0;\n    iVar13 = 0;\n    do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;\n    ptVar7 = ptVar7 + 1;\n    if (pbVar9 == pbVar2) break;\nLAB_00106b3b:\n    ptVar7->etype = *pbVar9;\n    ptVar7->num_elements = pbVar9[1];\n    ptVar7->se_id = pbVar9[2];\n    ptVar7->txt_len = pbVar9[3];\n    pbVar9 = pbVar9 + 4;\n    if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar14 == 0) {\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  } while (bVar15);\nLAB_00106cb2:\n  if (iVar13 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar14;\n}" primitive_type (function_declarator "build_type_desc_hdr_arr\n              (sg_pt_base *ptvp,type_desc_hdr_t *tdhp,int max_elems,uint32_t *generationp,\n              enclosure_info *primary_ip,opts_t *op)" identifier (parameter_list "(sg_pt_base *ptvp,type_desc_hdr_t *tdhp,int max_elems,uint32_t *generationp,\n              enclosure_info *primary_ip,opts_t *op)" ( (parameter_declaration "sg_pt_base *ptvp" type_identifier (pointer_declarator "*ptvp" * identifier)) , (parameter_declaration "type_desc_hdr_t *tdhp" type_identifier (pointer_declarator "*tdhp" * identifier)) , (parameter_declaration "int max_elems" primitive_type identifier) , (parameter_declaration "uint32_t *generationp" primitive_type (pointer_declarator "*generationp" * identifier)) , (parameter_declaration "enclosure_info *primary_ip" type_identifier (pointer_declarator "*primary_ip" * identifier)) , (parameter_declaration "opts_t *op" type_identifier (pointer_declarator "*op" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint8_t *puVar6;\n  type_desc_hdr_t *ptVar7;\n  ulong uVar8;\n  byte *pbVar9;\n  uint uVar10;\n  int iVar11;\n  element_type_t *peVar12;\n  int iVar13;\n  int iVar14;\n  long in_FS_OFFSET;\n  bool bVar15;\n  int resp_len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (config_dp_resp == (uint8_t *)0x0) {\n    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);\n    if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);\n    if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    resp_len = config_dp_resp_len;\n  }\n  puVar6 = config_dp_resp;\n  bVar3 = config_dp_resp[1];\n  pbVar1 = config_dp_resp + (long)resp_len + -1;\n  config_dp_resp_len = resp_len;\n  if (generationp != (uint32_t *)0x0) {\n    uVar10 = *(uint *)(config_dp_resp + 4);\n    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;\n  }\n  pbVar9 = puVar6 + 8;\n  if (puVar6 + 0xb <= pbVar1) {\n    iVar14 = 0;\n    iVar13 = 0;\n    do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;\n    ptVar7 = ptVar7 + 1;\n    if (pbVar9 == pbVar2) break;\nLAB_00106b3b:\n    ptVar7->etype = *pbVar9;\n    ptVar7->num_elements = pbVar9[1];\n    ptVar7->se_id = pbVar9[2];\n    ptVar7->txt_len = pbVar9[3];\n    pbVar9 = pbVar9 + 4;\n    if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar14 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar14 == 0) {\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  } while (bVar15);\nLAB_00106cb2:\n  if (iVar13 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar14;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint8_t *puVar6;" primitive_type (pointer_declarator "*puVar6" * identifier) ;) (declaration "type_desc_hdr_t *ptVar7;" type_identifier (pointer_declarator "*ptVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "element_type_t *peVar12;" type_identifier (pointer_declarator "*peVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "int resp_len;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (config_dp_resp == (uint8_t *)0x0) {\n    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);\n    if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);\n    if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    resp_len = config_dp_resp_len;\n  }" if (parenthesized_expression "(config_dp_resp == (uint8_t *)0x0)" ( (binary_expression "config_dp_resp == (uint8_t *)0x0" identifier == (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);\n    if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);\n    if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n    if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }\n  }" { (expression_statement "config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0);" (assignment_expression "config_dp_resp = (uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0)" identifier = (cast_expression "(uint8_t *)sg_memalign(op->maxlen,0,&free_config_dp_resp,0)" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sg_memalign(op->maxlen,0,&free_config_dp_resp,0)" identifier (argument_list "(op->maxlen,0,&free_config_dp_resp,0)" ( (field_expression "op->maxlen" identifier -> field_identifier) , number_literal , (pointer_expression "&free_config_dp_resp" & identifier) , number_literal ))))) ;) (if_statement "if (config_dp_resp == (uint8_t *)0x0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(config_dp_resp == (uint8_t *)0x0)" ( (binary_expression "config_dp_resp == (uint8_t *)0x0" identifier == (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);" (call_expression "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen)" identifier (argument_list "("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen)" ( (string_literal ""%s: unable to allocate %d bytes on heap\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (field_expression "op->maxlen" identifier -> field_identifier) ))) ;) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (expression_statement "iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len);" (assignment_expression "iVar14 = do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len)" identifier = (call_expression "do_rec_diag(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len)" identifier (argument_list "(ptvp,1,config_dp_resp,op->maxlen,op,&resp_len)" ( identifier , number_literal , identifier , (field_expression "op->maxlen" identifier -> field_identifier) , identifier , (pointer_expression "&resp_len" & identifier) )))) ;) (if_statement "if (iVar14 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(iVar14 != 0)" ( (binary_expression "iVar14 != 0" identifier != number_literal) )) (compound_statement "{\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14);" (call_expression "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14)" identifier (argument_list "("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar14)" ( (string_literal ""%s: couldn\'t read config page, res=%d\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) (expression_statement "free(free_config_dp_resp);" (call_expression "free(free_config_dp_resp)" identifier (argument_list "(free_config_dp_resp)" ( identifier ))) ;) (expression_statement "free_config_dp_resp = (uint8_t *)0x0;" (assignment_expression "free_config_dp_resp = (uint8_t *)0x0" identifier = (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (if_statement "if (resp_len < 4) {\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(resp_len < 4)" ( (binary_expression "resp_len < 4" identifier < number_literal) )) (compound_statement "{\n      free(free_config_dp_resp);\n      free_config_dp_resp = (uint8_t *)0x0;\n      iVar14 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "free(free_config_dp_resp);" (call_expression "free(free_config_dp_resp)" identifier (argument_list "(free_config_dp_resp)" ( identifier ))) ;) (expression_statement "free_config_dp_resp = (uint8_t *)0x0;" (assignment_expression "free_config_dp_resp = (uint8_t *)0x0" identifier = (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) }) (else_clause "else {\n    resp_len = config_dp_resp_len;\n  }" else (compound_statement "{\n    resp_len = config_dp_resp_len;\n  }" { (expression_statement "resp_len = config_dp_resp_len;" (assignment_expression "resp_len = config_dp_resp_len" identifier = identifier) ;) }))) (expression_statement "puVar6 = config_dp_resp;" (assignment_expression "puVar6 = config_dp_resp" identifier = identifier) ;) (expression_statement "bVar3 = config_dp_resp[1];" (assignment_expression "bVar3 = config_dp_resp[1]" identifier = (subscript_expression "config_dp_resp[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = config_dp_resp + (long)resp_len + -1;" (assignment_expression "pbVar1 = config_dp_resp + (long)resp_len + -1" identifier = (binary_expression "config_dp_resp + (long)resp_len + -1" (binary_expression "config_dp_resp + (long)resp_len" identifier + (cast_expression "(long)resp_len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) + number_literal)) ;) (expression_statement "config_dp_resp_len = resp_len;" (assignment_expression "config_dp_resp_len = resp_len" identifier = identifier) ;) (if_statement "if (generationp != (uint32_t *)0x0) {\n    uVar10 = *(uint *)(config_dp_resp + 4);\n    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;\n  }" if (parenthesized_expression "(generationp != (uint32_t *)0x0)" ( (binary_expression "generationp != (uint32_t *)0x0" identifier != (cast_expression "(uint32_t *)0x0" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar10 = *(uint *)(config_dp_resp + 4);\n    *generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;\n  }" { (expression_statement "uVar10 = *(uint *)(config_dp_resp + 4);" (assignment_expression "uVar10 = *(uint *)(config_dp_resp + 4)" identifier = (pointer_expression "*(uint *)(config_dp_resp + 4)" * (cast_expression "(uint *)(config_dp_resp + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(config_dp_resp + 4)" ( (binary_expression "config_dp_resp + 4" identifier + number_literal) ))))) ;) (expression_statement "*generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18;" (assignment_expression "*generationp = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18" (pointer_expression "*generationp" * identifier) = (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                   uVar10 << 0x18" (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8" (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8" (binary_expression "uVar10 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar10 & 0xff0000) >> 8" (parenthesized_expression "(uVar10 & 0xff0000)" ( (binary_expression "uVar10 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar10 & 0xff00) << 8" (parenthesized_expression "(uVar10 & 0xff00)" ( (binary_expression "uVar10 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar10 << 0x18" identifier << number_literal))) ;) })) (expression_statement "pbVar9 = puVar6 + 8;" (assignment_expression "pbVar9 = puVar6 + 8" identifier = (binary_expression "puVar6 + 8" identifier + number_literal)) ;) (if_statement "if (puVar6 + 0xb <= pbVar1) {\n    iVar14 = 0;\n    iVar13 = 0;\n    do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);\n  }" if (parenthesized_expression "(puVar6 + 0xb <= pbVar1)" ( (binary_expression "puVar6 + 0xb <= pbVar1" (binary_expression "puVar6 + 0xb" identifier + number_literal) <= identifier) )) (compound_statement "{\n    iVar14 = 0;\n    iVar13 = 0;\n    do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);\n  }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar9 + 3 <= pbVar1);" do (compound_statement "{\n      uVar10 = pbVar9[3] + 4;\n      iVar14 = iVar14 + (uint)pbVar9[2];\n      if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }\n      iVar13 = iVar13 + 1;\n      pbVar9 = pbVar9 + (int)uVar10;\n      if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    }" { (expression_statement "uVar10 = pbVar9[3] + 4;" (assignment_expression "uVar10 = pbVar9[3] + 4" identifier = (binary_expression "pbVar9[3] + 4" (subscript_expression "pbVar9[3]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar14 = iVar14 + (uint)pbVar9[2];" (assignment_expression "iVar14 = iVar14 + (uint)pbVar9[2]" identifier = (binary_expression "iVar14 + (uint)pbVar9[2]" identifier + (cast_expression "(uint)pbVar9[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar9[2]" identifier [ number_literal ])))) ;) (if_statement "if (uVar10 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }\n      else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }" if (parenthesized_expression "(uVar10 < 0x28)" ( (binary_expression "uVar10 < 0x28" identifier < number_literal) )) (compound_statement "{\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);\n      }" { (expression_statement "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10);" (call_expression "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10)" identifier (argument_list "("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar10)" ( (string_literal ""%s: short enc descriptor len=%d ??\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) }) (else_clause "else if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }" else (if_statement "if ((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)) {\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }" if (parenthesized_expression "((iVar13 == 0) && (primary_ip != (enclosure_info *)0x0))" ( (binary_expression "(iVar13 == 0) && (primary_ip != (enclosure_info *)0x0)" (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) && (parenthesized_expression "(primary_ip != (enclosure_info *)0x0)" ( (binary_expression "primary_ip != (enclosure_info *)0x0" identifier != (cast_expression "(enclosure_info *)0x0" ( (type_descriptor "enclosure_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        primary_ip->have_info = primary_ip->have_info + 1;\n        primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;\n        primary_ip->num_esp = *pbVar9 & 7;\n        *(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);\n        *(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar9 + 0x1c);\n        *(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);\n        *(undefined8 *)(primary_ip->product_id + 8) = uVar4;\n        *(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);\n      }" { (expression_statement "primary_ip->have_info = primary_ip->have_info + 1;" (assignment_expression "primary_ip->have_info = primary_ip->have_info + 1" (field_expression "primary_ip->have_info" identifier -> field_identifier) = (binary_expression "primary_ip->have_info + 1" (field_expression "primary_ip->have_info" identifier -> field_identifier) + number_literal)) ;) (expression_statement "primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7;" (assignment_expression "primary_ip->rel_esp_id = (int)(uint)*pbVar9 >> 4 & 7" (field_expression "primary_ip->rel_esp_id" identifier -> field_identifier) = (binary_expression "(int)(uint)*pbVar9 >> 4 & 7" (binary_expression "(int)(uint)*pbVar9 >> 4" (binary_expression "(int)(uint)*pbVar9" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> number_literal) & number_literal)) ;) (expression_statement "primary_ip->num_esp = *pbVar9 & 7;" (assignment_expression "primary_ip->num_esp = *pbVar9 & 7" (field_expression "primary_ip->num_esp" identifier -> field_identifier) = (binary_expression "*pbVar9 & 7" (pointer_expression "*pbVar9" * identifier) & number_literal)) ;) (expression_statement "*(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4);" (assignment_expression "*(undefined8 *)primary_ip->enc_log_id = *(undefined8 *)(pbVar9 + 4)" (pointer_expression "*(undefined8 *)primary_ip->enc_log_id" * (cast_expression "(undefined8 *)primary_ip->enc_log_id" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "primary_ip->enc_log_id" identifier -> field_identifier))) = (pointer_expression "*(undefined8 *)(pbVar9 + 4)" * (cast_expression "(undefined8 *)(pbVar9 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar9 + 4)" ( (binary_expression "pbVar9 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc);" (assignment_expression "*(undefined8 *)primary_ip->enc_vendor_id = *(undefined8 *)(pbVar9 + 0xc)" (pointer_expression "*(undefined8 *)primary_ip->enc_vendor_id" * (cast_expression "(undefined8 *)primary_ip->enc_vendor_id" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "primary_ip->enc_vendor_id" identifier -> field_identifier))) = (pointer_expression "*(undefined8 *)(pbVar9 + 0xc)" * (cast_expression "(undefined8 *)(pbVar9 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar9 + 0xc)" ( (binary_expression "pbVar9 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined8 *)(pbVar9 + 0x1c);" (assignment_expression "uVar4 = *(undefined8 *)(pbVar9 + 0x1c)" identifier = (pointer_expression "*(undefined8 *)(pbVar9 + 0x1c)" * (cast_expression "(undefined8 *)(pbVar9 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar9 + 0x1c)" ( (binary_expression "pbVar9 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14);" (assignment_expression "*(undefined8 *)primary_ip->product_id = *(undefined8 *)(pbVar9 + 0x14)" (pointer_expression "*(undefined8 *)primary_ip->product_id" * (cast_expression "(undefined8 *)primary_ip->product_id" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "primary_ip->product_id" identifier -> field_identifier))) = (pointer_expression "*(undefined8 *)(pbVar9 + 0x14)" * (cast_expression "(undefined8 *)(pbVar9 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar9 + 0x14)" ( (binary_expression "pbVar9 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(primary_ip->product_id + 8) = uVar4;" (assignment_expression "*(undefined8 *)(primary_ip->product_id + 8) = uVar4" (pointer_expression "*(undefined8 *)(primary_ip->product_id + 8)" * (cast_expression "(undefined8 *)(primary_ip->product_id + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(primary_ip->product_id + 8)" ( (binary_expression "primary_ip->product_id + 8" (field_expression "primary_ip->product_id" identifier -> field_identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24);" (assignment_expression "*(undefined4 *)primary_ip->product_rev_level = *(undefined4 *)(pbVar9 + 0x24)" (pointer_expression "*(undefined4 *)primary_ip->product_rev_level" * (cast_expression "(undefined4 *)primary_ip->product_rev_level" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "primary_ip->product_rev_level" identifier -> field_identifier))) = (pointer_expression "*(undefined4 *)(pbVar9 + 0x24)" * (cast_expression "(undefined4 *)(pbVar9 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar9 + 0x24)" ( (binary_expression "pbVar9 + 0x24" identifier + number_literal) ))))) ;) })))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "pbVar9 = pbVar9 + (int)uVar10;" (assignment_expression "pbVar9 = pbVar9 + (int)uVar10" identifier = (binary_expression "pbVar9 + (int)uVar10" identifier + (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar13 == bVar3 + 1) {\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar13 == bVar3 + 1)" ( (binary_expression "iVar13 == bVar3 + 1" identifier == (binary_expression "bVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n        if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }\n        if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" { (if_statement "if (iVar14 < 1) {\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }" if (parenthesized_expression "(iVar14 < 1)" ( (binary_expression "iVar14 < 1" identifier < number_literal) )) (compound_statement "{\n          if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;\n          iVar13 = op->ind_et_inst;\n          goto LAB_00106cb2;\n        }" { (if_statement "if ((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))\n          goto LAB_00106bb7;" if (parenthesized_expression "((op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0))" ( (binary_expression "(op->ind_given == false) || (peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0)" (parenthesized_expression "(op->ind_given == false)" ( (binary_expression "op->ind_given == false" (field_expression "op->ind_given" identifier -> field_identifier) == false) )) || (parenthesized_expression "(peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0)" ( (comma_expression "peVar12 = op->ind_etp, peVar12 == (element_type_t *)0x0" (assignment_expression "peVar12 = op->ind_etp" identifier = (field_expression "op->ind_etp" identifier -> field_identifier)) , (binary_expression "peVar12 == (element_type_t *)0x0" identifier == (cast_expression "(element_type_t *)0x0" ( (type_descriptor "element_type_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar13 = op->ind_et_inst;" (assignment_expression "iVar13 = op->ind_et_inst" identifier = (field_expression "op->ind_et_inst" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00106cb2;" goto statement_identifier ;) })) (if_statement "if (pbVar9 + 3 <= pbVar1) {\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }" if (parenthesized_expression "(pbVar9 + 3 <= pbVar1)" ( (binary_expression "pbVar9 + 3 <= pbVar1" (binary_expression "pbVar9 + 3" identifier + number_literal) <= identifier) )) (compound_statement "{\n          if (max_elems < 1) goto LAB_00106b74;\n          pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar9;\n          ptVar7 = tdhp;\n          goto LAB_00106b3b;\n        }" { (if_statement "if (max_elems < 1) goto LAB_00106b74;" if (parenthesized_expression "(max_elems < 1)" ( (binary_expression "max_elems < 1" identifier < number_literal) )) (goto_statement "goto LAB_00106b74;" goto statement_identifier ;)) (expression_statement "pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4;" (assignment_expression "pbVar2 = pbVar9 + (ulong)(max_elems - 1) * 4 + 4" identifier = (binary_expression "pbVar9 + (ulong)(max_elems - 1) * 4 + 4" (binary_expression "pbVar9 + (ulong)(max_elems - 1) * 4" identifier + (binary_expression "(ulong)(max_elems - 1) * 4" (call_expression "(ulong)(max_elems - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(max_elems - 1)" ( (binary_expression "max_elems - 1" identifier - number_literal) ))) * number_literal)) + number_literal)) ;) (expression_statement "lVar5 = -3 - (long)pbVar9;" (assignment_expression "lVar5 = -3 - (long)pbVar9" identifier = (binary_expression "-3 - (long)pbVar9" number_literal - (cast_expression "(long)pbVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "ptVar7 = tdhp;" (assignment_expression "ptVar7 = tdhp" identifier = identifier) ;) (goto_statement "goto LAB_00106b3b;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(pbVar9 + 3 <= pbVar1)" ( (binary_expression "pbVar9 + 3 <= pbVar1" (binary_expression "pbVar9 + 3" identifier + number_literal) <= identifier) )) ;) })) (labeled_statement "LAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: config too short\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: config too short\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: config too short\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (while_statement "while( true ) {\n    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;\n    ptVar7 = ptVar7 + 1;\n    if (pbVar9 == pbVar2) break;\nLAB_00106b3b:\n    ptVar7->etype = *pbVar9;\n    ptVar7->num_elements = pbVar9[1];\n    ptVar7->se_id = pbVar9[2];\n    ptVar7->txt_len = pbVar9[3];\n    pbVar9 = pbVar9 + 4;\n    if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;\n    ptVar7 = ptVar7 + 1;\n    if (pbVar9 == pbVar2) break;\nLAB_00106b3b:\n    ptVar7->etype = *pbVar9;\n    ptVar7->num_elements = pbVar9[1];\n    ptVar7->se_id = pbVar9[2];\n    ptVar7->txt_len = pbVar9[3];\n    pbVar9 = pbVar9 + 4;\n    if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }\n  }" { (if_statement "if (ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       ) goto LAB_00106c2a;" if (parenthesized_expression "(ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))\n       )" ( (binary_expression "ptVar7 == (type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" identifier == (cast_expression "(type_desc_hdr_t *)(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" ( (type_descriptor "type_desc_hdr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" ( (binary_expression "&tdhp->etype + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" (pointer_expression "&tdhp->etype" & (field_expression "tdhp->etype" identifier -> field_identifier)) + (parenthesized_expression "((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" ( (binary_expression "(ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc" (call_expression "(ulong)(pbVar1 + lVar5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pbVar1 + lVar5)" ( (binary_expression "pbVar1 + lVar5" identifier + identifier) ))) & number_literal) ))) )))) )) (goto_statement "goto LAB_00106c2a;" goto statement_identifier ;)) (expression_statement "ptVar7 = ptVar7 + 1;" (assignment_expression "ptVar7 = ptVar7 + 1" identifier = (binary_expression "ptVar7 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar9 == pbVar2) break;" if (parenthesized_expression "(pbVar9 == pbVar2)" ( (binary_expression "pbVar9 == pbVar2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00106b3b:\n    ptVar7->etype = *pbVar9;" statement_identifier : (expression_statement "ptVar7->etype = *pbVar9;" (assignment_expression "ptVar7->etype = *pbVar9" (field_expression "ptVar7->etype" identifier -> field_identifier) = (pointer_expression "*pbVar9" * identifier)) ;)) (expression_statement "ptVar7->num_elements = pbVar9[1];" (assignment_expression "ptVar7->num_elements = pbVar9[1]" (field_expression "ptVar7->num_elements" identifier -> field_identifier) = (subscript_expression "pbVar9[1]" identifier [ number_literal ])) ;) (expression_statement "ptVar7->se_id = pbVar9[2];" (assignment_expression "ptVar7->se_id = pbVar9[2]" (field_expression "ptVar7->se_id" identifier -> field_identifier) = (subscript_expression "pbVar9[2]" identifier [ number_literal ])) ;) (expression_statement "ptVar7->txt_len = pbVar9[3];" (assignment_expression "ptVar7->txt_len = pbVar9[3]" (field_expression "ptVar7->txt_len" identifier -> field_identifier) = (subscript_expression "pbVar9[3]" identifier [ number_literal ])) ;) (expression_statement "pbVar9 = pbVar9 + 4;" (assignment_expression "pbVar9 = pbVar9 + 4" identifier = (binary_expression "pbVar9 + 4" identifier + number_literal)) ;) (if_statement "if (tdhp + (iVar14 - 1) == ptVar7) {\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }" if (parenthesized_expression "(tdhp + (iVar14 - 1) == ptVar7)" ( (binary_expression "tdhp + (iVar14 - 1) == ptVar7" (binary_expression "tdhp + (iVar14 - 1)" identifier + (parenthesized_expression "(iVar14 - 1)" ( (binary_expression "iVar14 - 1" identifier - number_literal) ))) == identifier) )) (compound_statement "{\n      if (op->ind_given == false) goto LAB_00106c48;\n      peVar12 = op->ind_etp;\n      if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;\n      iVar13 = op->ind_et_inst;\n      uVar8 = 0;\n      iVar11 = iVar13;\n      goto LAB_00106bd9;\n    }" { (if_statement "if (op->ind_given == false) goto LAB_00106c48;" if (parenthesized_expression "(op->ind_given == false)" ( (binary_expression "op->ind_given == false" (field_expression "op->ind_given" identifier -> field_identifier) == false) )) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;)) (expression_statement "peVar12 = op->ind_etp;" (assignment_expression "peVar12 = op->ind_etp" identifier = (field_expression "op->ind_etp" identifier -> field_identifier)) ;) (if_statement "if (peVar12 == (element_type_t *)0x0) goto LAB_00106bb7;" if (parenthesized_expression "(peVar12 == (element_type_t *)0x0)" ( (binary_expression "peVar12 == (element_type_t *)0x0" identifier == (cast_expression "(element_type_t *)0x0" ( (type_descriptor "element_type_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar13 = op->ind_et_inst;" (assignment_expression "iVar13 = op->ind_et_inst" identifier = (field_expression "op->ind_et_inst" identifier -> field_identifier)) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = iVar13;" (assignment_expression "iVar11 = iVar13" identifier = identifier) ;) (goto_statement "goto LAB_00106bd9;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: too many elements\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: too many elements\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bb7:\n  if (iVar14 == 0) {\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }" statement_identifier : (if_statement "if (iVar14 == 0) {\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }" if (parenthesized_expression "(iVar14 == 0)" ( (binary_expression "iVar14 == 0" identifier == number_literal) )) (compound_statement "{\n    type_desc_hdr_count = type_desc_hdr_count + 1;\n  }" { (expression_statement "type_desc_hdr_count = type_desc_hdr_count + 1;" (assignment_expression "type_desc_hdr_count = type_desc_hdr_count + 1" identifier = (binary_expression "type_desc_hdr_count + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bd9:\n  do {\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  } while (bVar15);" statement_identifier : (do_statement "do {\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  } while (bVar15);" do (compound_statement "{\n    if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }\n    bVar15 = iVar14 - 1 != uVar8;\n    uVar8 = uVar8 + 1;\n  }" { (if_statement "if (peVar12->elem_type_code == (uint)tdhp[uVar8].etype) {\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }" if (parenthesized_expression "(peVar12->elem_type_code == (uint)tdhp[uVar8].etype)" ( (binary_expression "peVar12->elem_type_code == (uint)tdhp[uVar8].etype" (field_expression "peVar12->elem_type_code" identifier -> field_identifier) == (cast_expression "(uint)tdhp[uVar8].etype" ( (type_descriptor "uint" type_identifier) ) (field_expression "tdhp[uVar8].etype" (subscript_expression "tdhp[uVar8]" identifier [ identifier ]) . field_identifier))) )) (compound_statement "{\n      if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar11 = iVar11 + -1;\n    }" { (if_statement "if (iVar11 == 0) {\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }\n        break;\n      }" { (if_statement "if ((int)uVar8 < iVar14) {\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }" if (parenthesized_expression "((int)uVar8 < iVar14)" ( (binary_expression "(int)uVar8 < iVar14" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n          op->ind_th = (int)uVar8;\n          goto LAB_00106c48;\n        }" { (expression_statement "op->ind_th = (int)uVar8;" (assignment_expression "op->ind_th = (int)uVar8" (field_expression "op->ind_th" identifier -> field_identifier) = (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) })) (expression_statement "bVar15 = iVar14 - 1 != uVar8;" (assignment_expression "bVar15 = iVar14 - 1 != uVar8" identifier = (binary_expression "iVar14 - 1 != uVar8" (binary_expression "iVar14 - 1" identifier - number_literal) != identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;)) (labeled_statement "LAB_00106cb2:\n  if (iVar13 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }" statement_identifier : (if_statement "if (iVar13 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev);" (call_expression "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev)" identifier (argument_list "("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",peVar12->abbrev)" ( (string_literal ""%s: unable to find element type \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (field_expression "peVar12->abbrev" identifier -> field_identifier) ))) ;) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }" else (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);\n    iVar14 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev);" (call_expression "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev)" identifier (argument_list "("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",peVar12->abbrev)" ( (string_literal ""%s: unable to find element type \'%s%d\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (field_expression "peVar12->abbrev" identifier -> field_identifier) ))) ;) (expression_statement "iVar14 = -1;" (assignment_expression "iVar14 = -1" identifier = number_literal) ;) })))) (labeled_statement "LAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar14;" return identifier ;) })))
(translation_unit "int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar13;\n}\n\n" (function_definition "int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar13;\n}" primitive_type (function_declarator "FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" identifier (parameter_list "(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "long param_6" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar13;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }" if (parenthesized_expression "(DAT_0011f8b0 == 0)" ( (binary_expression "DAT_0011f8b0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }" { (expression_statement "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);" (assignment_expression "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" identifier = (call_expression "sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" identifier (argument_list "(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" ( (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) , number_literal , (pointer_expression "&DAT_0011f8a8" & identifier) , number_literal )))) ;) (if_statement "if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(DAT_0011f8b0 == 0)" ( (binary_expression "DAT_0011f8b0 == 0" identifier == number_literal) )) (compound_statement "{\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));" (call_expression "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" identifier (argument_list "("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" ( (string_literal ""%s: unable to allocate %d bytes on heap\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (expression_statement "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);" (assignment_expression "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" identifier = (call_expression "FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" identifier (argument_list "(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_6 + 0x44)" * (cast_expression "(undefined4 *)(param_6 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x44)" ( (binary_expression "param_6 + 0x44" identifier + number_literal) )))) , identifier , (pointer_expression "&local_44" & identifier) )))) ;) (if_statement "if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);" (call_expression "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" identifier (argument_list "("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" ( (string_literal ""%s: couldn\'t read config page, res=%d\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" identifier (argument_list "(DAT_0011f8a8)" ( identifier ))) ;) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (if_statement "if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" if (parenthesized_expression "(local_44 < 4)" ( (binary_expression "local_44 < 4" identifier < number_literal) )) (compound_statement "{\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" { (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" identifier (argument_list "(DAT_0011f8a8)" ( identifier ))) ;) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_44 = DAT_0011f8a0;\n  }" else (compound_statement "{\n    local_44 = DAT_0011f8a0;\n  }" { (expression_statement "local_44 = DAT_0011f8a0;" (assignment_expression "local_44 = DAT_0011f8a0" identifier = identifier) ;) }))) (expression_statement "lVar5 = DAT_0011f8b0;" (assignment_expression "lVar5 = DAT_0011f8b0" identifier = identifier) ;) (expression_statement "bVar3 = *(byte *)(DAT_0011f8b0 + 1);" (assignment_expression "bVar3 = *(byte *)(DAT_0011f8b0 + 1)" identifier = (pointer_expression "*(byte *)(DAT_0011f8b0 + 1)" * (cast_expression "(byte *)(DAT_0011f8b0 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + 1)" ( (binary_expression "DAT_0011f8b0 + 1" identifier + number_literal) ))))) ;) (expression_statement "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);" (assignment_expression "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44)" identifier = (cast_expression "(byte *)(DAT_0011f8b0 + -1 + (long)local_44)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + -1 + (long)local_44)" ( (binary_expression "DAT_0011f8b0 + -1 + (long)local_44" (binary_expression "DAT_0011f8b0 + -1" identifier + number_literal) + (cast_expression "(long)local_44" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "DAT_0011f8a0 = local_44;" (assignment_expression "DAT_0011f8a0 = local_44" identifier = identifier) ;) (if_statement "if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" if (parenthesized_expression "(param_4 != (uint *)0x0)" ( (binary_expression "param_4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" { (expression_statement "uVar9 = *(uint *)(DAT_0011f8b0 + 4);" (assignment_expression "uVar9 = *(uint *)(DAT_0011f8b0 + 4)" identifier = (pointer_expression "*(uint *)(DAT_0011f8b0 + 4)" * (cast_expression "(uint *)(DAT_0011f8b0 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0011f8b0 + 4)" ( (binary_expression "DAT_0011f8b0 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;" (assignment_expression "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8" (binary_expression "uVar9 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar9 & 0xff0000) >> 8" (parenthesized_expression "(uVar9 & 0xff0000)" ( (binary_expression "uVar9 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar9 & 0xff00) << 8" (parenthesized_expression "(uVar9 & 0xff00)" ( (binary_expression "uVar9 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar9 << 0x18" identifier << number_literal))) ;) })) (expression_statement "pbVar8 = (byte *)(lVar5 + 8);" (assignment_expression "pbVar8 = (byte *)(lVar5 + 8)" identifier = (cast_expression "(byte *)(lVar5 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) ;) (if_statement "if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" if (parenthesized_expression "((byte *)(lVar5 + 0xb) <= pbVar1)" ( (binary_expression "(byte *)(lVar5 + 0xb) <= pbVar1" (cast_expression "(byte *)(lVar5 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0xb)" ( (binary_expression "lVar5 + 0xb" identifier + number_literal) ))) <= identifier) )) (compound_statement "{\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);" do (compound_statement "{\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    }" { (expression_statement "uVar9 = pbVar8[3] + 4;" (assignment_expression "uVar9 = pbVar8[3] + 4" identifier = (binary_expression "pbVar8[3] + 4" (subscript_expression "pbVar8[3]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar13 = iVar13 + (uint)pbVar8[2];" (assignment_expression "iVar13 = iVar13 + (uint)pbVar8[2]" identifier = (binary_expression "iVar13 + (uint)pbVar8[2]" identifier + (cast_expression "(uint)pbVar8[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[2]" identifier [ number_literal ])))) ;) (if_statement "if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" if (parenthesized_expression "(uVar9 < 0x28)" ( (binary_expression "uVar9 < 0x28" identifier < number_literal) )) (compound_statement "{\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }" { (expression_statement "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);" (call_expression "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" identifier (argument_list "("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" ( (string_literal ""%s: short enc descriptor len=%d ??\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , identifier ))) ;) }) (else_clause "else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" else (if_statement "if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" if (parenthesized_expression "((iVar12 == 0) && (param_5 != (int *)0x0))" ( (binary_expression "(iVar12 == 0) && (param_5 != (int *)0x0)" (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_5 != (int *)0x0)" ( (binary_expression "param_5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" { (expression_statement "*param_5 = *param_5 + 1;" (assignment_expression "*param_5 = *param_5 + 1" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 + 1" (pointer_expression "*param_5" * identifier) + number_literal)) ;) (expression_statement "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;" (assignment_expression "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "(int)(uint)*pbVar8 >> 4 & 7" (binary_expression "(int)(uint)*pbVar8 >> 4" (binary_expression "(int)(uint)*pbVar8" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> number_literal) & number_literal)) ;) (expression_statement "param_5[2] = *pbVar8 & 7;" (assignment_expression "param_5[2] = *pbVar8 & 7" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (binary_expression "*pbVar8 & 7" (pointer_expression "*pbVar8" * identifier) & number_literal)) ;) (expression_statement "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);" (assignment_expression "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4)" (pointer_expression "*(undefined8 *)(param_5 + 3)" * (cast_expression "(undefined8 *)(param_5 + 3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 4)" * (cast_expression "(undefined8 *)(pbVar8 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 4)" ( (binary_expression "pbVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);" (assignment_expression "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc)" (pointer_expression "*(undefined8 *)(param_5 + 5)" * (cast_expression "(undefined8 *)(param_5 + 5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 5)" ( (binary_expression "param_5 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 0xc)" * (cast_expression "(undefined8 *)(pbVar8 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0xc)" ( (binary_expression "pbVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined8 *)(pbVar8 + 0x1c);" (assignment_expression "uVar4 = *(undefined8 *)(pbVar8 + 0x1c)" identifier = (pointer_expression "*(undefined8 *)(pbVar8 + 0x1c)" * (cast_expression "(undefined8 *)(pbVar8 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x1c)" ( (binary_expression "pbVar8 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);" (assignment_expression "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14)" (pointer_expression "*(undefined8 *)(param_5 + 7)" * (cast_expression "(undefined8 *)(param_5 + 7)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 7)" ( (binary_expression "param_5 + 7" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(pbVar8 + 0x14)" * (cast_expression "(undefined8 *)(pbVar8 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x14)" ( (binary_expression "pbVar8 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_5 + 9) = uVar4;" (assignment_expression "*(undefined8 *)(param_5 + 9) = uVar4" (pointer_expression "*(undefined8 *)(param_5 + 9)" * (cast_expression "(undefined8 *)(param_5 + 9)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 9)" ( (binary_expression "param_5 + 9" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_5[0xb] = *(int *)(pbVar8 + 0x24);" (assignment_expression "param_5[0xb] = *(int *)(pbVar8 + 0x24)" (subscript_expression "param_5[0xb]" identifier [ number_literal ]) = (pointer_expression "*(int *)(pbVar8 + 0x24)" * (cast_expression "(int *)(pbVar8 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + 0x24)" ( (binary_expression "pbVar8 + 0x24" identifier + number_literal) ))))) ;) })))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + (int)uVar9;" (assignment_expression "pbVar8 = pbVar8 + (int)uVar9" identifier = (binary_expression "pbVar8 + (int)uVar9" identifier + (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar12 == bVar3 + 1)" ( (binary_expression "iVar12 == bVar3 + 1" identifier == (binary_expression "bVar3 + 1" identifier + number_literal)) )) (compound_statement "{\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" { (if_statement "if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" if (parenthesized_expression "(iVar13 < 1)" ( (binary_expression "iVar13 < 1" identifier < number_literal) )) (compound_statement "{\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" { (if_statement "if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;" if (parenthesized_expression "((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0))" ( (binary_expression "(*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" ( (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" * (cast_expression "(char *)(param_6 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 7)" ( (binary_expression "param_6 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" ( (comma_expression "puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" identifier = (pointer_expression "*(uint **)(param_6 + 0x80)" * (cast_expression "(uint **)(param_6 + 0x80)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0x80)" ( (binary_expression "param_6 + 0x80" identifier + number_literal) ))))) , (binary_expression "puVar11 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" identifier = (pointer_expression "*(int *)(param_6 + 0x40)" * (cast_expression "(int *)(param_6 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x40)" ( (binary_expression "param_6 + 0x40" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00106cb2;" goto statement_identifier ;) })) (if_statement "if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" if (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" ( (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" identifier + number_literal) <= identifier) )) (compound_statement "{\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" { (if_statement "if (param_3 < 1) goto LAB_00106b74;" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00106b74;" goto statement_identifier ;)) (expression_statement "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;" (assignment_expression "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4" identifier = (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4 + 4" (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4" identifier + (binary_expression "(ulong)(param_3 - 1) * 4" (call_expression "(ulong)(param_3 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) ))) * number_literal)) + number_literal)) ;) (expression_statement "lVar5 = -3 - (long)pbVar8;" (assignment_expression "lVar5 = -3 - (long)pbVar8" identifier = (binary_expression "-3 - (long)pbVar8" number_literal - (cast_expression "(long)pbVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" identifier = identifier) ;) (goto_statement "goto LAB_00106b3b;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" ( (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" identifier + number_literal) <= identifier) )) ;) })) (labeled_statement "LAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: config too short\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: config too short\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: config too short\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (while_statement "while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" { (if_statement "if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;" if (parenthesized_expression "(pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" ( (binary_expression "pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" identifier == (binary_expression "param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" identifier + (parenthesized_expression "((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" ( (binary_expression "(ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc" (call_expression "(ulong)(pbVar1 + lVar5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(pbVar1 + lVar5)" ( (binary_expression "pbVar1 + lVar5" identifier + identifier) ))) & number_literal) )))) )) (goto_statement "goto LAB_00106c2a;" goto statement_identifier ;)) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" identifier = (binary_expression "pbVar6 + 4" identifier + number_literal)) ;) (if_statement "if (pbVar8 == pbVar2) break;" if (parenthesized_expression "(pbVar8 == pbVar2)" ( (binary_expression "pbVar8 == pbVar2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00106b3b:\n    *pbVar6 = *pbVar8;" statement_identifier : (expression_statement "*pbVar6 = *pbVar8;" (assignment_expression "*pbVar6 = *pbVar8" (pointer_expression "*pbVar6" * identifier) = (pointer_expression "*pbVar8" * identifier)) ;)) (expression_statement "pbVar6[1] = pbVar8[1];" (assignment_expression "pbVar6[1] = pbVar8[1]" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) = (subscript_expression "pbVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar6[2] = pbVar8[2];" (assignment_expression "pbVar6[2] = pbVar8[2]" (subscript_expression "pbVar6[2]" identifier [ number_literal ]) = (subscript_expression "pbVar8[2]" identifier [ number_literal ])) ;) (expression_statement "pbVar6[3] = pbVar8[3];" (assignment_expression "pbVar6[3] = pbVar8[3]" (subscript_expression "pbVar6[3]" identifier [ number_literal ]) = (subscript_expression "pbVar8[3]" identifier [ number_literal ])) ;) (expression_statement "pbVar8 = pbVar8 + 4;" (assignment_expression "pbVar8 = pbVar8 + 4" identifier = (binary_expression "pbVar8 + 4" identifier + number_literal)) ;) (if_statement "if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" if (parenthesized_expression "(param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6)" ( (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6" (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4" identifier + (binary_expression "(ulong)(iVar13 - 1) * 4" (call_expression "(ulong)(iVar13 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar13 - 1)" ( (binary_expression "iVar13 - 1" identifier - number_literal) ))) * number_literal)) == identifier) )) (compound_statement "{\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" { (if_statement "if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;" if (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" ( (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" * (cast_expression "(char *)(param_6 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 7)" ( (binary_expression "param_6 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;)) (expression_statement "puVar11 = *(uint **)(param_6 + 0x80);" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" identifier = (pointer_expression "*(uint **)(param_6 + 0x80)" * (cast_expression "(uint **)(param_6 + 0x80)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0x80)" ( (binary_expression "param_6 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (puVar11 == (uint *)0x0) goto LAB_00106bb7;" if (parenthesized_expression "(puVar11 == (uint *)0x0)" ( (binary_expression "puVar11 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00106bb7;" goto statement_identifier ;)) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" identifier = (pointer_expression "*(int *)(param_6 + 0x40)" * (cast_expression "(int *)(param_6 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x40)" ( (binary_expression "param_6 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = iVar12;" (assignment_expression "iVar10 = iVar12" identifier = identifier) ;) (goto_statement "goto LAB_00106bd9;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" statement_identifier : (expression_statement "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr")" identifier (argument_list "("%s: too many elements\n","build_type_desc_hdr_arr")" ( (string_literal ""%s: too many elements\n"" " string_content escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") ))) ;)) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" statement_identifier : (if_statement "if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" { (expression_statement "DAT_0011f8b8 = DAT_0011f8b8 + 1;" (assignment_expression "DAT_0011f8b8 = DAT_0011f8b8 + 1" identifier = (binary_expression "DAT_0011f8b8 + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) (labeled_statement "LAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" statement_identifier : (do_statement "do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" do (compound_statement "{\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  }" { (if_statement "if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" if (parenthesized_expression "(*puVar11 == (uint)param_2[uVar7 * 4])" ( (binary_expression "*puVar11 == (uint)param_2[uVar7 * 4]" (pointer_expression "*puVar11" * identifier) == (cast_expression "(uint)param_2[uVar7 * 4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[uVar7 * 4]" identifier [ (binary_expression "uVar7 * 4" identifier * number_literal) ]))) )) (compound_statement "{\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" { (if_statement "if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" { (if_statement "if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" if (parenthesized_expression "((int)uVar7 < iVar13)" ( (binary_expression "(int)uVar7 < iVar13" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" { (expression_statement "*(int *)(param_6 + 0x34) = (int)uVar7;" (assignment_expression "*(int *)(param_6 + 0x34) = (int)uVar7" (pointer_expression "*(int *)(param_6 + 0x34)" * (cast_expression "(int *)(param_6 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x34)" ( (binary_expression "param_6 + 0x34" identifier + number_literal) )))) = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00106c48;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) })) (expression_statement "bVar14 = iVar13 - 1 != uVar7;" (assignment_expression "bVar14 = iVar13 - 1 != uVar7" identifier = (binary_expression "iVar13 - 1 != uVar7" (binary_expression "iVar13 - 1" identifier - number_literal) != identifier)) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar14)" ( identifier )) ;)) (labeled_statement "LAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" statement_identifier : (if_statement "if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" identifier (argument_list "("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" ( (string_literal ""%s: unable to find element type \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined8 *)(puVar11 + 2)" * (cast_expression "(undefined8 *)(puVar11 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 2)" ( (binary_expression "puVar11 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" else (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" { (expression_statement "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" identifier (argument_list "("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" ( (string_literal ""%s: unable to find element type \'%s%d\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal ""build_type_desc_hdr_arr"" " string_content ") , (pointer_expression "*(undefined8 *)(puVar11 + 2)" * (cast_expression "(undefined8 *)(puVar11 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 2)" ( (binary_expression "puVar11 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" identifier = number_literal) ;) })))) (labeled_statement "LAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * IDENT) >> LIT) & LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (expression_statement (assignment_expression (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 (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 = (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) )))) = (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 (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") ))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) & LIT) )))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT)) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") ))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - LIT) != IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence escape_sequence ") , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar13;\n}" (primitive_type "int") (function_declarator "FUN_001068e5(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" (identifier "FUN_001068e5") (parameter_list "(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,\n                long param_6)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "long param_6" (sized_type_specifier "long" (long "long")) (identifier "param_6")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  int local_44;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }\n  lVar5 = DAT_0011f8b0;\n  bVar3 = *(byte *)(DAT_0011f8b0 + 1);\n  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);\n  DAT_0011f8a0 = local_44;\n  if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }\n  pbVar8 = (byte *)(lVar5 + 8);\n  if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }\nLAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\n  while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }\nLAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");\n  iVar13 = -1;\n  goto LAB_00106c48;\nLAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }\n  goto LAB_00106c48;\nLAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);\nLAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\nLAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar13;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint *puVar11;" (type_identifier "uint") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "bool bVar14;" (primitive_type "bool") (identifier "bVar14") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (DAT_0011f8b0 == 0) {\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }\n  else {\n    local_44 = DAT_0011f8a0;\n  }" (if "if") (parenthesized_expression "(DAT_0011f8b0 == 0)" (( "(") (binary_expression "DAT_0011f8b0 == 0" (identifier "DAT_0011f8b0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);\n    if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);\n    if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n    if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }\n  }" ({ "{") (expression_statement "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);" (assignment_expression "DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" (identifier "DAT_0011f8b0") (= "=") (call_expression "sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" (identifier "sg_memalign") (argument_list "(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0)" (( "(") (pointer_expression "*(undefined4 *)(param_6 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_6 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x44)" (( "(") (binary_expression "param_6 + 0x44" (identifier "param_6") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (number_literal "0") (, ",") (pointer_expression "&DAT_0011f8a8" (& "&") (identifier "DAT_0011f8a8")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (DAT_0011f8b0 == 0) {\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" (if "if") (parenthesized_expression "(DAT_0011f8b0 == 0)" (( "(") (binary_expression "DAT_0011f8b0 == 0" (identifier "DAT_0011f8b0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" ({ "{") (expression_statement "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44));" (call_expression "pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" (identifier "pr2serr") (argument_list "("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",\n              *(undefined4 *)(param_6 + 0x44))" (( "(") (string_literal ""%s: unable to allocate %d bytes on heap\n"" (" """) (string_content "%s: unable to allocate %d bytes on heap") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_6 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_6 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x44)" (( "(") (binary_expression "param_6 + 0x44" (identifier "param_6") (+ "+") (number_literal "0x44")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (} "}"))) (expression_statement "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);" (assignment_expression "iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" (identifier "iVar13") (= "=") (call_expression "FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" (identifier "FUN_001063fe") (argument_list "(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "DAT_0011f8b0") (, ",") (pointer_expression "*(undefined4 *)(param_6 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_6 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x44)" (( "(") (binary_expression "param_6 + 0x44" (identifier "param_6") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (identifier "param_6") (, ",") (pointer_expression "&local_44" (& "&") (identifier "local_44")) () ")")))) (; ";")) (if_statement "if (iVar13 != 0) {\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" (if "if") (parenthesized_expression "(iVar13 != 0)" (( "(") (binary_expression "iVar13 != 0" (identifier "iVar13") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" ({ "{") (expression_statement "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);" (call_expression "pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" (identifier "pr2serr") (argument_list "("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13)" (( "(") (string_literal ""%s: couldn\'t read config page, res=%d\n"" (" """) (string_content "%s: couldn") (escape_sequence "\'") (string_content "t read config page, res=%d") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) (, ",") (identifier "iVar13") () ")"))) (; ";")) (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" (identifier "free") (argument_list "(DAT_0011f8a8)" (( "(") (identifier "DAT_0011f8a8") () ")"))) (; ";")) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" (identifier "DAT_0011f8a8") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (} "}"))) (if_statement "if (local_44 < 4) {\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" (if "if") (parenthesized_expression "(local_44 < 4)" (( "(") (binary_expression "local_44 < 4" (identifier "local_44") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n      free(DAT_0011f8a8);\n      DAT_0011f8a8 = (void *)0x0;\n      iVar13 = -1;\n      goto LAB_00106c48;\n    }" ({ "{") (expression_statement "free(DAT_0011f8a8);" (call_expression "free(DAT_0011f8a8)" (identifier "free") (argument_list "(DAT_0011f8a8)" (( "(") (identifier "DAT_0011f8a8") () ")"))) (; ";")) (expression_statement "DAT_0011f8a8 = (void *)0x0;" (assignment_expression "DAT_0011f8a8 = (void *)0x0" (identifier "DAT_0011f8a8") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_44 = DAT_0011f8a0;\n  }" (else "else") (compound_statement "{\n    local_44 = DAT_0011f8a0;\n  }" ({ "{") (expression_statement "local_44 = DAT_0011f8a0;" (assignment_expression "local_44 = DAT_0011f8a0" (identifier "local_44") (= "=") (identifier "DAT_0011f8a0")) (; ";")) (} "}")))) (expression_statement "lVar5 = DAT_0011f8b0;" (assignment_expression "lVar5 = DAT_0011f8b0" (identifier "lVar5") (= "=") (identifier "DAT_0011f8b0")) (; ";")) (expression_statement "bVar3 = *(byte *)(DAT_0011f8b0 + 1);" (assignment_expression "bVar3 = *(byte *)(DAT_0011f8b0 + 1)" (identifier "bVar3") (= "=") (pointer_expression "*(byte *)(DAT_0011f8b0 + 1)" (* "*") (cast_expression "(byte *)(DAT_0011f8b0 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0011f8b0 + 1)" (( "(") (binary_expression "DAT_0011f8b0 + 1" (identifier "DAT_0011f8b0") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);" (assignment_expression "pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(DAT_0011f8b0 + -1 + (long)local_44)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0011f8b0 + -1 + (long)local_44)" (( "(") (binary_expression "DAT_0011f8b0 + -1 + (long)local_44" (binary_expression "DAT_0011f8b0 + -1" (identifier "DAT_0011f8b0") (+ "+") (number_literal "-1")) (+ "+") (cast_expression "(long)local_44" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_44"))) () ")")))) (; ";")) (expression_statement "DAT_0011f8a0 = local_44;" (assignment_expression "DAT_0011f8a0 = local_44" (identifier "DAT_0011f8a0") (= "=") (identifier "local_44")) (; ";")) (if_statement "if (param_4 != (uint *)0x0) {\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" (if "if") (parenthesized_expression "(param_4 != (uint *)0x0)" (( "(") (binary_expression "param_4 != (uint *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar9 = *(uint *)(DAT_0011f8b0 + 4);\n    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;\n  }" ({ "{") (expression_statement "uVar9 = *(uint *)(DAT_0011f8b0 + 4);" (assignment_expression "uVar9 = *(uint *)(DAT_0011f8b0 + 4)" (identifier "uVar9") (= "=") (pointer_expression "*(uint *)(DAT_0011f8b0 + 4)" (* "*") (cast_expression "(uint *)(DAT_0011f8b0 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0011f8b0 + 4)" (( "(") (binary_expression "DAT_0011f8b0 + 4" (identifier "DAT_0011f8b0") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;" (assignment_expression "*param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8" (binary_expression "uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8" (binary_expression "uVar9 >> 0x18" (identifier "uVar9") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar9 & 0xff0000) >> 8" (parenthesized_expression "(uVar9 & 0xff0000)" (( "(") (binary_expression "uVar9 & 0xff0000" (identifier "uVar9") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar9 & 0xff00) << 8" (parenthesized_expression "(uVar9 & 0xff00)" (( "(") (binary_expression "uVar9 & 0xff00" (identifier "uVar9") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar9 << 0x18" (identifier "uVar9") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (expression_statement "pbVar8 = (byte *)(lVar5 + 8);" (assignment_expression "pbVar8 = (byte *)(lVar5 + 8)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(lVar5 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (; ";")) (if_statement "if ((byte *)(lVar5 + 0xb) <= pbVar1) {\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" (if "if") (parenthesized_expression "((byte *)(lVar5 + 0xb) <= pbVar1)" (( "(") (binary_expression "(byte *)(lVar5 + 0xb) <= pbVar1" (cast_expression "(byte *)(lVar5 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0xb)" (( "(") (binary_expression "lVar5 + 0xb" (identifier "lVar5") (+ "+") (number_literal "0xb")) () ")"))) (<= "<=") (identifier "pbVar1")) () ")")) (compound_statement "{\n    iVar13 = 0;\n    iVar12 = 0;\n    do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);\n  }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    } while (pbVar8 + 3 <= pbVar1);" (do "do") (compound_statement "{\n      uVar9 = pbVar8[3] + 4;\n      iVar13 = iVar13 + (uint)pbVar8[2];\n      if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }\n      iVar12 = iVar12 + 1;\n      pbVar8 = pbVar8 + (int)uVar9;\n      if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }\n    }" ({ "{") (expression_statement "uVar9 = pbVar8[3] + 4;" (assignment_expression "uVar9 = pbVar8[3] + 4" (identifier "uVar9") (= "=") (binary_expression "pbVar8[3] + 4" (subscript_expression "pbVar8[3]" (identifier "pbVar8") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar13 = iVar13 + (uint)pbVar8[2];" (assignment_expression "iVar13 = iVar13 + (uint)pbVar8[2]" (identifier "iVar13") (= "=") (binary_expression "iVar13 + (uint)pbVar8[2]" (identifier "iVar13") (+ "+") (cast_expression "(uint)pbVar8[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[2]" (identifier "pbVar8") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (if_statement "if (uVar9 < 0x28) {\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }\n      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" (if "if") (parenthesized_expression "(uVar9 < 0x28)" (( "(") (binary_expression "uVar9 < 0x28" (identifier "uVar9") (< "<") (number_literal "0x28")) () ")")) (compound_statement "{\n        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);\n      }" ({ "{") (expression_statement "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);" (call_expression "pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" (identifier "pr2serr") (argument_list "("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9)" (( "(") (string_literal ""%s: short enc descriptor len=%d ??\n"" (" """) (string_content "%s: short enc descriptor len=%d ??") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}")) (else_clause "else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" (else "else") (if_statement "if ((iVar12 == 0) && (param_5 != (int *)0x0)) {\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" (if "if") (parenthesized_expression "((iVar12 == 0) && (param_5 != (int *)0x0))" (( "(") (binary_expression "(iVar12 == 0) && (param_5 != (int *)0x0)" (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_5 != (int *)0x0)" (( "(") (binary_expression "param_5 != (int *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n        *param_5 = *param_5 + 1;\n        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;\n        param_5[2] = *pbVar8 & 7;\n        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);\n        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);\n        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);\n        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);\n        *(undefined8 *)(param_5 + 9) = uVar4;\n        param_5[0xb] = *(int *)(pbVar8 + 0x24);\n      }" ({ "{") (expression_statement "*param_5 = *param_5 + 1;" (assignment_expression "*param_5 = *param_5 + 1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "*param_5 + 1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;" (assignment_expression "param_5[1] = (int)(uint)*pbVar8 >> 4 & 7" (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(int)(uint)*pbVar8 >> 4 & 7" (binary_expression "(int)(uint)*pbVar8 >> 4" (binary_expression "(int)(uint)*pbVar8" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "pbVar8")) (>> ">>") (number_literal "4")) (& "&") (number_literal "7"))) (; ";")) (expression_statement "param_5[2] = *pbVar8 & 7;" (assignment_expression "param_5[2] = *pbVar8 & 7" (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "*pbVar8 & 7" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (& "&") (number_literal "7"))) (; ";")) (expression_statement "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);" (assignment_expression "*(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4)" (pointer_expression "*(undefined8 *)(param_5 + 3)" (* "*") (cast_expression "(undefined8 *)(param_5 + 3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 3)" (( "(") (binary_expression "param_5 + 3" (identifier "param_5") (+ "+") (number_literal "3")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(pbVar8 + 4)" (* "*") (cast_expression "(undefined8 *)(pbVar8 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar8 + 4)" (( "(") (binary_expression "pbVar8 + 4" (identifier "pbVar8") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);" (assignment_expression "*(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc)" (pointer_expression "*(undefined8 *)(param_5 + 5)" (* "*") (cast_expression "(undefined8 *)(param_5 + 5)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 5)" (( "(") (binary_expression "param_5 + 5" (identifier "param_5") (+ "+") (number_literal "5")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(pbVar8 + 0xc)" (* "*") (cast_expression "(undefined8 *)(pbVar8 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar8 + 0xc)" (( "(") (binary_expression "pbVar8 + 0xc" (identifier "pbVar8") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined8 *)(pbVar8 + 0x1c);" (assignment_expression "uVar4 = *(undefined8 *)(pbVar8 + 0x1c)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined8 *)(pbVar8 + 0x1c)" (* "*") (cast_expression "(undefined8 *)(pbVar8 + 0x1c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar8 + 0x1c)" (( "(") (binary_expression "pbVar8 + 0x1c" (identifier "pbVar8") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);" (assignment_expression "*(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14)" (pointer_expression "*(undefined8 *)(param_5 + 7)" (* "*") (cast_expression "(undefined8 *)(param_5 + 7)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 7)" (( "(") (binary_expression "param_5 + 7" (identifier "param_5") (+ "+") (number_literal "7")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(pbVar8 + 0x14)" (* "*") (cast_expression "(undefined8 *)(pbVar8 + 0x14)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar8 + 0x14)" (( "(") (binary_expression "pbVar8 + 0x14" (identifier "pbVar8") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_5 + 9) = uVar4;" (assignment_expression "*(undefined8 *)(param_5 + 9) = uVar4" (pointer_expression "*(undefined8 *)(param_5 + 9)" (* "*") (cast_expression "(undefined8 *)(param_5 + 9)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 9)" (( "(") (binary_expression "param_5 + 9" (identifier "param_5") (+ "+") (number_literal "9")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "param_5[0xb] = *(int *)(pbVar8 + 0x24);" (assignment_expression "param_5[0xb] = *(int *)(pbVar8 + 0x24)" (subscript_expression "param_5[0xb]" (identifier "param_5") ([ "[") (number_literal "0xb") (] "]")) (= "=") (pointer_expression "*(int *)(pbVar8 + 0x24)" (* "*") (cast_expression "(int *)(pbVar8 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar8 + 0x24)" (( "(") (binary_expression "pbVar8 + 0x24" (identifier "pbVar8") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (int)uVar9;" (assignment_expression "pbVar8 = pbVar8 + (int)uVar9" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (int)uVar9" (identifier "pbVar8") (+ "+") (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")))) (; ";")) (if_statement "if (iVar12 == bVar3 + 1) {\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(iVar12 == bVar3 + 1)" (( "(") (binary_expression "iVar12 == bVar3 + 1" (identifier "iVar12") (== "==") (binary_expression "bVar3 + 1" (identifier "bVar3") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n        if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }\n        if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }\n        break;\n      }" ({ "{") (if_statement "if (iVar13 < 1) {\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" (if "if") (parenthesized_expression "(iVar13 < 1)" (( "(") (binary_expression "iVar13 < 1" (identifier "iVar13") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;\n          iVar12 = *(int *)(param_6 + 0x40);\n          goto LAB_00106cb2;\n        }" ({ "{") (if_statement "if ((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;" (if "if") (parenthesized_expression "((*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0))" (( "(") (binary_expression "(*(char *)(param_6 + 7) == '\0') ||\n             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" (( "(") (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" (* "*") (cast_expression "(char *)(param_6 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 7)" (( "(") (binary_expression "param_6 + 7" (identifier "param_6") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)" (( "(") (comma_expression "puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" (identifier "puVar11") (= "=") (pointer_expression "*(uint **)(param_6 + 0x80)" (* "*") (cast_expression "(uint **)(param_6 + 0x80)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0x80)" (( "(") (binary_expression "param_6 + 0x80" (identifier "param_6") (+ "+") (number_literal "0x80")) () ")"))))) (, ",") (binary_expression "puVar11 == (uint *)0x0" (identifier "puVar11") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_00106bb7;" (goto "goto") (statement_identifier "LAB_00106bb7") (; ";"))) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_6 + 0x40)" (* "*") (cast_expression "(int *)(param_6 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x40)" (( "(") (binary_expression "param_6 + 0x40" (identifier "param_6") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (goto_statement "goto LAB_00106cb2;" (goto "goto") (statement_identifier "LAB_00106cb2") (; ";")) (} "}"))) (if_statement "if (pbVar8 + 3 <= pbVar1) {\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" (if "if") (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" (( "(") (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" (identifier "pbVar8") (+ "+") (number_literal "3")) (<= "<=") (identifier "pbVar1")) () ")")) (compound_statement "{\n          if (param_3 < 1) goto LAB_00106b74;\n          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;\n          lVar5 = -3 - (long)pbVar8;\n          pbVar6 = param_2;\n          goto LAB_00106b3b;\n        }" ({ "{") (if_statement "if (param_3 < 1) goto LAB_00106b74;" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_00106b74;" (goto "goto") (statement_identifier "LAB_00106b74") (; ";"))) (expression_statement "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;" (assignment_expression "pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4" (identifier "pbVar2") (= "=") (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4 + 4" (binary_expression "pbVar8 + (ulong)(param_3 - 1) * 4" (identifier "pbVar8") (+ "+") (binary_expression "(ulong)(param_3 - 1) * 4" (call_expression "(ulong)(param_3 - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_3 - 1)" (( "(") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "4"))) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "lVar5 = -3 - (long)pbVar8;" (assignment_expression "lVar5 = -3 - (long)pbVar8" (identifier "lVar5") (= "=") (binary_expression "-3 - (long)pbVar8" (number_literal "-3") (- "-") (cast_expression "(long)pbVar8" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pbVar8")))) (; ";")) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" (identifier "pbVar6") (= "=") (identifier "param_2")) (; ";")) (goto_statement "goto LAB_00106b3b;" (goto "goto") (statement_identifier "LAB_00106b3b") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(pbVar8 + 3 <= pbVar1)" (( "(") (binary_expression "pbVar8 + 3 <= pbVar1" (binary_expression "pbVar8 + 3" (identifier "pbVar8") (+ "+") (number_literal "3")) (<= "<=") (identifier "pbVar1")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00106c2a:\n  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" (statement_identifier "LAB_00106c2a") (: ":") (expression_statement "pr2serr("%s: config too short\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: config too short\n","build_type_desc_hdr_arr")" (identifier "pr2serr") (argument_list "("%s: config too short\n","build_type_desc_hdr_arr")" (( "(") (string_literal ""%s: config too short\n"" (" """) (string_content "%s: config too short") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) () ")"))) (; ";"))) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (while_statement "while( true ) {\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;\n    pbVar6 = pbVar6 + 4;\n    if (pbVar8 == pbVar2) break;\nLAB_00106b3b:\n    *pbVar6 = *pbVar8;\n    pbVar6[1] = pbVar8[1];\n    pbVar6[2] = pbVar8[2];\n    pbVar6[3] = pbVar8[3];\n    pbVar8 = pbVar8 + 4;\n    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }\n  }" ({ "{") (if_statement "if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;" (if "if") (parenthesized_expression "(pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc))" (( "(") (binary_expression "pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" (identifier "pbVar6") (== "==") (binary_expression "param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" (identifier "param_2") (+ "+") (parenthesized_expression "((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)" (( "(") (binary_expression "(ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc" (call_expression "(ulong)(pbVar1 + lVar5)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(pbVar1 + lVar5)" (( "(") (binary_expression "pbVar1 + lVar5" (identifier "pbVar1") (+ "+") (identifier "lVar5")) () ")"))) (& "&") (number_literal "0xfffffffffffffffc")) () ")")))) () ")")) (goto_statement "goto LAB_00106c2a;" (goto "goto") (statement_identifier "LAB_00106c2a") (; ";"))) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 4" (identifier "pbVar6") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (pbVar8 == pbVar2) break;" (if "if") (parenthesized_expression "(pbVar8 == pbVar2)" (( "(") (binary_expression "pbVar8 == pbVar2" (identifier "pbVar8") (== "==") (identifier "pbVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_00106b3b:\n    *pbVar6 = *pbVar8;" (statement_identifier "LAB_00106b3b") (: ":") (expression_statement "*pbVar6 = *pbVar8;" (assignment_expression "*pbVar6 = *pbVar8" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";"))) (expression_statement "pbVar6[1] = pbVar8[1];" (assignment_expression "pbVar6[1] = pbVar8[1]" (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "pbVar8[1]" (identifier "pbVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar6[2] = pbVar8[2];" (assignment_expression "pbVar6[2] = pbVar8[2]" (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "pbVar8[2]" (identifier "pbVar8") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "pbVar6[3] = pbVar8[3];" (assignment_expression "pbVar6[3] = pbVar8[3]" (subscript_expression "pbVar6[3]" (identifier "pbVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "pbVar8[3]" (identifier "pbVar8") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 4;" (assignment_expression "pbVar8 = pbVar8 + 4" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 4" (identifier "pbVar8") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" (if "if") (parenthesized_expression "(param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6)" (( "(") (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6" (binary_expression "param_2 + (ulong)(iVar13 - 1) * 4" (identifier "param_2") (+ "+") (binary_expression "(ulong)(iVar13 - 1) * 4" (call_expression "(ulong)(iVar13 - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar13 - 1)" (( "(") (binary_expression "iVar13 - 1" (identifier "iVar13") (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "4"))) (== "==") (identifier "pbVar6")) () ")")) (compound_statement "{\n      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;\n      puVar11 = *(uint **)(param_6 + 0x80);\n      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;\n      iVar12 = *(int *)(param_6 + 0x40);\n      uVar7 = 0;\n      iVar10 = iVar12;\n      goto LAB_00106bd9;\n    }" ({ "{") (if_statement "if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;" (if "if") (parenthesized_expression "(*(char *)(param_6 + 7) == '\0')" (( "(") (binary_expression "*(char *)(param_6 + 7) == '\0'" (pointer_expression "*(char *)(param_6 + 7)" (* "*") (cast_expression "(char *)(param_6 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 7)" (( "(") (binary_expression "param_6 + 7" (identifier "param_6") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";"))) (expression_statement "puVar11 = *(uint **)(param_6 + 0x80);" (assignment_expression "puVar11 = *(uint **)(param_6 + 0x80)" (identifier "puVar11") (= "=") (pointer_expression "*(uint **)(param_6 + 0x80)" (* "*") (cast_expression "(uint **)(param_6 + 0x80)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0x80)" (( "(") (binary_expression "param_6 + 0x80" (identifier "param_6") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (puVar11 == (uint *)0x0) goto LAB_00106bb7;" (if "if") (parenthesized_expression "(puVar11 == (uint *)0x0)" (( "(") (binary_expression "puVar11 == (uint *)0x0" (identifier "puVar11") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00106bb7;" (goto "goto") (statement_identifier "LAB_00106bb7") (; ";"))) (expression_statement "iVar12 = *(int *)(param_6 + 0x40);" (assignment_expression "iVar12 = *(int *)(param_6 + 0x40)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_6 + 0x40)" (* "*") (cast_expression "(int *)(param_6 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x40)" (( "(") (binary_expression "param_6 + 0x40" (identifier "param_6") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar10 = iVar12;" (assignment_expression "iVar10 = iVar12" (identifier "iVar10") (= "=") (identifier "iVar12")) (; ";")) (goto_statement "goto LAB_00106bd9;" (goto "goto") (statement_identifier "LAB_00106bd9") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00106b74:\n  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" (statement_identifier "LAB_00106b74") (: ":") (expression_statement "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");" (call_expression "pr2serr("%s: too many elements\n","build_type_desc_hdr_arr")" (identifier "pr2serr") (argument_list "("%s: too many elements\n","build_type_desc_hdr_arr")" (( "(") (string_literal ""%s: too many elements\n"" (" """) (string_content "%s: too many elements") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) () ")"))) (; ";"))) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (labeled_statement "LAB_00106bb7:\n  if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" (statement_identifier "LAB_00106bb7") (: ":") (if_statement "if (iVar13 == 0) {\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" (if "if") (parenthesized_expression "(iVar13 == 0)" (( "(") (binary_expression "iVar13 == 0" (identifier "iVar13") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0011f8b8 = DAT_0011f8b8 + 1;\n  }" ({ "{") (expression_statement "DAT_0011f8b8 = DAT_0011f8b8 + 1;" (assignment_expression "DAT_0011f8b8 = DAT_0011f8b8 + 1" (identifier "DAT_0011f8b8") (= "=") (binary_expression "DAT_0011f8b8 + 1" (identifier "DAT_0011f8b8") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (labeled_statement "LAB_00106bd9:\n  do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" (statement_identifier "LAB_00106bd9") (: ":") (do_statement "do {\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  } while (bVar14);" (do "do") (compound_statement "{\n    if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }\n    bVar14 = iVar13 - 1 != uVar7;\n    uVar7 = uVar7 + 1;\n  }" ({ "{") (if_statement "if (*puVar11 == (uint)param_2[uVar7 * 4]) {\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" (if "if") (parenthesized_expression "(*puVar11 == (uint)param_2[uVar7 * 4])" (( "(") (binary_expression "*puVar11 == (uint)param_2[uVar7 * 4]" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (== "==") (cast_expression "(uint)param_2[uVar7 * 4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[uVar7 * 4]" (identifier "param_2") ([ "[") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4")) (] "]")))) () ")")) (compound_statement "{\n      if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }\n      iVar10 = iVar10 + -1;\n    }" ({ "{") (if_statement "if (iVar10 == 0) {\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }\n        break;\n      }" ({ "{") (if_statement "if ((int)uVar7 < iVar13) {\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" (if "if") (parenthesized_expression "((int)uVar7 < iVar13)" (( "(") (binary_expression "(int)uVar7 < iVar13" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n          *(int *)(param_6 + 0x34) = (int)uVar7;\n          goto LAB_00106c48;\n        }" ({ "{") (expression_statement "*(int *)(param_6 + 0x34) = (int)uVar7;" (assignment_expression "*(int *)(param_6 + 0x34) = (int)uVar7" (pointer_expression "*(int *)(param_6 + 0x34)" (* "*") (cast_expression "(int *)(param_6 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x34)" (( "(") (binary_expression "param_6 + 0x34" (identifier "param_6") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7"))) (; ";")) (goto_statement "goto LAB_00106c48;" (goto "goto") (statement_identifier "LAB_00106c48") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + -1" (identifier "iVar10") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "bVar14 = iVar13 - 1 != uVar7;" (assignment_expression "bVar14 = iVar13 - 1 != uVar7" (identifier "bVar14") (= "=") (binary_expression "iVar13 - 1 != uVar7" (binary_expression "iVar13 - 1" (identifier "iVar13") (- "-") (number_literal "1")) (!= "!=") (identifier "uVar7"))) (; ";")) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar14)" (( "(") (identifier "bVar14") () ")")) (; ";"))) (labeled_statement "LAB_00106cb2:\n  if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" (statement_identifier "LAB_00106cb2") (: ":") (if_statement "if (iVar12 == 0) {\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }\n  else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" ({ "{") (expression_statement "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" (identifier "pr2serr") (argument_list "("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" (( "(") (string_literal ""%s: unable to find element type \'%s\'\n"" (" """) (string_content "%s: unable to find element type ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) (, ",") (pointer_expression "*(undefined8 *)(puVar11 + 2)" (* "*") (cast_expression "(undefined8 *)(puVar11 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 2)" (( "(") (binary_expression "puVar11 + 2" (identifier "puVar11") (+ "+") (number_literal "2")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" (else "else") (compound_statement "{\n    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));\n    iVar13 = -1;\n  }" ({ "{") (expression_statement "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2));" (call_expression "pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" (identifier "pr2serr") (argument_list "("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",\n            *(undefined8 *)(puVar11 + 2))" (( "(") (string_literal ""%s: unable to find element type \'%s%d\'\n"" (" """) (string_content "%s: unable to find element type ") (escape_sequence "\'") (string_content "%s%d") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (string_literal ""build_type_desc_hdr_arr"" (" """) (string_content "build_type_desc_hdr_arr") (" """)) (, ",") (pointer_expression "*(undefined8 *)(puVar11 + 2)" (* "*") (cast_expression "(undefined8 *)(puVar11 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 2)" (( "(") (binary_expression "puVar11 + 2" (identifier "puVar11") (+ "+") (number_literal "2")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar13 = -1;" (assignment_expression "iVar13 = -1" (identifier "iVar13") (= "=") (number_literal "-1")) (; ";")) (} "}"))))) (labeled_statement "LAB_00106c48:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_00106c48") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}")))

int function_1
              (type_1 *ptvp,type_2 *var_22,int var_18,uint32_t *var_9,
              type_3 *var_14,type_4 *op)

{
  type_5 *var_12;
  type_5 *var_21;
  type_5 var_16;
  type_6 uVar4;
  long var_20;
  uint8_t *var_11;
  type_2 *var_19;
  type_7 var_25;
  type_5 *var_15;
  type_8 var_10;
  int var_24;
  type_9 *var_17;
  int var_13;
  int var_6;
  long var_1;
  bool bVar15;
  int var_8;
  long var_26;
  
  var_26 = *(long *)(var_1 + 0x28);
  if (var_2 == (uint8_t *)0x0) {
    var_2 = (uint8_t *)var_3(op->maxlen,0,&free_config_dp_resp,0);
    if (var_2 == (uint8_t *)0x0) {
      var_4("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",op->maxlen);
      var_6 = -1;
      goto LAB_00106c48;
    }
    var_6 = var_5(ptvp,1,var_2,op->maxlen,op,&var_8);
    if (var_6 != 0) {
      var_4("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",var_6);
      var_7(free_config_dp_resp);
      free_config_dp_resp = (uint8_t *)0x0;
      var_6 = -1;
      goto LAB_00106c48;
    }
    if (var_8 < 4) {
      var_7(free_config_dp_resp);
      free_config_dp_resp = (uint8_t *)0x0;
      var_6 = -1;
      goto LAB_00106c48;
    }
  }
  else {
    var_8 = config_dp_resp_len;
  }
  var_11 = var_2;
  var_16 = var_2[1];
  var_12 = var_2 + (long)var_8 + -1;
  config_dp_resp_len = var_8;
  if (var_9 != (uint32_t *)0x0) {
    var_10 = *(type_8 *)(var_2 + 4);
    *var_9 = var_10 >> 0x18 | (var_10 & 0xff0000) >> 8 | (var_10 & 0xff00) << 8 |
                   var_10 << 0x18;
  }
  var_15 = var_11 + 8;
  if (var_11 + 0xb <= var_12) {
    var_6 = 0;
    var_13 = 0;
    do {
      var_10 = var_15[3] + 4;
      var_6 = var_6 + (type_8)var_15[2];
      if (var_10 < 0x28) {
        var_4("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",var_10);
      }
      else if ((var_13 == 0) && (var_14 != (type_3 *)0x0)) {
        var_14->have_info = var_14->have_info + 1;
        var_14->rel_esp_id = (int)(type_8)*var_15 >> 4 & 7;
        var_14->num_esp = *var_15 & 7;
        *(type_6 *)var_14->enc_log_id = *(type_6 *)(var_15 + 4);
        *(type_6 *)var_14->enc_vendor_id = *(type_6 *)(var_15 + 0xc);
        uVar4 = *(type_6 *)(var_15 + 0x1c);
        *(type_6 *)var_14->product_id = *(type_6 *)(var_15 + 0x14);
        *(type_6 *)(var_14->product_id + 8) = uVar4;
        *(type_10 *)var_14->product_rev_level = *(type_10 *)(var_15 + 0x24);
      }
      var_13 = var_13 + 1;
      var_15 = var_15 + (int)var_10;
      if (var_13 == var_16 + 1) {
        if (var_6 < 1) {
          if ((op->ind_given == false) || (var_17 = op->ind_etp, var_17 == (type_9 *)0x0))
          goto LAB_00106bb7;
          var_13 = op->ind_et_inst;
          goto LAB_00106cb2;
        }
        if (var_15 + 3 <= var_12) {
          if (var_18 < 1) goto LAB_00106b74;
          var_21 = var_15 + (type_7)(var_18 - 1) * 4 + 4;
          var_20 = -3 - (long)var_15;
          var_19 = var_22;
          goto LAB_00106b3b;
        }
        break;
      }
    } while (var_15 + 3 <= var_12);
  }
LAB_00106c2a:
  var_4("%s: config too short\n","build_type_desc_hdr_arr");
  var_6 = -1;
  goto LAB_00106c48;
  while( true ) {
    if (var_19 == (type_2 *)(&var_22->etype + ((type_7)(var_12 + var_20) & 0xfffffffffffffffc))
       ) goto LAB_00106c2a;
    var_19 = var_19 + 1;
    if (var_15 == var_21) break;
LAB_00106b3b:
    var_19->etype = *var_15;
    var_19->num_elements = var_15[1];
    var_19->se_id = var_15[2];
    var_19->txt_len = var_15[3];
    var_15 = var_15 + 4;
    if (var_22 + (var_6 - 1) == var_19) {
      if (op->ind_given == false) goto LAB_00106c48;
      var_17 = op->ind_etp;
      if (var_17 == (type_9 *)0x0) goto LAB_00106bb7;
      var_13 = op->ind_et_inst;
      var_25 = 0;
      var_24 = var_13;
      goto LAB_00106bd9;
    }
  }
LAB_00106b74:
  var_4("%s: too many elements\n","build_type_desc_hdr_arr");
  var_6 = -1;
  goto LAB_00106c48;
LAB_00106bb7:
  if (var_6 == 0) {
    var_23 = var_23 + 1;
  }
  goto LAB_00106c48;
LAB_00106bd9:
  do {
    if (var_17->elem_type_code == (type_8)var_22[var_25].etype) {
      if (var_24 == 0) {
        if ((int)var_25 < var_6) {
          op->ind_th = (int)var_25;
          goto LAB_00106c48;
        }
        break;
      }
      var_24 = var_24 + -1;
    }
    bVar15 = var_6 - 1 != var_25;
    var_25 = var_25 + 1;
  } while (bVar15);
LAB_00106cb2:
  if (var_13 == 0) {
    var_4("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",var_17->abbrev);
    var_6 = -1;
  }
  else {
    var_4("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",var_17->abbrev);
    var_6 = -1;
  }
LAB_00106c48:
  if (var_26 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_27();
  }
  return var_6;
}


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

int MASKED(undefined8 param_1,byte *param_2,int param_3,uint *param_4,int *param_5,
                long param_6)

{
  byte *pbVar1;
  byte *pbVar2;
  byte bVar3;
  undefined8 uVar4;
  long lVar5;
  byte *pbVar6;
  ulong uVar7;
  byte *pbVar8;
  uint uVar9;
  int iVar10;
  uint *puVar11;
  int iVar12;
  int iVar13;
  long in_FS_OFFSET;
  bool bVar14;
  int local_44;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (DAT_0011f8b0 == 0) {
    DAT_0011f8b0 = sg_memalign(*(undefined4 *)(param_6 + 0x44),0,&DAT_0011f8a8,0);
    if (DAT_0011f8b0 == 0) {
      pr2serr("%s: unable to allocate %d bytes on heap\n","build_type_desc_hdr_arr",
              *(undefined4 *)(param_6 + 0x44));
      iVar13 = -1;
      goto LAB_00106c48;
    }
    iVar13 = FUN_001063fe(param_1,1,DAT_0011f8b0,*(undefined4 *)(param_6 + 0x44),param_6,&local_44);
    if (iVar13 != 0) {
      pr2serr("%s: couldn\'t read config page, res=%d\n","build_type_desc_hdr_arr",iVar13);
      free(DAT_0011f8a8);
      DAT_0011f8a8 = (void *)0x0;
      iVar13 = -1;
      goto LAB_00106c48;
    }
    if (local_44 < 4) {
      free(DAT_0011f8a8);
      DAT_0011f8a8 = (void *)0x0;
      iVar13 = -1;
      goto LAB_00106c48;
    }
  }
  else {
    local_44 = DAT_0011f8a0;
  }
  lVar5 = DAT_0011f8b0;
  bVar3 = *(byte *)(DAT_0011f8b0 + 1);
  pbVar1 = (byte *)(DAT_0011f8b0 + -1 + (long)local_44);
  DAT_0011f8a0 = local_44;
  if (param_4 != (uint *)0x0) {
    uVar9 = *(uint *)(DAT_0011f8b0 + 4);
    *param_4 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18;
  }
  pbVar8 = (byte *)(lVar5 + 8);
  if ((byte *)(lVar5 + 0xb) <= pbVar1) {
    iVar13 = 0;
    iVar12 = 0;
    do {
      uVar9 = pbVar8[3] + 4;
      iVar13 = iVar13 + (uint)pbVar8[2];
      if (uVar9 < 0x28) {
        pr2serr("%s: short enc descriptor len=%d ??\n","build_type_desc_hdr_arr",uVar9);
      }
      else if ((iVar12 == 0) && (param_5 != (int *)0x0)) {
        *param_5 = *param_5 + 1;
        param_5[1] = (int)(uint)*pbVar8 >> 4 & 7;
        param_5[2] = *pbVar8 & 7;
        *(undefined8 *)(param_5 + 3) = *(undefined8 *)(pbVar8 + 4);
        *(undefined8 *)(param_5 + 5) = *(undefined8 *)(pbVar8 + 0xc);
        uVar4 = *(undefined8 *)(pbVar8 + 0x1c);
        *(undefined8 *)(param_5 + 7) = *(undefined8 *)(pbVar8 + 0x14);
        *(undefined8 *)(param_5 + 9) = uVar4;
        param_5[0xb] = *(int *)(pbVar8 + 0x24);
      }
      iVar12 = iVar12 + 1;
      pbVar8 = pbVar8 + (int)uVar9;
      if (iVar12 == bVar3 + 1) {
        if (iVar13 < 1) {
          if ((*(char *)(param_6 + 7) == '\0') ||
             (puVar11 = *(uint **)(param_6 + 0x80), puVar11 == (uint *)0x0)) goto LAB_00106bb7;
          iVar12 = *(int *)(param_6 + 0x40);
          goto LAB_00106cb2;
        }
        if (pbVar8 + 3 <= pbVar1) {
          if (param_3 < 1) goto LAB_00106b74;
          pbVar2 = pbVar8 + (ulong)(param_3 - 1) * 4 + 4;
          lVar5 = -3 - (long)pbVar8;
          pbVar6 = param_2;
          goto LAB_00106b3b;
        }
        break;
      }
    } while (pbVar8 + 3 <= pbVar1);
  }
LAB_00106c2a:
  pr2serr("%s: config too short\n","build_type_desc_hdr_arr");
  iVar13 = -1;
  goto LAB_00106c48;
  while( true ) {
    if (pbVar6 == param_2 + ((ulong)(pbVar1 + lVar5) & 0xfffffffffffffffc)) goto LAB_00106c2a;
    pbVar6 = pbVar6 + 4;
    if (pbVar8 == pbVar2) break;
LAB_00106b3b:
    *pbVar6 = *pbVar8;
    pbVar6[1] = pbVar8[1];
    pbVar6[2] = pbVar8[2];
    pbVar6[3] = pbVar8[3];
    pbVar8 = pbVar8 + 4;
    if (param_2 + (ulong)(iVar13 - 1) * 4 == pbVar6) {
      if (*(char *)(param_6 + 7) == '\0') goto LAB_00106c48;
      puVar11 = *(uint **)(param_6 + 0x80);
      if (puVar11 == (uint *)0x0) goto LAB_00106bb7;
      iVar12 = *(int *)(param_6 + 0x40);
      uVar7 = 0;
      iVar10 = iVar12;
      goto LAB_00106bd9;
    }
  }
LAB_00106b74:
  pr2serr("%s: too many elements\n","build_type_desc_hdr_arr");
  iVar13 = -1;
  goto LAB_00106c48;
LAB_00106bb7:
  if (iVar13 == 0) {
    DAT_0011f8b8 = DAT_0011f8b8 + 1;
  }
  goto LAB_00106c48;
LAB_00106bd9:
  do {
    if (*puVar11 == (uint)param_2[uVar7 * 4]) {
      if (iVar10 == 0) {
        if ((int)uVar7 < iVar13) {
          *(int *)(param_6 + 0x34) = (int)uVar7;
          goto LAB_00106c48;
        }
        break;
      }
      iVar10 = iVar10 + -1;
    }
    bVar14 = iVar13 - 1 != uVar7;
    uVar7 = uVar7 + 1;
  } while (bVar14);
LAB_00106cb2:
  if (iVar12 == 0) {
    pr2serr("%s: unable to find element type \'%s\'\n","build_type_desc_hdr_arr",
            *(undefined8 *)(puVar11 + 2));
    iVar13 = -1;
  }
  else {
    pr2serr("%s: unable to find element type \'%s%d\'\n","build_type_desc_hdr_arr",
            *(undefined8 *)(puVar11 + 2));
    iVar13 = -1;
  }
LAB_00106c48:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar13;
}

