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

_Bool show_last_n_mode_pg_data_ch_page(uint8_t *resp,int len,opts_t *op)

{
  uint uVar1;
  char cVar2;
  int iVar3;
  ushort uVar4;
  int iVar5;
  uint uVar6;
  char *pcVar7;
  int extraout_ECX;
  int extraout_ECX_00;
  int extraout_ECX_01;
  int extraout_ECX_02;
  int extraout_ECX_03;
  byte bVar8;
  int iVar9;
  ushort *puVar10;
  int iVar11;
  ushort *puVar12;
  int in_GS_OFFSET;
  char str [128];
  
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {
    puts("Last n Mode page data changed  [0xb,0x2]");
  }
  puVar10 = (ushort *)(resp + 4);
  iVar5 = len + -4;
  do {
    if (iVar5 < 4) {
LAB_00015847:
      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        __stack_chk_fail_local();
      }
      return true;
    }
    bVar8 = *(byte *)((int)puVar10 + 3);
    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);
    uVar1 = bVar8 + 4;
    if (op->filter_given == false) {
LAB_000157ea:
      if (uVar6 == 0) {
        if (uVar1 < 8) {
          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0
                       ,uVar1);
          goto LAB_0001579d;
        }
        uVar6 = *(uint *)(puVar10 + 2);
        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",
                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18
                    );
        iVar9 = extraout_ECX_00;
        if (0xb < uVar1) {
          uVar6 = *(uint *)(puVar10 + 4);
          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",
                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                       uVar6 << 0x18);
          iVar9 = extraout_ECX_03;
        }
        if (uVar1 < 0xd) goto LAB_0001582b;
        iVar9 = 0xc;
        do {
          uVar6 = *(uint *)((int)puVar10 + iVar9);
          iVar11 = iVar9 + 4;
          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,
                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                       uVar6 << 0x18);
          iVar9 = iVar11;
        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);
        cVar2 = op->do_pcb;
        iVar9 = extraout_ECX_01;
      }
      else {
        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);
        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;
        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {
          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);
          iVar9 = extraout_ECX_02;
        }
        else {
          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);
          iVar9 = extraout_ECX;
        }
LAB_0001582b:
        cVar2 = op->do_pcb;
      }
      if (cVar2 != '\0') {
        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);
        __printf_chk(1,&DAT_0002c460,pcVar7);
      }
      if (op->filter_given != false) goto LAB_00015847;
    }
    else if (op->filter == uVar6) {
      if (op->do_raw == false) {
        iVar9 = op->do_hex;
        if (iVar9 == 0) goto LAB_000157ea;
        if (iVar9 != 1) {
          iVar9 = -1;
        }
        hex2stdout(puVar10,uVar1,iVar9);
      }
      else {
        puVar12 = (ushort *)(uVar1 + (int)puVar10);
        do {
          uVar4 = *puVar10;
          puVar10 = (ushort *)((int)puVar10 + 1);
          putchar((uint)(byte)uVar4);
        } while (puVar12 != puVar10);
      }
      goto LAB_00015847;
    }
LAB_0001579d:
    iVar5 = iVar5 - uVar1;
    puVar10 = (ushort *)((int)puVar10 + uVar1);
  } while( true );
}



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

undefined4 FUN_00015700(int param_1,int param_2,int param_3)

{
  uint uVar1;
  char cVar2;
  int iVar3;
  ushort uVar4;
  uint uVar5;
  undefined4 uVar6;
  byte bVar7;
  int iVar8;
  ushort *puVar9;
  int iVar10;
  ushort *puVar11;
  int in_GS_OFFSET;
  
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(int *)(param_3 + 0x30) != 0) ||
     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {
    puts("Last n Mode page data changed  [0xb,0x2]");
  }
  puVar9 = (ushort *)(param_1 + 4);
  param_2 = param_2 + -4;
  do {
    if (param_2 < 4) {
LAB_00015847:
      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_00023f50();
      }
      return 1;
    }
    bVar7 = *(byte *)((int)puVar9 + 3);
    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);
    uVar1 = bVar7 + 4;
    if (*(char *)(param_3 + 9) == '\0') {
LAB_000157ea:
      if (uVar5 == 0) {
        if (uVar1 < 8) {
          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0
                       ,uVar1);
          goto LAB_0001579d;
        }
        uVar5 = *(uint *)(puVar9 + 2);
        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",
                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18
                    );
        if (0xb < uVar1) {
          uVar5 = *(uint *)(puVar9 + 4);
          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",
                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
                       uVar5 << 0x18);
        }
        if (uVar1 < 0xd) goto LAB_0001582b;
        iVar8 = 0xc;
        do {
          uVar5 = *(uint *)((int)puVar9 + iVar8);
          iVar10 = iVar8 + 4;
          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,
                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
                       uVar5 << 0x18);
          iVar8 = iVar10;
        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);
        cVar2 = *(char *)(param_3 + 1);
      }
      else {
        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);
        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;
        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {
          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);
        }
        else {
          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);
        }
LAB_0001582b:
        cVar2 = *(char *)(param_3 + 1);
      }
      if (cVar2 != '\0') {
        uVar6 = FUN_00014e80();
        __printf_chk(1,&DAT_0002c460,uVar6);
      }
      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;
    }
    else if (*(uint *)(param_3 + 0x34) == uVar5) {
      if (*(char *)(param_3 + 3) == '\0') {
        iVar8 = *(int *)(param_3 + 0x20);
        if (iVar8 == 0) goto LAB_000157ea;
        if (iVar8 != 1) {
          iVar8 = -1;
        }
        hex2stdout(puVar9,uVar1,iVar8);
      }
      else {
        puVar11 = (ushort *)(uVar1 + (int)puVar9);
        do {
          uVar4 = *puVar9;
          puVar9 = (ushort *)((int)puVar9 + 1);
          putchar((uint)(byte)uVar4);
        } while (puVar11 != puVar9);
      }
      goto LAB_00015847;
    }
