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

_Bool __regparm3
check_lbrds(uint8_t *up,uint32_t max_lbrds_blen,opts_t *op,uint16_t *num_lbard,uint32_t *sum_num)

{
  uint8_t *puVar1;
  int iVar2;
  char cVar3;
  undefined4 uVar4;
  int iVar5;
  opts_t *poVar6;
  uint uVar7;
  uint uVar8;
  uint uVar9;
  int local_30;
  
  iVar2 = op->verbose;
  if (op->strict != 0) {
    if (max_lbrds_blen < 0x20) {
      uVar4 = 0;
      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);
      goto LAB_00014815;
    }
    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);
    if ((char)uVar4 == '\0') {
      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"
              ,"check_lbrds",uVar4,uVar4);
      goto LAB_00014815;
    }
  }
  if (max_lbrds_blen < 0x40) {
    *num_lbard = 0;
    uVar4 = 1;
  }
  else {
    uVar9 = 0xffffffff;
    if (op->scat_num_lbard != 0) {
      uVar9 = (uint)op->scat_num_lbard;
    }
    iVar5 = max_lbrds_blen - 0x20;
    if (iVar5 < 0x21) {
      uVar8 = 0x20;
    }
    else {
      uVar7 = 0x20;
      local_30 = 0;
      do {
        uVar8 = uVar7;
        if (uVar9 == 0xffffffff) goto LAB_000147c5;
        while( true ) {
          uVar7 = *(uint *)(up + uVar8 + 8);
          *sum_num = *sum_num +
                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |
                     uVar7 << 0x18);
          *num_lbard = *num_lbard + 1;
          poVar6 = op;
          if (op->strict != 0) {
            if (op->wrprotect == 0) {
              puVar1 = up + 0xc;
              uVar4 = 0x14;
            }
            else {
              puVar1 = up + 0x14;
              uVar4 = 0xc;
            }
            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);
            if ((char)poVar6 == '\0') {
              uVar4 = 0;
              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"
                      ,(uVar8 >> 5) - 1);
              goto LAB_00014815;
            }
          }
          if (uVar9 != 0xffffffff) break;
          uVar7 = uVar8 + 0x20;
          local_30 = local_30 + 1;
          uVar9 = 0xffffffff;
          if (iVar5 <= (int)uVar7) goto LAB_0001481f;
LAB_000147c5:
          uVar4 = sg_all_zeros(up + uVar7,0xc);
          uVar8 = uVar7;
          if ((char)uVar4 != '\0') {
            if (iVar2 != 0) {
              uVar9 = 0xffffffff;
              poVar6 = (opts_t *)
                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",
                               "LBA range descriptor",uVar7,local_30);
              goto LAB_00014897;
            }
            if (op->strict == 0) goto LAB_0001484c;
            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));
            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);
            if (cVar3 != '\0') goto LAB_0001484c;
            goto LAB_00014939;
          }
          uVar9 = 0xffffffff;
        }
        uVar9 = uVar9 - 1;
        if ((int)uVar9 < 1) {
LAB_00014897:
          if (op->strict == 0) goto LAB_00014821;
          uVar8 = uVar8 + 0x20;
          op = (opts_t *)(max_lbrds_blen - uVar8);
          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);
          if (cVar3 != '\0') goto LAB_00014821;
LAB_00014939:
          uVar4 = 0;
          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,
                  "LBA range descriptor");
          goto LAB_00014815;
        }
        uVar7 = uVar8 + 0x20;
        local_30 = local_30 + 1;
      } while ((int)uVar7 < iVar5);
LAB_0001481f:
      uVar8 = uVar8 + 0x20;
      op = (opts_t *)up;
    }
LAB_00014821:
    if (2 < iVar2) {
      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",
              *num_lbard,*sum_num,uVar8,uVar9,op,op);
    }
LAB_0001484c:
    uVar4 = 1;
  }
LAB_00014815:
  return SUB41(uVar4,0);
}



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

undefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)

{
  int iVar1;
  char cVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int local_30;
  
  iVar1 = *(int *)(param_3 + 0x30);
  if (*(int *)(param_3 + 0x28) != 0) {
    if (param_2 < 0x20) {
      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);
      return 0;
    }
    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);
    if ((char)uVar3 == '\0') {
      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"
              ,"check_lbrds",uVar3,uVar3);
      return uVar3;
    }
  }
  if (param_2 < 0x40) {
    *param_4 = 0;
  }
  else {
    uVar8 = 0xffffffff;
    if (*(ushort *)(param_3 + 0x40) != 0) {
      uVar8 = (uint)*(ushort *)(param_3 + 0x40);
    }
    iVar4 = param_2 - 0x20;
    if (iVar4 < 0x21) {
      uVar7 = 0x20;
    }
    else {
      uVar6 = 0x20;
      local_30 = 0;
      do {
        uVar7 = uVar6;
        if (uVar8 == 0xffffffff) goto LAB_000147c5;
        while( true ) {
          uVar6 = *(uint *)(param_1 + 8 + uVar7);
          *param_5 = *param_5 +
                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                     uVar6 << 0x18);
          *param_4 = *param_4 + 1;
          iVar5 = param_3;
          if (*(int *)(param_3 + 0x28) != 0) {
            if (*(int *)(param_3 + 0x34) == 0) {
              iVar5 = param_1 + 0xc;
              uVar3 = 0x14;
            }
            else {
              iVar5 = param_1 + 0x14;
              uVar3 = 0xc;
            }
            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);
            if ((char)iVar5 == '\0') {
              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"
                      ,(uVar7 >> 5) - 1);
              return 0;
            }
          }
          if (uVar8 != 0xffffffff) break;
          uVar6 = uVar7 + 0x20;
          local_30 = local_30 + 1;
          uVar8 = 0xffffffff;
          if (iVar4 <= (int)uVar6) goto LAB_0001481f;
LAB_000147c5:
          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);
          uVar7 = uVar6;
          if ((char)uVar3 != '\0') {
            if (iVar1 != 0) {
              uVar8 = 0xffffffff;
              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",
                              "LBA range descriptor",uVar6,local_30);
              goto LAB_00014897;
            }
            if (*(int *)(param_3 + 0x28) == 0) {
              return 1;
            }
            param_3 = param_2 - (uVar6 + 0x20);
            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);
            if (cVar2 != '\0') {
              return 1;
            }
            goto LAB_00014939;
          }
          uVar8 = 0xffffffff;
        }
        uVar8 = uVar8 - 1;
        if ((int)uVar8 < 1) {
LAB_00014897:
          if (*(int *)(param_3 + 0x28) != 0) {
            uVar7 = uVar7 + 0x20;
            param_3 = param_2 - uVar7;
            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);
            if (cVar2 == '\0') {
LAB_00014939:
              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,
                      "LBA range descriptor");
              return 0;
            }
          }
          goto LAB_00014821;
        }
        uVar6 = uVar7 + 0x20;
        local_30 = local_30 + 1;
      } while ((int)uVar6 < iVar4);
LAB_0001481f:
      uVar7 = uVar7 + 0x20;
      param_3 = param_1;
    }
LAB_00014821:
    if (2 < iVar1) {
      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",
              *param_4,*param_5,uVar7,uVar8,param_3,param_3);
    }
  }
  return 1;
}


