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

int tape_data_compression(mpage_info *mpi,char *prefix)

{
  int iVar1;
  mpage_name_func *pmVar2;
  char *pcVar3;
  uint8_t *in_ECX;
  char *text;
  char *text_00;
  int in_GS_OFFSET;
  char *in_stack_ffffffb8;
  char *in_stack_ffffffbc;
  int iVar4;
  uint8_t **in_stack_ffffffc4;
  uint8_t *pagestart;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ccc9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = get_mode_page(mpi,0x58780,in_ECX);
  if (iVar1 != 0) {
    putchar(10);
    goto LAB_0001cddd;
  }
  iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4);
  if (iVar1 != 0) goto LAB_0001cddd;
  if (*prefix == '\0') {
    if (x_interface == '\0' && replace == '\0') {
LAB_0001ce48:
      iVar4 = mpi->page;
      if (iVar4 == 0x3f) {
        in_stack_ffffffbc = "List supported pages and subpages";
        if (mpi->subpage != 0xff) {
          in_stack_ffffffbc = "List supported pages";
        }
      }
      else {
        pmVar2 = get_mpage_name_func(mpi);
        if ((pmVar2 == (mpage_name_func *)0x0) ||
           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {
          if (mpi->subpage == 0) {
            pcVar3 = "page number=0x%x";
          }
          else {
            pcVar3 = "page number=0x%x, subpage number=0x%x";
          }
          in_stack_ffffffbc = unkn_page_str;
          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);
        }
      }
      in_stack_ffffffb8 = "%s mode page (0x%x)\n";
      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);
      puts("----------------------------------------------------");
    }
  }
  else {
    in_stack_ffffffb8 = "%s";
    __printf_chk(1);
    in_stack_ffffffbc = prefix;
    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;
  }
  bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4);
  bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4);
  iVar4 = 0x1cd77;
  bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4);
  bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4);
  intfield(pagestart + 4,0x1febe,text);
  intfield(pagestart + 8,0x1fed4,text_00);
  if ((x_interface == '\0') || (replace == '\0')) {
    putchar(10);
  }
  else {
    iVar1 = put_mode_page(mpi,cbuffer);
  }
LAB_0001cddd:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar1;
}



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

int FUN_0001ccc0(int *param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_000177a0();
  if (iVar3 != 0) {
    putchar(10);
    goto LAB_0001cddd;
  }
  iVar3 = FUN_00014f40();
  if (iVar3 != 0) goto LAB_0001cddd;
  if (*param_2 == '\0') {
    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {
LAB_0001ce48:
      iVar2 = *param_1;
      if (iVar2 == 0x3f) {
        pcVar5 = "List supported pages and subpages";
        if (param_1[1] != 0xff) {
          pcVar5 = "List supported pages";
        }
      }
      else {
        iVar4 = FUN_000167e0(param_1);
        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {
          if (param_1[1] == 0) {
            pcVar6 = "page number=0x%x";
          }
          else {
            pcVar6 = "page number=0x%x, subpage number=0x%x";
          }
          pcVar5 = &DAT_000504e0;
          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);
        }
      }
      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);
      puts("----------------------------------------------------");
    }
  }
  else {
    __printf_chk(1,&DAT_0001f095,param_2);
    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;
  }
  FUN_00014860();
  FUN_00014860();
  FUN_00014860();
  FUN_00014710(5);
  FUN_00014d20();
  FUN_00014d20();
  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {
    putchar(10);
  }
  else {
    iVar3 = FUN_000173d0();
  }
