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

int __regparm3 decode_block_lb_prov_vpd(uint8_t *b,int len,opts_t *op)

{
  int iVar1;
  byte bVar2;
  byte bVar3;
  uint8_t uVar4;
  int iVar5;
  int in_GS_OFFSET;
  char *pcVar6;
  char bb [1024];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (len < 4) {
    iVar5 = 0x61;
    pr2serr("Logical block provisioning page too short=%d\n",len);
  }
  else {
    bVar2 = b[6];
    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);
    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);
    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);
    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);
    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);
    bVar3 = b[5];
    uVar4 = b[4];
    __printf_chk(1,"  Threshold exponent: ");
    if (uVar4 == '\0') {
      puts("0 [threshold sets not supported]");
    }
    else {
      __printf_chk(1,"%u\n",uVar4);
    }
    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);
    __printf_chk(1,"  Minimum percentage: ");
    if (b[6] >> 3 == 0) {
      puts("0 [not reported]");
    }
    else {
      __printf_chk(1,"%d\n",b[6] >> 3);
    }
    pcVar6 = prov_type_arr[bVar2 & 7];
    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);
    __printf_chk(1,"  Threshold percentage: ");
    if (b[7] == '\0') {
      puts("0 [percentages not supported]");
    }
    else {
      __printf_chk(1,"%u\n",b[7],pcVar6);
    }
    if ((len < 0xc) || ((bVar3 & 1) == 0)) {
      iVar5 = 0;
    }
    else {
      bVar2 = b[0xb];
      if (bVar2 == 0) {
        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);
        iVar5 = 0;
      }
      else {
        puts("  Provisioning group descriptor:");
        iVar5 = 0;
        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);
        __printf_chk(1,&DAT_00020858,bb);
      }
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)

