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

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

{
  ushort *puVar1;
  int iVar2;
  ushort uVar3;
  char cVar4;
  uint uVar5;
  int iVar6;
  char *pcVar7;
  int extraout_ECX;
  int extraout_ECX_00;
  int maxoutlen;
  int extraout_ECX_01;
  uint uVar8;
  undefined4 uVar9;
  ushort *puVar10;
  int iVar11;
  int in_GS_OFFSET;
  char str [128];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  iVar11 = len + -4;
  if (iVar11 < 4) {
    puts("No error events logged");
    cVar4 = '\x01';
  }
  else {
    puVar10 = (ushort *)(resp + 4);
    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {
      puts("Last n error events page  [0x7]");
    }
    do {
      uVar5 = (uint)*(byte *)((int)puVar10 + 3);
      iVar6 = uVar5 + 4;
      cVar4 = op->filter_given;
      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);
      if ((_Bool)cVar4 == false) {
LAB_00015076:
        __printf_chk(1,"  Error event %d:\n",uVar8);
        maxoutlen = extraout_ECX;
        if (iVar6 != 4) {
          if ((puVar10[1] & 3) == 3) {
            pcVar7 = "    [binary]:";
          }
          else {
            if ((puVar10[1] & 1) != 0) {
              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);
              maxoutlen = extraout_ECX_00;
              goto LAB_000150c8;
            }
            pcVar7 = "    [data counter?? (LP bit should be set)]:";
          }
          puts(pcVar7);
          hex2stdout(puVar10 + 2,uVar5,1);
          maxoutlen = extraout_ECX_01;
        }
LAB_000150c8:
        if (op->do_pcb == false) {
          cVar4 = op->filter_given;
        }
        else {
          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);
          __printf_chk(1,&DAT_0002c460,pcVar7);
          cVar4 = op->filter_given;
        }
        if (cVar4 != '\0') goto LAB_00015100;
      }
      else if (op->filter == uVar8) {
        if (op->do_raw != false) {
          puVar1 = (ushort *)((int)puVar10 + iVar6);
          do {
            uVar3 = *puVar10;
            puVar10 = (ushort *)((int)puVar10 + 1);
            putchar((uint)(byte)uVar3);
          } while (puVar1 != puVar10);
LAB_00015100:
          cVar4 = '\x01';
          goto LAB_00015105;
        }
        if (op->do_hex == 0) goto LAB_00015076;
        uVar9 = 0xffffffff;
        if (op->do_hex == 1) {
          uVar9 = 1;
        }
        hex2stdout(puVar10,iVar6,uVar9);
        goto LAB_00015105;
      }
      iVar11 = iVar11 - iVar6;
      puVar10 = (ushort *)((int)puVar10 + iVar6);
      if (iVar11 < 1) goto LAB_00015100;
    } while (2 < iVar11);
    puts("short Last n error events page");
    cVar4 = '\0';
  }
LAB_00015105:
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return (_Bool)cVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

char FUN_00014fa0(int param_1,int param_2,int param_3)

{
  ushort *puVar1;
  int iVar2;
  ushort uVar3;
  char cVar4;
  uint uVar5;
  int iVar6;
  undefined4 uVar7;
  char *__s;
  uint uVar8;
  ushort *puVar9;
  int in_GS_OFFSET;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  param_2 = param_2 + -4;
  if (param_2 < 4) {
    puts("No error events logged");
    cVar4 = '\x01';
  }
  else {
    puVar9 = (ushort *)(param_1 + 4);
    if ((*(int *)(param_3 + 0x30) != 0) ||
       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {
      puts("Last n error events page  [0x7]");
    }
    do {
      uVar5 = (uint)*(byte *)((int)puVar9 + 3);
      iVar6 = uVar5 + 4;
      cVar4 = *(char *)(param_3 + 9);
      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);
      if (cVar4 == '\0') {
LAB_00015076:
        __printf_chk(1,"  Error event %d:\n",uVar8);
        if (iVar6 != 4) {
          if ((puVar9[1] & 3) == 3) {
            __s = "    [binary]:";
          }
          else {
            if ((puVar9[1] & 1) != 0) {
              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);
              goto LAB_000150c8;
            }
            __s = "    [data counter?? (LP bit should be set)]:";
          }
          puts(__s);
          hex2stdout(puVar9 + 2,uVar5,1);
        }
LAB_000150c8:
        if (*(char *)(param_3 + 1) == '\0') {
          cVar4 = *(char *)(param_3 + 9);
        }
        else {
          uVar7 = FUN_00014e80();
          __printf_chk(1,&DAT_0002c460,uVar7);
          cVar4 = *(char *)(param_3 + 9);
        }
        if (cVar4 != '\0') goto LAB_00015100;
      }
      else if (*(uint *)(param_3 + 0x34) == uVar8) {
        if (*(char *)(param_3 + 3) != '\0') {
          puVar1 = (ushort *)((int)puVar9 + iVar6);
          do {
            uVar3 = *puVar9;
            puVar9 = (ushort *)((int)puVar9 + 1);
            putchar((uint)(byte)uVar3);
          } while (puVar1 != puVar9);
LAB_00015100:
          cVar4 = '\x01';
          goto LAB_00015105;
        }
        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;
        uVar7 = 0xffffffff;
        if (*(int *)(param_3 + 0x20) == 1) {
          uVar7 = 1;
        }
        hex2stdout(puVar9,iVar6,uVar7);
        goto LAB_00015105;
      }
      param_2 = param_2 - iVar6;
      puVar9 = (ushort *)((int)puVar9 + iVar6);
      if (param_2 < 1) goto LAB_00015100;
    } while (2 < param_2);
    puts("short Last n error events page");
    cVar4 = '\0';
  }