PUSH EBP
MOV EBP,EAX
MOV EAX,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014560
ADD EBX,0x9847
SUB ESP,0x2c
MOV EDI,dword ptr [ECX + 0x30]
MOV ESI,dword ptr [ECX + 0x28]
MOV dword ptr [ESP + 0x18],EDX
MOV EDX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x1c],EDI
TEST ESI,ESI
JZ 0x000146fc
CMP EAX,0x1f
JBE 0x00014853
MOV dword ptr [ESP + 0x40],EDX
MOV dword ptr [ESP + 0x8],ECX
PUSH EDX
PUSH EDX
PUSH 0x20
PUSH EBP
CALL 0x00011360
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x40]
TEST AL,AL
MOV ESI,EAX
JZ 0x00014875
CMP dword ptr [ESP + 0x18],0x3f
JBE 0x0001480b
MOVZX EAX,word ptr [ECX + 0x40]
OR EDI,0xffffffff
TEST AX,AX
JZ 0x00014716
MOVZX EDI,AX
MOV EAX,dword ptr [ESP + 0x18]
SUB EAX,0x20
MOV dword ptr [ESP + 0x10],EAX
CMP EAX,0x20
JLE 0x00014997
MOV dword ptr [ESP + 0x8],ECX
MOV ESI,0x20
MOV ECX,EBP
MOV EBP,EDX
MOV dword ptr [ESP + 0xc],0x0
MOV EDX,dword ptr [ESP + 0x44]
JMP 0x00014765
SUB EDI,0x1
TEST EDI,EDI
JLE 0x0001488f
ADD ESI,0x20
ADD dword ptr [ESP + 0xc],0x1
CMP dword ptr [ESP + 0x10],ESI
JLE 0x0001481f
CMP EDI,-0x1
JZ 0x000147c5
MOV EAX,dword ptr [ECX + ESI*0x1 + 0x8]
BSWAP EAX
ADD dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x8]
ADD word ptr [EBP],0x1
CMP dword ptr [EAX + 0x28],0x0
JZ 0x000147b2
MOV EAX,dword ptr [EAX + 0x34]
MOV dword ptr [ESP + 0x44],EDX
TEST EAX,EAX
JZ 0x00014800
SUB ESP,0x8
LEA EAX,[ECX + ESI*0x1 + 0x14]
PUSH 0xc
MOV dword ptr [ESP + 0x20],ECX
PUSH EAX
CALL 0x00011360
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x44]
TEST AL,AL
JZ 0x000148ce
CMP EDI,-0x1
JNZ 0x00014748
ADD ESI,0x20
ADD dword ptr [ESP + 0xc],0x1
CMP ESI,dword ptr [ESP + 0x10]
JGE 0x0001481f
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x8
LEA EAX,[ECX + ESI*0x1]
PUSH 0xc
MOV dword ptr [ESP + 0x20],ECX
PUSH EAX
CALL 0x00011360
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x44]
TEST AL,AL
JNZ 0x000148f9
MOV EDI,0xffffffff
JMP 0x0001476a
SUB ESP,0x8
LEA EAX,[ECX + ESI*0x1 + 0xc]
PUSH 0x14
JMP 0x00014795
MOV word ptr [EDX],0x0
MOV ESI,0x1
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EBP
CMP dword ptr [ESP + 0x1c],0x2
JLE 0x0001484c
PUSH ECX
PUSH ECX
PUSH EDI
PUSH ESI
MOV EAX,dword ptr [ESP + 0x54]
PUSH dword ptr [EAX]
MOVZX EAX,word ptr [EDX]
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH EAX
LEA EAX,[EBX + 0xffff9714]
PUSH EAX
CALL 0x00011140
ADD ESP,0x20
MOV ESI,0x1
JMP 0x00014815
PUSH EAX
LEA EAX,[EBX + 0xffff9114]
XOR ESI,ESI
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH EAX
LEA EAX,[EBX + 0xffff9129]
PUSH EAX
CALL 0x00011140
ADD ESP,0x10
JMP 0x00014815
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH EAX
LEA EAX,[EBX + 0xffff962c]
PUSH EAX
CALL 0x00011140
ADD ESP,0x10
JMP 0x00014815
MOV EDX,EBP
MOV EBP,ECX
MOV ECX,dword ptr [ESP + 0x8]
CMP dword ptr [ECX + 0x28],0x0
JZ 0x00014821
MOV ECX,dword ptr [ESP + 0x18]
ADD ESI,0x20
MOV dword ptr [ESP + 0x40],EDX
PUSH EAX
ADD EBP,ESI
SUB ECX,ESI
PUSH EAX
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
PUSH EBP
CALL 0x00011360
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x40]
TEST AL,AL
JNZ 0x00014821
JMP 0x00014939
SHR ESI,0x5
LEA EAX,[ESI + -0x1]
XOR ESI,ESI
PUSH EAX
LEA EAX,[EBX + 0xffff9114]
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH EAX
LEA EAX,[EBX + 0xffff96bc]
PUSH EAX
CALL 0x00011140
ADD ESP,0x10
JMP 0x00014815
CMP dword ptr [ESP + 0x1c],0x0
MOV EDX,EBP
MOV EBP,ECX
MOV ECX,dword ptr [ESP + 0x8]
JNZ 0x0001495e
CMP dword ptr [ECX + 0x28],0x0
JZ 0x0001484c
MOV ECX,dword ptr [ESP + 0x18]
ADD ESI,0x20
PUSH EAX
PUSH EAX
SUB ECX,ESI
ADD ESI,EBP
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
PUSH ESI
CALL 0x00011360
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST AL,AL
JNZ 0x0001484c
LEA EAX,[EBX + 0xffff9114]
XOR ESI,ESI
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xffff96e4]
PUSH EAX
CALL 0x00011140
ADD ESP,0x10
JMP 0x00014815
MOV dword ptr [ESP + 0x40],EDX
LEA EAX,[EBX + 0xffff9114]
SUB ESP,0xc
OR EDI,0xffffffff
PUSH dword ptr [ESP + 0x18]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffffd7e4]
PUSH EAX
LEA EAX,[EBX + 0xffff9688]
PUSH EAX
CALL 0x00011140
ADD ESP,0x20
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x40]
JMP 0x00014897
MOV ESI,0x20
JMP 0x00014821
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "short *param_4" (sized_type_specifier "short" short) (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x30);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x30)" identifier = (pointer_expression "*(int *)(param_3 + 0x30)" * (cast_expression "(int *)(param_3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" { (if_statement "if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" if (parenthesized_expression "(param_2 < 0x20)" ( (binary_expression "param_2 < 0x20" identifier < number_literal) )) (compound_statement "{\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" { (expression_statement "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);" (call_expression "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" identifier (argument_list "("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" ( (string_literal ""%s: %ss too short (%d < 32)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);" (assignment_expression "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4)" identifier = (call_expression "sg_all_zeros(param_1,0x20,param_4,param_4)" identifier (argument_list "(param_1,0x20,param_4,param_4)" ( identifier , number_literal , identifier , identifier )))) ;) (if_statement "if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" if (parenthesized_expression "((char)uVar3 == '\0')" ( (binary_expression "(char)uVar3 == '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" { (expression_statement "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);" (call_expression "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" identifier (argument_list "("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" ( (string_literal ""%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) })) (if_statement "if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" if (parenthesized_expression "(param_2 < 0x40)" ( (binary_expression "param_2 < 0x40" identifier < number_literal) )) (compound_statement "{\n    *param_4 = 0;\n  }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" else (compound_statement "{\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" { (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" if (parenthesized_expression "(*(ushort *)(param_3 + 0x40) != 0)" ( (binary_expression "*(ushort *)(param_3 + 0x40) != 0" (pointer_expression "*(ushort *)(param_3 + 0x40)" * (cast_expression "(ushort *)(param_3 + 0x40)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" { (expression_statement "uVar8 = (uint)*(ushort *)(param_3 + 0x40);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_3 + 0x40)" identifier = (binary_expression "(uint)*(ushort *)(param_3 + 0x40)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_3 + 0x40)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) ))))) ;) })) (expression_statement "iVar4 = param_2 - 0x20;" (assignment_expression "iVar4 = param_2 - 0x20" identifier = (binary_expression "param_2 - 0x20" identifier - number_literal)) ;) (if_statement "if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" if (parenthesized_expression "(iVar4 < 0x21)" ( (binary_expression "iVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n      uVar7 = 0x20;\n    }" { (expression_statement "uVar7 = 0x20;" (assignment_expression "uVar7 = 0x20" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" else (compound_statement "{\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" { (expression_statement "uVar6 = 0x20;" (assignment_expression "uVar6 = 0x20" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);" do (compound_statement "{\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      }" { (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) (if_statement "if (uVar8 == 0xffffffff) goto LAB_000147c5;" if (parenthesized_expression "(uVar8 == 0xffffffff)" ( (binary_expression "uVar8 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_000147c5;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" { (expression_statement "uVar6 = *(uint *)(param_1 + 8 + uVar7);" (assignment_expression "uVar6 = *(uint *)(param_1 + 8 + uVar7)" identifier = (pointer_expression "*(uint *)(param_1 + 8 + uVar7)" * (cast_expression "(uint *)(param_1 + 8 + uVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8 + uVar7)" ( (binary_expression "param_1 + 8 + uVar7" (binary_expression "param_1 + 8" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);" (assignment_expression "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" * identifier) + (parenthesized_expression "(uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" ( (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal)) )))) ;) (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 1" (pointer_expression "*param_4" * identifier) + number_literal)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" { (if_statement "if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" if (parenthesized_expression "(*(int *)(param_3 + 0x34) == 0)" ( (binary_expression "*(int *)(param_3 + 0x34) == 0" (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }" { (expression_statement "iVar5 = param_1 + 0xc;" (assignment_expression "iVar5 = param_1 + 0xc" identifier = (binary_expression "param_1 + 0xc" identifier + number_literal)) ;) (expression_statement "uVar3 = 0x14;" (assignment_expression "uVar3 = 0x14" identifier = number_literal) ;) }) (else_clause "else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" else (compound_statement "{\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" { (expression_statement "iVar5 = param_1 + 0x14;" (assignment_expression "iVar5 = param_1 + 0x14" identifier = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" identifier = number_literal) ;) }))) (expression_statement "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);" (assignment_expression "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3)" identifier = (call_expression "sg_all_zeros(iVar5 + uVar7,uVar3)" identifier (argument_list "(iVar5 + uVar7,uVar3)" ( (binary_expression "iVar5 + uVar7" identifier + identifier) , identifier )))) ;) (if_statement "if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" if (parenthesized_expression "((char)iVar5 == '\0')" ( (binary_expression "(char)iVar5 == '\0'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" { (expression_statement "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);" (call_expression "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" identifier (argument_list "("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" ( (string_literal ""%s: %s %d non zero in reserved fields\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , (binary_expression "(uVar7 >> 5) - 1" (parenthesized_expression "(uVar7 >> 5)" ( (binary_expression "uVar7 >> 5" identifier >> number_literal) )) - number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (uVar8 != 0xffffffff) break;" if (parenthesized_expression "(uVar8 != 0xffffffff)" ( (binary_expression "uVar8 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar4 <= (int)uVar6) goto LAB_0001481f;" if (parenthesized_expression "(iVar4 <= (int)uVar6)" ( (binary_expression "iVar4 <= (int)uVar6" identifier <= (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001481f;" goto statement_identifier ;)) (labeled_statement "LAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" statement_identifier : (expression_statement "uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" (assignment_expression "uVar3 = sg_all_zeros(param_1 + uVar6,0xc)" identifier = (call_expression "sg_all_zeros(param_1 + uVar6,0xc)" identifier (argument_list "(param_1 + uVar6,0xc)" ( (binary_expression "param_1 + uVar6" identifier + identifier) , number_literal )))) ;)) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) (if_statement "if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" if (parenthesized_expression "((char)uVar3 != '\0')" ( (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" { (if_statement "if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" { (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);" (assignment_expression "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" identifier = (call_expression "pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" identifier (argument_list "("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" ( (string_literal ""%s: degenerate %s stops scan at k=%d (num_rds=%d)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier , identifier )))) ;) (goto_statement "goto LAB_00014897;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) == 0)" ( (binary_expression "*(int *)(param_3 + 0x28) == 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_3 = param_2 - (uVar6 + 0x20);" (assignment_expression "param_3 = param_2 - (uVar6 + 0x20)" identifier = (binary_expression "param_2 - (uVar6 + 0x20)" identifier - (parenthesized_expression "(uVar6 + 0x20)" ( (binary_expression "uVar6 + 0x20" identifier + number_literal) )))) ;) (expression_statement "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);" (assignment_expression "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" identifier = (call_expression "sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" identifier (argument_list "(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" ( (binary_expression "uVar6 + 0x20 + param_1" (binary_expression "uVar6 + 0x20" identifier + number_literal) + identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n              return 1;\n            }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_00014939;" goto statement_identifier ;) })) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (if_statement "if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" { (labeled_statement "LAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" statement_identifier : (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "param_3 = param_2 - uVar7;" (assignment_expression "param_3 = param_2 - uVar7" identifier = (binary_expression "param_2 - uVar7" identifier - identifier)) ;) (expression_statement "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);" (assignment_expression "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" identifier = (call_expression "sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" identifier (argument_list "(param_1 + uVar7,param_3,iVar5,iVar5)" ( (binary_expression "param_1 + uVar7" identifier + identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" { (labeled_statement "LAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" statement_identifier : (expression_statement "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" (call_expression "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" identifier (argument_list "("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" ( (string_literal ""%s: pad (%d bytes) following %ss is non zero\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , (string_literal ""LBA range descriptor"" " string_content ") ))) ;)) (return_statement "return 0;" return number_literal ;) })) }))) (goto_statement "goto LAB_00014821;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar6 < iVar4)" ( (binary_expression "(int)uVar6 < iVar4" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) (labeled_statement "LAB_0001481f:\n      uVar7 = uVar7 + 0x20;" statement_identifier : (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;)) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" identifier = identifier) ;) }))) (labeled_statement "LAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" statement_identifier : (if_statement "if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" if (parenthesized_expression "(2 < iVar1)" ( (binary_expression "2 < iVar1" number_literal < identifier) )) (compound_statement "{\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" { (expression_statement "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);" (call_expression "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" identifier (argument_list "("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" ( (string_literal ""%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (pointer_expression "*param_4" * identifier) , (pointer_expression "*param_5" * identifier) , identifier , identifier , identifier , identifier ))) ;) }))) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3\ncheck_lbrds(uint8_t *up,uint32_t max_lbrds_blen,opts_t *op,uint16_t *num_lbard,uint32_t *sum_num)\n\n{\n  uint8_t *puVar1;\n  int iVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  opts_t *poVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int local_30;\n  \n  iVar2 = op->verbose;\n  if (op->strict != 0) {\n    if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }\n    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);\n    if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }\n  }\n  if (max_lbrds_blen < 0x40) {\n    *num_lbard = 0;\n    uVar4 = 1;\n  }\n  else {\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }\nLAB_00014815:\n  return SUB41(uVar4,0);\n}\n\n" comment (function_definition "_Bool __regparm3\ncheck_lbrds(uint8_t *up,uint32_t max_lbrds_blen,opts_t *op,uint16_t *num_lbard,uint32_t *sum_num)\n\n{\n  uint8_t *puVar1;\n  int iVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  opts_t *poVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int local_30;\n  \n  iVar2 = op->verbose;\n  if (op->strict != 0) {\n    if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }\n    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);\n    if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }\n  }\n  if (max_lbrds_blen < 0x40) {\n    *num_lbard = 0;\n    uVar4 = 1;\n  }\n  else {\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }\nLAB_00014815:\n  return SUB41(uVar4,0);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "check_lbrds(uint8_t *up,uint32_t max_lbrds_blen,opts_t *op,uint16_t *num_lbard,uint32_t *sum_num)" identifier (parameter_list "(uint8_t *up,uint32_t max_lbrds_blen,opts_t *op,uint16_t *num_lbard,uint32_t *sum_num)" ( (parameter_declaration "uint8_t *up" primitive_type (pointer_declarator "*up" * identifier)) , (parameter_declaration "uint32_t max_lbrds_blen" primitive_type identifier) , (parameter_declaration "opts_t *op" type_identifier (pointer_declarator "*op" * identifier)) , (parameter_declaration "uint16_t *num_lbard" primitive_type (pointer_declarator "*num_lbard" * identifier)) , (parameter_declaration "uint32_t *sum_num" primitive_type (pointer_declarator "*sum_num" * identifier)) ))) (compound_statement "{\n  uint8_t *puVar1;\n  int iVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  opts_t *poVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  int local_30;\n  \n  iVar2 = op->verbose;\n  if (op->strict != 0) {\n    if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }\n    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);\n    if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }\n  }\n  if (max_lbrds_blen < 0x40) {\n    *num_lbard = 0;\n    uVar4 = 1;\n  }\n  else {\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }\nLAB_00014815:\n  return SUB41(uVar4,0);\n}" { (declaration "uint8_t *puVar1;" primitive_type (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "opts_t *poVar6;" type_identifier (pointer_declarator "*poVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "iVar2 = op->verbose;" (assignment_expression "iVar2 = op->verbose" identifier = (field_expression "op->verbose" identifier -> field_identifier)) ;) (if_statement "if (op->strict != 0) {\n    if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }\n    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);\n    if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }\n  }" if (parenthesized_expression "(op->strict != 0)" ( (binary_expression "op->strict != 0" (field_expression "op->strict" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }\n    uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);\n    if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }\n  }" { (if_statement "if (max_lbrds_blen < 0x20) {\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }" if (parenthesized_expression "(max_lbrds_blen < 0x20)" ( (binary_expression "max_lbrds_blen < 0x20" identifier < number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);\n      goto LAB_00014815;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen);" (call_expression "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen)" identifier (argument_list "("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",max_lbrds_blen)" ( (string_literal ""%s: %ss too short (%d < 32)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier ))) ;) (goto_statement "goto LAB_00014815;" goto statement_identifier ;) })) (expression_statement "uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard);" (assignment_expression "uVar4 = sg_all_zeros(up,0x20,num_lbard,num_lbard)" identifier = (call_expression "sg_all_zeros(up,0x20,num_lbard,num_lbard)" identifier (argument_list "(up,0x20,num_lbard,num_lbard)" ( identifier , number_literal , identifier , identifier )))) ;) (if_statement "if ((char)uVar4 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }" if (parenthesized_expression "((char)uVar4 == '\0')" ( (binary_expression "(char)uVar4 == '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);\n      goto LAB_00014815;\n    }" { (expression_statement "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4);" (call_expression "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4)" identifier (argument_list "("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar4,uVar4)" ( (string_literal ""%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_00014815;" goto statement_identifier ;) })) })) (if_statement "if (max_lbrds_blen < 0x40) {\n    *num_lbard = 0;\n    uVar4 = 1;\n  }\n  else {\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }" if (parenthesized_expression "(max_lbrds_blen < 0x40)" ( (binary_expression "max_lbrds_blen < 0x40" identifier < number_literal) )) (compound_statement "{\n    *num_lbard = 0;\n    uVar4 = 1;\n  }" { (expression_statement "*num_lbard = 0;" (assignment_expression "*num_lbard = 0" (pointer_expression "*num_lbard" * identifier) = number_literal) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }" else (compound_statement "{\n    uVar9 = 0xffffffff;\n    if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }\n    iVar5 = max_lbrds_blen - 0x20;\n    if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }\nLAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }\nLAB_0001484c:\n    uVar4 = 1;\n  }" { (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (op->scat_num_lbard != 0) {\n      uVar9 = (uint)op->scat_num_lbard;\n    }" if (parenthesized_expression "(op->scat_num_lbard != 0)" ( (binary_expression "op->scat_num_lbard != 0" (field_expression "op->scat_num_lbard" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      uVar9 = (uint)op->scat_num_lbard;\n    }" { (expression_statement "uVar9 = (uint)op->scat_num_lbard;" (assignment_expression "uVar9 = (uint)op->scat_num_lbard" identifier = (cast_expression "(uint)op->scat_num_lbard" ( (type_descriptor "uint" type_identifier) ) (field_expression "op->scat_num_lbard" identifier -> field_identifier))) ;) })) (expression_statement "iVar5 = max_lbrds_blen - 0x20;" (assignment_expression "iVar5 = max_lbrds_blen - 0x20" identifier = (binary_expression "max_lbrds_blen - 0x20" identifier - number_literal)) ;) (if_statement "if (iVar5 < 0x21) {\n      uVar8 = 0x20;\n    }\n    else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }" if (parenthesized_expression "(iVar5 < 0x21)" ( (binary_expression "iVar5 < 0x21" identifier < number_literal) )) (compound_statement "{\n      uVar8 = 0x20;\n    }" { (expression_statement "uVar8 = 0x20;" (assignment_expression "uVar8 = 0x20" identifier = number_literal) ;) }) (else_clause "else {\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }" else (compound_statement "{\n      uVar7 = 0x20;\n      local_30 = 0;\n      do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);\nLAB_0001481f:\n      uVar8 = uVar8 + 0x20;\n      op = (opts_t *)up;\n    }" { (expression_statement "uVar7 = 0x20;" (assignment_expression "uVar7 = 0x20" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar7 < iVar5);" do (compound_statement "{\n        uVar8 = uVar7;\n        if (uVar9 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }\n        uVar9 = uVar9 - 1;\n        if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }\n        uVar7 = uVar8 + 0x20;\n        local_30 = local_30 + 1;\n      }" { (expression_statement "uVar8 = uVar7;" (assignment_expression "uVar8 = uVar7" identifier = identifier) ;) (if_statement "if (uVar9 == 0xffffffff) goto LAB_000147c5;" if (parenthesized_expression "(uVar9 == 0xffffffff)" ( (binary_expression "uVar9 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_000147c5;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar7 = *(uint *)(up + uVar8 + 8);\n          *sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);\n          *num_lbard = *num_lbard + 1;\n          poVar6 = op;\n          if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }\n          if (uVar9 != 0xffffffff) break;\n          uVar7 = uVar8 + 0x20;\n          local_30 = local_30 + 1;\n          uVar9 = 0xffffffff;\n          if (iVar5 <= (int)uVar7) goto LAB_0001481f;\nLAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);\n          uVar8 = uVar7;\n          if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }\n          uVar9 = 0xffffffff;\n        }" { (expression_statement "uVar7 = *(uint *)(up + uVar8 + 8);" (assignment_expression "uVar7 = *(uint *)(up + uVar8 + 8)" identifier = (pointer_expression "*(uint *)(up + uVar8 + 8)" * (cast_expression "(uint *)(up + uVar8 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(up + uVar8 + 8)" ( (binary_expression "up + uVar8 + 8" (binary_expression "up + uVar8" identifier + identifier) + number_literal) ))))) ;) (expression_statement "*sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18);" (assignment_expression "*sum_num = *sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18)" (pointer_expression "*sum_num" * identifier) = (binary_expression "*sum_num +\n                     (uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18)" (pointer_expression "*sum_num" * identifier) + (parenthesized_expression "(uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18)" ( (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 |\n                     uVar7 << 0x18" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8" (binary_expression "uVar7 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar7 & 0xff0000) >> 8" (parenthesized_expression "(uVar7 & 0xff0000)" ( (binary_expression "uVar7 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar7 & 0xff00) << 8" (parenthesized_expression "(uVar7 & 0xff00)" ( (binary_expression "uVar7 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar7 << 0x18" identifier << number_literal)) )))) ;) (expression_statement "*num_lbard = *num_lbard + 1;" (assignment_expression "*num_lbard = *num_lbard + 1" (pointer_expression "*num_lbard" * identifier) = (binary_expression "*num_lbard + 1" (pointer_expression "*num_lbard" * identifier) + number_literal)) ;) (expression_statement "poVar6 = op;" (assignment_expression "poVar6 = op" identifier = identifier) ;) (if_statement "if (op->strict != 0) {\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }" if (parenthesized_expression "(op->strict != 0)" ( (binary_expression "op->strict != 0" (field_expression "op->strict" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n            if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }\n            poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);\n            if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }\n          }" { (if_statement "if (op->wrprotect == 0) {\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }\n            else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }" if (parenthesized_expression "(op->wrprotect == 0)" ( (binary_expression "op->wrprotect == 0" (field_expression "op->wrprotect" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              puVar1 = up + 0xc;\n              uVar4 = 0x14;\n            }" { (expression_statement "puVar1 = up + 0xc;" (assignment_expression "puVar1 = up + 0xc" identifier = (binary_expression "up + 0xc" identifier + number_literal)) ;) (expression_statement "uVar4 = 0x14;" (assignment_expression "uVar4 = 0x14" identifier = number_literal) ;) }) (else_clause "else {\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }" else (compound_statement "{\n              puVar1 = up + 0x14;\n              uVar4 = 0xc;\n            }" { (expression_statement "puVar1 = up + 0x14;" (assignment_expression "puVar1 = up + 0x14" identifier = (binary_expression "up + 0x14" identifier + number_literal)) ;) (expression_statement "uVar4 = 0xc;" (assignment_expression "uVar4 = 0xc" identifier = number_literal) ;) }))) (expression_statement "poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4);" (assignment_expression "poVar6 = (opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4)" identifier = (cast_expression "(opts_t *)sg_all_zeros(puVar1 + uVar8,uVar4)" ( (type_descriptor "opts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sg_all_zeros(puVar1 + uVar8,uVar4)" identifier (argument_list "(puVar1 + uVar8,uVar4)" ( (binary_expression "puVar1 + uVar8" identifier + identifier) , identifier ))))) ;) (if_statement "if ((char)poVar6 == '\0') {\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }" if (parenthesized_expression "((char)poVar6 == '\0')" ( (binary_expression "(char)poVar6 == '\0'" (cast_expression "(char)poVar6" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              uVar4 = 0;\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);\n              goto LAB_00014815;\n            }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1);" (call_expression "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1)" identifier (argument_list "("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar8 >> 5) - 1)" ( (string_literal ""%s: %s %d non zero in reserved fields\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , (binary_expression "(uVar8 >> 5) - 1" (parenthesized_expression "(uVar8 >> 5)" ( (binary_expression "uVar8 >> 5" identifier >> number_literal) )) - number_literal) ))) ;) (goto_statement "goto LAB_00014815;" goto statement_identifier ;) })) })) (if_statement "if (uVar9 != 0xffffffff) break;" if (parenthesized_expression "(uVar9 != 0xffffffff)" ( (binary_expression "uVar9 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = uVar8 + 0x20;" (assignment_expression "uVar7 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar5 <= (int)uVar7) goto LAB_0001481f;" if (parenthesized_expression "(iVar5 <= (int)uVar7)" ( (binary_expression "iVar5 <= (int)uVar7" identifier <= (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001481f;" goto statement_identifier ;)) (labeled_statement "LAB_000147c5:\n          uVar4 = sg_all_zeros(up + uVar7,0xc);" statement_identifier : (expression_statement "uVar4 = sg_all_zeros(up + uVar7,0xc);" (assignment_expression "uVar4 = sg_all_zeros(up + uVar7,0xc)" identifier = (call_expression "sg_all_zeros(up + uVar7,0xc)" identifier (argument_list "(up + uVar7,0xc)" ( (binary_expression "up + uVar7" identifier + identifier) , number_literal )))) ;)) (expression_statement "uVar8 = uVar7;" (assignment_expression "uVar8 = uVar7" identifier = identifier) ;) (if_statement "if ((char)uVar4 != '\0') {\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }\n            if (op->strict == 0) goto LAB_0001484c;\n            op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));\n            cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);\n            if (cVar3 != '\0') goto LAB_0001484c;\n            goto LAB_00014939;\n          }" { (if_statement "if (iVar2 != 0) {\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar9 = 0xffffffff;\n              poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);\n              goto LAB_00014897;\n            }" { (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (expression_statement "poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30);" (assignment_expression "poVar6 = (opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30)" identifier = (cast_expression "(opts_t *)\n                       pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30)" ( (type_descriptor "opts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30)" identifier (argument_list "("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                               "LBA range descriptor",uVar7,local_30)" ( (string_literal ""%s: degenerate %s stops scan at k=%d (num_rds=%d)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier , identifier ))))) ;) (goto_statement "goto LAB_00014897;" goto statement_identifier ;) })) (if_statement "if (op->strict == 0) goto LAB_0001484c;" if (parenthesized_expression "(op->strict == 0)" ( (binary_expression "op->strict == 0" (field_expression "op->strict" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_0001484c;" goto statement_identifier ;)) (expression_statement "op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20));" (assignment_expression "op = (opts_t *)(max_lbrds_blen - (uVar7 + 0x20))" identifier = (cast_expression "(opts_t *)(max_lbrds_blen - (uVar7 + 0x20))" ( (type_descriptor "opts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(max_lbrds_blen - (uVar7 + 0x20))" ( (binary_expression "max_lbrds_blen - (uVar7 + 0x20)" identifier - (parenthesized_expression "(uVar7 + 0x20)" ( (binary_expression "uVar7 + 0x20" identifier + number_literal) ))) )))) ;) (expression_statement "cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4);" (assignment_expression "cVar3 = sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4)" identifier = (call_expression "sg_all_zeros(up + uVar7 + 0x20,op,uVar4,uVar4)" identifier (argument_list "(up + uVar7 + 0x20,op,uVar4,uVar4)" ( (binary_expression "up + uVar7 + 0x20" (binary_expression "up + uVar7" identifier + identifier) + number_literal) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar3 != '\0') goto LAB_0001484c;" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001484c;" goto statement_identifier ;)) (goto_statement "goto LAB_00014939;" goto statement_identifier ;) })) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar9 = uVar9 - 1;" (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (if_statement "if ((int)uVar9 < 1) {\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }" if (parenthesized_expression "((int)uVar9 < 1)" ( (binary_expression "(int)uVar9 < 1" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;\n          uVar8 = uVar8 + 0x20;\n          op = (opts_t *)(max_lbrds_blen - uVar8);\n          cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);\n          if (cVar3 != '\0') goto LAB_00014821;\nLAB_00014939:\n          uVar4 = 0;\n          pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");\n          goto LAB_00014815;\n        }" { (labeled_statement "LAB_00014897:\n          if (op->strict == 0) goto LAB_00014821;" statement_identifier : (if_statement "if (op->strict == 0) goto LAB_00014821;" if (parenthesized_expression "(op->strict == 0)" ( (binary_expression "op->strict == 0" (field_expression "op->strict" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_00014821;" goto statement_identifier ;))) (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) (expression_statement "op = (opts_t *)(max_lbrds_blen - uVar8);" (assignment_expression "op = (opts_t *)(max_lbrds_blen - uVar8)" identifier = (cast_expression "(opts_t *)(max_lbrds_blen - uVar8)" ( (type_descriptor "opts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(max_lbrds_blen - uVar8)" ( (binary_expression "max_lbrds_blen - uVar8" identifier - identifier) )))) ;) (expression_statement "cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6);" (assignment_expression "cVar3 = sg_all_zeros(up + uVar8,op,poVar6,poVar6)" identifier = (call_expression "sg_all_zeros(up + uVar8,op,poVar6,poVar6)" identifier (argument_list "(up + uVar8,op,poVar6,poVar6)" ( (binary_expression "up + uVar8" identifier + identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar3 != '\0') goto LAB_00014821;" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00014821;" goto statement_identifier ;)) (labeled_statement "LAB_00014939:\n          uVar4 = 0;" statement_identifier : (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;)) (expression_statement "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor");" (call_expression "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor")" identifier (argument_list "("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,\n                  "LBA range descriptor")" ( (string_literal ""%s: pad (%d bytes) following %ss is non zero\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , (string_literal ""LBA range descriptor"" " string_content ") ))) ;) (goto_statement "goto LAB_00014815;" goto statement_identifier ;) })) (expression_statement "uVar7 = uVar8 + 0x20;" (assignment_expression "uVar7 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar7 < iVar5)" ( (binary_expression "(int)uVar7 < iVar5" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) (labeled_statement "LAB_0001481f:\n      uVar8 = uVar8 + 0x20;" statement_identifier : (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;)) (expression_statement "op = (opts_t *)up;" (assignment_expression "op = (opts_t *)up" identifier = (cast_expression "(opts_t *)up" ( (type_descriptor "opts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (labeled_statement "LAB_00014821:\n    if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }" statement_identifier : (if_statement "if (2 < iVar2) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }" if (parenthesized_expression "(2 < iVar2)" ( (binary_expression "2 < iVar2" number_literal < identifier) )) (compound_statement "{\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);\n    }" { (expression_statement "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op);" (call_expression "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op)" identifier (argument_list "("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *num_lbard,*sum_num,uVar8,uVar9,op,op)" ( (string_literal ""%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (pointer_expression "*num_lbard" * identifier) , (pointer_expression "*sum_num" * identifier) , identifier , identifier , identifier , identifier ))) ;) }))) (labeled_statement "LAB_0001484c:\n    uVar4 = 1;" statement_identifier : (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;)) }))) (labeled_statement "LAB_00014815:\n  return SUB41(uVar4,0);" statement_identifier : (return_statement "return SUB41(uVar4,0);" return (call_expression "SUB41(uVar4,0)" identifier (argument_list "(uVar4,0)" ( identifier , number_literal ))) ;)) })))
(translation_unit "undefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "short *param_4" (sized_type_specifier "short" short) (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x30);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x30)" identifier = (pointer_expression "*(int *)(param_3 + 0x30)" * (cast_expression "(int *)(param_3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" { (if_statement "if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" if (parenthesized_expression "(param_2 < 0x20)" ( (binary_expression "param_2 < 0x20" identifier < number_literal) )) (compound_statement "{\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" { (expression_statement "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);" (call_expression "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" identifier (argument_list "("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" ( (string_literal ""%s: %ss too short (%d < 32)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);" (assignment_expression "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4)" identifier = (call_expression "sg_all_zeros(param_1,0x20,param_4,param_4)" identifier (argument_list "(param_1,0x20,param_4,param_4)" ( identifier , number_literal , identifier , identifier )))) ;) (if_statement "if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" if (parenthesized_expression "((char)uVar3 == '\0')" ( (binary_expression "(char)uVar3 == '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" { (expression_statement "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);" (call_expression "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" identifier (argument_list "("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" ( (string_literal ""%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) })) (if_statement "if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" if (parenthesized_expression "(param_2 < 0x40)" ( (binary_expression "param_2 < 0x40" identifier < number_literal) )) (compound_statement "{\n    *param_4 = 0;\n  }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" else (compound_statement "{\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" { (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" if (parenthesized_expression "(*(ushort *)(param_3 + 0x40) != 0)" ( (binary_expression "*(ushort *)(param_3 + 0x40) != 0" (pointer_expression "*(ushort *)(param_3 + 0x40)" * (cast_expression "(ushort *)(param_3 + 0x40)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" { (expression_statement "uVar8 = (uint)*(ushort *)(param_3 + 0x40);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_3 + 0x40)" identifier = (binary_expression "(uint)*(ushort *)(param_3 + 0x40)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_3 + 0x40)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) ))))) ;) })) (expression_statement "iVar4 = param_2 - 0x20;" (assignment_expression "iVar4 = param_2 - 0x20" identifier = (binary_expression "param_2 - 0x20" identifier - number_literal)) ;) (if_statement "if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" if (parenthesized_expression "(iVar4 < 0x21)" ( (binary_expression "iVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n      uVar7 = 0x20;\n    }" { (expression_statement "uVar7 = 0x20;" (assignment_expression "uVar7 = 0x20" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" else (compound_statement "{\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" { (expression_statement "uVar6 = 0x20;" (assignment_expression "uVar6 = 0x20" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);" do (compound_statement "{\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      }" { (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) (if_statement "if (uVar8 == 0xffffffff) goto LAB_000147c5;" if (parenthesized_expression "(uVar8 == 0xffffffff)" ( (binary_expression "uVar8 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_000147c5;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" { (expression_statement "uVar6 = *(uint *)(param_1 + 8 + uVar7);" (assignment_expression "uVar6 = *(uint *)(param_1 + 8 + uVar7)" identifier = (pointer_expression "*(uint *)(param_1 + 8 + uVar7)" * (cast_expression "(uint *)(param_1 + 8 + uVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8 + uVar7)" ( (binary_expression "param_1 + 8 + uVar7" (binary_expression "param_1 + 8" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);" (assignment_expression "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" * identifier) + (parenthesized_expression "(uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" ( (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal)) )))) ;) (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 1" (pointer_expression "*param_4" * identifier) + number_literal)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" { (if_statement "if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" if (parenthesized_expression "(*(int *)(param_3 + 0x34) == 0)" ( (binary_expression "*(int *)(param_3 + 0x34) == 0" (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }" { (expression_statement "iVar5 = param_1 + 0xc;" (assignment_expression "iVar5 = param_1 + 0xc" identifier = (binary_expression "param_1 + 0xc" identifier + number_literal)) ;) (expression_statement "uVar3 = 0x14;" (assignment_expression "uVar3 = 0x14" identifier = number_literal) ;) }) (else_clause "else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" else (compound_statement "{\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" { (expression_statement "iVar5 = param_1 + 0x14;" (assignment_expression "iVar5 = param_1 + 0x14" identifier = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" identifier = number_literal) ;) }))) (expression_statement "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);" (assignment_expression "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3)" identifier = (call_expression "sg_all_zeros(iVar5 + uVar7,uVar3)" identifier (argument_list "(iVar5 + uVar7,uVar3)" ( (binary_expression "iVar5 + uVar7" identifier + identifier) , identifier )))) ;) (if_statement "if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" if (parenthesized_expression "((char)iVar5 == '\0')" ( (binary_expression "(char)iVar5 == '\0'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" { (expression_statement "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);" (call_expression "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" identifier (argument_list "("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" ( (string_literal ""%s: %s %d non zero in reserved fields\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , (binary_expression "(uVar7 >> 5) - 1" (parenthesized_expression "(uVar7 >> 5)" ( (binary_expression "uVar7 >> 5" identifier >> number_literal) )) - number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (uVar8 != 0xffffffff) break;" if (parenthesized_expression "(uVar8 != 0xffffffff)" ( (binary_expression "uVar8 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar4 <= (int)uVar6) goto LAB_0001481f;" if (parenthesized_expression "(iVar4 <= (int)uVar6)" ( (binary_expression "iVar4 <= (int)uVar6" identifier <= (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001481f;" goto statement_identifier ;)) (labeled_statement "LAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" statement_identifier : (expression_statement "uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" (assignment_expression "uVar3 = sg_all_zeros(param_1 + uVar6,0xc)" identifier = (call_expression "sg_all_zeros(param_1 + uVar6,0xc)" identifier (argument_list "(param_1 + uVar6,0xc)" ( (binary_expression "param_1 + uVar6" identifier + identifier) , number_literal )))) ;)) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) (if_statement "if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" if (parenthesized_expression "((char)uVar3 != '\0')" ( (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" { (if_statement "if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" { (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);" (assignment_expression "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" identifier = (call_expression "pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" identifier (argument_list "("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" ( (string_literal ""%s: degenerate %s stops scan at k=%d (num_rds=%d)\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (string_literal ""LBA range descriptor"" " string_content ") , identifier , identifier )))) ;) (goto_statement "goto LAB_00014897;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) == 0)" ( (binary_expression "*(int *)(param_3 + 0x28) == 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_3 = param_2 - (uVar6 + 0x20);" (assignment_expression "param_3 = param_2 - (uVar6 + 0x20)" identifier = (binary_expression "param_2 - (uVar6 + 0x20)" identifier - (parenthesized_expression "(uVar6 + 0x20)" ( (binary_expression "uVar6 + 0x20" identifier + number_literal) )))) ;) (expression_statement "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);" (assignment_expression "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" identifier = (call_expression "sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" identifier (argument_list "(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" ( (binary_expression "uVar6 + 0x20 + param_1" (binary_expression "uVar6 + 0x20" identifier + number_literal) + identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n              return 1;\n            }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_00014939;" goto statement_identifier ;) })) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (if_statement "if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" if (parenthesized_expression "((int)uVar8 < 1)" ( (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" { (labeled_statement "LAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" statement_identifier : (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" if (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" ( (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "param_3 = param_2 - uVar7;" (assignment_expression "param_3 = param_2 - uVar7" identifier = (binary_expression "param_2 - uVar7" identifier - identifier)) ;) (expression_statement "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);" (assignment_expression "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" identifier = (call_expression "sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" identifier (argument_list "(param_1 + uVar7,param_3,iVar5,iVar5)" ( (binary_expression "param_1 + uVar7" identifier + identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" { (labeled_statement "LAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" statement_identifier : (expression_statement "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" (call_expression "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" identifier (argument_list "("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" ( (string_literal ""%s: pad (%d bytes) following %ss is non zero\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , identifier , (string_literal ""LBA range descriptor"" " string_content ") ))) ;)) (return_statement "return 0;" return number_literal ;) })) }))) (goto_statement "goto LAB_00014821;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar6 < iVar4)" ( (binary_expression "(int)uVar6 < iVar4" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) (labeled_statement "LAB_0001481f:\n      uVar7 = uVar7 + 0x20;" statement_identifier : (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;)) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" identifier = identifier) ;) }))) (labeled_statement "LAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" statement_identifier : (if_statement "if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" if (parenthesized_expression "(2 < iVar1)" ( (binary_expression "2 < iVar1" number_literal < identifier) )) (compound_statement "{\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" { (expression_statement "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);" (call_expression "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" identifier (argument_list "("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" ( (string_literal ""%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n"" " string_content escape_sequence ") , (string_literal ""check_lbrds"" " string_content ") , (pointer_expression "*param_4" * identifier) , (pointer_expression "*param_5" * identifier) , identifier , identifier , identifier , identifier ))) ;) }))) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (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 ") , (string_literal " string_content ") , IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + (parenthesized_expression ( (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 (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , (string_literal " string_content ") , (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) - LIT) ))) ;) (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT )))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , (string_literal " string_content ") , IDENT , IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , IDENT , (string_literal " string_content ") ))) ;)) (return_statement return LIT ;) })) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , (pointer_expression * IDENT) , (pointer_expression * IDENT) , IDENT , IDENT , IDENT , IDENT ))) ;) }))) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000146a0(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" (identifier "FUN_000146a0") (parameter_list "(int param_1,uint param_2,int param_3,short *param_4,int *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "short *param_4" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int local_30;\n  \n  iVar1 = *(int *)(param_3 + 0x30);\n  if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }\n  if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 0x30);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x30)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x30)" (* "*") (cast_expression "(int *)(param_3 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x30)" (( "(") (binary_expression "param_3 + 0x30" (identifier "param_3") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }\n    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);\n    if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }\n  }" ({ "{") (if_statement "if (param_2 < 0x20) {\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 < 0x20)" (( "(") (binary_expression "param_2 < 0x20" (identifier "param_2") (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);\n      return 0;\n    }" ({ "{") (expression_statement "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);" (call_expression "pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" (identifier "pr2serr") (argument_list "("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2)" (( "(") (string_literal ""%s: %ss too short (%d < 32)\n"" (" """) (string_content "%s: %ss too short (%d < 32)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (string_literal ""LBA range descriptor"" (" """) (string_content "LBA range descriptor") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);" (assignment_expression "uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4)" (identifier "uVar3") (= "=") (call_expression "sg_all_zeros(param_1,0x20,param_4,param_4)" (identifier "sg_all_zeros") (argument_list "(param_1,0x20,param_4,param_4)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "param_4") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if ((char)uVar3 == '\0') {\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "((char)uVar3 == '\0')" (( "(") (binary_expression "(char)uVar3 == '\0'" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);\n      return uVar3;\n    }" ({ "{") (expression_statement "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3);" (call_expression "pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" (identifier "pr2serr") (argument_list "("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"\n              ,"check_lbrds",uVar3,uVar3)" (( "(") (string_literal ""%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"" (" """) (string_content "%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.") (escape_sequence "\n") (string_content "Found non-zero byte.") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (identifier "uVar3") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_2 < 0x40) {\n    *param_4 = 0;\n  }\n  else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 0x40)" (( "(") (binary_expression "param_2 < 0x40" (identifier "param_2") (< "<") (number_literal "0x40")) () ")")) (compound_statement "{\n    *param_4 = 0;\n  }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" (else "else") (compound_statement "{\n    uVar8 = 0xffffffff;\n    if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }\n    iVar4 = param_2 - 0x20;\n    if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }\nLAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }\n  }" ({ "{") (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*(ushort *)(param_3 + 0x40) != 0) {\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" (if "if") (parenthesized_expression "(*(ushort *)(param_3 + 0x40) != 0)" (( "(") (binary_expression "*(ushort *)(param_3 + 0x40) != 0" (pointer_expression "*(ushort *)(param_3 + 0x40)" (* "*") (cast_expression "(ushort *)(param_3 + 0x40)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x40)" (( "(") (binary_expression "param_3 + 0x40" (identifier "param_3") (+ "+") (number_literal "0x40")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar8 = (uint)*(ushort *)(param_3 + 0x40);\n    }" ({ "{") (expression_statement "uVar8 = (uint)*(ushort *)(param_3 + 0x40);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_3 + 0x40)" (identifier "uVar8") (= "=") (binary_expression "(uint)*(ushort *)(param_3 + 0x40)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_3 + 0x40)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x40)" (( "(") (binary_expression "param_3 + 0x40" (identifier "param_3") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar4 = param_2 - 0x20;" (assignment_expression "iVar4 = param_2 - 0x20" (identifier "iVar4") (= "=") (binary_expression "param_2 - 0x20" (identifier "param_2") (- "-") (number_literal "0x20"))) (; ";")) (if_statement "if (iVar4 < 0x21) {\n      uVar7 = 0x20;\n    }\n    else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" (if "if") (parenthesized_expression "(iVar4 < 0x21)" (( "(") (binary_expression "iVar4 < 0x21" (identifier "iVar4") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n      uVar7 = 0x20;\n    }" ({ "{") (expression_statement "uVar7 = 0x20;" (assignment_expression "uVar7 = 0x20" (identifier "uVar7") (= "=") (number_literal "0x20")) (; ";")) (} "}")) (else_clause "else {\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" (else "else") (compound_statement "{\n      uVar6 = 0x20;\n      local_30 = 0;\n      do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);\nLAB_0001481f:\n      uVar7 = uVar7 + 0x20;\n      param_3 = param_1;\n    }" ({ "{") (expression_statement "uVar6 = 0x20;" (assignment_expression "uVar6 = 0x20" (identifier "uVar6") (= "=") (number_literal "0x20")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      } while ((int)uVar6 < iVar4);" (do "do") (compound_statement "{\n        uVar7 = uVar6;\n        if (uVar8 == 0xffffffff) goto LAB_000147c5;\n        while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }\n        uVar8 = uVar8 - 1;\n        if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }\n        uVar6 = uVar7 + 0x20;\n        local_30 = local_30 + 1;\n      }" ({ "{") (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" (identifier "uVar7") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (uVar8 == 0xffffffff) goto LAB_000147c5;" (if "if") (parenthesized_expression "(uVar8 == 0xffffffff)" (( "(") (binary_expression "uVar8 == 0xffffffff" (identifier "uVar8") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_000147c5;" (goto "goto") (statement_identifier "LAB_000147c5") (; ";"))) (while_statement "while( true ) {\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          uVar6 = *(uint *)(param_1 + 8 + uVar7);\n          *param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);\n          *param_4 = *param_4 + 1;\n          iVar5 = param_3;\n          if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }\n          if (uVar8 != 0xffffffff) break;\n          uVar6 = uVar7 + 0x20;\n          local_30 = local_30 + 1;\n          uVar8 = 0xffffffff;\n          if (iVar4 <= (int)uVar6) goto LAB_0001481f;\nLAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);\n          uVar7 = uVar6;\n          if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }\n          uVar8 = 0xffffffff;\n        }" ({ "{") (expression_statement "uVar6 = *(uint *)(param_1 + 8 + uVar7);" (assignment_expression "uVar6 = *(uint *)(param_1 + 8 + uVar7)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 8 + uVar7)" (* "*") (cast_expression "(uint *)(param_1 + 8 + uVar7)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8 + uVar7)" (( "(") (binary_expression "param_1 + 8 + uVar7" (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (+ "+") (identifier "uVar7")) () ")"))))) (; ";")) (expression_statement "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18);" (assignment_expression "*param_5 = *param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "*param_5 +\n                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (+ "+") (parenthesized_expression "(uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18)" (( "(") (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                     uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" (identifier "uVar6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" (( "(") (binary_expression "uVar6 & 0xff0000" (identifier "uVar6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" (( "(") (binary_expression "uVar6 & 0xff00" (identifier "uVar6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar6 << 0x18" (identifier "uVar6") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";")) (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }\n            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);\n            if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }\n          }" ({ "{") (if_statement "if (*(int *)(param_3 + 0x34) == 0) {\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }\n            else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x34) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x34) == 0" (pointer_expression "*(int *)(param_3 + 0x34)" (* "*") (cast_expression "(int *)(param_3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar5 = param_1 + 0xc;\n              uVar3 = 0x14;\n            }" ({ "{") (expression_statement "iVar5 = param_1 + 0xc;" (assignment_expression "iVar5 = param_1 + 0xc" (identifier "iVar5") (= "=") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "uVar3 = 0x14;" (assignment_expression "uVar3 = 0x14" (identifier "uVar3") (= "=") (number_literal "0x14")) (; ";")) (} "}")) (else_clause "else {\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" (else "else") (compound_statement "{\n              iVar5 = param_1 + 0x14;\n              uVar3 = 0xc;\n            }" ({ "{") (expression_statement "iVar5 = param_1 + 0x14;" (assignment_expression "iVar5 = param_1 + 0x14" (identifier "iVar5") (= "=") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" (identifier "uVar3") (= "=") (number_literal "0xc")) (; ";")) (} "}")))) (expression_statement "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);" (assignment_expression "iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3)" (identifier "iVar5") (= "=") (call_expression "sg_all_zeros(iVar5 + uVar7,uVar3)" (identifier "sg_all_zeros") (argument_list "(iVar5 + uVar7,uVar3)" (( "(") (binary_expression "iVar5 + uVar7" (identifier "iVar5") (+ "+") (identifier "uVar7")) (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if ((char)iVar5 == '\0') {\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" (if "if") (parenthesized_expression "((char)iVar5 == '\0')" (( "(") (binary_expression "(char)iVar5 == '\0'" (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);\n              return 0;\n            }" ({ "{") (expression_statement "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1);" (call_expression "pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" (identifier "pr2serr") (argument_list "("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"\n                      ,(uVar7 >> 5) - 1)" (( "(") (string_literal ""%s: %s %d non zero in reserved fields\n"" (" """) (string_content "%s: %s %d non zero in reserved fields") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (string_literal ""LBA range descriptor"" (" """) (string_content "LBA range descriptor") (" """)) (, ",") (binary_expression "(uVar7 >> 5) - 1" (parenthesized_expression "(uVar7 >> 5)" (( "(") (binary_expression "uVar7 >> 5" (identifier "uVar7") (>> ">>") (number_literal "5")) () ")")) (- "-") (number_literal "1")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (uVar8 != 0xffffffff) break;" (if "if") (parenthesized_expression "(uVar8 != 0xffffffff)" (( "(") (binary_expression "uVar8 != 0xffffffff" (identifier "uVar8") (!= "!=") (number_literal "0xffffffff")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" (identifier "uVar6") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (iVar4 <= (int)uVar6) goto LAB_0001481f;" (if "if") (parenthesized_expression "(iVar4 <= (int)uVar6)" (( "(") (binary_expression "iVar4 <= (int)uVar6" (identifier "iVar4") (<= "<=") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6"))) () ")")) (goto_statement "goto LAB_0001481f;" (goto "goto") (statement_identifier "LAB_0001481f") (; ";"))) (labeled_statement "LAB_000147c5:\n          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" (statement_identifier "LAB_000147c5") (: ":") (expression_statement "uVar3 = sg_all_zeros(param_1 + uVar6,0xc);" (assignment_expression "uVar3 = sg_all_zeros(param_1 + uVar6,0xc)" (identifier "uVar3") (= "=") (call_expression "sg_all_zeros(param_1 + uVar6,0xc)" (identifier "sg_all_zeros") (argument_list "(param_1 + uVar6,0xc)" (( "(") (binary_expression "param_1 + uVar6" (identifier "param_1") (+ "+") (identifier "uVar6")) (, ",") (number_literal "0xc") () ")")))) (; ";"))) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" (identifier "uVar7") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if ((char)uVar3 != '\0') {\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" (if "if") (parenthesized_expression "((char)uVar3 != '\0')" (( "(") (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }\n            if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }\n            param_3 = param_2 - (uVar6 + 0x20);\n            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);\n            if (cVar2 != '\0') {\n              return 1;\n            }\n            goto LAB_00014939;\n          }" ({ "{") (if_statement "if (iVar1 != 0) {\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              uVar8 = 0xffffffff;\n              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);\n              goto LAB_00014897;\n            }" ({ "{") (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30);" (assignment_expression "iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" (identifier "iVar5") (= "=") (call_expression "pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" (identifier "pr2serr") (argument_list "("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",\n                              "LBA range descriptor",uVar6,local_30)" (( "(") (string_literal ""%s: degenerate %s stops scan at k=%d (num_rds=%d)\n"" (" """) (string_content "%s: degenerate %s stops scan at k=%d (num_rds=%d)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (string_literal ""LBA range descriptor"" (" """) (string_content "LBA range descriptor") (" """)) (, ",") (identifier "uVar6") (, ",") (identifier "local_30") () ")")))) (; ";")) (goto_statement "goto LAB_00014897;" (goto "goto") (statement_identifier "LAB_00014897") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_3 + 0x28) == 0) {\n              return 1;\n            }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x28) == 0" (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return 1;\n            }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "param_3 = param_2 - (uVar6 + 0x20);" (assignment_expression "param_3 = param_2 - (uVar6 + 0x20)" (identifier "param_3") (= "=") (binary_expression "param_2 - (uVar6 + 0x20)" (identifier "param_2") (- "-") (parenthesized_expression "(uVar6 + 0x20)" (( "(") (binary_expression "uVar6 + 0x20" (identifier "uVar6") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);" (assignment_expression "cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" (identifier "cVar2") (= "=") (call_expression "sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" (identifier "sg_all_zeros") (argument_list "(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3)" (( "(") (binary_expression "uVar6 + 0x20 + param_1" (binary_expression "uVar6 + 0x20" (identifier "uVar6") (+ "+") (number_literal "0x20")) (+ "+") (identifier "param_1")) (, ",") (identifier "param_3") (, ",") (identifier "uVar3") (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n              return 1;\n            }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              return 1;\n            }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (goto_statement "goto LAB_00014939;" (goto "goto") (statement_identifier "LAB_00014939") (; ";")) (} "}"))) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 - 1" (identifier "uVar8") (- "-") (number_literal "1"))) (; ";")) (if_statement "if ((int)uVar8 < 1) {\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" (if "if") (parenthesized_expression "((int)uVar8 < 1)" (( "(") (binary_expression "(int)uVar8 < 1" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }\n          goto LAB_00014821;\n        }" ({ "{") (labeled_statement "LAB_00014897:\n          if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" (statement_identifier "LAB_00014897") (: ":") (if_statement "if (*(int *)(param_3 + 0x28) != 0) {\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x28) != 0" (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            uVar7 = uVar7 + 0x20;\n            param_3 = param_2 - uVar7;\n            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);\n            if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }\n          }" ({ "{") (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "param_3 = param_2 - uVar7;" (assignment_expression "param_3 = param_2 - uVar7" (identifier "param_3") (= "=") (binary_expression "param_2 - uVar7" (identifier "param_2") (- "-") (identifier "uVar7"))) (; ";")) (expression_statement "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);" (assignment_expression "cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" (identifier "cVar2") (= "=") (call_expression "sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5)" (identifier "sg_all_zeros") (argument_list "(param_1 + uVar7,param_3,iVar5,iVar5)" (( "(") (binary_expression "param_1 + uVar7" (identifier "param_1") (+ "+") (identifier "uVar7")) (, ",") (identifier "param_3") (, ",") (identifier "iVar5") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");\n              return 0;\n            }" ({ "{") (labeled_statement "LAB_00014939:\n              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" (statement_identifier "LAB_00014939") (: ":") (expression_statement "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor");" (call_expression "pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" (identifier "pr2serr") (argument_list "("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,\n                      "LBA range descriptor")" (( "(") (string_literal ""%s: pad (%d bytes) following %ss is non zero\n"" (" """) (string_content "%s: pad (%d bytes) following %ss is non zero") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (identifier "param_3") (, ",") (string_literal ""LBA range descriptor"" (" """) (string_content "LBA range descriptor") (" """)) () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00014821;" (goto "goto") (statement_identifier "LAB_00014821") (; ";")) (} "}"))) (expression_statement "uVar6 = uVar7 + 0x20;" (assignment_expression "uVar6 = uVar7 + 0x20" (identifier "uVar6") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar6 < iVar4)" (( "(") (binary_expression "(int)uVar6 < iVar4" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (identifier "iVar4")) () ")")) (; ";")) (labeled_statement "LAB_0001481f:\n      uVar7 = uVar7 + 0x20;" (statement_identifier "LAB_0001481f") (: ":") (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";"))) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" (identifier "param_3") (= "=") (identifier "param_1")) (; ";")) (} "}")))) (labeled_statement "LAB_00014821:\n    if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" (statement_identifier "LAB_00014821") (: ":") (if_statement "if (2 < iVar1) {\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" (if "if") (parenthesized_expression "(2 < iVar1)" (( "(") (binary_expression "2 < iVar1" (number_literal "2") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);\n    }" ({ "{") (expression_statement "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3);" (call_expression "pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" (identifier "pr2serr") (argument_list "("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",\n              *param_4,*param_5,uVar7,uVar8,param_3,param_3)" (( "(") (string_literal ""%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n"" (" """) (string_content "%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]") (escape_sequence "\n") (" """)) (, ",") (string_literal ""check_lbrds"" (" """) (string_content "check_lbrds") (" """)) (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (pointer_expression "*param_5" (* "*") (identifier "param_5")) (, ",") (identifier "uVar7") (, ",") (identifier "uVar8") (, ",") (identifier "param_3") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(uint8_t *var_6,uint32_t var_1,type_2 *op,uint16_t *num_lbard,uint32_t *sum_num)

{
  uint8_t *var_9;
  int var_11;
  char var_12;
  type_3 uVar4;
  int var_4;
  type_2 *poVar6;
  type_4 var_8;
  type_4 var_7;
  type_4 var_5;
  int var_10;
  
  var_11 = op->verbose;
  if (op->strict != 0) {
    if (var_1 < 0x20) {
      uVar4 = 0;
      var_2("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",var_1);
      goto LAB_00014815;
    }
    uVar4 = var_3(var_6,0x20,num_lbard,num_lbard);
    if ((char)uVar4 == '\0') {
      var_2("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"
              ,"check_lbrds",uVar4,uVar4);
      goto LAB_00014815;
    }
  }
  if (var_1 < 0x40) {
    *num_lbard = 0;
    uVar4 = 1;
  }
  else {
    var_5 = 0xffffffff;
    if (op->scat_num_lbard != 0) {
      var_5 = (type_4)op->scat_num_lbard;
    }
    var_4 = var_1 - 0x20;
    if (var_4 < 0x21) {
      var_7 = 0x20;
    }
    else {
      var_8 = 0x20;
      var_10 = 0;
      do {
        var_7 = var_8;
        if (var_5 == 0xffffffff) goto LAB_000147c5;
        while( true ) {
          var_8 = *(type_4 *)(var_6 + var_7 + 8);
          *sum_num = *sum_num +
                     (var_8 >> 0x18 | (var_8 & 0xff0000) >> 8 | (var_8 & 0xff00) << 8 |
                     var_8 << 0x18);
          *num_lbard = *num_lbard + 1;
          poVar6 = op;
          if (op->strict != 0) {
            if (op->wrprotect == 0) {
              var_9 = var_6 + 0xc;
              uVar4 = 0x14;
            }
            else {
              var_9 = var_6 + 0x14;
              uVar4 = 0xc;
            }
            poVar6 = (type_2 *)var_3(var_9 + var_7,uVar4);
            if ((char)poVar6 == '\0') {
              uVar4 = 0;
              var_2("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"
                      ,(var_7 >> 5) - 1);
              goto LAB_00014815;
            }
          }
          if (var_5 != 0xffffffff) break;
          var_8 = var_7 + 0x20;
          var_10 = var_10 + 1;
          var_5 = 0xffffffff;
          if (var_4 <= (int)var_8) goto LAB_0001481f;
LAB_000147c5:
          uVar4 = var_3(var_6 + var_8,0xc);
          var_7 = var_8;
          if ((char)uVar4 != '\0') {
            if (var_11 != 0) {
              var_5 = 0xffffffff;
              poVar6 = (type_2 *)
                       var_2("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",
                               "LBA range descriptor",var_8,var_10);
              goto LAB_00014897;
            }
            if (op->strict == 0) goto LAB_0001484c;
            op = (type_2 *)(var_1 - (var_8 + 0x20));
            var_12 = var_3(var_6 + var_8 + 0x20,op,uVar4,uVar4);
            if (var_12 != '\0') goto LAB_0001484c;
            goto LAB_00014939;
          }
          var_5 = 0xffffffff;
        }
        var_5 = var_5 - 1;
        if ((int)var_5 < 1) {
LAB_00014897:
          if (op->strict == 0) goto LAB_00014821;
          var_7 = var_7 + 0x20;
          op = (type_2 *)(var_1 - var_7);
          var_12 = var_3(var_6 + var_7,op,poVar6,poVar6);
          if (var_12 != '\0') goto LAB_00014821;
LAB_00014939:
          uVar4 = 0;
          var_2("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",op,
                  "LBA range descriptor");
          goto LAB_00014815;
        }
        var_8 = var_7 + 0x20;
        var_10 = var_10 + 1;
      } while ((int)var_8 < var_4);
LAB_0001481f:
      var_7 = var_7 + 0x20;
      op = (type_2 *)var_6;
    }
LAB_00014821:
    if (2 < var_11) {
      var_2("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",
              *num_lbard,*sum_num,var_7,var_5,op,op);
    }
LAB_0001484c:
    uVar4 = 1;
  }
LAB_00014815:
  return var_13(uVar4,0);
}


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

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

undefined4 __regparm3 MASKED(int param_1,uint param_2,int param_3,short *param_4,int *param_5)

{
  int iVar1;
  char cVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int local_30;
  
  iVar1 = *(int *)(param_3 + 0x30);
  if (*(int *)(param_3 + 0x28) != 0) {
    if (param_2 < 0x20) {
      pr2serr("%s: %ss too short (%d < 32)\n","check_lbrds","LBA range descriptor",param_2);
      return 0;
    }
    uVar3 = sg_all_zeros(param_1,0x20,param_4,param_4);
    if ((char)uVar3 == '\0') {
      pr2serr("%s: first 32 bytes of WRITE SCATTERED data-out buffer should be zero.\nFound non-zero byte.\n"
              ,"check_lbrds",uVar3,uVar3);
      return uVar3;
    }
  }
  if (param_2 < 0x40) {
    *param_4 = 0;
  }
  else {
    uVar8 = 0xffffffff;
    if (*(ushort *)(param_3 + 0x40) != 0) {
      uVar8 = (uint)*(ushort *)(param_3 + 0x40);
    }
    iVar4 = param_2 - 0x20;
    if (iVar4 < 0x21) {
      uVar7 = 0x20;
    }
    else {
      uVar6 = 0x20;
      local_30 = 0;
      do {
        uVar7 = uVar6;
        if (uVar8 == 0xffffffff) goto LAB_000147c5;
        while( true ) {
          uVar6 = *(uint *)(param_1 + 8 + uVar7);
          *param_5 = *param_5 +
                     (uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                     uVar6 << 0x18);
          *param_4 = *param_4 + 1;
          iVar5 = param_3;
          if (*(int *)(param_3 + 0x28) != 0) {
            if (*(int *)(param_3 + 0x34) == 0) {
              iVar5 = param_1 + 0xc;
              uVar3 = 0x14;
            }
            else {
              iVar5 = param_1 + 0x14;
              uVar3 = 0xc;
            }
            iVar5 = sg_all_zeros(iVar5 + uVar7,uVar3);
            if ((char)iVar5 == '\0') {
              pr2serr("%s: %s %d non zero in reserved fields\n","check_lbrds","LBA range descriptor"
                      ,(uVar7 >> 5) - 1);
              return 0;
            }
          }
          if (uVar8 != 0xffffffff) break;
          uVar6 = uVar7 + 0x20;
          local_30 = local_30 + 1;
          uVar8 = 0xffffffff;
          if (iVar4 <= (int)uVar6) goto LAB_0001481f;
LAB_000147c5:
          uVar3 = sg_all_zeros(param_1 + uVar6,0xc);
          uVar7 = uVar6;
          if ((char)uVar3 != '\0') {
            if (iVar1 != 0) {
              uVar8 = 0xffffffff;
              iVar5 = pr2serr("%s: degenerate %s stops scan at k=%d (num_rds=%d)\n","check_lbrds",
                              "LBA range descriptor",uVar6,local_30);
              goto LAB_00014897;
            }
            if (*(int *)(param_3 + 0x28) == 0) {
              return 1;
            }
            param_3 = param_2 - (uVar6 + 0x20);
            cVar2 = sg_all_zeros(uVar6 + 0x20 + param_1,param_3,uVar3,uVar3);
            if (cVar2 != '\0') {
              return 1;
            }
            goto LAB_00014939;
          }
          uVar8 = 0xffffffff;
        }
        uVar8 = uVar8 - 1;
        if ((int)uVar8 < 1) {
LAB_00014897:
          if (*(int *)(param_3 + 0x28) != 0) {
            uVar7 = uVar7 + 0x20;
            param_3 = param_2 - uVar7;
            cVar2 = sg_all_zeros(param_1 + uVar7,param_3,iVar5,iVar5);
            if (cVar2 == '\0') {
LAB_00014939:
              pr2serr("%s: pad (%d bytes) following %ss is non zero\n","check_lbrds",param_3,
                      "LBA range descriptor");
              return 0;
            }
          }
          goto LAB_00014821;
        }
        uVar6 = uVar7 + 0x20;
        local_30 = local_30 + 1;
      } while ((int)uVar6 < iVar4);
LAB_0001481f:
      uVar7 = uVar7 + 0x20;
      param_3 = param_1;
    }
LAB_00014821:
    if (2 < iVar1) {
      pr2serr("%s: about to return true, num_lbard=%u, sum_num=%u [k=%d, n=%d]\n","check_lbrds",
              *param_4,*param_5,uVar7,uVar8,param_3,param_3);
    }
  }
  return 1;
}