{
  char cVar1;
  byte bVar2;
  byte bVar3;
  undefined4 uVar4;
  uint uVar5;
  int in_GS_OFFSET;
  undefined *puVar6;
  undefined1 local_420 [1024];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x155cd;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 < 4) {
    uVar4 = 0x61;
    pr2serr("Logical block provisioning page too short=%d\n",param_2);
  }
  else {
    uVar5 = *(byte *)(param_1 + 6) & 7;
    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",
                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);
    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",
                 *(byte *)(param_1 + 5) >> 6 & 1);
    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",
                 *(byte *)(param_1 + 5) >> 5 & 1);
    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",
                 *(byte *)(param_1 + 5) >> 2 & 7);
    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);
    cVar1 = *(char *)(param_1 + 4);
    bVar2 = *(byte *)(param_1 + 5) & 1;
    __printf_chk(1,"  Threshold exponent: ");
    if (cVar1 == '\0') {
      puts("0 [threshold sets not supported]");
    }
    else {
      __printf_chk(1,"%u\n",cVar1);
    }
    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);
    __printf_chk(1,"  Minimum percentage: ");
    bVar3 = *(byte *)(param_1 + 6) >> 3;
    if (bVar3 == 0) {
      puts("0 [not reported]");
    }
    else {
      __printf_chk(1,"%d\n",bVar3);
    }
    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];
    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);
    __printf_chk(1,"  Threshold percentage: ");
    if (*(char *)(param_1 + 7) == '\0') {
      puts("0 [percentages not supported]");
    }
    else {
      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);
    }
    if ((param_2 < 0xc) || (bVar2 == 0)) {
      uVar4 = 0;
    }
    else {
      bVar2 = *(byte *)(param_1 + 0xb);
      if (bVar2 == 0) {
        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);
        uVar4 = 0;
      }
      else {
        puts("  Provisioning group descriptor:");
        uVar4 = 0;
        sg_get_designation_descriptor_str
                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);
        __printf_chk(1,&DAT_00020858,local_420);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001f100();
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013af0
ADD EBX,0x1991f
SUB ESP,0x42c
MOV dword ptr [ESP + 0xc],ECX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x41c],EAX
XOR EAX,EAX
CMP EDX,0x3
JLE 0x00015858
MOVZX EAX,byte ptr [ESI + 0x6]
SUB ESP,0x4
MOV EDI,EAX
MOVSX EAX,byte ptr [ESI + 0x5]
AND EDI,0x7
SHR EAX,0x1f
PUSH EAX
LEA EAX,[EBX + 0xffff3654]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x5]
ADD ESP,0xc
SHR AL,0x6
AND EAX,0x1
PUSH EAX
LEA EAX,[EBX + 0xffff367c]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x5]
ADD ESP,0xc
SHR AL,0x5
AND EAX,0x1
PUSH EAX
LEA EAX,[EBX + 0xffff36b4]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x5]
ADD ESP,0xc
SHR AL,0x2
AND EAX,0x7
PUSH EAX
LEA EAX,[EBX + 0xffff36f0]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x5]
ADD ESP,0xc
SHR AL,0x1
AND EAX,0x1
PUSH EAX
LEA EAX,[EBX + 0xffff3728]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x5]
MOVZX EDX,byte ptr [ESI + 0x4]
AND EAX,0x1
MOV dword ptr [ESP + 0x14],EDX
MOV byte ptr [ESP + 0x1b],AL
MOVZX EAX,AL
MOV dword ptr [ESP + 0x10],EAX
POP EAX
LEA EAX,[EBX + 0xffff15ae]
POP EDX
PUSH EAX
PUSH 0x1
CALL 0x000122b0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
TEST EDX,EDX
JZ 0x000157f8
SUB ESP,0x4
LEA EAX,[EBX + 0xffff1e2e]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x000122b0
ADD ESP,0x10
SUB ESP,0x4
LEA EAX,[EBX + 0xffff3778]
PUSH dword ptr [ESP + 0x4]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
POP ECX
POP EAX
LEA EAX,[EBX + 0xffff15c5]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x6]
ADD ESP,0x10
SHR AL,0x3
JNZ 0x00015838
SUB ESP,0xc
LEA EAX,[EBX + 0xffff13ce]
PUSH EAX
CALL 0x000121a0
ADD ESP,0x10
LEA EAX,[EBX + 0xffff15dc]
PUSH dword ptr [EBX + EDI*0x4 + 0xfffffd74]
PUSH EDI
PUSH EAX
PUSH 0x1
CALL 0x000122b0
POP EAX
LEA EAX,[EBX + 0xffff15fa]
POP EDX
PUSH EAX
PUSH 0x1
CALL 0x000122b0
MOVZX EAX,byte ptr [ESI + 0x7]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00015818
SUB ESP,0xc
LEA EAX,[EBX + 0xffff1613]
PUSH EAX
CALL 0x000121a0
ADD ESP,0x10
CMP EBP,0xb
JLE 0x00015810
CMP byte ptr [ESP + 0xb],0x0
JZ 0x00015810
MOVZX EBP,byte ptr [ESI + 0xb]
TEST EBP,EBP
JZ 0x00015878
SUB ESP,0xc
LEA EAX,[EBX + 0xffff37dc]
ADD EBP,0x4
ADD ESI,0x8
PUSH EAX
CALL 0x000121a0
ADD ESP,0xc
LEA EDI,[ESP + 0x20]
PUSH EDI
PUSH 0x400
MOV EAX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EAX]
PUSH EAX
LEA EAX,[EBX + 0xffff1631]
PUSH 0x0
PUSH EBP
XOR EBP,EBP
PUSH ESI
PUSH EAX
CALL 0x00012080
ADD ESP,0x1c
LEA EAX,[EBX + 0xffff196c]
PUSH EDI
PUSH EAX
PUSH 0x1
CALL 0x000122b0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x41c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x00015891
ADD ESP,0x42c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffff3754]
PUSH EAX
CALL 0x000121a0
ADD ESP,0x10
JMP 0x000156d4
XOR EBP,EBP
JMP 0x000157d3
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff1e2e]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
ADD ESP,0x10
JMP 0x00015762
SUB ESP,0x4
MOVZX EAX,AL
PUSH EAX
LEA EAX,[EBX + 0xffff7359]
PUSH EAX
PUSH 0x1
CALL 0x000122b0
ADD ESP,0x10
JMP 0x0001571b
SUB ESP,0x8
LEA EAX,[EBX + 0xffff3624]
MOV EBP,0x61
PUSH EDX
PUSH EAX
CALL 0x00012120
ADD ESP,0x10
JMP 0x000157d3
SUB ESP,0x8
LEA EAX,[EBX + 0xffff3798]
PUSH 0x0
PUSH EAX
CALL 0x00012120
ADD ESP,0x10
JMP 0x000157d3
CALL 0x0001f100
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001f100();\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001f100();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000155c0(int param_1,int param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001f100();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 local_420 [1024];" type_identifier (array_declarator "local_420 [1024]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x155cd;" (assignment_expression "uStack_14 = 0x155cd" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }" { (expression_statement "uVar4 = 0x61;" (assignment_expression "uVar4 = 0x61" identifier = number_literal) ;) (expression_statement "pr2serr("Logical block provisioning page too short=%d\n",param_2);" (call_expression "pr2serr("Logical block provisioning page too short=%d\n",param_2)" identifier (argument_list "("Logical block provisioning page too short=%d\n",param_2)" ( (string_literal ""Logical block provisioning page too short=%d\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" else (compound_statement "{\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" { (expression_statement "uVar5 = *(byte *)(param_1 + 6) & 7;" (assignment_expression "uVar5 = *(byte *)(param_1 + 6) & 7" identifier = (binary_expression "*(byte *)(param_1 + 6) & 7" (pointer_expression "*(byte *)(param_1 + 6)" * (cast_expression "(byte *)(param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);" (call_expression "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" identifier (argument_list "(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" ( number_literal , (string_literal ""  Unmap command supported (LBPU): %d\n"" " string_content escape_sequence ") , (binary_expression "(uint)(int)*(char *)(param_1 + 5) >> 0x1f" (binary_expression "(uint)(int)*(char *)(param_1 + 5)" (call_expression "(uint)(int)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(int)" ( identifier ))) * (cast_expression "(char *)(param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);" (call_expression "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" identifier (argument_list "(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" ( number_literal , (string_literal ""  Write same (16) with unmap bit supported (LBPWS): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 6 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 6" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);" (call_expression "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" identifier (argument_list "(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" ( number_literal , (string_literal ""  Write same (10) with unmap bit supported (LBPWS10): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 5 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 5" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);" (call_expression "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" identifier (argument_list "(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" ( number_literal , (string_literal ""  Logical block provisioning read zeros (LBPRZ): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 2 & 7" (binary_expression "*(byte *)(param_1 + 5) >> 2" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);" (call_expression "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" identifier (argument_list "(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" ( number_literal , (string_literal ""  Anchored LBAs supported (ANC_SUP): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 1 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 1" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_1 + 5) & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 5) & 1" identifier = (binary_expression "*(byte *)(param_1 + 5) & 1" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "__printf_chk(1,"  Threshold exponent: ");" (call_expression "__printf_chk(1,"  Threshold exponent: ")" identifier (argument_list "(1,"  Threshold exponent: ")" ( number_literal , (string_literal ""  Threshold exponent: "" " string_content ") ))) ;) (if_statement "if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [threshold sets not supported]");\n    }" { (expression_statement "puts("0 [threshold sets not supported]");" (call_expression "puts("0 [threshold sets not supported]")" identifier (argument_list "("0 [threshold sets not supported]")" ( (string_literal ""0 [threshold sets not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",cVar1);\n    }" { (expression_statement "__printf_chk(1,"%u\n",cVar1);" (call_expression "__printf_chk(1,"%u\n",cVar1)" identifier (argument_list "(1,"%u\n",cVar1)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);" (call_expression "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2)" identifier (argument_list "(1,"  Descriptor present (DP): %d\n",bVar2)" ( number_literal , (string_literal ""  Descriptor present (DP): %d\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "__printf_chk(1,"  Minimum percentage: ");" (call_expression "__printf_chk(1,"  Minimum percentage: ")" identifier (argument_list "(1,"  Minimum percentage: ")" ( number_literal , (string_literal ""  Minimum percentage: "" " string_content ") ))) ;) (expression_statement "bVar3 = *(byte *)(param_1 + 6) >> 3;" (assignment_expression "bVar3 = *(byte *)(param_1 + 6) >> 3" identifier = (binary_expression "*(byte *)(param_1 + 6) >> 3" (pointer_expression "*(byte *)(param_1 + 6)" * (cast_expression "(byte *)(param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puts("0 [not reported]");\n    }" { (expression_statement "puts("0 [not reported]");" (call_expression "puts("0 [not reported]")" identifier (argument_list "("0 [not reported]")" ( (string_literal ""0 [not reported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" else (compound_statement "{\n      __printf_chk(1,"%d\n",bVar3);\n    }" { (expression_statement "__printf_chk(1,"%d\n",bVar3);" (call_expression "__printf_chk(1,"%d\n",bVar3)" identifier (argument_list "(1,"%d\n",bVar3)" ( number_literal , (string_literal ""%d\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];" (assignment_expression "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" identifier = (subscript_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" (parenthesized_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)" ( (pointer_expression "&PTR_s_not_known_or_fully_provisioned_0002ec60" & identifier) )) [ identifier ])) ;) (expression_statement "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);" (call_expression "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" identifier (argument_list "(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" ( number_literal , (string_literal ""  Provisioning type: %d (%s)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "__printf_chk(1,"  Threshold percentage: ");" (call_expression "__printf_chk(1,"  Threshold percentage: ")" identifier (argument_list "(1,"  Threshold percentage: ")" ( number_literal , (string_literal ""  Threshold percentage: "" " string_content ") ))) ;) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [percentages not supported]");\n    }" { (expression_statement "puts("0 [percentages not supported]");" (call_expression "puts("0 [percentages not supported]")" identifier (argument_list "("0 [percentages not supported]")" ( (string_literal ""0 [percentages not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" { (expression_statement "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);" (call_expression "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6)" identifier (argument_list "(1,"%u\n",*(char *)(param_1 + 7),puVar6)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) , identifier ))) ;) }))) (if_statement "if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" if (parenthesized_expression "((param_2 < 0xc) || (bVar2 == 0))" ( (binary_expression "(param_2 < 0xc) || (bVar2 == 0)" (parenthesized_expression "(param_2 < 0xc)" ( (binary_expression "param_2 < 0xc" identifier < number_literal) )) || (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" else (compound_statement "{\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" { (expression_statement "bVar2 = *(byte *)(param_1 + 0xb);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0xb)" identifier = (pointer_expression "*(byte *)(param_1 + 0xb)" * (cast_expression "(byte *)(param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) ;) (if_statement "if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }" { (expression_statement "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);" (call_expression "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0)" identifier (argument_list "("LB provisioning page provisioning group descriptor too short=%d\n",0)" ( (string_literal ""LB provisioning page provisioning group descriptor too short=%d\n"" " string_content escape_sequence ") , number_literal ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" else (compound_statement "{\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" { (expression_statement "puts("  Provisioning group descriptor:");" (call_expression "puts("  Provisioning group descriptor:")" identifier (argument_list "("  Provisioning group descriptor:")" ( (string_literal ""  Provisioning group descriptor:"" " string_content ") ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);" (call_expression "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" identifier (argument_list "(&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" ( (pointer_expression "&DAT_0002051d" & identifier) , (binary_expression "param_1 + 8" identifier + number_literal) , (binary_expression "bVar2 + 4" identifier + number_literal) , number_literal , (pointer_expression "*param_3" * identifier) , number_literal , identifier ))) ;) (expression_statement "__printf_chk(1,&DAT_00020858,local_420);" (call_expression "__printf_chk(1,&DAT_00020858,local_420)" identifier (argument_list "(1,&DAT_00020858,local_420)" ( number_literal , (pointer_expression "&DAT_00020858" & identifier) , identifier ))) ;) }))) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) comment (expression_statement "FUN_0001f100();" (call_expression "FUN_0001f100()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 decode_block_lb_prov_vpd(uint8_t *b,int len,opts_t *op)\n\n{\n  int iVar1;\n  byte bVar2;\n  byte bVar3;\n  uint8_t uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  char *pcVar6;\n  char bb [1024];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (len < 4) {\n    iVar5 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",len);\n  }\n  else {\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3 decode_block_lb_prov_vpd(uint8_t *b,int len,opts_t *op)\n\n{\n  int iVar1;\n  byte bVar2;\n  byte bVar3;\n  uint8_t uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  char *pcVar6;\n  char bb [1024];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (len < 4) {\n    iVar5 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",len);\n  }\n  else {\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "decode_block_lb_prov_vpd(uint8_t *b,int len,opts_t *op)" identifier (parameter_list "(uint8_t *b,int len,opts_t *op)" ( (parameter_declaration "uint8_t *b" primitive_type (pointer_declarator "*b" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "opts_t *op" type_identifier (pointer_declarator "*op" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  byte bVar3;\n  uint8_t uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  char *pcVar6;\n  char bb [1024];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (len < 4) {\n    iVar5 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",len);\n  }\n  else {\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint8_t uVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char bb [1024];" primitive_type (array_declarator "bb [1024]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (len < 4) {\n    iVar5 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",len);\n  }\n  else {\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }" if (parenthesized_expression "(len < 4)" ( (binary_expression "len < 4" identifier < number_literal) )) (compound_statement "{\n    iVar5 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",len);\n  }" { (expression_statement "iVar5 = 0x61;" (assignment_expression "iVar5 = 0x61" identifier = number_literal) ;) (expression_statement "pr2serr("Logical block provisioning page too short=%d\n",len);" (call_expression "pr2serr("Logical block provisioning page too short=%d\n",len)" identifier (argument_list "("Logical block provisioning page too short=%d\n",len)" ( (string_literal ""Logical block provisioning page too short=%d\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }" else (compound_statement "{\n    bVar2 = b[6];\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);\n    bVar3 = b[5];\n    uVar4 = b[4];\n    __printf_chk(1,"  Threshold exponent: ");\n    if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);\n    __printf_chk(1,"  Minimum percentage: ");\n    if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }\n    pcVar6 = prov_type_arr[bVar2 & 7];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }\n    if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }\n  }" { (expression_statement "bVar2 = b[6];" (assignment_expression "bVar2 = b[6]" identifier = (subscript_expression "b[6]" identifier [ number_literal ])) ;) (expression_statement "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f);" (call_expression "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f)" identifier (argument_list "(1,"  Unmap command supported (LBPU): %d\n",(uint)(int)(char)b[5] >> 0x1f)" ( number_literal , (string_literal ""  Unmap command supported (LBPU): %d\n"" " string_content escape_sequence ") , (binary_expression "(uint)(int)(char)b[5] >> 0x1f" (cast_expression "(uint)(int)(char)b[5]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(int)(char)b[5]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)b[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "b[5]" identifier [ number_literal ])))) >> number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1);" (call_expression "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1)" identifier (argument_list "(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",b[5] >> 6 & 1)" ( number_literal , (string_literal ""  Write same (16) with unmap bit supported (LBPWS): %d\n"" " string_content escape_sequence ") , (binary_expression "b[5] >> 6 & 1" (binary_expression "b[5] >> 6" (subscript_expression "b[5]" identifier [ number_literal ]) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1);" (call_expression "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1)" identifier (argument_list "(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",b[5] >> 5 & 1)" ( number_literal , (string_literal ""  Write same (10) with unmap bit supported (LBPWS10): %d\n"" " string_content escape_sequence ") , (binary_expression "b[5] >> 5 & 1" (binary_expression "b[5] >> 5" (subscript_expression "b[5]" identifier [ number_literal ]) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7);" (call_expression "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7)" identifier (argument_list "(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",b[5] >> 2 & 7)" ( number_literal , (string_literal ""  Logical block provisioning read zeros (LBPRZ): %d\n"" " string_content escape_sequence ") , (binary_expression "b[5] >> 2 & 7" (binary_expression "b[5] >> 2" (subscript_expression "b[5]" identifier [ number_literal ]) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1);" (call_expression "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1)" identifier (argument_list "(1,"  Anchored LBAs supported (ANC_SUP): %d\n",b[5] >> 1 & 1)" ( number_literal , (string_literal ""  Anchored LBAs supported (ANC_SUP): %d\n"" " string_content escape_sequence ") , (binary_expression "b[5] >> 1 & 1" (binary_expression "b[5] >> 1" (subscript_expression "b[5]" identifier [ number_literal ]) >> number_literal) & number_literal) ))) ;) (expression_statement "bVar3 = b[5];" (assignment_expression "bVar3 = b[5]" identifier = (subscript_expression "b[5]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = b[4];" (assignment_expression "uVar4 = b[4]" identifier = (subscript_expression "b[4]" identifier [ number_literal ])) ;) (expression_statement "__printf_chk(1,"  Threshold exponent: ");" (call_expression "__printf_chk(1,"  Threshold exponent: ")" identifier (argument_list "(1,"  Threshold exponent: ")" ( number_literal , (string_literal ""  Threshold exponent: "" " string_content ") ))) ;) (if_statement "if (uVar4 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",uVar4);\n    }" if (parenthesized_expression "(uVar4 == '\0')" ( (binary_expression "uVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [threshold sets not supported]");\n    }" { (expression_statement "puts("0 [threshold sets not supported]");" (call_expression "puts("0 [threshold sets not supported]")" identifier (argument_list "("0 [threshold sets not supported]")" ( (string_literal ""0 [threshold sets not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",uVar4);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",uVar4);\n    }" { (expression_statement "__printf_chk(1,"%u\n",uVar4);" (call_expression "__printf_chk(1,"%u\n",uVar4)" identifier (argument_list "(1,"%u\n",uVar4)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1);" (call_expression "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar3 & 1)" identifier (argument_list "(1,"  Descriptor present (DP): %d\n",bVar3 & 1)" ( number_literal , (string_literal ""  Descriptor present (DP): %d\n"" " string_content escape_sequence ") , (binary_expression "bVar3 & 1" identifier & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Minimum percentage: ");" (call_expression "__printf_chk(1,"  Minimum percentage: ")" identifier (argument_list "(1,"  Minimum percentage: ")" ( number_literal , (string_literal ""  Minimum percentage: "" " string_content ") ))) ;) (if_statement "if (b[6] >> 3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }" if (parenthesized_expression "(b[6] >> 3 == 0)" ( (binary_expression "b[6] >> 3 == 0" (binary_expression "b[6] >> 3" (subscript_expression "b[6]" identifier [ number_literal ]) >> number_literal) == number_literal) )) (compound_statement "{\n      puts("0 [not reported]");\n    }" { (expression_statement "puts("0 [not reported]");" (call_expression "puts("0 [not reported]")" identifier (argument_list "("0 [not reported]")" ( (string_literal ""0 [not reported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }" else (compound_statement "{\n      __printf_chk(1,"%d\n",b[6] >> 3);\n    }" { (expression_statement "__printf_chk(1,"%d\n",b[6] >> 3);" (call_expression "__printf_chk(1,"%d\n",b[6] >> 3)" identifier (argument_list "(1,"%d\n",b[6] >> 3)" ( number_literal , (string_literal ""%d\n"" " string_content escape_sequence ") , (binary_expression "b[6] >> 3" (subscript_expression "b[6]" identifier [ number_literal ]) >> number_literal) ))) ;) }))) (expression_statement "pcVar6 = prov_type_arr[bVar2 & 7];" (assignment_expression "pcVar6 = prov_type_arr[bVar2 & 7]" identifier = (subscript_expression "prov_type_arr[bVar2 & 7]" identifier [ (binary_expression "bVar2 & 7" identifier & number_literal) ])) ;) (expression_statement "__printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6);" (call_expression "__printf_chk(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6)" identifier (argument_list "(1,"  Provisioning type: %d (%s)\n",bVar2 & 7,pcVar6)" ( number_literal , (string_literal ""  Provisioning type: %d (%s)\n"" " string_content escape_sequence ") , (binary_expression "bVar2 & 7" identifier & number_literal) , identifier ))) ;) (expression_statement "__printf_chk(1,"  Threshold percentage: ");" (call_expression "__printf_chk(1,"  Threshold percentage: ")" identifier (argument_list "(1,"  Threshold percentage: ")" ( number_literal , (string_literal ""  Threshold percentage: "" " string_content ") ))) ;) (if_statement "if (b[7] == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }" if (parenthesized_expression "(b[7] == '\0')" ( (binary_expression "b[7] == '\0'" (subscript_expression "b[7]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [percentages not supported]");\n    }" { (expression_statement "puts("0 [percentages not supported]");" (call_expression "puts("0 [percentages not supported]")" identifier (argument_list "("0 [percentages not supported]")" ( (string_literal ""0 [percentages not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",b[7],pcVar6);\n    }" { (expression_statement "__printf_chk(1,"%u\n",b[7],pcVar6);" (call_expression "__printf_chk(1,"%u\n",b[7],pcVar6)" identifier (argument_list "(1,"%u\n",b[7],pcVar6)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , (subscript_expression "b[7]" identifier [ number_literal ]) , identifier ))) ;) }))) (if_statement "if ((len < 0xc) || ((bVar3 & 1) == 0)) {\n      iVar5 = 0;\n    }\n    else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }" if (parenthesized_expression "((len < 0xc) || ((bVar3 & 1) == 0))" ( (binary_expression "(len < 0xc) || ((bVar3 & 1) == 0)" (parenthesized_expression "(len < 0xc)" ( (binary_expression "len < 0xc" identifier < number_literal) )) || (parenthesized_expression "((bVar3 & 1) == 0)" ( (binary_expression "(bVar3 & 1) == 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }" else (compound_statement "{\n      bVar2 = b[0xb];\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }\n    }" { (expression_statement "bVar2 = b[0xb];" (assignment_expression "bVar2 = b[0xb]" identifier = (subscript_expression "b[0xb]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        iVar5 = 0;\n      }" { (expression_statement "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);" (call_expression "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0)" identifier (argument_list "("LB provisioning page provisioning group descriptor too short=%d\n",0)" ( (string_literal ""LB provisioning page provisioning group descriptor too short=%d\n"" " string_content escape_sequence ") , number_literal ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }" else (compound_statement "{\n        puts("  Provisioning group descriptor:");\n        iVar5 = 0;\n        sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);\n        __printf_chk(1,&DAT_00020858,bb);\n      }" { (expression_statement "puts("  Provisioning group descriptor:");" (call_expression "puts("  Provisioning group descriptor:")" identifier (argument_list "("  Provisioning group descriptor:")" ( (string_literal ""  Provisioning group descriptor:"" " string_content ") ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb);" (call_expression "sg_get_designation_descriptor_str(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb)" identifier (argument_list "(&DAT_0002051d,b + 8,bVar2 + 4,0,op->do_all,0x400,bb)" ( (pointer_expression "&DAT_0002051d" & identifier) , (binary_expression "b + 8" identifier + number_literal) , (binary_expression "bVar2 + 4" identifier + number_literal) , number_literal , (field_expression "op->do_all" identifier -> field_identifier) , number_literal , identifier ))) ;) (expression_statement "__printf_chk(1,&DAT_00020858,bb);" (call_expression "__printf_chk(1,&DAT_00020858,bb)" identifier (argument_list "(1,&DAT_00020858,bb)" ( number_literal , (pointer_expression "&DAT_00020858" & identifier) , identifier ))) ;) }))) }))) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0001f100();\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0001f100();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000155c0(int param_1,int param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0001f100();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 local_420 [1024];" type_identifier (array_declarator "local_420 [1024]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x155cd;" (assignment_expression "uStack_14 = 0x155cd" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }" { (expression_statement "uVar4 = 0x61;" (assignment_expression "uVar4 = 0x61" identifier = number_literal) ;) (expression_statement "pr2serr("Logical block provisioning page too short=%d\n",param_2);" (call_expression "pr2serr("Logical block provisioning page too short=%d\n",param_2)" identifier (argument_list "("Logical block provisioning page too short=%d\n",param_2)" ( (string_literal ""Logical block provisioning page too short=%d\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" else (compound_statement "{\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" { (expression_statement "uVar5 = *(byte *)(param_1 + 6) & 7;" (assignment_expression "uVar5 = *(byte *)(param_1 + 6) & 7" identifier = (binary_expression "*(byte *)(param_1 + 6) & 7" (pointer_expression "*(byte *)(param_1 + 6)" * (cast_expression "(byte *)(param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);" (call_expression "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" identifier (argument_list "(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" ( number_literal , (string_literal ""  Unmap command supported (LBPU): %d\n"" " string_content escape_sequence ") , (binary_expression "(uint)(int)*(char *)(param_1 + 5) >> 0x1f" (binary_expression "(uint)(int)*(char *)(param_1 + 5)" (call_expression "(uint)(int)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(int)" ( identifier ))) * (cast_expression "(char *)(param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);" (call_expression "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" identifier (argument_list "(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" ( number_literal , (string_literal ""  Write same (16) with unmap bit supported (LBPWS): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 6 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 6" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);" (call_expression "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" identifier (argument_list "(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" ( number_literal , (string_literal ""  Write same (10) with unmap bit supported (LBPWS10): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 5 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 5" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);" (call_expression "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" identifier (argument_list "(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" ( number_literal , (string_literal ""  Logical block provisioning read zeros (LBPRZ): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 2 & 7" (binary_expression "*(byte *)(param_1 + 5) >> 2" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);" (call_expression "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" identifier (argument_list "(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" ( number_literal , (string_literal ""  Anchored LBAs supported (ANC_SUP): %d\n"" " string_content escape_sequence ") , (binary_expression "*(byte *)(param_1 + 5) >> 1 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 1" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) >> number_literal) & number_literal) ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_1 + 5) & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 5) & 1" identifier = (binary_expression "*(byte *)(param_1 + 5) & 1" (pointer_expression "*(byte *)(param_1 + 5)" * (cast_expression "(byte *)(param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "__printf_chk(1,"  Threshold exponent: ");" (call_expression "__printf_chk(1,"  Threshold exponent: ")" identifier (argument_list "(1,"  Threshold exponent: ")" ( number_literal , (string_literal ""  Threshold exponent: "" " string_content ") ))) ;) (if_statement "if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [threshold sets not supported]");\n    }" { (expression_statement "puts("0 [threshold sets not supported]");" (call_expression "puts("0 [threshold sets not supported]")" identifier (argument_list "("0 [threshold sets not supported]")" ( (string_literal ""0 [threshold sets not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",cVar1);\n    }" { (expression_statement "__printf_chk(1,"%u\n",cVar1);" (call_expression "__printf_chk(1,"%u\n",cVar1)" identifier (argument_list "(1,"%u\n",cVar1)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);" (call_expression "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2)" identifier (argument_list "(1,"  Descriptor present (DP): %d\n",bVar2)" ( number_literal , (string_literal ""  Descriptor present (DP): %d\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "__printf_chk(1,"  Minimum percentage: ");" (call_expression "__printf_chk(1,"  Minimum percentage: ")" identifier (argument_list "(1,"  Minimum percentage: ")" ( number_literal , (string_literal ""  Minimum percentage: "" " string_content ") ))) ;) (expression_statement "bVar3 = *(byte *)(param_1 + 6) >> 3;" (assignment_expression "bVar3 = *(byte *)(param_1 + 6) >> 3" identifier = (binary_expression "*(byte *)(param_1 + 6) >> 3" (pointer_expression "*(byte *)(param_1 + 6)" * (cast_expression "(byte *)(param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puts("0 [not reported]");\n    }" { (expression_statement "puts("0 [not reported]");" (call_expression "puts("0 [not reported]")" identifier (argument_list "("0 [not reported]")" ( (string_literal ""0 [not reported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" else (compound_statement "{\n      __printf_chk(1,"%d\n",bVar3);\n    }" { (expression_statement "__printf_chk(1,"%d\n",bVar3);" (call_expression "__printf_chk(1,"%d\n",bVar3)" identifier (argument_list "(1,"%d\n",bVar3)" ( number_literal , (string_literal ""%d\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];" (assignment_expression "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" identifier = (subscript_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" (parenthesized_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)" ( (pointer_expression "&PTR_s_not_known_or_fully_provisioned_0002ec60" & identifier) )) [ identifier ])) ;) (expression_statement "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);" (call_expression "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" identifier (argument_list "(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" ( number_literal , (string_literal ""  Provisioning type: %d (%s)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "__printf_chk(1,"  Threshold percentage: ");" (call_expression "__printf_chk(1,"  Threshold percentage: ")" identifier (argument_list "(1,"  Threshold percentage: ")" ( number_literal , (string_literal ""  Threshold percentage: "" " string_content ") ))) ;) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puts("0 [percentages not supported]");\n    }" { (expression_statement "puts("0 [percentages not supported]");" (call_expression "puts("0 [percentages not supported]")" identifier (argument_list "("0 [percentages not supported]")" ( (string_literal ""0 [percentages not supported]"" " string_content ") ))) ;) }) (else_clause "else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" else (compound_statement "{\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" { (expression_statement "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);" (call_expression "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6)" identifier (argument_list "(1,"%u\n",*(char *)(param_1 + 7),puVar6)" ( number_literal , (string_literal ""%u\n"" " string_content escape_sequence ") , (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) , identifier ))) ;) }))) (if_statement "if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" if (parenthesized_expression "((param_2 < 0xc) || (bVar2 == 0))" ( (binary_expression "(param_2 < 0xc) || (bVar2 == 0)" (parenthesized_expression "(param_2 < 0xc)" ( (binary_expression "param_2 < 0xc" identifier < number_literal) )) || (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" else (compound_statement "{\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" { (expression_statement "bVar2 = *(byte *)(param_1 + 0xb);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0xb)" identifier = (pointer_expression "*(byte *)(param_1 + 0xb)" * (cast_expression "(byte *)(param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) ;) (if_statement "if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }" { (expression_statement "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);" (call_expression "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0)" identifier (argument_list "("LB provisioning page provisioning group descriptor too short=%d\n",0)" ( (string_literal ""LB provisioning page provisioning group descriptor too short=%d\n"" " string_content escape_sequence ") , number_literal ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" else (compound_statement "{\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" { (expression_statement "puts("  Provisioning group descriptor:");" (call_expression "puts("  Provisioning group descriptor:")" identifier (argument_list "("  Provisioning group descriptor:")" ( (string_literal ""  Provisioning group descriptor:"" " string_content ") ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);" (call_expression "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" identifier (argument_list "(&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" ( (pointer_expression "&DAT_0002051d" & identifier) , (binary_expression "param_1 + 8" identifier + number_literal) , (binary_expression "bVar2 + 4" identifier + number_literal) , number_literal , (pointer_expression "*param_3" * identifier) , number_literal , identifier ))) ;) (expression_statement "__printf_chk(1,&DAT_00020858,local_420);" (call_expression "__printf_chk(1,&DAT_00020858,local_420)" identifier (argument_list "(1,&DAT_00020858,local_420)" ( number_literal , (pointer_expression "&DAT_00020858" & identifier) , identifier ))) ;) }))) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "FUN_0001f100();" (call_expression "FUN_0001f100()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (pointer_expression * IDENT) , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT ))) ;) }))) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_000155c0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0001f100();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000155c0(int param_1,int param_2,undefined1 *param_3)" (identifier "FUN_000155c0") (parameter_list "(int param_1,int param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined *puVar6;\n  undefined1 local_420 [1024];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x155cd;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0001f100();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined1 local_420 [1024];" (type_identifier "undefined1") (array_declarator "local_420 [1024]" (identifier "local_420") ([ "[") (number_literal "1024") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x155cd;" (assignment_expression "uStack_14 = 0x155cd" (identifier "uStack_14") (= "=") (number_literal "0x155cd")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 < 4) {\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }\n  else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 4)" (( "(") (binary_expression "param_2 < 4" (identifier "param_2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    uVar4 = 0x61;\n    pr2serr("Logical block provisioning page too short=%d\n",param_2);\n  }" ({ "{") (expression_statement "uVar4 = 0x61;" (assignment_expression "uVar4 = 0x61" (identifier "uVar4") (= "=") (number_literal "0x61")) (; ";")) (expression_statement "pr2serr("Logical block provisioning page too short=%d\n",param_2);" (call_expression "pr2serr("Logical block provisioning page too short=%d\n",param_2)" (identifier "pr2serr") (argument_list "("Logical block provisioning page too short=%d\n",param_2)" (( "(") (string_literal ""Logical block provisioning page too short=%d\n"" (" """) (string_content "Logical block provisioning page too short=%d") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar5 = *(byte *)(param_1 + 6) & 7;\n    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);\n    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);\n    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);\n    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);\n    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);\n    cVar1 = *(char *)(param_1 + 4);\n    bVar2 = *(byte *)(param_1 + 5) & 1;\n    __printf_chk(1,"  Threshold exponent: ");\n    if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }\n    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);\n    __printf_chk(1,"  Minimum percentage: ");\n    bVar3 = *(byte *)(param_1 + 6) >> 3;\n    if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }\n    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];\n    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);\n    __printf_chk(1,"  Threshold percentage: ");\n    if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }\n    if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }\n  }" ({ "{") (expression_statement "uVar5 = *(byte *)(param_1 + 6) & 7;" (assignment_expression "uVar5 = *(byte *)(param_1 + 6) & 7" (identifier "uVar5") (= "=") (binary_expression "*(byte *)(param_1 + 6) & 7" (pointer_expression "*(byte *)(param_1 + 6)" (* "*") (cast_expression "(byte *)(param_1 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (& "&") (number_literal "7"))) (; ";")) (expression_statement "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);" (call_expression "__printf_chk(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" (identifier "__printf_chk") (argument_list "(1,"  Unmap command supported (LBPU): %d\n",\n                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f)" (( "(") (number_literal "1") (, ",") (string_literal ""  Unmap command supported (LBPU): %d\n"" (" """) (string_content "  Unmap command supported (LBPU): %d") (escape_sequence "\n") (" """)) (, ",") (binary_expression "(uint)(int)*(char *)(param_1 + 5) >> 0x1f" (binary_expression "(uint)(int)*(char *)(param_1 + 5)" (call_expression "(uint)(int)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(int)" (( "(") (identifier "int") () ")"))) (* "*") (cast_expression "(char *)(param_1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (>> ">>") (number_literal "0x1f")) () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1);" (call_expression "__printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" (identifier "__printf_chk") (argument_list "(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",\n                 *(byte *)(param_1 + 5) >> 6 & 1)" (( "(") (number_literal "1") (, ",") (string_literal ""  Write same (16) with unmap bit supported (LBPWS): %d\n"" (" """) (string_content "  Write same (16) with unmap bit supported (LBPWS): %d") (escape_sequence "\n") (" """)) (, ",") (binary_expression "*(byte *)(param_1 + 5) >> 6 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 6" (pointer_expression "*(byte *)(param_1 + 5)" (* "*") (cast_expression "(byte *)(param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (>> ">>") (number_literal "6")) (& "&") (number_literal "1")) () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1);" (call_expression "__printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" (identifier "__printf_chk") (argument_list "(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",\n                 *(byte *)(param_1 + 5) >> 5 & 1)" (( "(") (number_literal "1") (, ",") (string_literal ""  Write same (10) with unmap bit supported (LBPWS10): %d\n"" (" """) (string_content "  Write same (10) with unmap bit supported (LBPWS10): %d") (escape_sequence "\n") (" """)) (, ",") (binary_expression "*(byte *)(param_1 + 5) >> 5 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 5" (pointer_expression "*(byte *)(param_1 + 5)" (* "*") (cast_expression "(byte *)(param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (>> ">>") (number_literal "5")) (& "&") (number_literal "1")) () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7);" (call_expression "__printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" (identifier "__printf_chk") (argument_list "(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",\n                 *(byte *)(param_1 + 5) >> 2 & 7)" (( "(") (number_literal "1") (, ",") (string_literal ""  Logical block provisioning read zeros (LBPRZ): %d\n"" (" """) (string_content "  Logical block provisioning read zeros (LBPRZ): %d") (escape_sequence "\n") (" """)) (, ",") (binary_expression "*(byte *)(param_1 + 5) >> 2 & 7" (binary_expression "*(byte *)(param_1 + 5) >> 2" (pointer_expression "*(byte *)(param_1 + 5)" (* "*") (cast_expression "(byte *)(param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (>> ">>") (number_literal "2")) (& "&") (number_literal "7")) () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);" (call_expression "__printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" (identifier "__printf_chk") (argument_list "(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1)" (( "(") (number_literal "1") (, ",") (string_literal ""  Anchored LBAs supported (ANC_SUP): %d\n"" (" """) (string_content "  Anchored LBAs supported (ANC_SUP): %d") (escape_sequence "\n") (" """)) (, ",") (binary_expression "*(byte *)(param_1 + 5) >> 1 & 1" (binary_expression "*(byte *)(param_1 + 5) >> 1" (pointer_expression "*(byte *)(param_1 + 5)" (* "*") (cast_expression "(byte *)(param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (>> ">>") (number_literal "1")) (& "&") (number_literal "1")) () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar2 = *(byte *)(param_1 + 5) & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 5) & 1" (identifier "bVar2") (= "=") (binary_expression "*(byte *)(param_1 + 5) & 1" (pointer_expression "*(byte *)(param_1 + 5)" (* "*") (cast_expression "(byte *)(param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "1"))) (; ";")) (expression_statement "__printf_chk(1,"  Threshold exponent: ");" (call_expression "__printf_chk(1,"  Threshold exponent: ")" (identifier "__printf_chk") (argument_list "(1,"  Threshold exponent: ")" (( "(") (number_literal "1") (, ",") (string_literal ""  Threshold exponent: "" (" """) (string_content "  Threshold exponent: ") (" """)) () ")"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      puts("0 [threshold sets not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      puts("0 [threshold sets not supported]");\n    }" ({ "{") (expression_statement "puts("0 [threshold sets not supported]");" (call_expression "puts("0 [threshold sets not supported]")" (identifier "puts") (argument_list "("0 [threshold sets not supported]")" (( "(") (string_literal ""0 [threshold sets not supported]"" (" """) (string_content "0 [threshold sets not supported]") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __printf_chk(1,"%u\n",cVar1);\n    }" (else "else") (compound_statement "{\n      __printf_chk(1,"%u\n",cVar1);\n    }" ({ "{") (expression_statement "__printf_chk(1,"%u\n",cVar1);" (call_expression "__printf_chk(1,"%u\n",cVar1)" (identifier "__printf_chk") (argument_list "(1,"%u\n",cVar1)" (( "(") (number_literal "1") (, ",") (string_literal ""%u\n"" (" """) (string_content "%u") (escape_sequence "\n") (" """)) (, ",") (identifier "cVar1") () ")"))) (; ";")) (} "}")))) (expression_statement "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);" (call_expression "__printf_chk(1,"  Descriptor present (DP): %d\n",bVar2)" (identifier "__printf_chk") (argument_list "(1,"  Descriptor present (DP): %d\n",bVar2)" (( "(") (number_literal "1") (, ",") (string_literal ""  Descriptor present (DP): %d\n"" (" """) (string_content "  Descriptor present (DP): %d") (escape_sequence "\n") (" """)) (, ",") (identifier "bVar2") () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Minimum percentage: ");" (call_expression "__printf_chk(1,"  Minimum percentage: ")" (identifier "__printf_chk") (argument_list "(1,"  Minimum percentage: ")" (( "(") (number_literal "1") (, ",") (string_literal ""  Minimum percentage: "" (" """) (string_content "  Minimum percentage: ") (" """)) () ")"))) (; ";")) (expression_statement "bVar3 = *(byte *)(param_1 + 6) >> 3;" (assignment_expression "bVar3 = *(byte *)(param_1 + 6) >> 3" (identifier "bVar3") (= "=") (binary_expression "*(byte *)(param_1 + 6) >> 3" (pointer_expression "*(byte *)(param_1 + 6)" (* "*") (cast_expression "(byte *)(param_1 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (>> ">>") (number_literal "3"))) (; ";")) (if_statement "if (bVar3 == 0) {\n      puts("0 [not reported]");\n    }\n    else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" (if "if") (parenthesized_expression "(bVar3 == 0)" (( "(") (binary_expression "bVar3 == 0" (identifier "bVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puts("0 [not reported]");\n    }" ({ "{") (expression_statement "puts("0 [not reported]");" (call_expression "puts("0 [not reported]")" (identifier "puts") (argument_list "("0 [not reported]")" (( "(") (string_literal ""0 [not reported]"" (" """) (string_content "0 [not reported]") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __printf_chk(1,"%d\n",bVar3);\n    }" (else "else") (compound_statement "{\n      __printf_chk(1,"%d\n",bVar3);\n    }" ({ "{") (expression_statement "__printf_chk(1,"%d\n",bVar3);" (call_expression "__printf_chk(1,"%d\n",bVar3)" (identifier "__printf_chk") (argument_list "(1,"%d\n",bVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""%d\n"" (" """) (string_content "%d") (escape_sequence "\n") (" """)) (, ",") (identifier "bVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];" (assignment_expression "puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" (identifier "puVar6") (= "=") (subscript_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5]" (parenthesized_expression "(&PTR_s_not_known_or_fully_provisioned_0002ec60)" (( "(") (pointer_expression "&PTR_s_not_known_or_fully_provisioned_0002ec60" (& "&") (identifier "PTR_s_not_known_or_fully_provisioned_0002ec60")) () ")")) ([ "[") (identifier "uVar5") (] "]"))) (; ";")) (expression_statement "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);" (call_expression "__printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" (identifier "__printf_chk") (argument_list "(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6)" (( "(") (number_literal "1") (, ",") (string_literal ""  Provisioning type: %d (%s)\n"" (" """) (string_content "  Provisioning type: %d (%s)") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar5") (, ",") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Threshold percentage: ");" (call_expression "__printf_chk(1,"  Threshold percentage: ")" (identifier "__printf_chk") (argument_list "(1,"  Threshold percentage: ")" (( "(") (number_literal "1") (, ",") (string_literal ""  Threshold percentage: "" (" """) (string_content "  Threshold percentage: ") (" """)) () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n      puts("0 [percentages not supported]");\n    }\n    else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" (* "*") (cast_expression "(char *)(param_1 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      puts("0 [percentages not supported]");\n    }" ({ "{") (expression_statement "puts("0 [percentages not supported]");" (call_expression "puts("0 [percentages not supported]")" (identifier "puts") (argument_list "("0 [percentages not supported]")" (( "(") (string_literal ""0 [percentages not supported]"" (" """) (string_content "0 [percentages not supported]") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" (else "else") (compound_statement "{\n      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);\n    }" ({ "{") (expression_statement "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);" (call_expression "__printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6)" (identifier "__printf_chk") (argument_list "(1,"%u\n",*(char *)(param_1 + 7),puVar6)" (( "(") (number_literal "1") (, ",") (string_literal ""%u\n"" (" """) (string_content "%u") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*(char *)(param_1 + 7)" (* "*") (cast_expression "(char *)(param_1 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (, ",") (identifier "puVar6") () ")"))) (; ";")) (} "}")))) (if_statement "if ((param_2 < 0xc) || (bVar2 == 0)) {\n      uVar4 = 0;\n    }\n    else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" (if "if") (parenthesized_expression "((param_2 < 0xc) || (bVar2 == 0))" (( "(") (binary_expression "(param_2 < 0xc) || (bVar2 == 0)" (parenthesized_expression "(param_2 < 0xc)" (( "(") (binary_expression "param_2 < 0xc" (identifier "param_2") (< "<") (number_literal "0xc")) () ")")) (|| "||") (parenthesized_expression "(bVar2 == 0)" (( "(") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" (else "else") (compound_statement "{\n      bVar2 = *(byte *)(param_1 + 0xb);\n      if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }\n    }" ({ "{") (expression_statement "bVar2 = *(byte *)(param_1 + 0xb);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0xb)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + 0xb)" (* "*") (cast_expression "(byte *)(param_1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")"))))) (; ";")) (if_statement "if (bVar2 == 0) {\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }\n      else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" (if "if") (parenthesized_expression "(bVar2 == 0)" (( "(") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);\n        uVar4 = 0;\n      }" ({ "{") (expression_statement "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);" (call_expression "pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0)" (identifier "pr2serr") (argument_list "("LB provisioning page provisioning group descriptor too short=%d\n",0)" (( "(") (string_literal ""LB provisioning page provisioning group descriptor too short=%d\n"" (" """) (string_content "LB provisioning page provisioning group descriptor too short=%d") (escape_sequence "\n") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" (else "else") (compound_statement "{\n        puts("  Provisioning group descriptor:");\n        uVar4 = 0;\n        sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);\n        __printf_chk(1,&DAT_00020858,local_420);\n      }" ({ "{") (expression_statement "puts("  Provisioning group descriptor:");" (call_expression "puts("  Provisioning group descriptor:")" (identifier "puts") (argument_list "("  Provisioning group descriptor:")" (( "(") (string_literal ""  Provisioning group descriptor:"" (" """) (string_content "  Provisioning group descriptor:") (" """)) () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);" (call_expression "sg_get_designation_descriptor_str\n                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" (identifier "sg_get_designation_descriptor_str") (argument_list "(&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420)" (( "(") (pointer_expression "&DAT_0002051d" (& "&") (identifier "DAT_0002051d")) (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (, ",") (binary_expression "bVar2 + 4" (identifier "bVar2") (+ "+") (number_literal "4")) (, ",") (number_literal "0") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (number_literal "0x400") (, ",") (identifier "local_420") () ")"))) (; ";")) (expression_statement "__printf_chk(1,&DAT_00020858,local_420);" (call_expression "__printf_chk(1,&DAT_00020858,local_420)" (identifier "__printf_chk") (argument_list "(1,&DAT_00020858,local_420)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_00020858" (& "&") (identifier "DAT_00020858")) (, ",") (identifier "local_420") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "FUN_0001f100();" (call_expression "FUN_0001f100()" (identifier "FUN_0001f100") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int __regparm3 function_1(uint8_t *var_10,int var_2,type_1 *op)

{
  int var_11;
  type_2 var_8;
  type_2 var_7;
  uint8_t var_5;
  int iVar5;
  int var_1;
  char *pcVar6;
  char bb [1024];
  
  var_11 = *(int *)(var_1 + 0x14);
  if (var_2 < 4) {
    iVar5 = 0x61;
    var_3("Logical block provisioning page too short=%d\n",var_2);
  }
  else {
    var_8 = var_10[6];
    var_4(1,"  Unmap command supported (LBPU): %d\n",(type_3)(int)(char)var_10[5] >> 0x1f);
    var_4(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",var_10[5] >> 6 & 1);
    var_4(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",var_10[5] >> 5 & 1);
    var_4(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",var_10[5] >> 2 & 7);
    var_4(1,"  Anchored LBAs supported (ANC_SUP): %d\n",var_10[5] >> 1 & 1);
    var_7 = var_10[5];
    var_5 = var_10[4];
    var_4(1,"  Threshold exponent: ");
    if (var_5 == '\0') {
      var_6("0 [threshold sets not supported]");
    }
    else {
      var_4(1,"%u\n",var_5);
    }
    var_4(1,"  Descriptor present (DP): %d\n",var_7 & 1);
    var_4(1,"  Minimum percentage: ");
    if (var_10[6] >> 3 == 0) {
      var_6("0 [not reported]");
    }
    else {
      var_4(1,"%d\n",var_10[6] >> 3);
    }
    pcVar6 = prov_type_arr[var_8 & 7];
    var_4(1,"  Provisioning type: %d (%s)\n",var_8 & 7,pcVar6);
    var_4(1,"  Threshold percentage: ");
    if (var_10[7] == '\0') {
      var_6("0 [percentages not supported]");
    }
    else {
      var_4(1,"%u\n",var_10[7],pcVar6);
    }
    if ((var_2 < 0xc) || ((var_7 & 1) == 0)) {
      iVar5 = 0;
    }
    else {
      var_8 = var_10[0xb];
      if (var_8 == 0) {
        var_3("LB provisioning page provisioning group descriptor too short=%d\n",0);
        iVar5 = 0;
      }
      else {
        var_6("  Provisioning group descriptor:");
        iVar5 = 0;
        var_9(&DAT_0002051d,var_10 + 8,var_8 + 4,0,op->do_all,0x400,bb);
        var_4(1,&DAT_00020858,bb);
      }
    }
  }
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

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

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

{
  char cVar1;
  byte bVar2;
  byte bVar3;
  undefined4 uVar4;
  uint uVar5;
  int in_GS_OFFSET;
  undefined *puVar6;
  undefined1 local_420 [1024];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x155cd;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 < 4) {
    uVar4 = 0x61;
    pr2serr("Logical block provisioning page too short=%d\n",param_2);
  }
  else {
    uVar5 = *(byte *)(param_1 + 6) & 7;
    __printf_chk(1,"  Unmap command supported (LBPU): %d\n",
                 (uint)(int)*(char *)(param_1 + 5) >> 0x1f);
    __printf_chk(1,"  Write same (16) with unmap bit supported (LBPWS): %d\n",
                 *(byte *)(param_1 + 5) >> 6 & 1);
    __printf_chk(1,"  Write same (10) with unmap bit supported (LBPWS10): %d\n",
                 *(byte *)(param_1 + 5) >> 5 & 1);
    __printf_chk(1,"  Logical block provisioning read zeros (LBPRZ): %d\n",
                 *(byte *)(param_1 + 5) >> 2 & 7);
    __printf_chk(1,"  Anchored LBAs supported (ANC_SUP): %d\n",*(byte *)(param_1 + 5) >> 1 & 1);
    cVar1 = *(char *)(param_1 + 4);
    bVar2 = *(byte *)(param_1 + 5) & 1;
    __printf_chk(1,"  Threshold exponent: ");
    if (cVar1 == '\0') {
      puts("0 [threshold sets not supported]");
    }
    else {
      __printf_chk(1,"%u\n",cVar1);
    }
    __printf_chk(1,"  Descriptor present (DP): %d\n",bVar2);
    __printf_chk(1,"  Minimum percentage: ");
    bVar3 = *(byte *)(param_1 + 6) >> 3;
    if (bVar3 == 0) {
      puts("0 [not reported]");
    }
    else {
      __printf_chk(1,"%d\n",bVar3);
    }
    puVar6 = (&PTR_s_not_known_or_fully_provisioned_0002ec60)[uVar5];
    __printf_chk(1,"  Provisioning type: %d (%s)\n",uVar5,puVar6);
    __printf_chk(1,"  Threshold percentage: ");
    if (*(char *)(param_1 + 7) == '\0') {
      puts("0 [percentages not supported]");
    }
    else {
      __printf_chk(1,"%u\n",*(char *)(param_1 + 7),puVar6);
    }
    if ((param_2 < 0xc) || (bVar2 == 0)) {
      uVar4 = 0;
    }
    else {
      bVar2 = *(byte *)(param_1 + 0xb);
      if (bVar2 == 0) {
        pr2serr("LB provisioning page provisioning group descriptor too short=%d\n",0);
        uVar4 = 0;
      }
      else {
        puts("  Provisioning group descriptor:");
        uVar4 = 0;
        sg_get_designation_descriptor_str
                  (&DAT_0002051d,param_1 + 8,bVar2 + 4,0,*param_3,0x400,local_420);
        __printf_chk(1,&DAT_00020858,local_420);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001f100();
}