LAB_0001cddd:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001ee20();
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000129c0
ADD EBX,0xb26f
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x44]
MOV EAX,EDI
LEA EDX,[EBX + 0x30848]
CALL 0x000177a0
TEST EAX,EAX
JNZ 0x0001ce30
LEA ECX,[ESP + 0x18]
MOV EDX,0x6
MOV EAX,EDI
CALL 0x00014f40
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0001cddd
CMP byte ptr [EBP],0x0
JNZ 0x0001ce00
MOVZX EAX,byte ptr [EBX + 0x28833]
OR AL,byte ptr [EBX + 0x28835]
JZ 0x0001ce48
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x7
LEA EDX,[EBX + 0xffff7f76]
ADD EAX,0x2
CALL 0x00014860
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x6
LEA EDX,[EBX + 0xffff7f7a]
ADD EAX,0x2
CALL 0x00014860
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x7
LEA EDX,[EBX + 0xffff7f7e]
ADD EAX,0x3
CALL 0x00014860
MOV EAX,dword ptr [ESP + 0x18]
SUB ESP,0xc
MOV ECX,0x3
PUSH 0x5
LEA EDX,[EBX + 0xffff7f82]
ADD EAX,0x3
CALL 0x00014710
MOV EAX,dword ptr [ESP + 0x28]
LEA EDX,[EBX + 0xffff7f86]
ADD EAX,0x4
CALL 0x00014d20
MOV EAX,dword ptr [ESP + 0x28]
LEA EDX,[EBX + 0xffff7f9c]
ADD EAX,0x8
CALL 0x00014d20
ADD ESP,0x10
CMP byte ptr [EBX + 0x28833],0x0
JZ 0x0001cdd0
CMP byte ptr [EBX + 0x28835],0x0
JNZ 0x0001ce90
SUB ESP,0xc
PUSH 0xa
CALL 0x00011190
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001cf0c
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff715d]
PUSH EBP
PUSH EAX
PUSH 0x1
CALL 0x000111c0
ADD ESP,0x10
MOVZX EAX,byte ptr [EBX + 0x28833]
OR AL,byte ptr [EBX + 0x28835]
JNZ 0x0001cd32
JMP 0x0001ce48
SUB ESP,0xc
MOV ESI,EAX
PUSH 0xa
CALL 0x00011190
ADD ESP,0x10
JMP 0x0001cddd
MOV EBP,dword ptr [EDI]
CMP EBP,0x3f
JZ 0x0001cee0
SUB ESP,0xc
PUSH EDI
CALL 0x000167e0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001cea8
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x0001cea8
PUSH EBP
PUSH EAX
LEA EAX,[EBX + 0xffff731b]
PUSH EAX
PUSH 0x1
CALL 0x000111c0
LEA EAX,[EBX + 0xffff9b80]
MOV dword ptr [ESP],EAX
CALL 0x00011100
ADD ESP,0x10
JMP 0x0001cd32
LEA EDX,[EBX + 0x30848]
MOV EAX,EDI
CALL 0x000173d0
MOV ESI,EAX
JMP 0x0001cddd
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JZ 0x0001cf00
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff9844]
PUSH EBP
LEA EDX,[EBX + 0x285a8]
PUSH EAX
PUSH 0x40
PUSH 0x1
PUSH 0x40
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x00011050
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,EDX
JMP 0x0001ce6a
CMP dword ptr [EDI + 0x4],0xff
LEA EAX,[EBX + 0xffff9820]
JZ 0x0001ce6a
LEA EAX,[EBX + 0xffff72ea]
JMP 0x0001ce6a
SUB ESP,0x8
LEA EAX,[EBX + 0xffff72ff]
PUSH EBP
JMP 0x0001ceba
CALL 0x0001ee20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001ccc0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_0001ccc0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0001ccc0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_000177a0();" (assignment_expression "iVar3 = FUN_000177a0()" identifier = (call_expression "FUN_000177a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    putchar(10);\n    goto LAB_0001cddd;\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;) })) (expression_statement "iVar3 = FUN_00014f40();" (assignment_expression "iVar3 = FUN_00014f40()" identifier = (call_expression "FUN_00014f40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0001cddd;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;)) (if_statement "if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }" { (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" if (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" { (labeled_statement "LAB_0001ce48:\n      iVar2 = *param_1;" statement_identifier : (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" if (parenthesized_expression "(iVar2 == 0x3f)" ( (binary_expression "iVar2 == 0x3f" identifier == number_literal) )) (compound_statement "{\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }" { (expression_statement "pcVar5 = "List supported pages and subpages";" (assignment_expression "pcVar5 = "List supported pages and subpages"" identifier = (string_literal ""List supported pages and subpages"" " string_content ")) ;) (if_statement "if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }" if (parenthesized_expression "(param_1[1] != 0xff)" ( (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          pcVar5 = "List supported pages";\n        }" { (expression_statement "pcVar5 = "List supported pages";" (assignment_expression "pcVar5 = "List supported pages"" identifier = (string_literal ""List supported pages"" " string_content ")) ;) })) }) (else_clause "else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" else (compound_statement "{\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" { (expression_statement "iVar4 = FUN_000167e0(param_1);" (assignment_expression "iVar4 = FUN_000167e0(param_1)" identifier = (call_expression "FUN_000167e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" if (parenthesized_expression "((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0))" ( (binary_expression "(iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" ( (comma_expression "pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = *(char **)(iVar4 + 0xc)" identifier = (pointer_expression "*(char **)(iVar4 + 0xc)" * (cast_expression "(char **)(iVar4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) , (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" { (if_statement "if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar6 = "page number=0x%x";\n          }" { (expression_statement "pcVar6 = "page number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x"" identifier = (string_literal ""page number=0x%x"" " string_content ")) ;) }) (else_clause "else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" else (compound_statement "{\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" { (expression_statement "pcVar6 = "page number=0x%x, subpage number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x, subpage number=0x%x"" identifier = (string_literal ""page number=0x%x, subpage number=0x%x"" " string_content ")) ;) }))) (expression_statement "pcVar5 = &DAT_000504e0;" (assignment_expression "pcVar5 = &DAT_000504e0" identifier = (pointer_expression "&DAT_000504e0" & identifier)) ;) (expression_statement "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);" (call_expression "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" identifier (argument_list "(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" ( (pointer_expression "&DAT_000504e0" & identifier) , number_literal , number_literal , number_literal , identifier , identifier ))) ;) })) }))) (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" identifier (argument_list "(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) }) (else_clause "else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" else (compound_statement "{\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" { (expression_statement "__printf_chk(1,&DAT_0001f095,param_2);" (call_expression "__printf_chk(1,&DAT_0001f095,param_2)" identifier (argument_list "(1,&DAT_0001f095,param_2)" ( number_literal , (pointer_expression "&DAT_0001f095" & identifier) , identifier ))) ;) (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;" if (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0001ce48;" goto statement_identifier ;)) }))) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014710(5);" (call_expression "FUN_00014710(5)" identifier (argument_list "(5)" ( number_literal ))) ;) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }" if (parenthesized_expression "((DAT_0005076b == '\0') || (DAT_0005076d == '\0'))" ( (binary_expression "(DAT_0005076b == '\0') || (DAT_0005076d == '\0')" (parenthesized_expression "(DAT_0005076b == '\0')" ( (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    putchar(10);\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n    iVar3 = FUN_000173d0();\n  }" else (compound_statement "{\n    iVar3 = FUN_000173d0();\n  }" { (expression_statement "iVar3 = FUN_000173d0();" (assignment_expression "iVar3 = FUN_000173d0()" identifier = (call_expression "FUN_000173d0()" identifier (argument_list "()" ( )))) ;) }))) (labeled_statement "LAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0001ee20();\n  }" { comment (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint tape_data_compression(mpage_info *mpi,char *prefix)\n\n{\n  int iVar1;\n  mpage_name_func *pmVar2;\n  char *pcVar3;\n  uint8_t *in_ECX;\n  char *text;\n  char *text_00;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb8;\n  char *in_stack_ffffffbc;\n  int iVar4;\n  uint8_t **in_stack_ffffffc4;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ccc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = get_mode_page(mpi,0x58780,in_ECX);\n  if (iVar1 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4);\n  if (iVar1 != 0) goto LAB_0001cddd;\n  if (*prefix == '\0') {\n    if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }\n  bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4);\n  bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4);\n  iVar4 = 0x1cd77;\n  bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4);\n  bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4);\n  intfield(pagestart + 4,0x1febe,text);\n  intfield(pagestart + 8,0x1fed4,text_00);\n  if ((x_interface == '\0') || (replace == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }\nLAB_0001cddd:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int tape_data_compression(mpage_info *mpi,char *prefix)\n\n{\n  int iVar1;\n  mpage_name_func *pmVar2;\n  char *pcVar3;\n  uint8_t *in_ECX;\n  char *text;\n  char *text_00;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb8;\n  char *in_stack_ffffffbc;\n  int iVar4;\n  uint8_t **in_stack_ffffffc4;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ccc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = get_mode_page(mpi,0x58780,in_ECX);\n  if (iVar1 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4);\n  if (iVar1 != 0) goto LAB_0001cddd;\n  if (*prefix == '\0') {\n    if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }\n  bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4);\n  bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4);\n  iVar4 = 0x1cd77;\n  bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4);\n  bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4);\n  intfield(pagestart + 4,0x1febe,text);\n  intfield(pagestart + 8,0x1fed4,text_00);\n  if ((x_interface == '\0') || (replace == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }\nLAB_0001cddd:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "tape_data_compression(mpage_info *mpi,char *prefix)" identifier (parameter_list "(mpage_info *mpi,char *prefix)" ( (parameter_declaration "mpage_info *mpi" type_identifier (pointer_declarator "*mpi" * identifier)) , (parameter_declaration "char *prefix" primitive_type (pointer_declarator "*prefix" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  mpage_name_func *pmVar2;\n  char *pcVar3;\n  uint8_t *in_ECX;\n  char *text;\n  char *text_00;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb8;\n  char *in_stack_ffffffbc;\n  int iVar4;\n  uint8_t **in_stack_ffffffc4;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ccc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = get_mode_page(mpi,0x58780,in_ECX);\n  if (iVar1 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4);\n  if (iVar1 != 0) goto LAB_0001cddd;\n  if (*prefix == '\0') {\n    if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }\n  bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4);\n  bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4);\n  iVar4 = 0x1cd77;\n  bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4);\n  bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4);\n  intfield(pagestart + 4,0x1febe,text);\n  intfield(pagestart + 8,0x1fed4,text_00);\n  if ((x_interface == '\0') || (replace == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }\nLAB_0001cddd:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "mpage_name_func *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint8_t *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "char *text;" primitive_type (pointer_declarator "*text" * identifier) ;) (declaration "char *text_00;" primitive_type (pointer_declarator "*text_00" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *in_stack_ffffffb8;" primitive_type (pointer_declarator "*in_stack_ffffffb8" * identifier) ;) (declaration "char *in_stack_ffffffbc;" primitive_type (pointer_declarator "*in_stack_ffffffbc" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint8_t **in_stack_ffffffc4;" primitive_type (pointer_declarator "**in_stack_ffffffc4" * (pointer_declarator "*in_stack_ffffffc4" * identifier)) ;) (declaration "uint8_t *pagestart;" primitive_type (pointer_declarator "*pagestart" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ccc9;" (assignment_expression "uStack_14 = 0x1ccc9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = get_mode_page(mpi,0x58780,in_ECX);" (assignment_expression "iVar1 = get_mode_page(mpi,0x58780,in_ECX)" identifier = (call_expression "get_mode_page(mpi,0x58780,in_ECX)" identifier (argument_list "(mpi,0x58780,in_ECX)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    putchar(10);\n    goto LAB_0001cddd;\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;) })) (expression_statement "iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4);" (assignment_expression "iVar1 = setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4)" identifier = (call_expression "setup_mode_page(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4)" identifier (argument_list "(mpi,6,(uint8_t *)&pagestart,in_stack_ffffffc4)" ( identifier , number_literal , (cast_expression "(uint8_t *)&pagestart" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pagestart" & identifier)) , identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0001cddd;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;)) (if_statement "if (*prefix == '\0') {\n    if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }" if (parenthesized_expression "(*prefix == '\0')" ( (binary_expression "*prefix == '\0'" (pointer_expression "*prefix" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }\n  }" { (if_statement "if (x_interface == '\0' && replace == '\0') {\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }" if (parenthesized_expression "(x_interface == '\0' && replace == '\0')" ( (binary_expression "x_interface == '\0' && replace == '\0'" (binary_expression "x_interface == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "replace == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\nLAB_0001ce48:\n      iVar4 = mpi->page;\n      if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }\n      in_stack_ffffffb8 = "%s mode page (0x%x)\n";\n      __printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);\n      puts("----------------------------------------------------");\n    }" { (labeled_statement "LAB_0001ce48:\n      iVar4 = mpi->page;" statement_identifier : (expression_statement "iVar4 = mpi->page;" (assignment_expression "iVar4 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;)) (if_statement "if (iVar4 == 0x3f) {\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }\n      else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }" if (parenthesized_expression "(iVar4 == 0x3f)" ( (binary_expression "iVar4 == 0x3f" identifier == number_literal) )) (compound_statement "{\n        in_stack_ffffffbc = "List supported pages and subpages";\n        if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }\n      }" { (expression_statement "in_stack_ffffffbc = "List supported pages and subpages";" (assignment_expression "in_stack_ffffffbc = "List supported pages and subpages"" identifier = (string_literal ""List supported pages and subpages"" " string_content ")) ;) (if_statement "if (mpi->subpage != 0xff) {\n          in_stack_ffffffbc = "List supported pages";\n        }" if (parenthesized_expression "(mpi->subpage != 0xff)" ( (binary_expression "mpi->subpage != 0xff" (field_expression "mpi->subpage" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n          in_stack_ffffffbc = "List supported pages";\n        }" { (expression_statement "in_stack_ffffffbc = "List supported pages";" (assignment_expression "in_stack_ffffffbc = "List supported pages"" identifier = (string_literal ""List supported pages"" " string_content ")) ;) })) }) (else_clause "else {\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }" else (compound_statement "{\n        pmVar2 = get_mpage_name_func(mpi);\n        if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }\n      }" { (expression_statement "pmVar2 = get_mpage_name_func(mpi);" (assignment_expression "pmVar2 = get_mpage_name_func(mpi)" identifier = (call_expression "get_mpage_name_func(mpi)" identifier (argument_list "(mpi)" ( identifier )))) ;) (if_statement "if ((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)) {\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }" if (parenthesized_expression "((pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0))" ( (binary_expression "(pmVar2 == (mpage_name_func *)0x0) ||\n           (in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)" (parenthesized_expression "(pmVar2 == (mpage_name_func *)0x0)" ( (binary_expression "pmVar2 == (mpage_name_func *)0x0" identifier == (cast_expression "(mpage_name_func *)0x0" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0)" ( (comma_expression "in_stack_ffffffbc = pmVar2->name, in_stack_ffffffbc == (char *)0x0" (assignment_expression "in_stack_ffffffbc = pmVar2->name" identifier = (field_expression "pmVar2->name" identifier -> field_identifier)) , (binary_expression "in_stack_ffffffbc == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }\n          in_stack_ffffffbc = unkn_page_str;\n          __snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);\n        }" { (if_statement "if (mpi->subpage == 0) {\n            pcVar3 = "page number=0x%x";\n          }\n          else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }" if (parenthesized_expression "(mpi->subpage == 0)" ( (binary_expression "mpi->subpage == 0" (field_expression "mpi->subpage" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            pcVar3 = "page number=0x%x";\n          }" { (expression_statement "pcVar3 = "page number=0x%x";" (assignment_expression "pcVar3 = "page number=0x%x"" identifier = (string_literal ""page number=0x%x"" " string_content ")) ;) }) (else_clause "else {\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }" else (compound_statement "{\n            pcVar3 = "page number=0x%x, subpage number=0x%x";\n          }" { (expression_statement "pcVar3 = "page number=0x%x, subpage number=0x%x";" (assignment_expression "pcVar3 = "page number=0x%x, subpage number=0x%x"" identifier = (string_literal ""page number=0x%x, subpage number=0x%x"" " string_content ")) ;) }))) (expression_statement "in_stack_ffffffbc = unkn_page_str;" (assignment_expression "in_stack_ffffffbc = unkn_page_str" identifier = identifier) ;) (expression_statement "__snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4);" (call_expression "__snprintf_chk(unkn_page_str,0x40,1,0x40,pcVar3,iVar4)" identifier (argument_list "(unkn_page_str,0x40,1,0x40,pcVar3,iVar4)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) })) }))) (expression_statement "in_stack_ffffffb8 = "%s mode page (0x%x)\n";" (assignment_expression "in_stack_ffffffb8 = "%s mode page (0x%x)\n"" identifier = (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ")) ;) (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4)" identifier (argument_list "(1,"%s mode page (0x%x)\n",in_stack_ffffffbc,iVar4)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) }) (else_clause "else {\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }" else (compound_statement "{\n    in_stack_ffffffb8 = "%s";\n    __printf_chk(1);\n    in_stack_ffffffbc = prefix;\n    if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;\n  }" { (expression_statement "in_stack_ffffffb8 = "%s";" (assignment_expression "in_stack_ffffffb8 = "%s"" identifier = (string_literal ""%s"" " string_content ")) ;) (expression_statement "__printf_chk(1);" (call_expression "__printf_chk(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "in_stack_ffffffbc = prefix;" (assignment_expression "in_stack_ffffffbc = prefix" identifier = identifier) ;) (if_statement "if (x_interface == '\0' && replace == '\0') goto LAB_0001ce48;" if (parenthesized_expression "(x_interface == '\0' && replace == '\0')" ( (binary_expression "x_interface == '\0' && replace == '\0'" (binary_expression "x_interface == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "replace == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0001ce48;" goto statement_identifier ;)) }))) (expression_statement "bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4);" (call_expression "bitfield(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4)" identifier (argument_list "(pagestart + 2,"DCE",7,(int)in_stack_ffffffc4)" ( (binary_expression "pagestart + 2" identifier + number_literal) , (string_literal ""DCE"" " string_content ") , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4);" (call_expression "bitfield(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4)" identifier (argument_list "(pagestart + 2,"DCC",6,(int)in_stack_ffffffc4)" ( (binary_expression "pagestart + 2" identifier + number_literal) , (string_literal ""DCC"" " string_content ") , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "iVar4 = 0x1cd77;" (assignment_expression "iVar4 = 0x1cd77" identifier = number_literal) ;) (expression_statement "bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4);" (call_expression "bitfield(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4)" identifier (argument_list "(pagestart + 3,"DDE",7,(int)in_stack_ffffffc4)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DDE"" " string_content ") , number_literal , (cast_expression "(int)in_stack_ffffffc4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4);" (call_expression "bitfield((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4)" identifier (argument_list "((uint8_t *)0x5,in_stack_ffffffb8,(int)in_stack_ffffffbc,iVar4)" ( (cast_expression "(uint8_t *)0x5" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(int)in_stack_ffffffbc" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (expression_statement "intfield(pagestart + 4,0x1febe,text);" (call_expression "intfield(pagestart + 4,0x1febe,text)" identifier (argument_list "(pagestart + 4,0x1febe,text)" ( (binary_expression "pagestart + 4" identifier + number_literal) , number_literal , identifier ))) ;) (expression_statement "intfield(pagestart + 8,0x1fed4,text_00);" (call_expression "intfield(pagestart + 8,0x1fed4,text_00)" identifier (argument_list "(pagestart + 8,0x1fed4,text_00)" ( (binary_expression "pagestart + 8" identifier + number_literal) , number_literal , identifier ))) ;) (if_statement "if ((x_interface == '\0') || (replace == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }" if (parenthesized_expression "((x_interface == '\0') || (replace == '\0'))" ( (binary_expression "(x_interface == '\0') || (replace == '\0')" (parenthesized_expression "(x_interface == '\0')" ( (binary_expression "x_interface == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(replace == '\0')" ( (binary_expression "replace == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    putchar(10);\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }" else (compound_statement "{\n    iVar1 = put_mode_page(mpi,cbuffer);\n  }" { (expression_statement "iVar1 = put_mode_page(mpi,cbuffer);" (assignment_expression "iVar1 = put_mode_page(mpi,cbuffer)" identifier = (call_expression "put_mode_page(mpi,cbuffer)" identifier (argument_list "(mpi,cbuffer)" ( identifier , identifier )))) ;) }))) (labeled_statement "LAB_0001cddd:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0001ccc0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0001ccc0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0001ccc0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_000177a0();" (assignment_expression "iVar3 = FUN_000177a0()" identifier = (call_expression "FUN_000177a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    putchar(10);\n    goto LAB_0001cddd;\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;) })) (expression_statement "iVar3 = FUN_00014f40();" (assignment_expression "iVar3 = FUN_00014f40()" identifier = (call_expression "FUN_00014f40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0001cddd;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cddd;" goto statement_identifier ;)) (if_statement "if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }" { (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" if (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" { (labeled_statement "LAB_0001ce48:\n      iVar2 = *param_1;" statement_identifier : (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" if (parenthesized_expression "(iVar2 == 0x3f)" ( (binary_expression "iVar2 == 0x3f" identifier == number_literal) )) (compound_statement "{\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }" { (expression_statement "pcVar5 = "List supported pages and subpages";" (assignment_expression "pcVar5 = "List supported pages and subpages"" identifier = (string_literal ""List supported pages and subpages"" " string_content ")) ;) (if_statement "if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }" if (parenthesized_expression "(param_1[1] != 0xff)" ( (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          pcVar5 = "List supported pages";\n        }" { (expression_statement "pcVar5 = "List supported pages";" (assignment_expression "pcVar5 = "List supported pages"" identifier = (string_literal ""List supported pages"" " string_content ")) ;) })) }) (else_clause "else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" else (compound_statement "{\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" { (expression_statement "iVar4 = FUN_000167e0(param_1);" (assignment_expression "iVar4 = FUN_000167e0(param_1)" identifier = (call_expression "FUN_000167e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" if (parenthesized_expression "((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0))" ( (binary_expression "(iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" ( (comma_expression "pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = *(char **)(iVar4 + 0xc)" identifier = (pointer_expression "*(char **)(iVar4 + 0xc)" * (cast_expression "(char **)(iVar4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) , (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" { (if_statement "if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar6 = "page number=0x%x";\n          }" { (expression_statement "pcVar6 = "page number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x"" identifier = (string_literal ""page number=0x%x"" " string_content ")) ;) }) (else_clause "else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" else (compound_statement "{\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" { (expression_statement "pcVar6 = "page number=0x%x, subpage number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x, subpage number=0x%x"" identifier = (string_literal ""page number=0x%x, subpage number=0x%x"" " string_content ")) ;) }))) (expression_statement "pcVar5 = &DAT_000504e0;" (assignment_expression "pcVar5 = &DAT_000504e0" identifier = (pointer_expression "&DAT_000504e0" & identifier)) ;) (expression_statement "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);" (call_expression "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" identifier (argument_list "(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" ( (pointer_expression "&DAT_000504e0" & identifier) , number_literal , number_literal , number_literal , identifier , identifier ))) ;) })) }))) (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" identifier (argument_list "(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) }) (else_clause "else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" else (compound_statement "{\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" { (expression_statement "__printf_chk(1,&DAT_0001f095,param_2);" (call_expression "__printf_chk(1,&DAT_0001f095,param_2)" identifier (argument_list "(1,&DAT_0001f095,param_2)" ( number_literal , (pointer_expression "&DAT_0001f095" & identifier) , identifier ))) ;) (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;" if (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0001ce48;" goto statement_identifier ;)) }))) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014710(5);" (call_expression "FUN_00014710(5)" identifier (argument_list "(5)" ( number_literal ))) ;) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }" if (parenthesized_expression "((DAT_0005076b == '\0') || (DAT_0005076d == '\0'))" ( (binary_expression "(DAT_0005076b == '\0') || (DAT_0005076d == '\0')" (parenthesized_expression "(DAT_0005076b == '\0')" ( (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    putchar(10);\n  }" { (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n    iVar3 = FUN_000173d0();\n  }" else (compound_statement "{\n    iVar3 = FUN_000173d0();\n  }" { (expression_statement "iVar3 = FUN_000173d0();" (assignment_expression "iVar3 = FUN_000173d0()" identifier = (call_expression "FUN_000173d0()" identifier (argument_list "()" ( )))) ;) }))) (labeled_statement "LAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0001ee20();\n  }" { (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' escape_sequence ')) && (binary_expression IDENT == (char_literal ' escape_sequence '))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , LIT , IDENT , IDENT ))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' escape_sequence ')) && (binary_expression IDENT == (char_literal ' escape_sequence '))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001ccc0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_0001ccc0(int *param_1,char *param_2)" (identifier "FUN_0001ccc0") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_000177a0();\n  if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }\n  iVar3 = FUN_00014f40();\n  if (iVar3 != 0) goto LAB_0001cddd;\n  if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014860();\n  FUN_00014710(5);\n  FUN_00014d20();\n  FUN_00014d20();\n  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }\nLAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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 "iVar3 = FUN_000177a0();" (assignment_expression "iVar3 = FUN_000177a0()" (identifier "iVar3") (= "=") (call_expression "FUN_000177a0()" (identifier "FUN_000177a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    putchar(10);\n    goto LAB_0001cddd;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    putchar(10);\n    goto LAB_0001cddd;\n  }" ({ "{") (expression_statement "putchar(10);" (call_expression "putchar(10)" (identifier "putchar") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (goto_statement "goto LAB_0001cddd;" (goto "goto") (statement_identifier "LAB_0001cddd") (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00014f40();" (assignment_expression "iVar3 = FUN_00014f40()" (identifier "iVar3") (= "=") (call_expression "FUN_00014f40()" (identifier "FUN_00014f40") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_0001cddd;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001cddd;" (goto "goto") (statement_identifier "LAB_0001cddd") (; ";"))) (if_statement "if (*param_2 == '\0') {\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }\n  else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }\n  }" ({ "{") (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" (if "if") (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" (( "(") (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" (identifier "DAT_0005076b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (binary_expression "DAT_0005076d == '\0'" (identifier "DAT_0005076d") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\nLAB_0001ce48:\n      iVar2 = *param_1;\n      if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }\n      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);\n      puts("----------------------------------------------------");\n    }" ({ "{") (labeled_statement "LAB_0001ce48:\n      iVar2 = *param_1;" (statement_identifier "LAB_0001ce48") (: ":") (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";"))) (if_statement "if (iVar2 == 0x3f) {\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }\n      else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 == 0x3f)" (( "(") (binary_expression "iVar2 == 0x3f" (identifier "iVar2") (== "==") (number_literal "0x3f")) () ")")) (compound_statement "{\n        pcVar5 = "List supported pages and subpages";\n        if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }\n      }" ({ "{") (expression_statement "pcVar5 = "List supported pages and subpages";" (assignment_expression "pcVar5 = "List supported pages and subpages"" (identifier "pcVar5") (= "=") (string_literal ""List supported pages and subpages"" (" """) (string_content "List supported pages and subpages") (" """))) (; ";")) (if_statement "if (param_1[1] != 0xff) {\n          pcVar5 = "List supported pages";\n        }" (if "if") (parenthesized_expression "(param_1[1] != 0xff)" (( "(") (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0xff")) () ")")) (compound_statement "{\n          pcVar5 = "List supported pages";\n        }" ({ "{") (expression_statement "pcVar5 = "List supported pages";" (assignment_expression "pcVar5 = "List supported pages"" (identifier "pcVar5") (= "=") (string_literal ""List supported pages"" (" """) (string_content "List supported pages") (" """))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" (else "else") (compound_statement "{\n        iVar4 = FUN_000167e0(param_1);\n        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }\n      }" ({ "{") (expression_statement "iVar4 = FUN_000167e0(param_1);" (assignment_expression "iVar4 = FUN_000167e0(param_1)" (identifier "iVar4") (= "=") (call_expression "FUN_000167e0(param_1)" (identifier "FUN_000167e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" (if "if") (parenthesized_expression "((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0))" (( "(") (binary_expression "(iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)" (( "(") (comma_expression "pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = *(char **)(iVar4 + 0xc)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(iVar4 + 0xc)" (* "*") (cast_expression "(char **)(iVar4 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")"))))) (, ",") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }\n          pcVar5 = &DAT_000504e0;\n          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);\n        }" ({ "{") (if_statement "if (param_1[1] == 0) {\n            pcVar6 = "page number=0x%x";\n          }\n          else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            pcVar6 = "page number=0x%x";\n          }" ({ "{") (expression_statement "pcVar6 = "page number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x"" (identifier "pcVar6") (= "=") (string_literal ""page number=0x%x"" (" """) (string_content "page number=0x%x") (" """))) (; ";")) (} "}")) (else_clause "else {\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" (else "else") (compound_statement "{\n            pcVar6 = "page number=0x%x, subpage number=0x%x";\n          }" ({ "{") (expression_statement "pcVar6 = "page number=0x%x, subpage number=0x%x";" (assignment_expression "pcVar6 = "page number=0x%x, subpage number=0x%x"" (identifier "pcVar6") (= "=") (string_literal ""page number=0x%x, subpage number=0x%x"" (" """) (string_content "page number=0x%x, subpage number=0x%x") (" """))) (; ";")) (} "}")))) (expression_statement "pcVar5 = &DAT_000504e0;" (assignment_expression "pcVar5 = &DAT_000504e0" (identifier "pcVar5") (= "=") (pointer_expression "&DAT_000504e0" (& "&") (identifier "DAT_000504e0"))) (; ";")) (expression_statement "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);" (call_expression "__snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" (identifier "__snprintf_chk") (argument_list "(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2)" (( "(") (pointer_expression "&DAT_000504e0" (& "&") (identifier "DAT_000504e0")) (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "0x40") (, ",") (identifier "pcVar6") (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" (identifier "__printf_chk") (argument_list "(1,"%s mode page (0x%x)\n",pcVar5,iVar2)" (( "(") (number_literal "1") (, ",") (string_literal ""%s mode page (0x%x)\n"" (" """) (string_content "%s mode page (0x%x)") (escape_sequence "\n") (" """)) (, ",") (identifier "pcVar5") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" (identifier "puts") (argument_list "("----------------------------------------------------")" (( "(") (string_literal ""----------------------------------------------------"" (" """) (string_content "----------------------------------------------------") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" (else "else") (compound_statement "{\n    __printf_chk(1,&DAT_0001f095,param_2);\n    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;\n  }" ({ "{") (expression_statement "__printf_chk(1,&DAT_0001f095,param_2);" (call_expression "__printf_chk(1,&DAT_0001f095,param_2)" (identifier "__printf_chk") (argument_list "(1,&DAT_0001f095,param_2)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0001f095" (& "&") (identifier "DAT_0001f095")) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;" (if "if") (parenthesized_expression "(DAT_0005076b == '\0' && DAT_0005076d == '\0')" (( "(") (binary_expression "DAT_0005076b == '\0' && DAT_0005076d == '\0'" (binary_expression "DAT_0005076b == '\0'" (identifier "DAT_0005076b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (binary_expression "DAT_0005076d == '\0'" (identifier "DAT_0005076d") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (goto_statement "goto LAB_0001ce48;" (goto "goto") (statement_identifier "LAB_0001ce48") (; ";"))) (} "}")))) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" (identifier "FUN_00014860") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" (identifier "FUN_00014860") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00014860();" (call_expression "FUN_00014860()" (identifier "FUN_00014860") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00014710(5);" (call_expression "FUN_00014710(5)" (identifier "FUN_00014710") (argument_list "(5)" (( "(") (number_literal "5") () ")"))) (; ";")) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" (identifier "FUN_00014d20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00014d20();" (call_expression "FUN_00014d20()" (identifier "FUN_00014d20") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {\n    putchar(10);\n  }\n  else {\n    iVar3 = FUN_000173d0();\n  }" (if "if") (parenthesized_expression "((DAT_0005076b == '\0') || (DAT_0005076d == '\0'))" (( "(") (binary_expression "(DAT_0005076b == '\0') || (DAT_0005076d == '\0')" (parenthesized_expression "(DAT_0005076b == '\0')" (( "(") (binary_expression "DAT_0005076b == '\0'" (identifier "DAT_0005076b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(DAT_0005076d == '\0')" (( "(") (binary_expression "DAT_0005076d == '\0'" (identifier "DAT_0005076d") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    putchar(10);\n  }" ({ "{") (expression_statement "putchar(10);" (call_expression "putchar(10)" (identifier "putchar") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = FUN_000173d0();\n  }" (else "else") (compound_statement "{\n    iVar3 = FUN_000173d0();\n  }" ({ "{") (expression_statement "iVar3 = FUN_000173d0();" (assignment_expression "iVar3 = FUN_000173d0()" (identifier "iVar3") (= "=") (call_expression "FUN_000173d0()" (identifier "FUN_000173d0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (labeled_statement "LAB_0001cddd:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }" (statement_identifier "LAB_0001cddd") (: ":") (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001ee20();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0001ee20();\n  }" ({ "{") (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" (identifier "FUN_0001ee20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

int function_1(type_1 *mpi,char *prefix)

{
  int var_3;
  type_2 *var_10;
  char *pcVar3;
  uint8_t *in_ECX;
  char *text;
  char *text_00;
  int var_1;
  char *in_stack_ffffffb8;
  char *var_11;
  int var_8;
  uint8_t **in_stack_ffffffc4;
  uint8_t *var_16;
  int var_19;
  type_3 uStack_14;
  
  uStack_14 = 0x1ccc9;
  var_19 = *(int *)(var_1 + 0x14);
  var_3 = var_2(mpi,0x58780,in_ECX);
  if (var_3 != 0) {
    var_4(10);
    goto LAB_0001cddd;
  }
  var_3 = var_5(mpi,6,(uint8_t *)&var_16,in_stack_ffffffc4);
  if (var_3 != 0) goto LAB_0001cddd;
  if (*prefix == '\0') {
    if (var_6 == '\0' && var_7 == '\0') {
LAB_0001ce48:
      var_8 = mpi->page;
      if (var_8 == 0x3f) {
        var_11 = "List supported pages and subpages";
        if (mpi->subpage != 0xff) {
          var_11 = "List supported pages";
        }
      }
      else {
        var_10 = var_9(mpi);
        if ((var_10 == (type_2 *)0x0) ||
           (var_11 = var_10->name, var_11 == (char *)0x0)) {
          if (mpi->subpage == 0) {
            pcVar3 = "page number=0x%x";
          }
          else {
            pcVar3 = "page number=0x%x, subpage number=0x%x";
          }
          var_11 = unkn_page_str;
          var_12(unkn_page_str,0x40,1,0x40,pcVar3,var_8);
        }
      }
      in_stack_ffffffb8 = "%s mode page (0x%x)\n";
      var_13(1,"%s mode page (0x%x)\n",var_11,var_8);
      var_14("----------------------------------------------------");
    }
  }
  else {
    in_stack_ffffffb8 = "%s";
    var_13(1);
    var_11 = prefix;
    if (var_6 == '\0' && var_7 == '\0') goto LAB_0001ce48;
  }
  var_15(var_16 + 2,"DCE",7,(int)in_stack_ffffffc4);
  var_15(var_16 + 2,"DCC",6,(int)in_stack_ffffffc4);
  var_8 = 0x1cd77;
  var_15(var_16 + 3,"DDE",7,(int)in_stack_ffffffc4);
  var_15((uint8_t *)0x5,in_stack_ffffffb8,(int)var_11,var_8);
  var_17(var_16 + 4,0x1febe,text);
  var_17(var_16 + 8,0x1fed4,text_00);
  if ((var_6 == '\0') || (var_7 == '\0')) {
    var_4(10);
  }
  else {
    var_3 = var_18(mpi,cbuffer);
  }
LAB_0001cddd:
  if (var_19 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_20();
  }
  return var_3;
}


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

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

int MASKED(int *param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_000177a0();
  if (iVar3 != 0) {
    putchar(10);
    goto LAB_0001cddd;
  }
  iVar3 = FUN_00014f40();
  if (iVar3 != 0) goto LAB_0001cddd;
  if (*param_2 == '\0') {
    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') {
LAB_0001ce48:
      iVar2 = *param_1;
      if (iVar2 == 0x3f) {
        pcVar5 = "List supported pages and subpages";
        if (param_1[1] != 0xff) {
          pcVar5 = "List supported pages";
        }
      }
      else {
        iVar4 = FUN_000167e0(param_1);
        if ((iVar4 == 0) || (pcVar5 = *(char **)(iVar4 + 0xc), pcVar5 == (char *)0x0)) {
          if (param_1[1] == 0) {
            pcVar6 = "page number=0x%x";
          }
          else {
            pcVar6 = "page number=0x%x, subpage number=0x%x";
          }
          pcVar5 = &DAT_000504e0;
          __snprintf_chk(&DAT_000504e0,0x40,1,0x40,pcVar6,iVar2);
        }
      }
      __printf_chk(1,"%s mode page (0x%x)\n",pcVar5,iVar2);
      puts("----------------------------------------------------");
    }
  }
  else {
    __printf_chk(1,&DAT_0001f095,param_2);
    if (DAT_0005076b == '\0' && DAT_0005076d == '\0') goto LAB_0001ce48;
  }
  FUN_00014860();
  FUN_00014860();
  FUN_00014860();
  FUN_00014710(5);
  FUN_00014d20();
  FUN_00014d20();
  if ((DAT_0005076b == '\0') || (DAT_0005076d == '\0')) {
    putchar(10);
  }
  else {
    iVar3 = FUN_000173d0();
  }
LAB_0001cddd:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001ee20();
  }
  return iVar3;
}