LAB_00015105:
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return cVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00023f50();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013c20
ADD EBX,0x22f57
SUB ESP,0xbc
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xac],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0xd4]
MOV EBP,dword ptr [ESP + 0xd8]
LEA EDI,[EAX + -0x4]
MOV EAX,dword ptr [ESP + 0xd0]
CMP EDI,0x3
JLE 0x000151b8
MOV EDX,dword ptr [EBP + 0x30]
LEA ESI,[EAX + 0x4]
TEST EDX,EDX
JNZ 0x0001517b
CMP byte ptr [EBP + 0x3],0x0
JZ 0x00015170
LEA EAX,[EBX + 0xffff453f]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0x2c]
MOV dword ptr [ESP + 0x18],EAX
JMP 0x0001503b
CMP byte ptr [EBP + 0x9],0x0
JNZ 0x00015100
MOV EAX,dword ptr [ESP + 0xc]
SUB EDI,EAX
ADD ESI,EAX
TEST EDI,EDI
JLE 0x00015100
CMP EDI,0x2
JLE 0x00015198
MOVZX EAX,byte ptr [ESI + 0x3]
MOVZX EDX,word ptr [ESI]
MOV dword ptr [ESP + 0x10],EAX
ADD EAX,0x4
ROL DX,0x8
MOV dword ptr [ESP + 0xc],EAX
MOVZX EAX,byte ptr [EBP + 0x9]
MOVZX EDX,DX
TEST AL,AL
JZ 0x00015076
CMP dword ptr [EBP + 0x34],EDX
JNZ 0x00015022
CMP byte ptr [EBP + 0x3],0x0
JNZ 0x000151d4
MOV ECX,dword ptr [EBP + 0x20]
TEST ECX,ECX
JNZ 0x000151fb
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [ESP + 0x1c]
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
CMP dword ptr [ESP + 0xc],0x4
JZ 0x000150c8
MOVZX EAX,byte ptr [ESI + 0x2]
LEA EDX,[ESI + 0x4]
MOV ECX,EAX
AND ECX,0x3
CMP CL,0x3
JZ 0x00015160
TEST AL,0x1
JZ 0x00015128
LEA EAX,[EBX + 0xffff49fd]
PUSH EDX
PUSH dword ptr [ESP + 0x14]
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
LEA ESI,[ESI]
CMP byte ptr [EBP + 0x1],0x0
JZ 0x00015018
MOV EDX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [ESI + 0x2]
CALL 0x00014e80
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff4560]
PUSH EAX
PUSH 0x1
CALL 0x00012260
ADD ESP,0x10
CMP byte ptr [EBP + 0x9],0x0
JZ 0x00015022
NOP
MOV EAX,0x1
MOV ECX,dword ptr [ESP + 0xac]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00015228
ADD ESP,0xbc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x1c],EDX
LEA EAX,[EBX + 0xfffedde8]
SUB ESP,0xc
PUSH EAX
CALL 0x00012170
ADD ESP,0xc
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x28]
PUSH EDX
CALL 0x00012130
ADD ESP,0x10
JMP 0x000150c8
MOV dword ptr [ESP + 0x1c],EDX
LEA EAX,[EBX + 0xffff4552]
SUB ESP,0xc
JMP 0x00015135
MOV EAX,dword ptr [EBP + 0x20]
TEST EAX,EAX
JNZ 0x00014ffd
SUB ESP,0xc
LEA EAX,[EBX + 0xfffedda8]
PUSH EAX
CALL 0x00012170
ADD ESP,0x10
JMP 0x00014ffd
SUB ESP,0xc
LEA EAX,[EBX + 0xfffeddc8]
PUSH EAX
CALL 0x00012170
ADD ESP,0x10
XOR EAX,EAX
JMP 0x00015105
SUB ESP,0xc
LEA EAX,[EBX + 0xffff4528]
PUSH EAX
CALL 0x00012170
ADD ESP,0x10
MOV EAX,0x1
JMP 0x00015105
MOV ECX,dword ptr [ESP + 0xc]
LEA EDI,[ESI + ECX*0x1]
LEA ESI,[ESI]
NOP
MOVZX EAX,byte ptr [ESI]
SUB ESP,0xc
ADD ESI,0x1
PUSH EAX
CALL 0x00012230
ADD ESP,0x10
CMP EDI,ESI
JNZ 0x000151e0
JMP 0x00015100
MOV EDI,ECX
MOV EDX,0xffffffff
MOV ECX,dword ptr [ESP + 0xc]
MOV byte ptr [ESP + 0xc],AL
CMP EDI,0x1
CMOVZ EDX,EDI
SUB ESP,0x4
PUSH EDX
PUSH ECX
PUSH ESI
CALL 0x00012130
ADD ESP,0x10
MOVZX EAX,byte ptr [ESP + 0xc]
JMP 0x00015105
CALL 0x00023f50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar FUN_00014fa0(int param_1,int param_2,int param_3)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023f50();\n}\n\n" comment (function_definition "char FUN_00014fa0(int param_1,int param_2,int param_3)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023f50();\n}" primitive_type (function_declarator "FUN_00014fa0(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  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00023f50();\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "param_2 = param_2 + -4;" (assignment_expression "param_2 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (if_statement "if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }" { (expression_statement "puts("No error events logged");" (call_expression "puts("No error events logged")" identifier (argument_list "("No error events logged")" ( (string_literal ""No error events logged"" " string_content ") ))) ;) (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }) (else_clause "else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" else (compound_statement "{\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" { (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) )))) ;) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\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 error events page  [0x7]");\n    }" { (expression_statement "puts("Last n error events page  [0x7]");" (call_expression "puts("Last n error events page  [0x7]")" identifier (argument_list "("Last n error events page  [0x7]")" ( (string_literal ""Last n error events page  [0x7]"" " string_content ") ))) ;) })) (do_statement "do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);" do (compound_statement "{\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    }" { (expression_statement "uVar5 = (uint)*(byte *)((int)puVar9 + 3);" (assignment_expression "uVar5 = (uint)*(byte *)((int)puVar9 + 3)" identifier = (binary_expression "(uint)*(byte *)((int)puVar9 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (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 "iVar6 = uVar5 + 4;" (assignment_expression "iVar6 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) (expression_statement "uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar8 = (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)) )))) ;) (if_statement "if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }" { (labeled_statement "LAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);" statement_identifier : (expression_statement "__printf_chk(1,"  Error event %d:\n",uVar8);" (call_expression "__printf_chk(1,"  Error event %d:\n",uVar8)" identifier (argument_list "(1,"  Error event %d:\n",uVar8)" ( number_literal , (string_literal ""  Error event %d:\n"" " string_content escape_sequence ") , identifier ))) ;)) (if_statement "if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" if (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) (compound_statement "{\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" { (if_statement "if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" if (parenthesized_expression "((puVar9[1] & 3) == 3)" ( (binary_expression "(puVar9[1] & 3) == 3" (parenthesized_expression "(puVar9[1] & 3)" ( (binary_expression "puVar9[1] & 3" (subscript_expression "puVar9[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n            __s = "    [binary]:";\n          }" { (expression_statement "__s = "    [binary]:";" (assignment_expression "__s = "    [binary]:"" identifier = (string_literal ""    [binary]:"" " string_content ")) ;) }) (else_clause "else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" else (compound_statement "{\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" { (if_statement "if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" if (parenthesized_expression "((puVar9[1] & 1) != 0)" ( (binary_expression "(puVar9[1] & 1) != 0" (parenthesized_expression "(puVar9[1] & 1)" ( (binary_expression "puVar9[1] & 1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" { (expression_statement "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);" (call_expression "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2)" identifier (argument_list "(1,"    %.*s\n",uVar5,puVar9 + 2)" ( number_literal , (string_literal ""    %.*s\n"" " string_content escape_sequence ") , identifier , (binary_expression "puVar9 + 2" identifier + number_literal) ))) ;) (goto_statement "goto LAB_000150c8;" goto statement_identifier ;) })) (expression_statement "__s = "    [data counter?? (LP bit should be set)]:";" (assignment_expression "__s = "    [data counter?? (LP bit should be set)]:"" identifier = (string_literal ""    [data counter?? (LP bit should be set)]:"" " string_content ")) ;) }))) (expression_statement "puts(__s);" (call_expression "puts(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "hex2stdout(puVar9 + 2,uVar5,1);" (call_expression "hex2stdout(puVar9 + 2,uVar5,1)" identifier (argument_list "(puVar9 + 2,uVar5,1)" ( (binary_expression "puVar9 + 2" identifier + number_literal) , identifier , number_literal ))) ;) })) (labeled_statement "LAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" statement_identifier : (if_statement "if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" if (parenthesized_expression "(*(char *)(param_3 + 1) == '\0')" ( (binary_expression "*(char *)(param_3 + 1) == '\0'" (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) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          cVar4 = *(char *)(param_3 + 9);\n        }" { (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) }) (else_clause "else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" else (compound_statement "{\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" { (expression_statement "uVar7 = FUN_00014e80();" (assignment_expression "uVar7 = FUN_00014e80()" identifier = (call_expression "FUN_00014e80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar7);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar7)" identifier (argument_list "(1,&DAT_0002c460,uVar7)" ( number_literal , (pointer_expression "&DAT_0002c460" & identifier) , identifier ))) ;) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) })))) (if_statement "if (cVar4 != '\0') goto LAB_00015100;" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" else (if_statement "if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar8)" ( (binary_expression "*(uint *)(param_3 + 0x34) == uVar8" (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          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" { (if_statement "if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\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          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }" { (expression_statement "puVar1 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar1 = (ushort *)((int)puVar9 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar9 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar6)" ( (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);" do (compound_statement "{\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          }" { (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *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)uVar3);" (call_expression "putchar((uint)(byte)uVar3)" identifier (argument_list "((uint)(byte)uVar3)" ( (cast_expression "(uint)(byte)uVar3" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar1 != puVar9)" ( (binary_expression "puVar1 != puVar9" identifier != identifier) )) ;) (labeled_statement "LAB_00015100:\n          cVar4 = '\x01';" statement_identifier : (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;)) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;" if (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) )) (goto_statement "goto LAB_00015076;" goto statement_identifier ;)) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }" if (parenthesized_expression "(*(int *)(param_3 + 0x20) == 1)" ( (binary_expression "*(int *)(param_3 + 0x20) == 1" (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          uVar7 = 1;\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar9,iVar6,uVar7);" (call_expression "hex2stdout(puVar9,iVar6,uVar7)" identifier (argument_list "(puVar9,iVar6,uVar7)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })))) (expression_statement "param_2 = param_2 - iVar6;" (assignment_expression "param_2 = param_2 - iVar6" identifier = (binary_expression "param_2 - iVar6" identifier - identifier)) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar9 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar6)" ( (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (if_statement "if (param_2 < 1) goto LAB_00015100;" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) while (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) ;) (expression_statement "puts("short Last n error events page");" (call_expression "puts("short Last n error events page")" identifier (argument_list "("short Last n error events page")" ( (string_literal ""short Last n error events page"" " string_content ") ))) ;) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (labeled_statement "LAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return cVar4;\n  }" { (return_statement "return cVar4;" return identifier ;) }))) comment (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" identifier (argument_list "()" ( ))) ;) })))
(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_error_page(uint8_t *resp,int len,opts_t *op)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int maxoutlen;\n  int extraout_ECX_01;\n  uint uVar8;\n  undefined4 uVar9;\n  ushort *puVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar11 = len + -4;\n  if (iVar11 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (_Bool)cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "_Bool show_last_n_error_page(uint8_t *resp,int len,opts_t *op)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int maxoutlen;\n  int extraout_ECX_01;\n  uint uVar8;\n  undefined4 uVar9;\n  ushort *puVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar11 = len + -4;\n  if (iVar11 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (_Bool)cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "show_last_n_error_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  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  char *pcVar7;\n  int extraout_ECX;\n  int extraout_ECX_00;\n  int maxoutlen;\n  int extraout_ECX_01;\n  uint uVar8;\n  undefined4 uVar9;\n  ushort *puVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char str [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar11 = len + -4;\n  if (iVar11 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (_Bool)cVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type 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 maxoutlen;" primitive_type identifier ;) (declaration "int extraout_ECX_01;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "ushort *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char str [128];" primitive_type (array_declarator "str [128]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "iVar11 = len + -4;" (assignment_expression "iVar11 = len + -4" identifier = (binary_expression "len + -4" identifier + number_literal)) ;) (if_statement "if (iVar11 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" if (parenthesized_expression "(iVar11 < 4)" ( (binary_expression "iVar11 < 4" identifier < number_literal) )) (compound_statement "{\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }" { (expression_statement "puts("No error events logged");" (call_expression "puts("No error events logged")" identifier (argument_list "("No error events logged")" ( (string_literal ""No error events logged"" " string_content ") ))) ;) (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }) (else_clause "else {\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" else (compound_statement "{\n    puVar10 = (ushort *)(resp + 4);\n    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" { (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) )))) ;) (if_statement "if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {\n      puts("Last n error events page  [0x7]");\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 error events page  [0x7]");\n    }" { (expression_statement "puts("Last n error events page  [0x7]");" (call_expression "puts("Last n error events page  [0x7]")" identifier (argument_list "("Last n error events page  [0x7]")" ( (string_literal ""Last n error events page  [0x7]"" " string_content ") ))) ;) })) (do_statement "do {\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    } while (2 < iVar11);" do (compound_statement "{\n      uVar5 = (uint)*(byte *)((int)puVar10 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = op->filter_given;\n      uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);\n      if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }\n      iVar11 = iVar11 - iVar6;\n      puVar10 = (ushort *)((int)puVar10 + iVar6);\n      if (iVar11 < 1) goto LAB_00015100;\n    }" { (expression_statement "uVar5 = (uint)*(byte *)((int)puVar10 + 3);" (assignment_expression "uVar5 = (uint)*(byte *)((int)puVar10 + 3)" identifier = (binary_expression "(uint)*(byte *)((int)puVar10 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (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 "iVar6 = uVar5 + 4;" (assignment_expression "iVar6 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) (expression_statement "cVar4 = op->filter_given;" (assignment_expression "cVar4 = op->filter_given" identifier = (field_expression "op->filter_given" identifier -> field_identifier)) ;) (expression_statement "uVar8 = (uint)(ushort)(*puVar10 << 8 | *puVar10 >> 8);" (assignment_expression "uVar8 = (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)) )))) ;) (if_statement "if ((_Bool)cVar4 == false) {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "((_Bool)cVar4 == false)" ( (binary_expression "(_Bool)cVar4 == false" (cast_expression "(_Bool)cVar4" ( (type_descriptor "_Bool" type_identifier) ) identifier) == false) )) (compound_statement "{\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        maxoutlen = extraout_ECX;\n        if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }\nLAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }" { (labeled_statement "LAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);" statement_identifier : (expression_statement "__printf_chk(1,"  Error event %d:\n",uVar8);" (call_expression "__printf_chk(1,"  Error event %d:\n",uVar8)" identifier (argument_list "(1,"  Error event %d:\n",uVar8)" ( number_literal , (string_literal ""  Error event %d:\n"" " string_content escape_sequence ") , identifier ))) ;)) (expression_statement "maxoutlen = extraout_ECX;" (assignment_expression "maxoutlen = extraout_ECX" identifier = identifier) ;) (if_statement "if (iVar6 != 4) {\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }" if (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) (compound_statement "{\n          if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(pcVar7);\n          hex2stdout(puVar10 + 2,uVar5,1);\n          maxoutlen = extraout_ECX_01;\n        }" { (if_statement "if ((puVar10[1] & 3) == 3) {\n            pcVar7 = "    [binary]:";\n          }\n          else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }" if (parenthesized_expression "((puVar10[1] & 3) == 3)" ( (binary_expression "(puVar10[1] & 3) == 3" (parenthesized_expression "(puVar10[1] & 3)" ( (binary_expression "puVar10[1] & 3" (subscript_expression "puVar10[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n            pcVar7 = "    [binary]:";\n          }" { (expression_statement "pcVar7 = "    [binary]:";" (assignment_expression "pcVar7 = "    [binary]:"" identifier = (string_literal ""    [binary]:"" " string_content ")) ;) }) (else_clause "else {\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }" else (compound_statement "{\n            if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }\n            pcVar7 = "    [data counter?? (LP bit should be set)]:";\n          }" { (if_statement "if ((puVar10[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }" if (parenthesized_expression "((puVar10[1] & 1) != 0)" ( (binary_expression "(puVar10[1] & 1) != 0" (parenthesized_expression "(puVar10[1] & 1)" ( (binary_expression "puVar10[1] & 1" (subscript_expression "puVar10[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n              __printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);\n              maxoutlen = extraout_ECX_00;\n              goto LAB_000150c8;\n            }" { (expression_statement "__printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2);" (call_expression "__printf_chk(1,"    %.*s\n",uVar5,puVar10 + 2)" identifier (argument_list "(1,"    %.*s\n",uVar5,puVar10 + 2)" ( number_literal , (string_literal ""    %.*s\n"" " string_content escape_sequence ") , identifier , (binary_expression "puVar10 + 2" identifier + number_literal) ))) ;) (expression_statement "maxoutlen = extraout_ECX_00;" (assignment_expression "maxoutlen = extraout_ECX_00" identifier = identifier) ;) (goto_statement "goto LAB_000150c8;" goto statement_identifier ;) })) (expression_statement "pcVar7 = "    [data counter?? (LP bit should be set)]:";" (assignment_expression "pcVar7 = "    [data counter?? (LP bit should be set)]:"" identifier = (string_literal ""    [data counter?? (LP bit should be set)]:"" " string_content ")) ;) }))) (expression_statement "puts(pcVar7);" (call_expression "puts(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "hex2stdout(puVar10 + 2,uVar5,1);" (call_expression "hex2stdout(puVar10 + 2,uVar5,1)" identifier (argument_list "(puVar10 + 2,uVar5,1)" ( (binary_expression "puVar10 + 2" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "maxoutlen = extraout_ECX_01;" (assignment_expression "maxoutlen = extraout_ECX_01" identifier = identifier) ;) })) (labeled_statement "LAB_000150c8:\n        if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }" statement_identifier : (if_statement "if (op->do_pcb == false) {\n          cVar4 = op->filter_given;\n        }\n        else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }" if (parenthesized_expression "(op->do_pcb == false)" ( (binary_expression "op->do_pcb == false" (field_expression "op->do_pcb" identifier -> field_identifier) == false) )) (compound_statement "{\n          cVar4 = op->filter_given;\n        }" { (expression_statement "cVar4 = op->filter_given;" (assignment_expression "cVar4 = op->filter_given" identifier = (field_expression "op->filter_given" identifier -> field_identifier)) ;) }) (else_clause "else {\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }" else (compound_statement "{\n          pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);\n          __printf_chk(1,&DAT_0002c460,pcVar7);\n          cVar4 = op->filter_given;\n        }" { (expression_statement "pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen);" (assignment_expression "pcVar7 = get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen)" identifier = (call_expression "get_pcb_str((uint)(byte)puVar10[1],str,maxoutlen)" identifier (argument_list "((uint)(byte)puVar10[1],str,maxoutlen)" ( (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 ))) ;) (expression_statement "cVar4 = op->filter_given;" (assignment_expression "cVar4 = op->filter_given" identifier = (field_expression "op->filter_given" identifier -> field_identifier)) ;) })))) (if_statement "if (cVar4 != '\0') goto LAB_00015100;" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) (else_clause "else if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }" else (if_statement "if (op->filter == uVar8) {\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "(op->filter == uVar8)" ( (binary_expression "op->filter == uVar8" (field_expression "op->filter" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (op->do_hex == 0) goto LAB_00015076;\n        uVar9 = 0xffffffff;\n        if (op->do_hex == 1) {\n          uVar9 = 1;\n        }\n        hex2stdout(puVar10,iVar6,uVar9);\n        goto LAB_00015105;\n      }" { (if_statement "if (op->do_raw != false) {\n          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\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          puVar1 = (ushort *)((int)puVar10 + iVar6);\n          do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }" { (expression_statement "puVar1 = (ushort *)((int)puVar10 + iVar6);" (assignment_expression "puVar1 = (ushort *)((int)puVar10 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar10 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + iVar6)" ( (binary_expression "(int)puVar10 + iVar6" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar10);" do (compound_statement "{\n            uVar3 = *puVar10;\n            puVar10 = (ushort *)((int)puVar10 + 1);\n            putchar((uint)(byte)uVar3);\n          }" { (expression_statement "uVar3 = *puVar10;" (assignment_expression "uVar3 = *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)uVar3);" (call_expression "putchar((uint)(byte)uVar3)" identifier (argument_list "((uint)(byte)uVar3)" ( (cast_expression "(uint)(byte)uVar3" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar1 != puVar10)" ( (binary_expression "puVar1 != puVar10" identifier != identifier) )) ;) (labeled_statement "LAB_00015100:\n          cVar4 = '\x01';" statement_identifier : (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;)) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })) (if_statement "if (op->do_hex == 0) goto LAB_00015076;" if (parenthesized_expression "(op->do_hex == 0)" ( (binary_expression "op->do_hex == 0" (field_expression "op->do_hex" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_00015076;" goto statement_identifier ;)) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (op->do_hex == 1) {\n          uVar9 = 1;\n        }" if (parenthesized_expression "(op->do_hex == 1)" ( (binary_expression "op->do_hex == 1" (field_expression "op->do_hex" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n          uVar9 = 1;\n        }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar10,iVar6,uVar9);" (call_expression "hex2stdout(puVar10,iVar6,uVar9)" identifier (argument_list "(puVar10,iVar6,uVar9)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })))) (expression_statement "iVar11 = iVar11 - iVar6;" (assignment_expression "iVar11 = iVar11 - iVar6" identifier = (binary_expression "iVar11 - iVar6" identifier - identifier)) ;) (expression_statement "puVar10 = (ushort *)((int)puVar10 + iVar6);" (assignment_expression "puVar10 = (ushort *)((int)puVar10 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar10 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + iVar6)" ( (binary_expression "(int)puVar10 + iVar6" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (if_statement "if (iVar11 < 1) goto LAB_00015100;" if (parenthesized_expression "(iVar11 < 1)" ( (binary_expression "iVar11 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) while (parenthesized_expression "(2 < iVar11)" ( (binary_expression "2 < iVar11" number_literal < identifier) )) ;) (expression_statement "puts("short Last n error events page");" (call_expression "puts("short Last n error events page")" identifier (argument_list "("short Last n error events page")" ( (string_literal ""short Last n error events page"" " string_content ") ))) ;) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (labeled_statement "LAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (_Bool)cVar4;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (_Bool)cVar4;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return (_Bool)cVar4;\n  }" { (return_statement "return (_Bool)cVar4;" return (cast_expression "(_Bool)cVar4" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char FUN_00014fa0(int param_1,int param_2,int param_3)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    \n  FUN_00023f50();\n}\n\n" (function_definition "char FUN_00014fa0(int param_1,int param_2,int param_3)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    \n  FUN_00023f50();\n}" primitive_type (function_declarator "FUN_00014fa0(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  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    \n  FUN_00023f50();\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "param_2 = param_2 + -4;" (assignment_expression "param_2 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (if_statement "if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }" { (expression_statement "puts("No error events logged");" (call_expression "puts("No error events logged")" identifier (argument_list "("No error events logged")" ( (string_literal ""No error events logged"" " string_content ") ))) ;) (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }) (else_clause "else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" else (compound_statement "{\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" { (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) )))) ;) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\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 error events page  [0x7]");\n    }" { (expression_statement "puts("Last n error events page  [0x7]");" (call_expression "puts("Last n error events page  [0x7]")" identifier (argument_list "("Last n error events page  [0x7]")" ( (string_literal ""Last n error events page  [0x7]"" " string_content ") ))) ;) })) (do_statement "do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);" do (compound_statement "{\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    }" { (expression_statement "uVar5 = (uint)*(byte *)((int)puVar9 + 3);" (assignment_expression "uVar5 = (uint)*(byte *)((int)puVar9 + 3)" identifier = (binary_expression "(uint)*(byte *)((int)puVar9 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (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 "iVar6 = uVar5 + 4;" (assignment_expression "iVar6 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) (expression_statement "uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar8 = (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)) )))) ;) (if_statement "if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }" { (labeled_statement "LAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);" statement_identifier : (expression_statement "__printf_chk(1,"  Error event %d:\n",uVar8);" (call_expression "__printf_chk(1,"  Error event %d:\n",uVar8)" identifier (argument_list "(1,"  Error event %d:\n",uVar8)" ( number_literal , (string_literal ""  Error event %d:\n"" " string_content escape_sequence ") , identifier ))) ;)) (if_statement "if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" if (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) (compound_statement "{\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" { (if_statement "if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" if (parenthesized_expression "((puVar9[1] & 3) == 3)" ( (binary_expression "(puVar9[1] & 3) == 3" (parenthesized_expression "(puVar9[1] & 3)" ( (binary_expression "puVar9[1] & 3" (subscript_expression "puVar9[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n            __s = "    [binary]:";\n          }" { (expression_statement "__s = "    [binary]:";" (assignment_expression "__s = "    [binary]:"" identifier = (string_literal ""    [binary]:"" " string_content ")) ;) }) (else_clause "else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" else (compound_statement "{\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" { (if_statement "if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" if (parenthesized_expression "((puVar9[1] & 1) != 0)" ( (binary_expression "(puVar9[1] & 1) != 0" (parenthesized_expression "(puVar9[1] & 1)" ( (binary_expression "puVar9[1] & 1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" { (expression_statement "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);" (call_expression "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2)" identifier (argument_list "(1,"    %.*s\n",uVar5,puVar9 + 2)" ( number_literal , (string_literal ""    %.*s\n"" " string_content escape_sequence ") , identifier , (binary_expression "puVar9 + 2" identifier + number_literal) ))) ;) (goto_statement "goto LAB_000150c8;" goto statement_identifier ;) })) (expression_statement "__s = "    [data counter?? (LP bit should be set)]:";" (assignment_expression "__s = "    [data counter?? (LP bit should be set)]:"" identifier = (string_literal ""    [data counter?? (LP bit should be set)]:"" " string_content ")) ;) }))) (expression_statement "puts(__s);" (call_expression "puts(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "hex2stdout(puVar9 + 2,uVar5,1);" (call_expression "hex2stdout(puVar9 + 2,uVar5,1)" identifier (argument_list "(puVar9 + 2,uVar5,1)" ( (binary_expression "puVar9 + 2" identifier + number_literal) , identifier , number_literal ))) ;) })) (labeled_statement "LAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" statement_identifier : (if_statement "if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" if (parenthesized_expression "(*(char *)(param_3 + 1) == '\0')" ( (binary_expression "*(char *)(param_3 + 1) == '\0'" (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) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          cVar4 = *(char *)(param_3 + 9);\n        }" { (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) }) (else_clause "else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" else (compound_statement "{\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" { (expression_statement "uVar7 = FUN_00014e80();" (assignment_expression "uVar7 = FUN_00014e80()" identifier = (call_expression "FUN_00014e80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar7);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar7)" identifier (argument_list "(1,&DAT_0002c460,uVar7)" ( number_literal , (pointer_expression "&DAT_0002c460" & identifier) , identifier ))) ;) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" identifier = (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) ))))) ;) })))) (if_statement "if (cVar4 != '\0') goto LAB_00015100;" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" else (if_statement "if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" if (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar8)" ( (binary_expression "*(uint *)(param_3 + 0x34) == uVar8" (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          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" { (if_statement "if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\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          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }" { (expression_statement "puVar1 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar1 = (ushort *)((int)puVar9 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar9 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar6)" ( (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);" do (compound_statement "{\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          }" { (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *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)uVar3);" (call_expression "putchar((uint)(byte)uVar3)" identifier (argument_list "((uint)(byte)uVar3)" ( (cast_expression "(uint)(byte)uVar3" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ))) ;) }) while (parenthesized_expression "(puVar1 != puVar9)" ( (binary_expression "puVar1 != puVar9" identifier != identifier) )) ;) (labeled_statement "LAB_00015100:\n          cVar4 = '\x01';" statement_identifier : (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;)) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;" if (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) )) (goto_statement "goto LAB_00015076;" goto statement_identifier ;)) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }" if (parenthesized_expression "(*(int *)(param_3 + 0x20) == 1)" ( (binary_expression "*(int *)(param_3 + 0x20) == 1" (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          uVar7 = 1;\n        }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "hex2stdout(puVar9,iVar6,uVar7);" (call_expression "hex2stdout(puVar9,iVar6,uVar7)" identifier (argument_list "(puVar9,iVar6,uVar7)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00015105;" goto statement_identifier ;) })))) (expression_statement "param_2 = param_2 - iVar6;" (assignment_expression "param_2 = param_2 - iVar6" identifier = (binary_expression "param_2 - iVar6" identifier - identifier)) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + iVar6)" identifier = (cast_expression "(ushort *)((int)puVar9 + iVar6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + iVar6)" ( (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (if_statement "if (param_2 < 1) goto LAB_00015100;" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00015100;" goto statement_identifier ;)) }) while (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) ;) (expression_statement "puts("short Last n error events page");" (call_expression "puts("short Last n error events page")" identifier (argument_list "("short Last n error events page")" ( (string_literal ""short Last n error events page"" " string_content ") ))) ;) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (labeled_statement "LAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return cVar4;\n  }" { (return_statement "return cVar4;" return identifier ;) }))) (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" identifier (argument_list "()" ( ))) ;) })))
(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 (pointer_declarator * 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) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 ") ))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , (binary_expression IDENT + LIT) ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , 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 IDENT != (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + 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) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (goto_statement goto 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) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) (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 { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "char FUN_00014fa0(int param_1,int param_2,int param_3)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    \n  FUN_00023f50();\n}" (primitive_type "char") (function_declarator "FUN_00014fa0(int param_1,int param_2,int param_3)" (identifier "FUN_00014fa0") (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  ushort *puVar1;\n  int iVar2;\n  ushort uVar3;\n  char cVar4;\n  uint uVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *__s;\n  uint uVar8;\n  ushort *puVar9;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = param_2 + -4;\n  if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }\nLAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }\n                    \n  FUN_00023f50();\n}" ({ "{") (declaration "ushort *puVar1;" (type_identifier "ushort") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ushort uVar3;" (type_identifier "ushort") (identifier "uVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "ushort *puVar9;" (type_identifier "ushort") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (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"))) (; ";")) (if_statement "if (param_2 < 4) {\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }\n  else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" (if "if") (parenthesized_expression "(param_2 < 4)" (( "(") (binary_expression "param_2 < 4" (identifier "param_2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    puts("No error events logged");\n    cVar4 = '\x01';\n  }" ({ "{") (expression_statement "puts("No error events logged");" (call_expression "puts("No error events logged")" (identifier "puts") (argument_list "("No error events logged")" (( "(") (string_literal ""No error events logged"" (" """) (string_content "No error events logged") (" """)) () ")"))) (; ";")) (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" (identifier "cVar4") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" (else "else") (compound_statement "{\n    puVar9 = (ushort *)(param_1 + 4);\n    if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\n    }\n    do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);\n    puts("short Last n error events page");\n    cVar4 = '\0';\n  }" ({ "{") (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")) () ")")))) (; ";")) (if_statement "if ((*(int *)(param_3 + 0x30) != 0) ||\n       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {\n      puts("Last n error events page  [0x7]");\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 error events page  [0x7]");\n    }" ({ "{") (expression_statement "puts("Last n error events page  [0x7]");" (call_expression "puts("Last n error events page  [0x7]")" (identifier "puts") (argument_list "("Last n error events page  [0x7]")" (( "(") (string_literal ""Last n error events page  [0x7]"" (" """) (string_content "Last n error events page  [0x7]") (" """)) () ")"))) (; ";")) (} "}"))) (do_statement "do {\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    } while (2 < param_2);" (do "do") (compound_statement "{\n      uVar5 = (uint)*(byte *)((int)puVar9 + 3);\n      iVar6 = uVar5 + 4;\n      cVar4 = *(char *)(param_3 + 9);\n      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);\n      if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }\n      param_2 = param_2 - iVar6;\n      puVar9 = (ushort *)((int)puVar9 + iVar6);\n      if (param_2 < 1) goto LAB_00015100;\n    }" ({ "{") (expression_statement "uVar5 = (uint)*(byte *)((int)puVar9 + 3);" (assignment_expression "uVar5 = (uint)*(byte *)((int)puVar9 + 3)" (identifier "uVar5") (= "=") (binary_expression "(uint)*(byte *)((int)puVar9 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (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 "iVar6 = uVar5 + 4;" (assignment_expression "iVar6 = uVar5 + 4" (identifier "iVar6") (= "=") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" (identifier "cVar4") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);" (assignment_expression "uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8)" (identifier "uVar8") (= "=") (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"))) () ")")))) (; ";")) (if_statement "if (cVar4 == '\0') {\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }\n      else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" (if "if") (parenthesized_expression "(cVar4 == '\0')" (( "(") (binary_expression "cVar4 == '\0'" (identifier "cVar4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);\n        if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }\nLAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        if (cVar4 != '\0') goto LAB_00015100;\n      }" ({ "{") (labeled_statement "LAB_00015076:\n        __printf_chk(1,"  Error event %d:\n",uVar8);" (statement_identifier "LAB_00015076") (: ":") (expression_statement "__printf_chk(1,"  Error event %d:\n",uVar8);" (call_expression "__printf_chk(1,"  Error event %d:\n",uVar8)" (identifier "__printf_chk") (argument_list "(1,"  Error event %d:\n",uVar8)" (( "(") (number_literal "1") (, ",") (string_literal ""  Error event %d:\n"" (" """) (string_content "  Error event %d:") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar8") () ")"))) (; ";"))) (if_statement "if (iVar6 != 4) {\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" (if "if") (parenthesized_expression "(iVar6 != 4)" (( "(") (binary_expression "iVar6 != 4" (identifier "iVar6") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n          if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }\n          puts(__s);\n          hex2stdout(puVar9 + 2,uVar5,1);\n        }" ({ "{") (if_statement "if ((puVar9[1] & 3) == 3) {\n            __s = "    [binary]:";\n          }\n          else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" (if "if") (parenthesized_expression "((puVar9[1] & 3) == 3)" (( "(") (binary_expression "(puVar9[1] & 3) == 3" (parenthesized_expression "(puVar9[1] & 3)" (( "(") (binary_expression "puVar9[1] & 3" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "3")) () ")")) (compound_statement "{\n            __s = "    [binary]:";\n          }" ({ "{") (expression_statement "__s = "    [binary]:";" (assignment_expression "__s = "    [binary]:"" (identifier "__s") (= "=") (string_literal ""    [binary]:"" (" """) (string_content "    [binary]:") (" """))) (; ";")) (} "}")) (else_clause "else {\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" (else "else") (compound_statement "{\n            if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }\n            __s = "    [data counter?? (LP bit should be set)]:";\n          }" ({ "{") (if_statement "if ((puVar9[1] & 1) != 0) {\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" (if "if") (parenthesized_expression "((puVar9[1] & 1) != 0)" (( "(") (binary_expression "(puVar9[1] & 1) != 0" (parenthesized_expression "(puVar9[1] & 1)" (( "(") (binary_expression "puVar9[1] & 1" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);\n              goto LAB_000150c8;\n            }" ({ "{") (expression_statement "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);" (call_expression "__printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2)" (identifier "__printf_chk") (argument_list "(1,"    %.*s\n",uVar5,puVar9 + 2)" (( "(") (number_literal "1") (, ",") (string_literal ""    %.*s\n"" (" """) (string_content "    %.*s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar5") (, ",") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2")) () ")"))) (; ";")) (goto_statement "goto LAB_000150c8;" (goto "goto") (statement_identifier "LAB_000150c8") (; ";")) (} "}"))) (expression_statement "__s = "    [data counter?? (LP bit should be set)]:";" (assignment_expression "__s = "    [data counter?? (LP bit should be set)]:"" (identifier "__s") (= "=") (string_literal ""    [data counter?? (LP bit should be set)]:"" (" """) (string_content "    [data counter?? (LP bit should be set)]:") (" """))) (; ";")) (} "}")))) (expression_statement "puts(__s);" (call_expression "puts(__s)" (identifier "puts") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "hex2stdout(puVar9 + 2,uVar5,1);" (call_expression "hex2stdout(puVar9 + 2,uVar5,1)" (identifier "hex2stdout") (argument_list "(puVar9 + 2,uVar5,1)" (( "(") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2")) (, ",") (identifier "uVar5") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_000150c8:\n        if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" (statement_identifier "LAB_000150c8") (: ":") (if_statement "if (*(char *)(param_3 + 1) == '\0') {\n          cVar4 = *(char *)(param_3 + 9);\n        }\n        else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 1) == '\0')" (( "(") (binary_expression "*(char *)(param_3 + 1) == '\0'" (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")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          cVar4 = *(char *)(param_3 + 9);\n        }" ({ "{") (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" (identifier "cVar4") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" (else "else") (compound_statement "{\n          uVar7 = FUN_00014e80();\n          __printf_chk(1,&DAT_0002c460,uVar7);\n          cVar4 = *(char *)(param_3 + 9);\n        }" ({ "{") (expression_statement "uVar7 = FUN_00014e80();" (assignment_expression "uVar7 = FUN_00014e80()" (identifier "uVar7") (= "=") (call_expression "FUN_00014e80()" (identifier "FUN_00014e80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,&DAT_0002c460,uVar7);" (call_expression "__printf_chk(1,&DAT_0002c460,uVar7)" (identifier "__printf_chk") (argument_list "(1,&DAT_0002c460,uVar7)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0002c460" (& "&") (identifier "DAT_0002c460")) (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "cVar4 = *(char *)(param_3 + 9);" (assignment_expression "cVar4 = *(char *)(param_3 + 9)" (identifier "cVar4") (= "=") (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")) () ")"))))) (; ";")) (} "}"))))) (if_statement "if (cVar4 != '\0') goto LAB_00015100;" (if "if") (parenthesized_expression "(cVar4 != '\0')" (( "(") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00015100;" (goto "goto") (statement_identifier "LAB_00015100") (; ";"))) (} "}")) (else_clause "else if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" (else "else") (if_statement "if (*(uint *)(param_3 + 0x34) == uVar8) {\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" (if "if") (parenthesized_expression "(*(uint *)(param_3 + 0x34) == uVar8)" (( "(") (binary_expression "*(uint *)(param_3 + 0x34) == uVar8" (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 "uVar8")) () ")")) (compound_statement "{\n        if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }\n        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;\n        uVar7 = 0xffffffff;\n        if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }\n        hex2stdout(puVar9,iVar6,uVar7);\n        goto LAB_00015105;\n      }" ({ "{") (if_statement "if (*(char *)(param_3 + 3) != '\0') {\n          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\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          puVar1 = (ushort *)((int)puVar9 + iVar6);\n          do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);\nLAB_00015100:\n          cVar4 = '\x01';\n          goto LAB_00015105;\n        }" ({ "{") (expression_statement "puVar1 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar1 = (ushort *)((int)puVar9 + iVar6)" (identifier "puVar1") (= "=") (cast_expression "(ushort *)((int)puVar9 + iVar6)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + iVar6)" (( "(") (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (do_statement "do {\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          } while (puVar1 != puVar9);" (do "do") (compound_statement "{\n            uVar3 = *puVar9;\n            puVar9 = (ushort *)((int)puVar9 + 1);\n            putchar((uint)(byte)uVar3);\n          }" ({ "{") (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *puVar9" (identifier "uVar3") (= "=") (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)uVar3);" (call_expression "putchar((uint)(byte)uVar3)" (identifier "putchar") (argument_list "((uint)(byte)uVar3)" (( "(") (cast_expression "(uint)(byte)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)uVar3" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar3"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar9)" (( "(") (binary_expression "puVar1 != puVar9" (identifier "puVar1") (!= "!=") (identifier "puVar9")) () ")")) (; ";")) (labeled_statement "LAB_00015100:\n          cVar4 = '\x01';" (statement_identifier "LAB_00015100") (: ":") (expression_statement "cVar4 = '\x01';" (assignment_expression "cVar4 = '\x01'" (identifier "cVar4") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";"))) (goto_statement "goto LAB_00015105;" (goto "goto") (statement_identifier "LAB_00015105") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;" (if "if") (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")) () ")")) (goto_statement "goto LAB_00015076;" (goto "goto") (statement_identifier "LAB_00015076") (; ";"))) (expression_statement "uVar7 = 0xffffffff;" (assignment_expression "uVar7 = 0xffffffff" (identifier "uVar7") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x20) == 1) {\n          uVar7 = 1;\n        }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x20) == 1)" (( "(") (binary_expression "*(int *)(param_3 + 0x20) == 1" (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 "1")) () ")")) (compound_statement "{\n          uVar7 = 1;\n        }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "hex2stdout(puVar9,iVar6,uVar7);" (call_expression "hex2stdout(puVar9,iVar6,uVar7)" (identifier "hex2stdout") (argument_list "(puVar9,iVar6,uVar7)" (( "(") (identifier "puVar9") (, ",") (identifier "iVar6") (, ",") (identifier "uVar7") () ")"))) (; ";")) (goto_statement "goto LAB_00015105;" (goto "goto") (statement_identifier "LAB_00015105") (; ";")) (} "}"))))) (expression_statement "param_2 = param_2 - iVar6;" (assignment_expression "param_2 = param_2 - iVar6" (identifier "param_2") (= "=") (binary_expression "param_2 - iVar6" (identifier "param_2") (- "-") (identifier "iVar6"))) (; ";")) (expression_statement "puVar9 = (ushort *)((int)puVar9 + iVar6);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + iVar6)" (identifier "puVar9") (= "=") (cast_expression "(ushort *)((int)puVar9 + iVar6)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + iVar6)" (( "(") (binary_expression "(int)puVar9 + iVar6" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (if_statement "if (param_2 < 1) goto LAB_00015100;" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_00015100;" (goto "goto") (statement_identifier "LAB_00015100") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(2 < param_2)" (( "(") (binary_expression "2 < param_2" (number_literal "2") (< "<") (identifier "param_2")) () ")")) (; ";")) (expression_statement "puts("short Last n error events page");" (call_expression "puts("short Last n error events page")" (identifier "puts") (argument_list "("short Last n error events page")" (( "(") (string_literal ""short Last n error events page"" (" """) (string_content "short Last n error events page") (" """)) () ")"))) (; ";")) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" (identifier "cVar4") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (labeled_statement "LAB_00015105:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" (statement_identifier "LAB_00015105") (: ":") (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return cVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return cVar4;\n  }" ({ "{") (return_statement "return cVar4;" (return "return") (identifier "cVar4") (; ";")) (} "}")))) (expression_statement "FUN_00023f50();" (call_expression "FUN_00023f50()" (identifier "FUN_00023f50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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_5,int var_2,type_2 *op)

{
  type_3 *var_15;
  int var_16;
  type_3 uVar3;
  char var_12;
  type_4 var_6;
  int var_8;
  char *pcVar7;
  int extraout_ECX;
  int extraout_ECX_00;
  int maxoutlen;
  int extraout_ECX_01;
  type_4 var_13;
  type_5 uVar9;
  type_3 *var_9;
  int var_3;
  int var_1;
  char str [128];
  
  var_16 = *(int *)(var_1 + 0x14);
  var_3 = var_2 + -4;
  if (var_3 < 4) {
    var_4("No error events logged");
    var_12 = '\x01';
  }
  else {
    var_9 = (type_3 *)(var_5 + 4);
    if ((op->verbose != 0) || ((op->do_raw == false && (op->do_hex == 0)))) {
      var_4("Last n error events page  [0x7]");
    }
    do {
      var_6 = (type_4)*(type_6 *)((int)var_9 + 3);
      var_8 = var_6 + 4;
      var_12 = op->filter_given;
      var_13 = (type_4)(type_3)(*var_9 << 8 | *var_9 >> 8);
      if ((type_1)var_12 == false) {
LAB_00015076:
        var_7(1,"  Error event %d:\n",var_13);
        maxoutlen = extraout_ECX;
        if (var_8 != 4) {
          if ((var_9[1] & 3) == 3) {
            pcVar7 = "    [binary]:";
          }
          else {
            if ((var_9[1] & 1) != 0) {
              var_7(1,"    %.*s\n",var_6,var_9 + 2);
              maxoutlen = extraout_ECX_00;
              goto LAB_000150c8;
            }
            pcVar7 = "    [data counter?? (LP bit should be set)]:";
          }
          var_4(pcVar7);
          var_10(var_9 + 2,var_6,1);
          maxoutlen = extraout_ECX_01;
        }
LAB_000150c8:
        if (op->do_pcb == false) {
          var_12 = op->filter_given;
        }
        else {
          pcVar7 = var_11((type_4)(type_6)var_9[1],str,maxoutlen);
          var_7(1,&DAT_0002c460,pcVar7);
          var_12 = op->filter_given;
        }
        if (var_12 != '\0') goto LAB_00015100;
      }
      else if (op->filter == var_13) {
        if (op->do_raw != false) {
          var_15 = (type_3 *)((int)var_9 + var_8);
          do {
            uVar3 = *var_9;
            var_9 = (type_3 *)((int)var_9 + 1);
            var_14((type_4)(type_6)uVar3);
          } while (var_15 != var_9);
LAB_00015100:
          var_12 = '\x01';
          goto LAB_00015105;
        }
        if (op->do_hex == 0) goto LAB_00015076;
        uVar9 = 0xffffffff;
        if (op->do_hex == 1) {
          uVar9 = 1;
        }
        var_10(var_9,var_8,uVar9);
        goto LAB_00015105;
      }
      var_3 = var_3 - var_8;
      var_9 = (type_3 *)((int)var_9 + var_8);
      if (var_3 < 1) goto LAB_00015100;
    } while (2 < var_3);
    var_4("short Last n error events page");
    var_12 = '\0';
  }
LAB_00015105:
  if (var_16 == *(int *)(var_1 + 0x14)) {
    return (type_1)var_12;
  }
                    /* WARNING: Subroutine does not return */
  var_17();
}


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

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

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

{
  ushort *puVar1;
  int iVar2;
  ushort uVar3;
  char cVar4;
  uint uVar5;
  int iVar6;
  undefined4 uVar7;
  char *__s;
  uint uVar8;
  ushort *puVar9;
  int in_GS_OFFSET;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  param_2 = param_2 + -4;
  if (param_2 < 4) {
    puts("No error events logged");
    cVar4 = '\x01';
  }
  else {
    puVar9 = (ushort *)(param_1 + 4);
    if ((*(int *)(param_3 + 0x30) != 0) ||
       ((*(char *)(param_3 + 3) == '\0' && (*(int *)(param_3 + 0x20) == 0)))) {
      puts("Last n error events page  [0x7]");
    }
    do {
      uVar5 = (uint)*(byte *)((int)puVar9 + 3);
      iVar6 = uVar5 + 4;
      cVar4 = *(char *)(param_3 + 9);
      uVar8 = (uint)(ushort)(*puVar9 << 8 | *puVar9 >> 8);
      if (cVar4 == '\0') {
LAB_00015076:
        __printf_chk(1,"  Error event %d:\n",uVar8);
        if (iVar6 != 4) {
          if ((puVar9[1] & 3) == 3) {
            __s = "    [binary]:";
          }
          else {
            if ((puVar9[1] & 1) != 0) {
              __printf_chk(1,"    %.*s\n",uVar5,puVar9 + 2);
              goto LAB_000150c8;
            }
            __s = "    [data counter?? (LP bit should be set)]:";
          }
          puts(__s);
          hex2stdout(puVar9 + 2,uVar5,1);
        }
LAB_000150c8:
        if (*(char *)(param_3 + 1) == '\0') {
          cVar4 = *(char *)(param_3 + 9);
        }
        else {
          uVar7 = FUN_00014e80();
          __printf_chk(1,&DAT_0002c460,uVar7);
          cVar4 = *(char *)(param_3 + 9);
        }
        if (cVar4 != '\0') goto LAB_00015100;
      }
      else if (*(uint *)(param_3 + 0x34) == uVar8) {
        if (*(char *)(param_3 + 3) != '\0') {
          puVar1 = (ushort *)((int)puVar9 + iVar6);
          do {
            uVar3 = *puVar9;
            puVar9 = (ushort *)((int)puVar9 + 1);
            putchar((uint)(byte)uVar3);
          } while (puVar1 != puVar9);
LAB_00015100:
          cVar4 = '\x01';
          goto LAB_00015105;
        }
        if (*(int *)(param_3 + 0x20) == 0) goto LAB_00015076;
        uVar7 = 0xffffffff;
        if (*(int *)(param_3 + 0x20) == 1) {
          uVar7 = 1;
        }
        hex2stdout(puVar9,iVar6,uVar7);
        goto LAB_00015105;
      }
      param_2 = param_2 - iVar6;
      puVar9 = (ushort *)((int)puVar9 + iVar6);
      if (param_2 < 1) goto LAB_00015100;
    } while (2 < param_2);
    puts("short Last n error events page");
    cVar4 = '\0';
  }
LAB_00015105:
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return cVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00023f50();
}