LAB_0001579d:
    param_2 = param_2 - uVar1;
    puVar9 = (ushort *)((int)puVar9 + uVar1);
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013c20
ADD EBX,0x227f7
SUB ESP,0xbc
MOV EAX,dword ptr [ESP + 0xd8]
MOV EBP,dword ptr [ESP + 0xd0]
MOV dword ptr [ESP + 0xc],EAX
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xac],EDX
XOR EDX,EDX
MOV EDX,dword ptr [EAX + 0x30]
TEST EDX,EDX
JNZ 0x0001596a
CMP byte ptr [EAX + 0x3],0x0
JZ 0x0001595f
MOV EAX,dword ptr [ESP + 0xd4]
LEA EDX,[ESP + 0x2c]
ADD EBP,0x4
MOV dword ptr [ESP + 0x18],EDX
LEA EDX,[EBX + 0xffff4560]
SUB EAX,0x4
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [ESP + 0x8],EAX
CMP EAX,0x3
JG 0x000157b0
JMP 0x00015847
CMP EDI,0x7
JG 0x00015870
LEA EAX,[EBX + 0xfffede88]
PUSH EDI
PUSH 0x0
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
SUB dword ptr [ESP + 0x8],EDI
MOV EAX,dword ptr [ESP + 0x8]
ADD EBP,EDI
CMP EAX,0x3
JLE 0x00015847
MOVZX EAX,word ptr [EBP]
MOV ECX,dword ptr [ESP + 0xc]
MOVZX ESI,byte ptr [EBP + 0x3]
ROL AX,0x8
CMP byte ptr [ECX + 0x9],0x0
MOVZX EAX,AX
LEA EDI,[ESI + 0x4]
JZ 0x000157ea
CMP dword ptr [ECX + 0x34],EAX
JNZ 0x0001579d
CMP byte ptr [ECX + 0x3],0x0
JNZ 0x00015981
MOV EDX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EDX + 0x20]
TEST EDX,EDX
JNZ 0x000159a4
TEST EAX,EAX
JZ 0x00015780
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff459e]
PUSH EAX
PUSH 0x1
CALL 0x00012260
MOVZX EAX,byte ptr [EBP + 0x5]
ADD ESP,0x10
MOV EDX,EAX
AND EDX,0x3f
TEST AL,0x40
JZ 0x00015920
MOVZX EAX,byte ptr [EBP + 0x6]
PUSH EAX
LEA EAX,[EBX + 0xffff45eb]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
CMP byte ptr [EAX + 0x1],0x0
JNZ 0x000158f4
MOV EAX,dword ptr [ESP + 0xc]
CMP byte ptr [EAX + 0x9],0x0
JZ 0x0001579d
MOV EDX,dword ptr [ESP + 0xac]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,0x1
JNZ 0x000159c2
ADD ESP,0xbc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x4]
SUB ESP,0x4
BSWAP EAX
PUSH EAX
LEA EAX,[EBX + 0xfffeded0]
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
CMP EDI,0xb
JG 0x00015940
CMP EDI,0xc
JLE 0x0001582b
SUB ESI,0x9
MOV EDX,EBP
MOV dword ptr [ESP + 0x14],EDI
AND ESI,0xfffffffc
LEA EAX,[ESI + 0x10]
MOV ESI,0xc
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[EBX + 0xfffedf4c]
MOV EBP,ESI
MOV ESI,EDX
MOV EDI,EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESI + EBP*0x1]
BSWAP EAX
PUSH EAX
MOV EAX,EBP
ADD EBP,0x4
SAR EAX,0x2
PUSH EAX
PUSH EDI
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
CMP dword ptr [ESP + 0x10],EBP
JNZ 0x000158c0
MOV EAX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x14]
MOV EBP,ESI
CMP byte ptr [EAX + 0x1],0x0
JZ 0x00015839
MOV EDX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EBP + 0x2]
CALL 0x00014e80
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [ESP + 0x24]
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
JMP 0x00015839
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4607]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
JMP 0x0001582b
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0x4
BSWAP EAX
PUSH EAX
LEA EAX,[EBX + 0xfffedf0c]
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
JMP 0x00015893
MOV EAX,dword ptr [EAX + 0x20]
TEST EAX,EAX
JNZ 0x0001574c
SUB ESP,0xc
LEA EAX,[EBX + 0xfffedf7c]
PUSH EAX
CALL 0x00012170
ADD ESP,0x10
JMP 0x0001574c
ADD EDI,EBP
LEA ESI,[ESI]
NOP
MOVZX EAX,byte ptr [EBP]
SUB ESP,0xc
ADD EBP,0x1
PUSH EAX
CALL 0x00012230
ADD ESP,0x10
CMP EDI,EBP
JNZ 0x00015988
JMP 0x00015847
CMP EDX,0x1
MOV EAX,0xffffffff
CMOVNZ EDX,EAX
SUB ESP,0x4
PUSH EDX
PUSH EDI
PUSH EBP
CALL 0x00012130
ADD ESP,0x10
JMP 0x00015847
CALL 0x00023f50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00015700(int param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}\n\n" comment (function_definition "undefined4 FUN_00015700(int param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" type_identifier (function_declarator "FUN_00015700(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "ushort *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" if (parenthesized_expression "((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))))" ( (binary_expression "(*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" (parenthesized_expression "(*(int *)(param_3 + 0x30) != 0)" ( (binary_expression "*(int *)(param_3 + 0x30) != 0" (pointer_expression "*(int *)(param_3 + 0x30)" * (cast_expression "(int *)(param_3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" ( (parenthesized_expression "(*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))" ( (binary_expression "*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)" (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" * (cast_expression "(char *)(param_3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*(int *)(param_3 + 0x20) == 0)" ( (binary_expression "*(int *)(param_3 + 0x20) == 0" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" { (expression_statement "puts("Last n Mode page data changed  [0xb,0x2]");" (call_expression "puts("Last n Mode page data changed  [0xb,0x2]")" identifier (argument_list "("Last n Mode page data changed  [0xb,0x2]")" ( (string_literal ""Last n Mode page data changed  [0xb,0x2]"" " string_content ") ))) ;) })) (expression_statement "puVar9 = (ushort *)(param_1 + 4);" (assignment_expression "puVar9 = (ushort *)(param_1 + 4)" identifier = (cast_expression "(ushort *)(param_1 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "param_2 = param_2 + -4;" (assignment_expression "param_2 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (do_statement "do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );" do (compound_statement "{\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  }" { (if_statement "if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }\n      return 1;\n    }" { (labeled_statement "LAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }" statement_identifier : (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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                    /* WARNING: Subroutine does not return */\n        FUN_00023f50();\n      }" { comment (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 3);" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 3)" identifier = (pointer_expression "*(byte *)((int)puVar9 + 3)" * (cast_expression "(byte *)((int)puVar9 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 3)" ( (binary_expression "(int)puVar9 + 3" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" identifier = (call_expression "(uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(*puVar9 << 8 | *puVar9 >> 8)" ( (binary_expression "*puVar9 << 8 | *puVar9 >> 8" (binary_expression "*puVar9 << 8" (pointer_expression "*puVar9" * identifier) << number_literal) | (binary_expression "*puVar9 >> 8" (pointer_expression "*puVar9" * identifier) >> number_literal)) )))) ;) (expression_statement "uVar1 = bVar7 + 4;" (assignment_expression "uVar1 = bVar7 + 4" identifier = (binary_expression "bVar7 + 4" identifier + number_literal)) ;) (if_statement "if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 9) == '\0')" ( (binary_expression "*(char *)(param_3 + 9) == '\0'" (pointer_expression "*(char *)(param_3 + 9)" * (cast_expression "(char *)(param_3 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 9)" ( (binary_expression "param_3 + 9" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }" { (labeled_statement "LAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" statement_identifier : (if_statement "if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }" { (if_statement "if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" if (parenthesized_expression "(uVar1 < 8)" ( (binary_expression "uVar1 < 8" identifier < number_literal) )) (compound_statement "{\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" { (expression_statement "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);" (call_expression "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" identifier (argument_list "(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" ( number_literal , (string_literal ""  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (goto_statement "goto LAB_0001579d;" goto statement_identifier ;) })) (expression_statement "uVar5 = *(uint *)(puVar9 + 2);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 2)" identifier = (pointer_expression "*(uint *)(puVar9 + 2)" * (cast_expression "(uint *)(puVar9 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );" (call_expression "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" identifier (argument_list "(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" ( number_literal , (string_literal ""  Generation number of Inquiry data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) (if_statement "if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" if (parenthesized_expression "(0xb < uVar1)" ( (binary_expression "0xb < uVar1" number_literal < identifier) )) (compound_statement "{\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" { (expression_statement "uVar5 = *(uint *)(puVar9 + 4);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 4)" identifier = (pointer_expression "*(uint *)(puVar9 + 4)" * (cast_expression "(uint *)(puVar9 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 4)" ( (binary_expression "puVar9 + 4" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" identifier (argument_list "(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" ( number_literal , (string_literal ""  Generation number of Mode page data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) })) (if_statement "if (uVar1 < 0xd) goto LAB_0001582b;" if (parenthesized_expression "(uVar1 < 0xd)" ( (binary_expression "uVar1 < 0xd" identifier < number_literal) )) (goto_statement "goto LAB_0001582b;" goto statement_identifier ;)) (expression_statement "iVar8 = 0xc;" (assignment_expression "iVar8 = 0xc" identifier = number_literal) ;) (do_statement "do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);" do (compound_statement "{\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        }" { (expression_statement "uVar5 = *(uint *)((int)puVar9 + iVar8);" (assignment_expression "uVar5 = *(uint *)((int)puVar9 + iVar8)" identifier = (pointer_expression "*(uint *)((int)puVar9 + iVar8)" * (cast_expression "(uint *)((int)puVar9 + iVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar8)" ( (binary_expression "(int)puVar9 + iVar8" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) (expression_statement "iVar10 = iVar8 + 4;" (assignment_expression "iVar10 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" identifier (argument_list "(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" ( number_literal , (string_literal ""  Generation number of indication [0x%x]: %u\n"" " string_content escape_sequence ") , (binary_expression "iVar8 >> 2" identifier >> number_literal) , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) (expression_statement "iVar8 = iVar10;" (assignment_expression "iVar8 = iVar10" identifier = identifier) ;) }) while (parenthesized_expression "((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10)" ( (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10" (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10" (parenthesized_expression "(bVar7 - 9 & 0xfffffffc)" ( (binary_expression "bVar7 - 9 & 0xfffffffc" (binary_expression "bVar7 - 9" identifier - number_literal) & number_literal) )) + number_literal) != identifier) )) ;) (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" identifier = (pointer_expression "*(char *)(param_3 + 1)" * (cast_expression "(char *)(param_3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" else (compound_statement "{\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" { (expression_statement "__printf_chk(1,"  Parameter code 0x%x, ",uVar5);" (call_expression "__printf_chk(1,"  Parameter code 0x%x, ",uVar5)" identifier (argument_list "(1,"  Parameter code 0x%x, ",uVar5)" ( number_literal , (string_literal ""  Parameter code 0x%x, "" " string_content ") , identifier ))) ;) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f" identifier = (binary_expression "*(byte *)((int)puVar9 + 5) & 0x3f" (pointer_expression "*(byte *)((int)puVar9 + 5)" * (cast_expression "(byte *)((int)puVar9 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 5)" ( (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" if (parenthesized_expression "((*(byte *)((int)puVar9 + 5) & 0x40) == 0)" ( (binary_expression "(*(byte *)((int)puVar9 + 5) & 0x40) == 0" (parenthesized_expression "(*(byte *)((int)puVar9 + 5) & 0x40)" ( (binary_expression "*(byte *)((int)puVar9 + 5) & 0x40" (pointer_expression "*(byte *)((int)puVar9 + 5)" * (cast_expression "(byte *)((int)puVar9 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 5)" ( (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x changed\n",bVar7);" (call_expression "__printf_chk(1,"Mode page 0x%x changed\n",bVar7)" identifier (argument_list "(1,"Mode page 0x%x changed\n",bVar7)" ( number_literal , (string_literal ""Mode page 0x%x changed\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" else (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);" (call_expression "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" identifier (argument_list "(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" ( number_literal , (string_literal ""Mode page 0x%x,0%x changed\n"" " string_content escape_sequence ") , identifier , (cast_expression "(byte)puVar9[3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar9[3]" identifier [ number_literal ])) ))) ;) }))) (labeled_statement "LAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);" statement_identifier : (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" identifier = (pointer_expression "*(char *)(param_3 + 1)" * (cast_expression "(char *)(param_3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;)) })))) (if_statement "if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" { (expression_statement "uVar6 = FUN_00014e80();" (assignment_expression "uVar6 = FUN_00014e80()" identifier = (call_expression "FUN_00014e80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar6);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar6)" identifier (argument_list "(1,&DAT_0002c460,uVar6)" ( number_literal , (pointer_expression "&DAT_0002c460" & identifier) , identifier ))) ;) })) (if_statement "if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;" if (parenthesized_expression "(*(char *)(param_3 + 9) != '\0')" ( (binary_expression "*(char *)(param_3 + 9) != '\0'" (pointer_expression "*(char *)(param_3 + 9)" * (cast_expression "(char *)(param_3 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 9)" ( (binary_expression "param_3 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015847;" goto statement_identifier ;)) }) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" else (if_statement "if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar5)" ( (binary_expression "*(uint *)(param_3 + 0x34) == uVar5" (pointer_expression "*(uint *)(param_3 + 0x34)" * (cast_expression "(uint *)(param_3 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" { (if_statement "if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" if (parenthesized_expression "(*(char *)(param_3 + 3) == '\0')" ( (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" * (cast_expression "(char *)(param_3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }" { (expression_statement "iVar8 = *(int *)(param_3 + 0x20);" (assignment_expression "iVar8 = *(int *)(param_3 + 0x20)" identifier = (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) goto LAB_000157ea;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000157ea;" goto statement_identifier ;)) (if_statement "if (iVar8 != 1) {\n          iVar8 = -1;\n        }" if (parenthesized_expression "(iVar8 != 1)" ( (binary_expression "iVar8 != 1" identifier != number_literal) )) (compound_statement "{\n          iVar8 = -1;\n        }" { (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar9,uVar1,iVar8);" (call_expression "hex2stdout(puVar9,uVar1,iVar8)" identifier (argument_list "(puVar9,uVar1,iVar8)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" else (compound_statement "{\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" { (expression_statement "puVar11 = (ushort *)(uVar1 + (int)puVar9);" (assignment_expression "puVar11 = (ushort *)(uVar1 + (int)puVar9)" identifier = (cast_expression "(ushort *)(uVar1 + (int)puVar9)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + (int)puVar9)" ( (binary_expression "uVar1 + (int)puVar9" identifier + (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);" do (compound_statement "{\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        }" { (expression_statement "uVar4 = *puVar9;" (assignment_expression "uVar4 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + 1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + 1)" identifier = (cast_expression "(ushort *)((int)puVar9 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 1)" ( (binary_expression "(int)puVar9 + 1" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "putchar((uint)(byte)uVar4);" (call_expression "putchar((uint)(byte)uVar4)" identifier (argument_list "((uint)(byte)uVar4)" ( (cast_expression "(uint)(byte)uVar4" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar11 != puVar9)" ( (binary_expression "puVar11 != puVar9" identifier != identifier) )) ;) }))) (goto_statement "goto LAB_00015847;" goto statement_identifier ;) })))) (labeled_statement "LAB_0001579d:\n    param_2 = param_2 - uVar1;" statement_identifier : (expression_statement "param_2 = param_2 - uVar1;" (assignment_expression "param_2 = param_2 - uVar1" identifier = (binary_expression "param_2 - uVar1" identifier - identifier)) ;)) (expression_statement "puVar9 = (ushort *)((int)puVar9 + uVar1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + uVar1)" identifier = (cast_expression "(ushort *)((int)puVar9 + uVar1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + uVar1)" ( (binary_expression "(int)puVar9 + uVar1" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool show_last_n_mode_pg_data_ch_page(uint8_t *resp,int len,opts_t *op)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  int iVar5;\n  uint uVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int extraout_ECX_01;\n  int extraout_ECX_02;\n  int extraout_ECX_03;\n  byte bVar8;\n  int iVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar10 = (ushort *)(resp + 4);\n  iVar5 = len + -4;\n  do {\n    if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }\n    bVar8 = *(byte *)((int)puVar10 + 3);\n    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n    uVar1 = bVar8 + 4;\n    if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    iVar5 = iVar5 - uVar1;\n    puVar10 = (ushort *)((int)puVar10 + uVar1);\n  } while( true );\n}\n\n" comment comment (function_definition "_Bool show_last_n_mode_pg_data_ch_page(uint8_t *resp,int len,opts_t *op)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  int iVar5;\n  uint uVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int extraout_ECX_01;\n  int extraout_ECX_02;\n  int extraout_ECX_03;\n  byte bVar8;\n  int iVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar10 = (ushort *)(resp + 4);\n  iVar5 = len + -4;\n  do {\n    if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }\n    bVar8 = *(byte *)((int)puVar10 + 3);\n    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n    uVar1 = bVar8 + 4;\n    if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    iVar5 = iVar5 - uVar1;\n    puVar10 = (ushort *)((int)puVar10 + uVar1);\n  } while( true );\n}" type_identifier (function_declarator "show_last_n_mode_pg_data_ch_page(uint8_t *resp,int len,opts_t *op)" identifier (parameter_list "(uint8_t *resp,int len,opts_t *op)" ( (parameter_declaration "uint8_t *resp" primitive_type (pointer_declarator "*resp" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "opts_t *op" type_identifier (pointer_declarator "*op" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  int iVar5;\n  uint uVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int extraout_ECX_01;\n  int extraout_ECX_02;\n  int extraout_ECX_03;\n  byte bVar8;\n  int iVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar10 = (ushort *)(resp + 4);\n  iVar5 = len + -4;\n  do {\n    if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }\n    bVar8 = *(byte *)((int)puVar10 + 3);\n    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n    uVar1 = bVar8 + 4;\n    if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    iVar5 = iVar5 - uVar1;\n    puVar10 = (ushort *)((int)puVar10 + uVar1);\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int extraout_ECX_00;" primitive_type identifier ;) (declaration "int extraout_ECX_01;" primitive_type identifier ;) (declaration "int extraout_ECX_02;" primitive_type identifier ;) (declaration "int extraout_ECX_03;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "ushort *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "ushort *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char str [128];" primitive_type (array_declarator "str [128]" identifier [ number_literal ]) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(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 ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" if (parenthesized_expression "((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0))))" ( (binary_expression "(op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))" (parenthesized_expression "(op->verbose != 0)" ( (binary_expression "op->verbose != 0" (field_expression "op->verbose" identifier -> field_identifier) != number_literal) )) || (parenthesized_expression "((op->do_raw == false && (op->do_hex == 0)))" ( (parenthesized_expression "(op->do_raw == false && (op->do_hex == 0))" ( (binary_expression "op->do_raw == false && (op->do_hex == 0)" (binary_expression "op->do_raw == false" (field_expression "op->do_raw" identifier -> field_identifier) == false) && (parenthesized_expression "(op->do_hex == 0)" ( (binary_expression "op->do_hex == 0" (field_expression "op->do_hex" identifier -> field_identifier) == number_literal) ))) )) ))) )) (compound_statement "{\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" { (expression_statement "puts("Last n Mode page data changed  [0xb,0x2]");" (call_expression "puts("Last n Mode page data changed  [0xb,0x2]")" identifier (argument_list "("Last n Mode page data changed  [0xb,0x2]")" ( (string_literal ""Last n Mode page data changed  [0xb,0x2]"" " string_content ") ))) ;) })) (expression_statement "puVar10 = (ushort *)(resp + 4);" (assignment_expression "puVar10 = (ushort *)(resp + 4)" identifier = (cast_expression "(ushort *)(resp + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(resp + 4)" ( (binary_expression "resp + 4" identifier + number_literal) )))) ;) (expression_statement "iVar5 = len + -4;" (assignment_expression "iVar5 = len + -4" identifier = (binary_expression "len + -4" identifier + number_literal)) ;) (do_statement "do {\n    if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }\n    bVar8 = *(byte *)((int)puVar10 + 3);\n    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n    uVar1 = bVar8 + 4;\n    if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    iVar5 = iVar5 - uVar1;\n    puVar10 = (ushort *)((int)puVar10 + uVar1);\n  } while( true );" do (compound_statement "{\n    if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }\n    bVar8 = *(byte *)((int)puVar10 + 3);\n    uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n    uVar1 = bVar8 + 4;\n    if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    iVar5 = iVar5 - uVar1;\n    puVar10 = (ushort *)((int)puVar10 + uVar1);\n  }" { (if_statement "if (iVar5 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }" if (parenthesized_expression "(iVar5 < 4)" ( (binary_expression "iVar5 < 4" identifier < number_literal) )) (compound_statement "{\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return true;\n    }" { (labeled_statement "LAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" statement_identifier : (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return true;" return true ;) })) (expression_statement "bVar8 = *(byte *)((int)puVar10 + 3);" (assignment_expression "bVar8 = *(byte *)((int)puVar10 + 3)" identifier = (pointer_expression "*(byte *)((int)puVar10 + 3)" * (cast_expression "(byte *)((int)puVar10 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 3)" ( (binary_expression "(int)puVar10 + 3" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);" (assignment_expression "uVar6 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8)" identifier = (call_expression "(uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(*puVar10 << 8 | *puVar10 >> 8)" ( (binary_expression "*puVar10 << 8 | *puVar10 >> 8" (binary_expression "*puVar10 << 8" (pointer_expression "*puVar10" * identifier) << number_literal) | (binary_expression "*puVar10 >> 8" (pointer_expression "*puVar10" * identifier) >> number_literal)) )))) ;) (expression_statement "uVar1 = bVar8 + 4;" (assignment_expression "uVar1 = bVar8 + 4" identifier = (binary_expression "bVar8 + 4" identifier + number_literal)) ;) (if_statement "if (op->filter_given == false) {\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }\n    else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(op->filter_given == false)" ( (binary_expression "op->filter_given == false" (field_expression "op->filter_given" identifier -> field_identifier) == false) )) (compound_statement "{\nLAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }\n      if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }\n      if (op->filter_given != false) goto LAB_00015847;\n    }" { (labeled_statement "LAB_000157ea:\n      if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }" statement_identifier : (if_statement "if (uVar6 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar6 = *(uint *)(puVar10 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );\n        iVar9 = extraout_ECX_00;\n        if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar9 = 0xc;\n        do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);\n        cVar2 = op->do_pcb;\n        iVar9 = extraout_ECX_01;\n      }" { (if_statement "if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" if (parenthesized_expression "(uVar1 < 8)" ( (binary_expression "uVar1 < 8" identifier < number_literal) )) (compound_statement "{\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" { (expression_statement "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);" (call_expression "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" identifier (argument_list "(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" ( number_literal , (string_literal ""  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (goto_statement "goto LAB_0001579d;" goto statement_identifier ;) })) (expression_statement "uVar6 = *(uint *)(puVar10 + 2);" (assignment_expression "uVar6 = *(uint *)(puVar10 + 2)" identifier = (pointer_expression "*(uint *)(puVar10 + 2)" * (cast_expression "(uint *)(puVar10 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 2)" ( (binary_expression "puVar10 + 2" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    );" (call_expression "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    )" identifier (argument_list "(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18\n                    )" ( number_literal , (string_literal ""  Generation number of Inquiry data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal)) ))) ;) (expression_statement "iVar9 = extraout_ECX_00;" (assignment_expression "iVar9 = extraout_ECX_00" identifier = identifier) ;) (if_statement "if (0xb < uVar1) {\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }" if (parenthesized_expression "(0xb < uVar1)" ( (binary_expression "0xb < uVar1" number_literal < identifier) )) (compound_statement "{\n          uVar6 = *(uint *)(puVar10 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = extraout_ECX_03;\n        }" { (expression_statement "uVar6 = *(uint *)(puVar10 + 4);" (assignment_expression "uVar6 = *(uint *)(puVar10 + 4)" identifier = (pointer_expression "*(uint *)(puVar10 + 4)" * (cast_expression "(uint *)(puVar10 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 4)" ( (binary_expression "puVar10 + 4" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18)" identifier (argument_list "(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18)" ( number_literal , (string_literal ""  Generation number of Mode page data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal)) ))) ;) (expression_statement "iVar9 = extraout_ECX_03;" (assignment_expression "iVar9 = extraout_ECX_03" identifier = identifier) ;) })) (if_statement "if (uVar1 < 0xd) goto LAB_0001582b;" if (parenthesized_expression "(uVar1 < 0xd)" ( (binary_expression "uVar1 < 0xd" identifier < number_literal) )) (goto_statement "goto LAB_0001582b;" goto statement_identifier ;)) (expression_statement "iVar9 = 0xc;" (assignment_expression "iVar9 = 0xc" identifier = number_literal) ;) (do_statement "do {\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        } while ((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11);" do (compound_statement "{\n          uVar6 = *(uint *)((int)puVar10 + iVar9);\n          iVar11 = iVar9 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);\n          iVar9 = iVar11;\n        }" { (expression_statement "uVar6 = *(uint *)((int)puVar10 + iVar9);" (assignment_expression "uVar6 = *(uint *)((int)puVar10 + iVar9)" identifier = (pointer_expression "*(uint *)((int)puVar10 + iVar9)" * (cast_expression "(uint *)((int)puVar10 + iVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + iVar9)" ( (binary_expression "(int)puVar10 + iVar9" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) (expression_statement "iVar11 = iVar9 + 4;" (assignment_expression "iVar11 = iVar9 + 4" identifier = (binary_expression "iVar9 + 4" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18)" identifier (argument_list "(1,"  Generation number of indication [0x%x]: %u\n",iVar9 >> 2,\n                       uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18)" ( number_literal , (string_literal ""  Generation number of indication [0x%x]: %u\n"" " string_content escape_sequence ") , (binary_expression "iVar9 >> 2" identifier >> number_literal) , (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                       uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal)) ))) ;) (expression_statement "iVar9 = iVar11;" (assignment_expression "iVar9 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "((bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11)" ( (binary_expression "(bVar8 - 9 & 0xfffffffc) + 0x10 != iVar11" (binary_expression "(bVar8 - 9 & 0xfffffffc) + 0x10" (parenthesized_expression "(bVar8 - 9 & 0xfffffffc)" ( (binary_expression "bVar8 - 9 & 0xfffffffc" (binary_expression "bVar8 - 9" identifier - number_literal) & number_literal) )) + number_literal) != identifier) )) ;) (expression_statement "cVar2 = op->do_pcb;" (assignment_expression "cVar2 = op->do_pcb" identifier = (field_expression "op->do_pcb" identifier -> field_identifier)) ;) (expression_statement "iVar9 = extraout_ECX_01;" (assignment_expression "iVar9 = extraout_ECX_01" identifier = identifier) ;) }) (else_clause "else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }" else (compound_statement "{\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar6);\n        bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }\nLAB_0001582b:\n        cVar2 = op->do_pcb;\n      }" { (expression_statement "__printf_chk(1,"  Parameter code 0x%x, ",uVar6);" (call_expression "__printf_chk(1,"  Parameter code 0x%x, ",uVar6)" identifier (argument_list "(1,"  Parameter code 0x%x, ",uVar6)" ( number_literal , (string_literal ""  Parameter code 0x%x, "" " string_content ") , identifier ))) ;) (expression_statement "bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f;" (assignment_expression "bVar8 = *(byte *)((int)puVar10 + 5) & 0x3f" identifier = (binary_expression "*(byte *)((int)puVar10 + 5) & 0x3f" (pointer_expression "*(byte *)((int)puVar10 + 5)" * (cast_expression "(byte *)((int)puVar10 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 5)" ( (binary_expression "(int)puVar10 + 5" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)((int)puVar10 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }" if (parenthesized_expression "((*(byte *)((int)puVar10 + 5) & 0x40) == 0)" ( (binary_expression "(*(byte *)((int)puVar10 + 5) & 0x40) == 0" (parenthesized_expression "(*(byte *)((int)puVar10 + 5) & 0x40)" ( (binary_expression "*(byte *)((int)puVar10 + 5) & 0x40" (pointer_expression "*(byte *)((int)puVar10 + 5)" * (cast_expression "(byte *)((int)puVar10 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 5)" ( (binary_expression "(int)puVar10 + 5" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar8);\n          iVar9 = extraout_ECX_02;\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x changed\n",bVar8);" (call_expression "__printf_chk(1,"Mode page 0x%x changed\n",bVar8)" identifier (argument_list "(1,"Mode page 0x%x changed\n",bVar8)" ( number_literal , (string_literal ""Mode page 0x%x changed\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar9 = extraout_ECX_02;" (assignment_expression "iVar9 = extraout_ECX_02" identifier = identifier) ;) }) (else_clause "else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }" else (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);\n          iVar9 = extraout_ECX;\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3]);" (call_expression "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3])" identifier (argument_list "(1,"Mode page 0x%x,0%x changed\n",bVar8,(byte)puVar10[3])" ( number_literal , (string_literal ""Mode page 0x%x,0%x changed\n"" " string_content escape_sequence ") , identifier , (cast_expression "(byte)puVar10[3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar10[3]" identifier [ number_literal ])) ))) ;) (expression_statement "iVar9 = extraout_ECX;" (assignment_expression "iVar9 = extraout_ECX" identifier = identifier) ;) }))) (labeled_statement "LAB_0001582b:\n        cVar2 = op->do_pcb;" statement_identifier : (expression_statement "cVar2 = op->do_pcb;" (assignment_expression "cVar2 = op->do_pcb" identifier = (field_expression "op->do_pcb" identifier -> field_identifier)) ;)) })))) (if_statement "if (cVar2 != '\0') {\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);\n        __printf_chk(1,&DAT_0002c460,pcVar7);\n      }" { (expression_statement "pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9);" (assignment_expression "pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,iVar9)" identifier = (call_expression "get_pcb_str((uint)(byte)puVar10[1],str,iVar9)" identifier (argument_list "((uint)(byte)puVar10[1],str,iVar9)" ( (cast_expression "(uint)(byte)puVar10[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar10[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar10[1]" identifier [ number_literal ]))) , identifier , identifier )))) ;) (expression_statement "__printf_chk(1,&DAT_0002c460,pcVar7);" (call_expression "__printf_chk(1,&DAT_0002c460,pcVar7)" identifier (argument_list "(1,&DAT_0002c460,pcVar7)" ( number_literal , (pointer_expression "&DAT_0002c460" & identifier) , identifier ))) ;) })) (if_statement "if (op->filter_given != false) goto LAB_00015847;" if (parenthesized_expression "(op->filter_given != false)" ( (binary_expression "op->filter_given != false" (field_expression "op->filter_given" identifier -> field_identifier) != false) )) (goto_statement "goto LAB_00015847;" goto statement_identifier ;)) }) (else_clause "else if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }" else (if_statement "if (op->filter == uVar6) {\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(op->filter == uVar6)" ( (binary_expression "op->filter == uVar6" (field_expression "op->filter" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }\n      goto LAB_00015847;\n    }" { (if_statement "if (op->do_raw == false) {\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }\n      else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }" if (parenthesized_expression "(op->do_raw == false)" ( (binary_expression "op->do_raw == false" (field_expression "op->do_raw" identifier -> field_identifier) == false) )) (compound_statement "{\n        iVar9 = op->do_hex;\n        if (iVar9 == 0) goto LAB_000157ea;\n        if (iVar9 != 1) {\n          iVar9 = -1;\n        }\n        hex2stdout(puVar10,uVar1,iVar9);\n      }" { (expression_statement "iVar9 = op->do_hex;" (assignment_expression "iVar9 = op->do_hex" identifier = (field_expression "op->do_hex" identifier -> field_identifier)) ;) (if_statement "if (iVar9 == 0) goto LAB_000157ea;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000157ea;" goto statement_identifier ;)) (if_statement "if (iVar9 != 1) {\n          iVar9 = -1;\n        }" if (parenthesized_expression "(iVar9 != 1)" ( (binary_expression "iVar9 != 1" identifier != number_literal) )) (compound_statement "{\n          iVar9 = -1;\n        }" { (expression_statement "iVar9 = -1;" (assignment_expression "iVar9 = -1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar10,uVar1,iVar9);" (call_expression "hex2stdout(puVar10,uVar1,iVar9)" identifier (argument_list "(puVar10,uVar1,iVar9)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }" else (compound_statement "{\n        puVar12 = (ushort *)(uVar1 + (int)puVar10);\n        do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);\n      }" { (expression_statement "puVar12 = (ushort *)(uVar1 + (int)puVar10);" (assignment_expression "puVar12 = (ushort *)(uVar1 + (int)puVar10)" identifier = (cast_expression "(ushort *)(uVar1 + (int)puVar10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + (int)puVar10)" ( (binary_expression "uVar1 + (int)puVar10" identifier + (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar12 != puVar10);" do (compound_statement "{\n          uVar4 = *puVar10;\n          puVar10 = (ushort *)((int)puVar10 + 1);\n          putchar((uint)(byte)uVar4);\n        }" { (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = (ushort *)((int)puVar10 + 1);" (assignment_expression "puVar10 = (ushort *)((int)puVar10 + 1)" identifier = (cast_expression "(ushort *)((int)puVar10 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 1)" ( (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "putchar((uint)(byte)uVar4);" (call_expression "putchar((uint)(byte)uVar4)" identifier (argument_list "((uint)(byte)uVar4)" ( (cast_expression "(uint)(byte)uVar4" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar12 != puVar10)" ( (binary_expression "puVar12 != puVar10" identifier != identifier) )) ;) }))) (goto_statement "goto LAB_00015847;" goto statement_identifier ;) })))) (labeled_statement "LAB_0001579d:\n    iVar5 = iVar5 - uVar1;" statement_identifier : (expression_statement "iVar5 = iVar5 - uVar1;" (assignment_expression "iVar5 = iVar5 - uVar1" identifier = (binary_expression "iVar5 - uVar1" identifier - identifier)) ;)) (expression_statement "puVar10 = (ushort *)((int)puVar10 + uVar1);" (assignment_expression "puVar10 = (ushort *)((int)puVar10 + uVar1)" identifier = (cast_expression "(ushort *)((int)puVar10 + uVar1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar1)" ( (binary_expression "(int)puVar10 + uVar1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_00015700(int param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00015700(int param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" type_identifier (function_declarator "FUN_00015700(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "ushort *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" if (parenthesized_expression "((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))))" ( (binary_expression "(*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" (parenthesized_expression "(*(int *)(param_3 + 0x30) != 0)" ( (binary_expression "*(int *)(param_3 + 0x30) != 0" (pointer_expression "*(int *)(param_3 + 0x30)" * (cast_expression "(int *)(param_3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" ( (parenthesized_expression "(*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))" ( (binary_expression "*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)" (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" * (cast_expression "(char *)(param_3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*(int *)(param_3 + 0x20) == 0)" ( (binary_expression "*(int *)(param_3 + 0x20) == 0" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" { (expression_statement "puts("Last n Mode page data changed  [0xb,0x2]");" (call_expression "puts("Last n Mode page data changed  [0xb,0x2]")" identifier (argument_list "("Last n Mode page data changed  [0xb,0x2]")" ( (string_literal ""Last n Mode page data changed  [0xb,0x2]"" " string_content ") ))) ;) })) (expression_statement "puVar9 = (ushort *)(param_1 + 4);" (assignment_expression "puVar9 = (ushort *)(param_1 + 4)" identifier = (cast_expression "(ushort *)(param_1 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "param_2 = param_2 + -4;" (assignment_expression "param_2 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (do_statement "do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );" do (compound_statement "{\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  }" { (if_statement "if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }" { (labeled_statement "LAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }" statement_identifier : (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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                    \n        FUN_00023f50();\n      }" { (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 3);" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 3)" identifier = (pointer_expression "*(byte *)((int)puVar9 + 3)" * (cast_expression "(byte *)((int)puVar9 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 3)" ( (binary_expression "(int)puVar9 + 3" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" identifier = (call_expression "(uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(*puVar9 << 8 | *puVar9 >> 8)" ( (binary_expression "*puVar9 << 8 | *puVar9 >> 8" (binary_expression "*puVar9 << 8" (pointer_expression "*puVar9" * identifier) << number_literal) | (binary_expression "*puVar9 >> 8" (pointer_expression "*puVar9" * identifier) >> number_literal)) )))) ;) (expression_statement "uVar1 = bVar7 + 4;" (assignment_expression "uVar1 = bVar7 + 4" identifier = (binary_expression "bVar7 + 4" identifier + number_literal)) ;) (if_statement "if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 9) == '\0')" ( (binary_expression "*(char *)(param_3 + 9) == '\0'" (pointer_expression "*(char *)(param_3 + 9)" * (cast_expression "(char *)(param_3 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 9)" ( (binary_expression "param_3 + 9" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }" { (labeled_statement "LAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" statement_identifier : (if_statement "if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }" { (if_statement "if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" if (parenthesized_expression "(uVar1 < 8)" ( (binary_expression "uVar1 < 8" identifier < number_literal) )) (compound_statement "{\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" { (expression_statement "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);" (call_expression "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" identifier (argument_list "(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" ( number_literal , (string_literal ""  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (goto_statement "goto LAB_0001579d;" goto statement_identifier ;) })) (expression_statement "uVar5 = *(uint *)(puVar9 + 2);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 2)" identifier = (pointer_expression "*(uint *)(puVar9 + 2)" * (cast_expression "(uint *)(puVar9 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );" (call_expression "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" identifier (argument_list "(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" ( number_literal , (string_literal ""  Generation number of Inquiry data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) (if_statement "if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" if (parenthesized_expression "(0xb < uVar1)" ( (binary_expression "0xb < uVar1" number_literal < identifier) )) (compound_statement "{\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" { (expression_statement "uVar5 = *(uint *)(puVar9 + 4);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 4)" identifier = (pointer_expression "*(uint *)(puVar9 + 4)" * (cast_expression "(uint *)(puVar9 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 4)" ( (binary_expression "puVar9 + 4" identifier + number_literal) ))))) ;) (expression_statement "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" identifier (argument_list "(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" ( number_literal , (string_literal ""  Generation number of Mode page data changed indication: %u\n"" " string_content escape_sequence ") , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) })) (if_statement "if (uVar1 < 0xd) goto LAB_0001582b;" if (parenthesized_expression "(uVar1 < 0xd)" ( (binary_expression "uVar1 < 0xd" identifier < number_literal) )) (goto_statement "goto LAB_0001582b;" goto statement_identifier ;)) (expression_statement "iVar8 = 0xc;" (assignment_expression "iVar8 = 0xc" identifier = number_literal) ;) (do_statement "do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);" do (compound_statement "{\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        }" { (expression_statement "uVar5 = *(uint *)((int)puVar9 + iVar8);" (assignment_expression "uVar5 = *(uint *)((int)puVar9 + iVar8)" identifier = (pointer_expression "*(uint *)((int)puVar9 + iVar8)" * (cast_expression "(uint *)((int)puVar9 + iVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar8)" ( (binary_expression "(int)puVar9 + iVar8" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) (expression_statement "iVar10 = iVar8 + 4;" (assignment_expression "iVar10 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" identifier (argument_list "(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" ( number_literal , (string_literal ""  Generation number of indication [0x%x]: %u\n"" " string_content escape_sequence ") , (binary_expression "iVar8 >> 2" identifier >> number_literal) , (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal)) ))) ;) (expression_statement "iVar8 = iVar10;" (assignment_expression "iVar8 = iVar10" identifier = identifier) ;) }) while (parenthesized_expression "((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10)" ( (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10" (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10" (parenthesized_expression "(bVar7 - 9 & 0xfffffffc)" ( (binary_expression "bVar7 - 9 & 0xfffffffc" (binary_expression "bVar7 - 9" identifier - number_literal) & number_literal) )) + number_literal) != identifier) )) ;) (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" identifier = (pointer_expression "*(char *)(param_3 + 1)" * (cast_expression "(char *)(param_3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" else (compound_statement "{\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" { (expression_statement "__printf_chk(1,"  Parameter code 0x%x, ",uVar5);" (call_expression "__printf_chk(1,"  Parameter code 0x%x, ",uVar5)" identifier (argument_list "(1,"  Parameter code 0x%x, ",uVar5)" ( number_literal , (string_literal ""  Parameter code 0x%x, "" " string_content ") , identifier ))) ;) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f" identifier = (binary_expression "*(byte *)((int)puVar9 + 5) & 0x3f" (pointer_expression "*(byte *)((int)puVar9 + 5)" * (cast_expression "(byte *)((int)puVar9 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 5)" ( (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" if (parenthesized_expression "((*(byte *)((int)puVar9 + 5) & 0x40) == 0)" ( (binary_expression "(*(byte *)((int)puVar9 + 5) & 0x40) == 0" (parenthesized_expression "(*(byte *)((int)puVar9 + 5) & 0x40)" ( (binary_expression "*(byte *)((int)puVar9 + 5) & 0x40" (pointer_expression "*(byte *)((int)puVar9 + 5)" * (cast_expression "(byte *)((int)puVar9 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 5)" ( (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x changed\n",bVar7);" (call_expression "__printf_chk(1,"Mode page 0x%x changed\n",bVar7)" identifier (argument_list "(1,"Mode page 0x%x changed\n",bVar7)" ( number_literal , (string_literal ""Mode page 0x%x changed\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" else (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" { (expression_statement "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);" (call_expression "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" identifier (argument_list "(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" ( number_literal , (string_literal ""Mode page 0x%x,0%x changed\n"" " string_content escape_sequence ") , identifier , (cast_expression "(byte)puVar9[3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar9[3]" identifier [ number_literal ])) ))) ;) }))) (labeled_statement "LAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);" statement_identifier : (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" identifier = (pointer_expression "*(char *)(param_3 + 1)" * (cast_expression "(char *)(param_3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;)) })))) (if_statement "if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" { (expression_statement "uVar6 = FUN_00014e80();" (assignment_expression "uVar6 = FUN_00014e80()" identifier = (call_expression "FUN_00014e80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar6);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar6)" identifier (argument_list "(1,&DAT_0002c460,uVar6)" ( number_literal , (pointer_expression "&DAT_0002c460" & identifier) , identifier ))) ;) })) (if_statement "if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;" if (parenthesized_expression "(*(char *)(param_3 + 9) != '\0')" ( (binary_expression "*(char *)(param_3 + 9) != '\0'" (pointer_expression "*(char *)(param_3 + 9)" * (cast_expression "(char *)(param_3 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 9)" ( (binary_expression "param_3 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015847;" goto statement_identifier ;)) }) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" else (if_statement "if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" if (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar5)" ( (binary_expression "*(uint *)(param_3 + 0x34) == uVar5" (pointer_expression "*(uint *)(param_3 + 0x34)" * (cast_expression "(uint *)(param_3 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" { (if_statement "if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" if (parenthesized_expression "(*(char *)(param_3 + 3) == '\0')" ( (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" * (cast_expression "(char *)(param_3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }" { (expression_statement "iVar8 = *(int *)(param_3 + 0x20);" (assignment_expression "iVar8 = *(int *)(param_3 + 0x20)" identifier = (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) goto LAB_000157ea;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000157ea;" goto statement_identifier ;)) (if_statement "if (iVar8 != 1) {\n          iVar8 = -1;\n        }" if (parenthesized_expression "(iVar8 != 1)" ( (binary_expression "iVar8 != 1" identifier != number_literal) )) (compound_statement "{\n          iVar8 = -1;\n        }" { (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar9,uVar1,iVar8);" (call_expression "hex2stdout(puVar9,uVar1,iVar8)" identifier (argument_list "(puVar9,uVar1,iVar8)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" else (compound_statement "{\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" { (expression_statement "puVar11 = (ushort *)(uVar1 + (int)puVar9);" (assignment_expression "puVar11 = (ushort *)(uVar1 + (int)puVar9)" identifier = (cast_expression "(ushort *)(uVar1 + (int)puVar9)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + (int)puVar9)" ( (binary_expression "uVar1 + (int)puVar9" identifier + (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);" do (compound_statement "{\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        }" { (expression_statement "uVar4 = *puVar9;" (assignment_expression "uVar4 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + 1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + 1)" identifier = (cast_expression "(ushort *)((int)puVar9 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 1)" ( (binary_expression "(int)puVar9 + 1" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "putchar((uint)(byte)uVar4);" (call_expression "putchar((uint)(byte)uVar4)" identifier (argument_list "((uint)(byte)uVar4)" ( (cast_expression "(uint)(byte)uVar4" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar11 != puVar9)" ( (binary_expression "puVar11 != puVar9" identifier != identifier) )) ;) }))) (goto_statement "goto LAB_00015847;" goto statement_identifier ;) })))) (labeled_statement "LAB_0001579d:\n    param_2 = param_2 - uVar1;" statement_identifier : (expression_statement "param_2 = param_2 - uVar1;" (assignment_expression "param_2 = param_2 - uVar1" identifier = (binary_expression "param_2 - uVar1" identifier - identifier)) ;)) (expression_statement "puVar9 = (ushort *)((int)puVar9 + uVar1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + uVar1)" identifier = (cast_expression "(ushort *)((int)puVar9 + uVar1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + uVar1)" ( (binary_expression "(int)puVar9 + uVar1" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (binary_expression (pointer_expression * IDENT) << LIT) | (binary_expression (pointer_expression * IDENT) >> LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (binary_expression IDENT >> LIT) , (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) + LIT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) ))) ;) }))) (labeled_statement statement_identifier : (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 != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (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) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (goto_statement goto statement_identifier ;) })))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_00015700(int param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_00015700(int param_1,int param_2,int param_3)" (identifier "FUN_00015700") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  ushort uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  byte bVar7;\n  int iVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  int in_GS_OFFSET;\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }\n  puVar9 = (ushort *)(param_1 + 4);\n  param_2 = param_2 + -4;\n  do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "ushort uVar4;" (type_identifier "ushort") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "ushort *puVar9;" (type_identifier "ushort") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "ushort *puVar11;" (type_identifier "ushort") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" (if "if") (parenthesized_expression "((*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))))" (( "(") (binary_expression "(*(int *)(param_3 + 0x30) != 0) ||\n     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" (parenthesized_expression "(*(int *)(param_3 + 0x30) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x30) != 0" (pointer_expression "*(int *)(param_3 + 0x30)" (* "*") (cast_expression "(int *)(param_3 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x30)" (( "(") (binary_expression "param_3 + 0x30" (identifier "param_3") (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))" (( "(") (parenthesized_expression "(*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0))" (( "(") (binary_expression "*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)" (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" (* "*") (cast_expression "(char *)(param_3 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 3)" (( "(") (binary_expression "param_3 + 3" (identifier "param_3") (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(*(int *)(param_3 + 0x20) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x20) == 0" (pointer_expression "*(int *)(param_3 + 0x20)" (* "*") (cast_expression "(int *)(param_3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    puts("Last n Mode page data changed  [0xb,0x2]");\n  }" ({ "{") (expression_statement "puts("Last n Mode page data changed  [0xb,0x2]");" (call_expression "puts("Last n Mode page data changed  [0xb,0x2]")" (identifier "puts") (argument_list "("Last n Mode page data changed  [0xb,0x2]")" (( "(") (string_literal ""Last n Mode page data changed  [0xb,0x2]"" (" """) (string_content "Last n Mode page data changed  [0xb,0x2]") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar9 = (ushort *)(param_1 + 4);" (assignment_expression "puVar9 = (ushort *)(param_1 + 4)" (identifier "puVar9") (= "=") (cast_expression "(ushort *)(param_1 + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "param_2 = param_2 + -4;" (assignment_expression "param_2 = param_2 + -4" (identifier "param_2") (= "=") (binary_expression "param_2 + -4" (identifier "param_2") (+ "+") (number_literal "-4"))) (; ";")) (do_statement "do {\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  } while( true );" (do "do") (compound_statement "{\n    if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }\n    bVar7 = *(byte *)((int)puVar9 + 3);\n    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n    uVar1 = bVar7 + 4;\n    if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }\nLAB_0001579d:\n    param_2 = param_2 - uVar1;\n    puVar9 = (ushort *)((int)puVar9 + uVar1);\n  }" ({ "{") (if_statement "if (param_2 < 4) {\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }" (if "if") (parenthesized_expression "(param_2 < 4)" (( "(") (binary_expression "param_2 < 4" (identifier "param_2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\nLAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }\n      return 1;\n    }" ({ "{") (labeled_statement "LAB_00015847:\n      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }" (statement_identifier "LAB_00015847") (: ":") (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00023f50();\n      }" (if "if") (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar3 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar3") (!= "!=") (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                    \n        FUN_00023f50();\n      }" ({ "{") (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" (identifier "FUN_00023f50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 3);" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 3)" (identifier "bVar7") (= "=") (pointer_expression "*(byte *)((int)puVar9 + 3)" (* "*") (cast_expression "(byte *)((int)puVar9 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 3)" (( "(") (binary_expression "(int)puVar9 + 3" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" (identifier "uVar5") (= "=") (call_expression "(uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "(*puVar9 << 8 | *puVar9 >> 8)" (( "(") (binary_expression "*puVar9 << 8 | *puVar9 >> 8" (binary_expression "*puVar9 << 8" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "*puVar9 >> 8" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (>> ">>") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "uVar1 = bVar7 + 4;" (assignment_expression "uVar1 = bVar7 + 4" (identifier "uVar1") (= "=") (binary_expression "bVar7 + 4" (identifier "bVar7") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (*(char *)(param_3 + 9) == '\0') {\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }\n    else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 9) == '\0')" (( "(") (binary_expression "*(char *)(param_3 + 9) == '\0'" (pointer_expression "*(char *)(param_3 + 9)" (* "*") (cast_expression "(char *)(param_3 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 9)" (( "(") (binary_expression "param_3 + 9" (identifier "param_3") (+ "+") (number_literal "9")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }\n      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;\n    }" ({ "{") (labeled_statement "LAB_000157ea:\n      if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" (statement_identifier "LAB_000157ea") (: ":") (if_statement "if (uVar5 == 0) {\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }\n      else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }\n        uVar5 = *(uint *)(puVar9 + 2);\n        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );\n        if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }\n        if (uVar1 < 0xd) goto LAB_0001582b;\n        iVar8 = 0xc;\n        do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);\n        cVar2 = *(char *)(param_3 + 1);\n      }" ({ "{") (if_statement "if (uVar1 < 8) {\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" (if "if") (parenthesized_expression "(uVar1 < 8)" (( "(") (binary_expression "uVar1 < 8" (identifier "uVar1") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);\n          goto LAB_0001579d;\n        }" ({ "{") (expression_statement "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1);" (call_expression "__printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" (identifier "__printf_chk") (argument_list "(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0\n                       ,uVar1)" (( "(") (number_literal "1") (, ",") (string_literal ""  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n"" (" """) (string_content "  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>") (escape_sequence "\n") (" """)) (, ",") (number_literal "0") (, ",") (identifier "uVar1") () ")"))) (; ";")) (goto_statement "goto LAB_0001579d;" (goto "goto") (statement_identifier "LAB_0001579d") (; ";")) (} "}"))) (expression_statement "uVar5 = *(uint *)(puVar9 + 2);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 2)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(puVar9 + 2)" (* "*") (cast_expression "(uint *)(puVar9 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 2)" (( "(") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    );" (call_expression "__printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" (identifier "__printf_chk") (argument_list "(1,"  Generation number of Inquiry data changed indication: %u\n",\n                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18\n                    )" (( "(") (number_literal "1") (, ",") (string_literal ""  Generation number of Inquiry data changed indication: %u\n"" (" """) (string_content "  Generation number of Inquiry data changed indication: %u") (escape_sequence "\n") (" """)) (, ",") (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" (identifier "uVar5") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" (( "(") (binary_expression "uVar5 & 0xff0000" (identifier "uVar5") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" (( "(") (binary_expression "uVar5 & 0xff00" (identifier "uVar5") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar5 << 0x18" (identifier "uVar5") (<< "<<") (number_literal "0x18"))) () ")"))) (; ";")) (if_statement "if (0xb < uVar1) {\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" (if "if") (parenthesized_expression "(0xb < uVar1)" (( "(") (binary_expression "0xb < uVar1" (number_literal "0xb") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n          uVar5 = *(uint *)(puVar9 + 4);\n          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n        }" ({ "{") (expression_statement "uVar5 = *(uint *)(puVar9 + 4);" (assignment_expression "uVar5 = *(uint *)(puVar9 + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(puVar9 + 4)" (* "*") (cast_expression "(uint *)(puVar9 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 4)" (( "(") (binary_expression "puVar9 + 4" (identifier "puVar9") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" (identifier "__printf_chk") (argument_list "(1,"  Generation number of Mode page data changed indication: %u\n",\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" (( "(") (number_literal "1") (, ",") (string_literal ""  Generation number of Mode page data changed indication: %u\n"" (" """) (string_content "  Generation number of Mode page data changed indication: %u") (escape_sequence "\n") (" """)) (, ",") (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" (identifier "uVar5") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" (( "(") (binary_expression "uVar5 & 0xff0000" (identifier "uVar5") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" (( "(") (binary_expression "uVar5 & 0xff00" (identifier "uVar5") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar5 << 0x18" (identifier "uVar5") (<< "<<") (number_literal "0x18"))) () ")"))) (; ";")) (} "}"))) (if_statement "if (uVar1 < 0xd) goto LAB_0001582b;" (if "if") (parenthesized_expression "(uVar1 < 0xd)" (( "(") (binary_expression "uVar1 < 0xd" (identifier "uVar1") (< "<") (number_literal "0xd")) () ")")) (goto_statement "goto LAB_0001582b;" (goto "goto") (statement_identifier "LAB_0001582b") (; ";"))) (expression_statement "iVar8 = 0xc;" (assignment_expression "iVar8 = 0xc" (identifier "iVar8") (= "=") (number_literal "0xc")) (; ";")) (do_statement "do {\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);" (do "do") (compound_statement "{\n          uVar5 = *(uint *)((int)puVar9 + iVar8);\n          iVar10 = iVar8 + 4;\n          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);\n          iVar8 = iVar10;\n        }" ({ "{") (expression_statement "uVar5 = *(uint *)((int)puVar9 + iVar8);" (assignment_expression "uVar5 = *(uint *)((int)puVar9 + iVar8)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)((int)puVar9 + iVar8)" (* "*") (cast_expression "(uint *)((int)puVar9 + iVar8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + iVar8)" (( "(") (binary_expression "(int)puVar9 + iVar8" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (expression_statement "iVar10 = iVar8 + 4;" (assignment_expression "iVar10 = iVar8 + 4" (identifier "iVar10") (= "=") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18);" (call_expression "__printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" (identifier "__printf_chk") (argument_list "(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,\n                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18)" (( "(") (number_literal "1") (, ",") (string_literal ""  Generation number of indication [0x%x]: %u\n"" (" """) (string_content "  Generation number of indication [0x%x]: %u") (escape_sequence "\n") (" """)) (, ",") (binary_expression "iVar8 >> 2" (identifier "iVar8") (>> ">>") (number_literal "2")) (, ",") (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n                       uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" (identifier "uVar5") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" (( "(") (binary_expression "uVar5 & 0xff0000" (identifier "uVar5") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" (( "(") (binary_expression "uVar5 & 0xff00" (identifier "uVar5") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar5 << 0x18" (identifier "uVar5") (<< "<<") (number_literal "0x18"))) () ")"))) (; ";")) (expression_statement "iVar8 = iVar10;" (assignment_expression "iVar8 = iVar10" (identifier "iVar8") (= "=") (identifier "iVar10")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10)" (( "(") (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10" (binary_expression "(bVar7 - 9 & 0xfffffffc) + 0x10" (parenthesized_expression "(bVar7 - 9 & 0xfffffffc)" (( "(") (binary_expression "bVar7 - 9 & 0xfffffffc" (binary_expression "bVar7 - 9" (identifier "bVar7") (- "-") (number_literal "9")) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "0x10")) (!= "!=") (identifier "iVar10")) () ")")) (; ";")) (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_3 + 1)" (* "*") (cast_expression "(char *)(param_3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" (else "else") (compound_statement "{\n        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);\n        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;\n        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }\nLAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);\n      }" ({ "{") (expression_statement "__printf_chk(1,"  Parameter code 0x%x, ",uVar5);" (call_expression "__printf_chk(1,"  Parameter code 0x%x, ",uVar5)" (identifier "__printf_chk") (argument_list "(1,"  Parameter code 0x%x, ",uVar5)" (( "(") (number_literal "1") (, ",") (string_literal ""  Parameter code 0x%x, "" (" """) (string_content "  Parameter code 0x%x, ") (" """)) (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;" (assignment_expression "bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f" (identifier "bVar7") (= "=") (binary_expression "*(byte *)((int)puVar9 + 5) & 0x3f" (pointer_expression "*(byte *)((int)puVar9 + 5)" (* "*") (cast_expression "(byte *)((int)puVar9 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 5)" (( "(") (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "0x3f"))) (; ";")) (if_statement "if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }\n        else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" (if "if") (parenthesized_expression "((*(byte *)((int)puVar9 + 5) & 0x40) == 0)" (( "(") (binary_expression "(*(byte *)((int)puVar9 + 5) & 0x40) == 0" (parenthesized_expression "(*(byte *)((int)puVar9 + 5) & 0x40)" (( "(") (binary_expression "*(byte *)((int)puVar9 + 5) & 0x40" (pointer_expression "*(byte *)((int)puVar9 + 5)" (* "*") (cast_expression "(byte *)((int)puVar9 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 5)" (( "(") (binary_expression "(int)puVar9 + 5" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);\n        }" ({ "{") (expression_statement "__printf_chk(1,"Mode page 0x%x changed\n",bVar7);" (call_expression "__printf_chk(1,"Mode page 0x%x changed\n",bVar7)" (identifier "__printf_chk") (argument_list "(1,"Mode page 0x%x changed\n",bVar7)" (( "(") (number_literal "1") (, ",") (string_literal ""Mode page 0x%x changed\n"" (" """) (string_content "Mode page 0x%x changed") (escape_sequence "\n") (" """)) (, ",") (identifier "bVar7") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" (else "else") (compound_statement "{\n          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);\n        }" ({ "{") (expression_statement "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);" (call_expression "__printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" (identifier "__printf_chk") (argument_list "(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3])" (( "(") (number_literal "1") (, ",") (string_literal ""Mode page 0x%x,0%x changed\n"" (" """) (string_content "Mode page 0x%x,0%x changed") (escape_sequence "\n") (" """)) (, ",") (identifier "bVar7") (, ",") (cast_expression "(byte)puVar9[3]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar9[3]" (identifier "puVar9") ([ "[") (number_literal "3") (] "]"))) () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_0001582b:\n        cVar2 = *(char *)(param_3 + 1);" (statement_identifier "LAB_0001582b") (: ":") (expression_statement "cVar2 = *(char *)(param_3 + 1);" (assignment_expression "cVar2 = *(char *)(param_3 + 1)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_3 + 1)" (* "*") (cast_expression "(char *)(param_3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))))) (; ";"))) (} "}"))))) (if_statement "if (cVar2 != '\0') {\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        uVar6 = FUN_00014e80();\n        __printf_chk(1,&DAT_0002c460,uVar6);\n      }" ({ "{") (expression_statement "uVar6 = FUN_00014e80();" (assignment_expression "uVar6 = FUN_00014e80()" (identifier "uVar6") (= "=") (call_expression "FUN_00014e80()" (identifier "FUN_00014e80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar6);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar6)" (identifier "__printf_chk") (argument_list "(1,&DAT_0002c460,uVar6)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0002c460" (& "&") (identifier "DAT_0002c460")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;" (if "if") (parenthesized_expression "(*(char *)(param_3 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_3 + 9) != '\0'" (pointer_expression "*(char *)(param_3 + 9)" (* "*") (cast_expression "(char *)(param_3 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 9)" (( "(") (binary_expression "param_3 + 9" (identifier "param_3") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00015847;" (goto "goto") (statement_identifier "LAB_00015847") (; ";"))) (} "}")) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" (else "else") (if_statement "if (*(uint *)(param_3 + 0x34) == uVar5) {\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar5)" (( "(") (binary_expression "*(uint *)(param_3 + 0x34) == uVar5" (pointer_expression "*(uint *)(param_3 + 0x34)" (* "*") (cast_expression "(uint *)(param_3 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (identifier "uVar5")) () ")")) (compound_statement "{\n      if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }\n      goto LAB_00015847;\n    }" ({ "{") (if_statement "if (*(char *)(param_3 + 3) == '\0') {\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }\n      else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 3) == '\0')" (( "(") (binary_expression "*(char *)(param_3 + 3) == '\0'" (pointer_expression "*(char *)(param_3 + 3)" (* "*") (cast_expression "(char *)(param_3 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 3)" (( "(") (binary_expression "param_3 + 3" (identifier "param_3") (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar8 = *(int *)(param_3 + 0x20);\n        if (iVar8 == 0) goto LAB_000157ea;\n        if (iVar8 != 1) {\n          iVar8 = -1;\n        }\n        hex2stdout(puVar9,uVar1,iVar8);\n      }" ({ "{") (expression_statement "iVar8 = *(int *)(param_3 + 0x20);" (assignment_expression "iVar8 = *(int *)(param_3 + 0x20)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_3 + 0x20)" (* "*") (cast_expression "(int *)(param_3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (iVar8 == 0) goto LAB_000157ea;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000157ea;" (goto "goto") (statement_identifier "LAB_000157ea") (; ";"))) (if_statement "if (iVar8 != 1) {\n          iVar8 = -1;\n        }" (if "if") (parenthesized_expression "(iVar8 != 1)" (( "(") (binary_expression "iVar8 != 1" (identifier "iVar8") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n          iVar8 = -1;\n        }" ({ "{") (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" (identifier "iVar8") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "hex2stdout(puVar9,uVar1,iVar8);" (call_expression "hex2stdout(puVar9,uVar1,iVar8)" (identifier "hex2stdout") (argument_list "(puVar9,uVar1,iVar8)" (( "(") (identifier "puVar9") (, ",") (identifier "uVar1") (, ",") (identifier "iVar8") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" (else "else") (compound_statement "{\n        puVar11 = (ushort *)(uVar1 + (int)puVar9);\n        do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);\n      }" ({ "{") (expression_statement "puVar11 = (ushort *)(uVar1 + (int)puVar9);" (assignment_expression "puVar11 = (ushort *)(uVar1 + (int)puVar9)" (identifier "puVar11") (= "=") (cast_expression "(ushort *)(uVar1 + (int)puVar9)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar1 + (int)puVar9)" (( "(") (binary_expression "uVar1 + (int)puVar9" (identifier "uVar1") (+ "+") (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9"))) () ")")))) (; ";")) (do_statement "do {\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        } while (puVar11 != puVar9);" (do "do") (compound_statement "{\n          uVar4 = *puVar9;\n          puVar9 = (ushort *)((int)puVar9 + 1);\n          putchar((uint)(byte)uVar4);\n        }" ({ "{") (expression_statement "uVar4 = *puVar9;" (assignment_expression "uVar4 = *puVar9" (identifier "uVar4") (= "=") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (; ";")) (expression_statement "puVar9 = (ushort *)((int)puVar9 + 1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + 1)" (identifier "puVar9") (= "=") (cast_expression "(ushort *)((int)puVar9 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 1)" (( "(") (binary_expression "(int)puVar9 + 1" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "putchar((uint)(byte)uVar4);" (call_expression "putchar((uint)(byte)uVar4)" (identifier "putchar") (argument_list "((uint)(byte)uVar4)" (( "(") (cast_expression "(uint)(byte)uVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar11 != puVar9)" (( "(") (binary_expression "puVar11 != puVar9" (identifier "puVar11") (!= "!=") (identifier "puVar9")) () ")")) (; ";")) (} "}")))) (goto_statement "goto LAB_00015847;" (goto "goto") (statement_identifier "LAB_00015847") (; ";")) (} "}"))))) (labeled_statement "LAB_0001579d:\n    param_2 = param_2 - uVar1;" (statement_identifier "LAB_0001579d") (: ":") (expression_statement "param_2 = param_2 - uVar1;" (assignment_expression "param_2 = param_2 - uVar1" (identifier "param_2") (= "=") (binary_expression "param_2 - uVar1" (identifier "param_2") (- "-") (identifier "uVar1"))) (; ";"))) (expression_statement "puVar9 = (ushort *)((int)puVar9 + uVar1);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + uVar1)" (identifier "puVar9") (= "=") (cast_expression "(ushort *)((int)puVar9 + uVar1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + uVar1)" (( "(") (binary_expression "(int)puVar9 + uVar1" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (identifier "uVar1")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

type_1 function_1(uint8_t *var_3,int var_4,type_2 *op)

{
  type_3 var_10;
  char var_15;
  int var_6;
  type_4 uVar4;
  int var_5;
  type_3 var_9;
  char *pcVar7;
  int extraout_ECX;
  int extraout_ECX_00;
  int extraout_ECX_01;
  int extraout_ECX_02;
  int extraout_ECX_03;
  type_5 var_8;
  int var_13;
  type_4 *var_12;
  int var_14;
  type_4 *var_19;
  int var_1;
  char str [128];
  
  var_6 = *(int *)(var_1 + 0x14);
  if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {
    var_2("Last n Mode page data changed  [0xb,0x2]");
  }
  var_12 = (type_4 *)(var_3 + 4);
  var_5 = var_4 + -4;
  do {
    if (var_5 < 4) {
LAB_00015847:
      if (var_6 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
        var_7();
      }
      return true;
    }
    var_8 = *(type_5 *)((int)var_12 + 3);
    var_9 = (type_3)(type_4)(*var_12 << 8 | *var_12 >> 8);
    var_10 = var_8 + 4;
    if (op->filter_given == false) {
LAB_000157ea:
      if (var_9 == 0) {
        if (var_10 < 8) {
          var_11(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0
                       ,var_10);
          goto LAB_0001579d;
        }
        var_9 = *(type_3 *)(var_12 + 2);
        var_11(1,"  Generation number of Inquiry data changed indication: %u\n",
                     var_9 >> 0x18 | (var_9 & 0xff0000) >> 8 | (var_9 & 0xff00) << 8 | var_9 << 0x18
                    );
        var_13 = extraout_ECX_00;
        if (0xb < var_10) {
          var_9 = *(type_3 *)(var_12 + 4);
          var_11(1,"  Generation number of Mode page data changed indication: %u\n",
                       var_9 >> 0x18 | (var_9 & 0xff0000) >> 8 | (var_9 & 0xff00) << 8 |
                       var_9 << 0x18);
          var_13 = extraout_ECX_03;
        }
        if (var_10 < 0xd) goto LAB_0001582b;
        var_13 = 0xc;
        do {
          var_9 = *(type_3 *)((int)var_12 + var_13);
          var_14 = var_13 + 4;
          var_11(1,"  Generation number of indication [0x%x]: %u\n",var_13 >> 2,
                       var_9 >> 0x18 | (var_9 & 0xff0000) >> 8 | (var_9 & 0xff00) << 8 |
                       var_9 << 0x18);
          var_13 = var_14;
        } while ((var_8 - 9 & 0xfffffffc) + 0x10 != var_14);
        var_15 = op->do_pcb;
        var_13 = extraout_ECX_01;
      }
      else {
        var_11(1,"  Parameter code 0x%x, ",var_9);
        var_8 = *(type_5 *)((int)var_12 + 5) & 0x3f;
        if ((*(type_5 *)((int)var_12 + 5) & 0x40) == 0) {
          var_11(1,"Mode page 0x%x changed\n",var_8);
          var_13 = extraout_ECX_02;
        }
        else {
          var_11(1,"Mode page 0x%x,0%x changed\n",var_8,(type_5)var_12[3]);
          var_13 = extraout_ECX;
        }
LAB_0001582b:
        var_15 = op->do_pcb;
      }
      if (var_15 != '\0') {
        pcVar7 = var_16((type_3)(type_5)var_12[1],str,var_13);
        var_11(1,&DAT_0002c460,pcVar7);
      }
      if (op->filter_given != false) goto LAB_00015847;
    }
    else if (op->filter == var_9) {
      if (op->do_raw == false) {
        var_13 = op->do_hex;
        if (var_13 == 0) goto LAB_000157ea;
        if (var_13 != 1) {
          var_13 = -1;
        }
        var_17(var_12,var_10,var_13);
      }
      else {
        var_19 = (type_4 *)(var_10 + (int)var_12);
        do {
          uVar4 = *var_12;
          var_12 = (type_4 *)((int)var_12 + 1);
          var_18((type_3)(type_5)uVar4);
        } while (var_19 != var_12);
      }
      goto LAB_00015847;
    }
LAB_0001579d:
    var_5 = var_5 - var_10;
    var_12 = (type_4 *)((int)var_12 + var_10);
  } while( true );
}


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

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

undefined4 MASKED(int param_1,int param_2,int param_3)

{
  uint uVar1;
  char cVar2;
  int iVar3;
  ushort uVar4;
  uint uVar5;
  undefined4 uVar6;
  byte bVar7;
  int iVar8;
  ushort *puVar9;
  int iVar10;
  ushort *puVar11;
  int in_GS_OFFSET;
  
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(int *)(param_3 + 0x30) != 0) ||
     ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {
    puts("Last n Mode page data changed  [0xb,0x2]");
  }
  puVar9 = (ushort *)(param_1 + 4);
  param_2 = param_2 + -4;
  do {
    if (param_2 < 4) {
LAB_00015847:
      if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_00023f50();
      }
      return 1;
    }
    bVar7 = *(byte *)((int)puVar9 + 3);
    uVar5 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);
    uVar1 = bVar7 + 4;
    if (*(char *)(param_3 + 9) == '\0') {
LAB_000157ea:
      if (uVar5 == 0) {
        if (uVar1 < 8) {
          __printf_chk(1,"  <<expect parameter 0x%x to be at least 8 bytes long, got %d, skip>>\n",0
                       ,uVar1);
          goto LAB_0001579d;
        }
        uVar5 = *(uint *)(puVar9 + 2);
        __printf_chk(1,"  Generation number of Inquiry data changed indication: %u\n",
                     uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18
                    );
        if (0xb < uVar1) {
          uVar5 = *(uint *)(puVar9 + 4);
          __printf_chk(1,"  Generation number of Mode page data changed indication: %u\n",
                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
                       uVar5 << 0x18);
        }
        if (uVar1 < 0xd) goto LAB_0001582b;
        iVar8 = 0xc;
        do {
          uVar5 = *(uint *)((int)puVar9 + iVar8);
          iVar10 = iVar8 + 4;
          __printf_chk(1,"  Generation number of indication [0x%x]: %u\n",iVar8 >> 2,
                       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
                       uVar5 << 0x18);
          iVar8 = iVar10;
        } while ((bVar7 - 9 & 0xfffffffc) + 0x10 != iVar10);
        cVar2 = *(char *)(param_3 + 1);
      }
      else {
        __printf_chk(1,"  Parameter code 0x%x, ",uVar5);
        bVar7 = *(byte *)((int)puVar9 + 5) & 0x3f;
        if ((*(byte *)((int)puVar9 + 5) & 0x40) == 0) {
          __printf_chk(1,"Mode page 0x%x changed\n",bVar7);
        }
        else {
          __printf_chk(1,"Mode page 0x%x,0%x changed\n",bVar7,(byte)puVar9[3]);
        }
LAB_0001582b:
        cVar2 = *(char *)(param_3 + 1);
      }
      if (cVar2 != '\0') {
        uVar6 = FUN_00014e80();
        __printf_chk(1,&DAT_0002c460,uVar6);
      }
      if (*(char *)(param_3 + 9) != '\0') goto LAB_00015847;
    }
    else if (*(uint *)(param_3 + 0x34) == uVar5) {
      if (*(char *)(param_3 + 3) == '\0') {
        iVar8 = *(int *)(param_3 + 0x20);
        if (iVar8 == 0) goto LAB_000157ea;
        if (iVar8 != 1) {
          iVar8 = -1;
        }
        hex2stdout(puVar9,uVar1,iVar8);
      }
      else {
        puVar11 = (ushort *)(uVar1 + (int)puVar9);
        do {
          uVar4 = *puVar9;
          puVar9 = (ushort *)((int)puVar9 + 1);
          putchar((uint)(byte)uVar4);
        } while (puVar11 != puVar9);
      }
      goto LAB_00015847;
    }
LAB_0001579d:
    param_2 = param_2 - uVar1;
    puVar9 = (ushort *)((int)puVar9 + uVar1);
  } while( true );
}

