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

int common_proto_spec_port(mpage_info *mpi,char *prefix)

{
  int iVar1;
  int *in_ECX;
  int in_GS_OFFSET;
  uint8_t **in_stack_ffffffd4;
  int proto_id;
  uint8_t *pagestart;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x19b79;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  proto_id = 0;
  iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4);
  if (iVar1 == 0) {
    if (proto_id == 0) {
      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);
      if (iVar1 != 0) goto LAB_00019bd1;
      if (*prefix != '\0') {
        __printf_chk(1,&DAT_0001b192,prefix);
      }
      if (x_interface == '\0' && replace == '\0') {
        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);
        puts("----------------------------------------------------");
      }
      bitfield(pagestart + 3,"DTFD",1,7);
      bitfield(pagestart + 3,"PLPB",1,6);
      bitfield(pagestart + 3,"DDIS",1,5);
      bitfield(pagestart + 3,"DLM",1,4);
      bitfield(pagestart + 3,"RHA",1,3);
      bitfield(pagestart + 3,"ALWI",1,2);
      bitfield(pagestart + 3,"DTIPE",1,1);
      bitfield(pagestart + 3,"DTOLI",1,0);
      bitfield(pagestart + 6,"RR_TOV units",7,0);
      intfield(pagestart + 7,1,"Resource recovery time-out");
    }
    else if (proto_id == 1) {
      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);
      if (iVar1 != 0) goto LAB_00019bd1;
      if (*prefix != '\0') {
        __printf_chk(1,&DAT_0001b192,prefix);
      }
      if (x_interface == '\0' && replace == '\0') {
        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);
        puts("-----------------------------------");
      }
      intfield(pagestart + 4,2,"Synchronous transfer time-out");
    }
    else {
      iVar1 = 9999;
      if ((proto_id != 6) ||
         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))
      goto LAB_00019bd1;
      if (*prefix != '\0') {
        __printf_chk(1,&DAT_0001b192,prefix);
      }
      if (x_interface == '\0' && replace == '\0') {
        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);
        puts("-------------------------------------");
      }
      bitfield(pagestart + 2,"Ready LED meaning",1,4);
      intfield(pagestart + 4,2,"I_T Nexus Loss time");
      intfield(pagestart + 6,2,"Initiator response time-out");
    }
    if ((x_interface == '\0') || (replace == '\0')) {
      putchar(10);
    }
    else {
      iVar1 = put_mode_page(mpi,cbuffer);
    }
  }
LAB_00019bd1:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00019bf0) */
/* WARNING: Removing unreachable block (ram,0x00019c06) */
/* WARNING: Removing unreachable block (ram,0x00019e70) */
/* WARNING: Removing unreachable block (ram,0x00019c10) */
/* WARNING: Removing unreachable block (ram,0x00019ec8) */
/* WARNING: Removing unreachable block (ram,0x00019c23) */
/* WARNING: Removing unreachable block (ram,0x00019bbe) */
/* WARNING: Removing unreachable block (ram,0x00019bc7) */
/* WARNING: Removing unreachable block (ram,0x00019ca0) */
/* WARNING: Removing unreachable block (ram,0x00019cba) */
/* WARNING: Removing unreachable block (ram,0x00019f28) */
/* WARNING: Removing unreachable block (ram,0x00019cc4) */
/* WARNING: Removing unreachable block (ram,0x00019f48) */
/* WARNING: Removing unreachable block (ram,0x00019cd7) */
/* WARNING: Removing unreachable block (ram,0x00019cf7) */

int FUN_00019b70(undefined4 *param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00019830();
  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {
    if (*param_2 != '\0') {
      __printf_chk(1,&DAT_0001b192,param_2);
    }
    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {
      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);
      puts("----------------------------------------------------");
    }
    FUN_00013eb0(7);
    FUN_00013eb0(6);
    FUN_00013eb0(5);
    FUN_00013eb0(4);
    FUN_00013eb0(3);
    FUN_00013eb0(2);
    FUN_00013eb0(1);
    FUN_00013eb0(0);
    FUN_00013eb0(0);
    FUN_00013fe0();
    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {
      putchar(10);
    }
    else {
      iVar2 = FUN_00015160();
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001add0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012900
ADD EBX,0x83c3
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
LEA EDX,[ESP + 0x4]
MOV EAX,0x1
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x4],0x0
CALL 0x00019830
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019bd1
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x00019d00
CMP EAX,0x1
JZ 0x00019ca0
MOV ESI,0x270f
CMP EAX,0x6
JZ 0x00019bf0
MOV EDI,dword ptr [ESP + 0xc]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00019f75
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[ESP + 0x8]
MOV EDX,0x3
MOV EAX,EDI
CALL 0x000158a0
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019bd1
CMP byte ptr [EBP],0x0
JNZ 0x00019e70
MOVZX EAX,byte ptr [EBX + 0x2882f]
OR AL,byte ptr [EBX + 0x28831]
JZ 0x00019ec8
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa0fb]
PUSH 0x4
ADD EAX,0x2
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
LEA ECX,[EBX + 0xffffa10d]
MOV EDX,0x2
ADD EAX,0x4
CALL 0x00013fe0
MOV EAX,dword ptr [ESP + 0x18]
LEA ECX,[EBX + 0xffffa121]
MOV EDX,0x2
ADD EAX,0x6
CALL 0x00013fe0
ADD ESP,0x10
CMP byte ptr [EBX + 0x2882f],0x0
JZ 0x00019c86
CMP byte ptr [EBX + 0x28831],0x0
JNZ 0x00019e90
SUB ESP,0xc
PUSH 0xa
CALL 0x00011180
ADD ESP,0x10
JMP 0x00019bd1
LEA ECX,[ESP + 0x8]
MOV EDX,0x1
MOV EAX,EDI
CALL 0x000158a0
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019bd1
CMP byte ptr [EBP],0x0
JNZ 0x00019f28
MOVZX EAX,byte ptr [EBX + 0x2882f]
OR AL,byte ptr [EBX + 0x28831]
JZ 0x00019f48
MOV EAX,dword ptr [ESP + 0x8]
LEA ECX,[EBX + 0xffffa0c8]
MOV EDX,0x2
ADD EAX,0x4
CALL 0x00013fe0
CMP byte ptr [EBX + 0x2882f],0x0
JNZ 0x00019c79
JMP 0x00019c86
LEA ECX,[ESP + 0x8]
MOV EDX,0xa
MOV EAX,EDI
CALL 0x000158a0
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019bd1
CMP byte ptr [EBP],0x0
JNZ 0x00019ea8
MOVZX EAX,byte ptr [EBX + 0x2882f]
OR AL,byte ptr [EBX + 0x28831]
JZ 0x00019ef8
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa065]
PUSH 0x7
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa06a]
MOV dword ptr [ESP],0x6
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa06f]
MOV dword ptr [ESP],0x5
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa074]
MOV dword ptr [ESP],0x4
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa078]
MOV dword ptr [ESP],0x3
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa07c]
MOV dword ptr [ESP],0x2
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa081]
MOV dword ptr [ESP],0x1
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x1
LEA EDX,[EBX + 0xffffa087]
MOV dword ptr [ESP],0x0
ADD EAX,0x3
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x7
LEA EDX,[EBX + 0xffffa08d]
MOV dword ptr [ESP],0x0
ADD EAX,0x6
CALL 0x00013eb0
MOV EAX,dword ptr [ESP + 0x18]
LEA ECX,[EBX + 0xffffa09a]
MOV EDX,0x1
ADD EAX,0x7
CALL 0x00013fe0
ADD ESP,0x10
CMP byte ptr [EBX + 0x2882f],0x0
JNZ 0x00019c79
JMP 0x00019c86
SUB ESP,0x4
LEA EAX,[EBX + 0xffff9256]
PUSH EBP
PUSH EAX
PUSH 0x1
CALL 0x000111b0
ADD ESP,0x10
JMP 0x00019c10
LEA EDX,[EBX + 0x30844]
MOV EAX,EDI
CALL 0x00015160
MOV ESI,EAX
JMP 0x00019bd1
SUB ESP,0x4
LEA EAX,[EBX + 0xffff9256]
PUSH EBP
PUSH EAX
PUSH 0x1
CALL 0x000111b0
ADD ESP,0x10
JMP 0x00019d24
LEA EAX,[EBX + 0xffffa0e6]
PUSH dword ptr [EDI]
PUSH EAX
LEA EAX,[EBX + 0xffff9312]
PUSH EAX
PUSH 0x1
CALL 0x000111b0
LEA EAX,[EBX + 0xffffc084]
MOV dword ptr [ESP],EAX
CALL 0x000110f0
ADD ESP,0x10
JMP 0x00019c23
LEA EAX,[EBX + 0xffffa04a]
PUSH dword ptr [EDI]
PUSH EAX
LEA EAX,[EBX + 0xffff9312]
PUSH EAX
PUSH 0x1
CALL 0x000111b0
LEA EAX,[EBX + 0xffffbcfc]
MOV dword ptr [ESP],EAX
CALL 0x000110f0
ADD ESP,0x10
JMP 0x00019d37
SUB ESP,0x4
LEA EAX,[EBX + 0xffff9256]
PUSH EBP
PUSH EAX
PUSH 0x1
CALL 0x000111b0
ADD ESP,0x10
JMP 0x00019cc4
LEA EAX,[EBX + 0xffffa0b5]
PUSH dword ptr [EDI]
PUSH EAX
LEA EAX,[EBX + 0xffff9312]
PUSH EAX
PUSH 0x1
CALL 0x000111b0
LEA EAX,[EBX + 0xffffbb30]
MOV dword ptr [ESP],EAX
CALL 0x000110f0
ADD ESP,0x10
JMP 0x00019cd7
CALL 0x0001add0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x00019bf0) */\n/* WARNING: Removing unreachable block (ram,0x00019c06) */\n/* WARNING: Removing unreachable block (ram,0x00019e70) */\n/* WARNING: Removing unreachable block (ram,0x00019c10) */\n/* WARNING: Removing unreachable block (ram,0x00019ec8) */\n/* WARNING: Removing unreachable block (ram,0x00019c23) */\n/* WARNING: Removing unreachable block (ram,0x00019bbe) */\n/* WARNING: Removing unreachable block (ram,0x00019bc7) */\n/* WARNING: Removing unreachable block (ram,0x00019ca0) */\n/* WARNING: Removing unreachable block (ram,0x00019cba) */\n/* WARNING: Removing unreachable block (ram,0x00019f28) */\n/* WARNING: Removing unreachable block (ram,0x00019cc4) */\n/* WARNING: Removing unreachable block (ram,0x00019f48) */\n/* WARNING: Removing unreachable block (ram,0x00019cd7) */\n/* WARNING: Removing unreachable block (ram,0x00019cf7) */\n\nint FUN_00019b70(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001add0();\n}\n\n" comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment comment (function_definition "int FUN_00019b70(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001add0();\n}" primitive_type (function_declarator "FUN_00019b70(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (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 in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001add0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type 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 "iVar2 = FUN_00019830();" (assignment_expression "iVar2 = FUN_00019830()" identifier = (call_expression "FUN_00019830()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_000158a0(), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000158a0(), iVar2 == 0" (assignment_expression "iVar2 = FUN_000158a0()" identifier = (call_expression "FUN_000158a0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" { (if_statement "if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\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      __printf_chk(1,&DAT_0001b192,param_2);\n    }" { (expression_statement "__printf_chk(1,&DAT_0001b192,param_2);" (call_expression "__printf_chk(1,&DAT_0001b192,param_2)" identifier (argument_list "(1,&DAT_0001b192,param_2)" ( number_literal , (pointer_expression "&DAT_0001b192" & identifier) , identifier ))) ;) })) (if_statement "if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" if (parenthesized_expression "(DAT_0004a76b == '\0' && DAT_0004a76d == '\0')" ( (binary_expression "DAT_0004a76b == '\0' && DAT_0004a76d == '\0'" (binary_expression "DAT_0004a76b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0004a76d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" { (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" identifier (argument_list "(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , (string_literal ""Fibre Channel port control"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) (expression_statement "FUN_00013eb0(7);" (call_expression "FUN_00013eb0(7)" identifier (argument_list "(7)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(6);" (call_expression "FUN_00013eb0(6)" identifier (argument_list "(6)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(5);" (call_expression "FUN_00013eb0(5)" identifier (argument_list "(5)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(4);" (call_expression "FUN_00013eb0(4)" identifier (argument_list "(4)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(3);" (call_expression "FUN_00013eb0(3)" identifier (argument_list "(3)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(2);" (call_expression "FUN_00013eb0(2)" identifier (argument_list "(2)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(1);" (call_expression "FUN_00013eb0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_00013fe0();" (call_expression "FUN_00013fe0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }" if (parenthesized_expression "((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0'))" ( (binary_expression "(DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')" (parenthesized_expression "(DAT_0004a76b == '\0')" ( (binary_expression "DAT_0004a76b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(DAT_0004a76d == '\0')" ( (binary_expression "DAT_0004a76d == '\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      iVar2 = FUN_00015160();\n    }" else (compound_statement "{\n      iVar2 = FUN_00015160();\n    }" { (expression_statement "iVar2 = FUN_00015160();" (assignment_expression "iVar2 = FUN_00015160()" identifier = (call_expression "FUN_00015160()" identifier (argument_list "()" ( )))) ;) }))) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "FUN_0001add0();" (call_expression "FUN_0001add0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint common_proto_spec_port(mpage_info *mpi,char *prefix)\n\n{\n  int iVar1;\n  int *in_ECX;\n  int in_GS_OFFSET;\n  uint8_t **in_stack_ffffffd4;\n  int proto_id;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x19b79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  proto_id = 0;\n  iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4);\n  if (iVar1 == 0) {\n    if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }\n    if ((x_interface == '\0') || (replace == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar1 = put_mode_page(mpi,cbuffer);\n    }\n  }\nLAB_00019bd1:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int common_proto_spec_port(mpage_info *mpi,char *prefix)\n\n{\n  int iVar1;\n  int *in_ECX;\n  int in_GS_OFFSET;\n  uint8_t **in_stack_ffffffd4;\n  int proto_id;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x19b79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  proto_id = 0;\n  iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4);\n  if (iVar1 == 0) {\n    if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }\n    if ((x_interface == '\0') || (replace == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar1 = put_mode_page(mpi,cbuffer);\n    }\n  }\nLAB_00019bd1:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "common_proto_spec_port(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  int *in_ECX;\n  int in_GS_OFFSET;\n  uint8_t **in_stack_ffffffd4;\n  int proto_id;\n  uint8_t *pagestart;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x19b79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  proto_id = 0;\n  iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4);\n  if (iVar1 == 0) {\n    if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }\n    if ((x_interface == '\0') || (replace == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar1 = put_mode_page(mpi,cbuffer);\n    }\n  }\nLAB_00019bd1:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint8_t **in_stack_ffffffd4;" primitive_type (pointer_declarator "**in_stack_ffffffd4" * (pointer_declarator "*in_stack_ffffffd4" * identifier)) ;) (declaration "int proto_id;" primitive_type 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 = 0x19b79;" (assignment_expression "uStack_14 = 0x19b79" 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 "proto_id = 0;" (assignment_expression "proto_id = 0" identifier = number_literal) ;) (expression_statement "iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4);" (assignment_expression "iVar1 = get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4)" identifier = (call_expression "get_protocol_id(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4)" identifier (argument_list "(1,(uint8_t *)&proto_id,in_ECX,(int *)in_stack_ffffffd4)" ( number_literal , (cast_expression "(uint8_t *)&proto_id" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&proto_id" & identifier)) , identifier , (cast_expression "(int *)in_stack_ffffffd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }\n    if ((x_interface == '\0') || (replace == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar1 = put_mode_page(mpi,cbuffer);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }\n    if ((x_interface == '\0') || (replace == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar1 = put_mode_page(mpi,cbuffer);\n    }\n  }" { (if_statement "if (proto_id == 0) {\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }\n    else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }" if (parenthesized_expression "(proto_id == 0)" ( (binary_expression "proto_id == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }\n      bitfield(pagestart + 3,"DTFD",1,7);\n      bitfield(pagestart + 3,"PLPB",1,6);\n      bitfield(pagestart + 3,"DDIS",1,5);\n      bitfield(pagestart + 3,"DLM",1,4);\n      bitfield(pagestart + 3,"RHA",1,3);\n      bitfield(pagestart + 3,"ALWI",1,2);\n      bitfield(pagestart + 3,"DTIPE",1,1);\n      bitfield(pagestart + 3,"DTOLI",1,0);\n      bitfield(pagestart + 6,"RR_TOV units",7,0);\n      intfield(pagestart + 7,1,"Resource recovery time-out");\n    }" { (expression_statement "iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4);" (assignment_expression "iVar1 = setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier = (call_expression "setup_mode_page(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier (argument_list "(mpi,10,(uint8_t *)&pagestart,in_stack_ffffffd4)" ( 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_00019bd1;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00019bd1;" goto statement_identifier ;)) (if_statement "if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" if (parenthesized_expression "(*prefix != '\0')" ( (binary_expression "*prefix != '\0'" (pointer_expression "*prefix" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" { (expression_statement "__printf_chk(1,&DAT_0001b192,prefix);" (call_expression "__printf_chk(1,&DAT_0001b192,prefix)" identifier (argument_list "(1,&DAT_0001b192,prefix)" ( number_literal , (pointer_expression "&DAT_0001b192" & identifier) , identifier ))) ;) })) (if_statement "if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\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 "{\n        __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);\n        puts("----------------------------------------------------");\n      }" { (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page)" identifier (argument_list "(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , (string_literal ""Fibre Channel port control"" " string_content ") , (field_expression "mpi->page" identifier -> field_identifier) ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) (expression_statement "bitfield(pagestart + 3,"DTFD",1,7);" (call_expression "bitfield(pagestart + 3,"DTFD",1,7)" identifier (argument_list "(pagestart + 3,"DTFD",1,7)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DTFD"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"PLPB",1,6);" (call_expression "bitfield(pagestart + 3,"PLPB",1,6)" identifier (argument_list "(pagestart + 3,"PLPB",1,6)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""PLPB"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"DDIS",1,5);" (call_expression "bitfield(pagestart + 3,"DDIS",1,5)" identifier (argument_list "(pagestart + 3,"DDIS",1,5)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DDIS"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"DLM",1,4);" (call_expression "bitfield(pagestart + 3,"DLM",1,4)" identifier (argument_list "(pagestart + 3,"DLM",1,4)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DLM"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"RHA",1,3);" (call_expression "bitfield(pagestart + 3,"RHA",1,3)" identifier (argument_list "(pagestart + 3,"RHA",1,3)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""RHA"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"ALWI",1,2);" (call_expression "bitfield(pagestart + 3,"ALWI",1,2)" identifier (argument_list "(pagestart + 3,"ALWI",1,2)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""ALWI"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"DTIPE",1,1);" (call_expression "bitfield(pagestart + 3,"DTIPE",1,1)" identifier (argument_list "(pagestart + 3,"DTIPE",1,1)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DTIPE"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 3,"DTOLI",1,0);" (call_expression "bitfield(pagestart + 3,"DTOLI",1,0)" identifier (argument_list "(pagestart + 3,"DTOLI",1,0)" ( (binary_expression "pagestart + 3" identifier + number_literal) , (string_literal ""DTOLI"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "bitfield(pagestart + 6,"RR_TOV units",7,0);" (call_expression "bitfield(pagestart + 6,"RR_TOV units",7,0)" identifier (argument_list "(pagestart + 6,"RR_TOV units",7,0)" ( (binary_expression "pagestart + 6" identifier + number_literal) , (string_literal ""RR_TOV units"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "intfield(pagestart + 7,1,"Resource recovery time-out");" (call_expression "intfield(pagestart + 7,1,"Resource recovery time-out")" identifier (argument_list "(pagestart + 7,1,"Resource recovery time-out")" ( (binary_expression "pagestart + 7" identifier + number_literal) , number_literal , (string_literal ""Resource recovery time-out"" " string_content ") ))) ;) }) (else_clause "else if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }" else (if_statement "if (proto_id == 1) {\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }\n    else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }" if (parenthesized_expression "(proto_id == 1)" ( (binary_expression "proto_id == 1" identifier == number_literal) )) (compound_statement "{\n      iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);\n      if (iVar1 != 0) goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }\n      intfield(pagestart + 4,2,"Synchronous transfer time-out");\n    }" { (expression_statement "iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4);" (assignment_expression "iVar1 = setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier = (call_expression "setup_mode_page(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier (argument_list "(mpi,1,(uint8_t *)&pagestart,in_stack_ffffffd4)" ( 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_00019bd1;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00019bd1;" goto statement_identifier ;)) (if_statement "if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" if (parenthesized_expression "(*prefix != '\0')" ( (binary_expression "*prefix != '\0'" (pointer_expression "*prefix" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" { (expression_statement "__printf_chk(1,&DAT_0001b192,prefix);" (call_expression "__printf_chk(1,&DAT_0001b192,prefix)" identifier (argument_list "(1,&DAT_0001b192,prefix)" ( number_literal , (pointer_expression "&DAT_0001b192" & identifier) , identifier ))) ;) })) (if_statement "if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\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 "{\n        __printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);\n        puts("-----------------------------------");\n      }" { (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page)" identifier (argument_list "(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , (string_literal ""SPI-4 port control"" " string_content ") , (field_expression "mpi->page" identifier -> field_identifier) ))) ;) (expression_statement "puts("-----------------------------------");" (call_expression "puts("-----------------------------------")" identifier (argument_list "("-----------------------------------")" ( (string_literal ""-----------------------------------"" " string_content ") ))) ;) })) (expression_statement "intfield(pagestart + 4,2,"Synchronous transfer time-out");" (call_expression "intfield(pagestart + 4,2,"Synchronous transfer time-out")" identifier (argument_list "(pagestart + 4,2,"Synchronous transfer time-out")" ( (binary_expression "pagestart + 4" identifier + number_literal) , number_literal , (string_literal ""Synchronous transfer time-out"" " string_content ") ))) ;) }) (else_clause "else {\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }" else (compound_statement "{\n      iVar1 = 9999;\n      if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;\n      if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }\n      if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }\n      bitfield(pagestart + 2,"Ready LED meaning",1,4);\n      intfield(pagestart + 4,2,"I_T Nexus Loss time");\n      intfield(pagestart + 6,2,"Initiator response time-out");\n    }" { (expression_statement "iVar1 = 9999;" (assignment_expression "iVar1 = 9999" identifier = number_literal) ;) (if_statement "if ((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))\n      goto LAB_00019bd1;" if (parenthesized_expression "((proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0))" ( (binary_expression "(proto_id != 6) ||\n         (iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0)" (parenthesized_expression "(proto_id != 6)" ( (binary_expression "proto_id != 6" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0)" ( (comma_expression "iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4), iVar1 != 0" (assignment_expression "iVar1 = setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier = (call_expression "setup_mode_page(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4)" identifier (argument_list "(mpi,3,(uint8_t *)&pagestart,in_stack_ffffffd4)" ( identifier , number_literal , (cast_expression "(uint8_t *)&pagestart" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pagestart" & identifier)) , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00019bd1;" goto statement_identifier ;)) (if_statement "if (*prefix != '\0') {\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" if (parenthesized_expression "(*prefix != '\0')" ( (binary_expression "*prefix != '\0'" (pointer_expression "*prefix" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        __printf_chk(1,&DAT_0001b192,prefix);\n      }" { (expression_statement "__printf_chk(1,&DAT_0001b192,prefix);" (call_expression "__printf_chk(1,&DAT_0001b192,prefix)" identifier (argument_list "(1,&DAT_0001b192,prefix)" ( number_literal , (pointer_expression "&DAT_0001b192" & identifier) , identifier ))) ;) })) (if_statement "if (x_interface == '\0' && replace == '\0') {\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\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 "{\n        __printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);\n        puts("-------------------------------------");\n      }" { (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page)" identifier (argument_list "(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , (string_literal ""SAS SSP port control"" " string_content ") , (field_expression "mpi->page" identifier -> field_identifier) ))) ;) (expression_statement "puts("-------------------------------------");" (call_expression "puts("-------------------------------------")" identifier (argument_list "("-------------------------------------")" ( (string_literal ""-------------------------------------"" " string_content ") ))) ;) })) (expression_statement "bitfield(pagestart + 2,"Ready LED meaning",1,4);" (call_expression "bitfield(pagestart + 2,"Ready LED meaning",1,4)" identifier (argument_list "(pagestart + 2,"Ready LED meaning",1,4)" ( (binary_expression "pagestart + 2" identifier + number_literal) , (string_literal ""Ready LED meaning"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "intfield(pagestart + 4,2,"I_T Nexus Loss time");" (call_expression "intfield(pagestart + 4,2,"I_T Nexus Loss time")" identifier (argument_list "(pagestart + 4,2,"I_T Nexus Loss time")" ( (binary_expression "pagestart + 4" identifier + number_literal) , number_literal , (string_literal ""I_T Nexus Loss time"" " string_content ") ))) ;) (expression_statement "intfield(pagestart + 6,2,"Initiator response time-out");" (call_expression "intfield(pagestart + 6,2,"Initiator response time-out")" identifier (argument_list "(pagestart + 6,2,"Initiator response time-out")" ( (binary_expression "pagestart + 6" identifier + number_literal) , number_literal , (string_literal ""Initiator response time-out"" " string_content ") ))) ;) }))))) (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_00019bd1:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00019b70(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0001add0();\n}\n\n" (function_definition "int FUN_00019b70(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0001add0();\n}" primitive_type (function_declarator "FUN_00019b70(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (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 in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0001add0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type 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 "iVar2 = FUN_00019830();" (assignment_expression "iVar2 = FUN_00019830()" identifier = (call_expression "FUN_00019830()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_000158a0(), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000158a0(), iVar2 == 0" (assignment_expression "iVar2 = FUN_000158a0()" identifier = (call_expression "FUN_000158a0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" { (if_statement "if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\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      __printf_chk(1,&DAT_0001b192,param_2);\n    }" { (expression_statement "__printf_chk(1,&DAT_0001b192,param_2);" (call_expression "__printf_chk(1,&DAT_0001b192,param_2)" identifier (argument_list "(1,&DAT_0001b192,param_2)" ( number_literal , (pointer_expression "&DAT_0001b192" & identifier) , identifier ))) ;) })) (if_statement "if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" if (parenthesized_expression "(DAT_0004a76b == '\0' && DAT_0004a76d == '\0')" ( (binary_expression "DAT_0004a76b == '\0' && DAT_0004a76d == '\0'" (binary_expression "DAT_0004a76b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) && (binary_expression "DAT_0004a76d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" { (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" identifier (argument_list "(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" ( number_literal , (string_literal ""%s mode page (0x%x)\n"" " string_content escape_sequence ") , (string_literal ""Fibre Channel port control"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" identifier (argument_list "("----------------------------------------------------")" ( (string_literal ""----------------------------------------------------"" " string_content ") ))) ;) })) (expression_statement "FUN_00013eb0(7);" (call_expression "FUN_00013eb0(7)" identifier (argument_list "(7)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(6);" (call_expression "FUN_00013eb0(6)" identifier (argument_list "(6)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(5);" (call_expression "FUN_00013eb0(5)" identifier (argument_list "(5)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(4);" (call_expression "FUN_00013eb0(4)" identifier (argument_list "(4)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(3);" (call_expression "FUN_00013eb0(3)" identifier (argument_list "(3)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(2);" (call_expression "FUN_00013eb0(2)" identifier (argument_list "(2)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(1);" (call_expression "FUN_00013eb0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_00013fe0();" (call_expression "FUN_00013fe0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }" if (parenthesized_expression "((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0'))" ( (binary_expression "(DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')" (parenthesized_expression "(DAT_0004a76b == '\0')" ( (binary_expression "DAT_0004a76b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(DAT_0004a76d == '\0')" ( (binary_expression "DAT_0004a76d == '\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      iVar2 = FUN_00015160();\n    }" else (compound_statement "{\n      iVar2 = FUN_00015160();\n    }" { (expression_statement "iVar2 = FUN_00015160();" (assignment_expression "iVar2 = FUN_00015160()" identifier = (call_expression "FUN_00015160()" identifier (argument_list "()" ( )))) ;) }))) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "FUN_0001add0();" (call_expression "FUN_0001add0()" identifier (argument_list "()" ( ))) ;) })))
(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 ;) (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 (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (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 '))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (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 ( )))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00019b70(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0001add0();\n}" (primitive_type "int") (function_declarator "FUN_00019b70(undefined4 *param_1,char *param_2)" (identifier "FUN_00019b70") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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 in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00019830();\n  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0001add0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (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 "iVar2 = FUN_00019830();" (assignment_expression "iVar2 = FUN_00019830()" (identifier "iVar2") (= "=") (call_expression "FUN_00019830()" (identifier "FUN_00019830") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0))" (( "(") (binary_expression "(iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_000158a0(), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_000158a0(), iVar2 == 0" (assignment_expression "iVar2 = FUN_000158a0()" (identifier "iVar2") (= "=") (call_expression "FUN_000158a0()" (identifier "FUN_000158a0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\n    }\n    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }\n    FUN_00013eb0(7);\n    FUN_00013eb0(6);\n    FUN_00013eb0(5);\n    FUN_00013eb0(4);\n    FUN_00013eb0(3);\n    FUN_00013eb0(2);\n    FUN_00013eb0(1);\n    FUN_00013eb0(0);\n    FUN_00013eb0(0);\n    FUN_00013fe0();\n    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }\n  }" ({ "{") (if_statement "if (*param_2 != '\0') {\n      __printf_chk(1,&DAT_0001b192,param_2);\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      __printf_chk(1,&DAT_0001b192,param_2);\n    }" ({ "{") (expression_statement "__printf_chk(1,&DAT_0001b192,param_2);" (call_expression "__printf_chk(1,&DAT_0001b192,param_2)" (identifier "__printf_chk") (argument_list "(1,&DAT_0001b192,param_2)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0001b192" (& "&") (identifier "DAT_0001b192")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" (if "if") (parenthesized_expression "(DAT_0004a76b == '\0' && DAT_0004a76d == '\0')" (( "(") (binary_expression "DAT_0004a76b == '\0' && DAT_0004a76d == '\0'" (binary_expression "DAT_0004a76b == '\0'" (identifier "DAT_0004a76b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (binary_expression "DAT_0004a76d == '\0'" (identifier "DAT_0004a76d") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);\n      puts("----------------------------------------------------");\n    }" ({ "{") (expression_statement "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);" (call_expression "__printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" (identifier "__printf_chk") (argument_list "(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1)" (( "(") (number_literal "1") (, ",") (string_literal ""%s mode page (0x%x)\n"" (" """) (string_content "%s mode page (0x%x)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""Fibre Channel port control"" (" """) (string_content "Fibre Channel port control") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "puts("----------------------------------------------------");" (call_expression "puts("----------------------------------------------------")" (identifier "puts") (argument_list "("----------------------------------------------------")" (( "(") (string_literal ""----------------------------------------------------"" (" """) (string_content "----------------------------------------------------") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00013eb0(7);" (call_expression "FUN_00013eb0(7)" (identifier "FUN_00013eb0") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(6);" (call_expression "FUN_00013eb0(6)" (identifier "FUN_00013eb0") (argument_list "(6)" (( "(") (number_literal "6") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(5);" (call_expression "FUN_00013eb0(5)" (identifier "FUN_00013eb0") (argument_list "(5)" (( "(") (number_literal "5") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(4);" (call_expression "FUN_00013eb0(4)" (identifier "FUN_00013eb0") (argument_list "(4)" (( "(") (number_literal "4") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(3);" (call_expression "FUN_00013eb0(3)" (identifier "FUN_00013eb0") (argument_list "(3)" (( "(") (number_literal "3") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(2);" (call_expression "FUN_00013eb0(2)" (identifier "FUN_00013eb0") (argument_list "(2)" (( "(") (number_literal "2") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(1);" (call_expression "FUN_00013eb0(1)" (identifier "FUN_00013eb0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" (identifier "FUN_00013eb0") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00013eb0(0);" (call_expression "FUN_00013eb0(0)" (identifier "FUN_00013eb0") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00013fe0();" (call_expression "FUN_00013fe0()" (identifier "FUN_00013fe0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {\n      putchar(10);\n    }\n    else {\n      iVar2 = FUN_00015160();\n    }" (if "if") (parenthesized_expression "((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0'))" (( "(") (binary_expression "(DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')" (parenthesized_expression "(DAT_0004a76b == '\0')" (( "(") (binary_expression "DAT_0004a76b == '\0'" (identifier "DAT_0004a76b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(DAT_0004a76d == '\0')" (( "(") (binary_expression "DAT_0004a76d == '\0'" (identifier "DAT_0004a76d") (== "==") (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      iVar2 = FUN_00015160();\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_00015160();\n    }" ({ "{") (expression_statement "iVar2 = FUN_00015160();" (assignment_expression "iVar2 = FUN_00015160()" (identifier "iVar2") (= "=") (call_expression "FUN_00015160()" (identifier "FUN_00015160") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\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    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "FUN_0001add0();" (call_expression "FUN_0001add0()" (identifier "FUN_0001add0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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;
  int *in_ECX;
  int var_1;
  uint8_t **in_stack_ffffffd4;
  int var_4;
  uint8_t *var_11;
  int var_15;
  type_2 uStack_14;
  
  uStack_14 = 0x19b79;
  var_15 = *(int *)(var_1 + 0x14);
  var_4 = 0;
  var_3 = var_2(1,(uint8_t *)&var_4,in_ECX,(int *)in_stack_ffffffd4);
  if (var_3 == 0) {
    if (var_4 == 0) {
      var_3 = var_5(mpi,10,(uint8_t *)&var_11,in_stack_ffffffd4);
      if (var_3 != 0) goto LAB_00019bd1;
      if (*prefix != '\0') {
        var_6(1,&DAT_0001b192,prefix);
      }
      if (var_7 == '\0' && var_8 == '\0') {
        var_6(1,"%s mode page (0x%x)\n","Fibre Channel port control",mpi->page);
        var_9("----------------------------------------------------");
      }
      var_10(var_11 + 3,"DTFD",1,7);
      var_10(var_11 + 3,"PLPB",1,6);
      var_10(var_11 + 3,"DDIS",1,5);
      var_10(var_11 + 3,"DLM",1,4);
      var_10(var_11 + 3,"RHA",1,3);
      var_10(var_11 + 3,"ALWI",1,2);
      var_10(var_11 + 3,"DTIPE",1,1);
      var_10(var_11 + 3,"DTOLI",1,0);
      var_10(var_11 + 6,"RR_TOV units",7,0);
      var_12(var_11 + 7,1,"Resource recovery time-out");
    }
    else if (var_4 == 1) {
      var_3 = var_5(mpi,1,(uint8_t *)&var_11,in_stack_ffffffd4);
      if (var_3 != 0) goto LAB_00019bd1;
      if (*prefix != '\0') {
        var_6(1,&DAT_0001b192,prefix);
      }
      if (var_7 == '\0' && var_8 == '\0') {
        var_6(1,"%s mode page (0x%x)\n","SPI-4 port control",mpi->page);
        var_9("-----------------------------------");
      }
      var_12(var_11 + 4,2,"Synchronous transfer time-out");
    }
    else {
      var_3 = 9999;
      if ((var_4 != 6) ||
         (var_3 = var_5(mpi,3,(uint8_t *)&var_11,in_stack_ffffffd4), var_3 != 0))
      goto LAB_00019bd1;
      if (*prefix != '\0') {
        var_6(1,&DAT_0001b192,prefix);
      }
      if (var_7 == '\0' && var_8 == '\0') {
        var_6(1,"%s mode page (0x%x)\n","SAS SSP port control",mpi->page);
        var_9("-------------------------------------");
      }
      var_10(var_11 + 2,"Ready LED meaning",1,4);
      var_12(var_11 + 4,2,"I_T Nexus Loss time");
      var_12(var_11 + 6,2,"Initiator response time-out");
    }
    if ((var_7 == '\0') || (var_8 == '\0')) {
      var_13(10);
    }
    else {
      var_3 = var_14(mpi,cbuffer);
    }
  }
LAB_00019bd1:
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00019bf0) */
/* WARNING: Removing unreachable block (ram,0x00019c06) */
/* WARNING: Removing unreachable block (ram,0x00019e70) */
/* WARNING: Removing unreachable block (ram,0x00019c10) */
/* WARNING: Removing unreachable block (ram,0x00019ec8) */
/* WARNING: Removing unreachable block (ram,0x00019c23) */
/* WARNING: Removing unreachable block (ram,0x00019bbe) */
/* WARNING: Removing unreachable block (ram,0x00019bc7) */
/* WARNING: Removing unreachable block (ram,0x00019ca0) */
/* WARNING: Removing unreachable block (ram,0x00019cba) */
/* WARNING: Removing unreachable block (ram,0x00019f28) */
/* WARNING: Removing unreachable block (ram,0x00019cc4) */
/* WARNING: Removing unreachable block (ram,0x00019f48) */
/* WARNING: Removing unreachable block (ram,0x00019cd7) */
/* WARNING: Removing unreachable block (ram,0x00019cf7) */

int MASKED(undefined4 *param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00019830();
  if ((iVar2 == 0) && (iVar2 = FUN_000158a0(), iVar2 == 0)) {
    if (*param_2 != '\0') {
      __printf_chk(1,&DAT_0001b192,param_2);
    }
    if (DAT_0004a76b == '\0' && DAT_0004a76d == '\0') {
      __printf_chk(1,"%s mode page (0x%x)\n","Fibre Channel port control",*param_1);
      puts("----------------------------------------------------");
    }
    FUN_00013eb0(7);
    FUN_00013eb0(6);
    FUN_00013eb0(5);
    FUN_00013eb0(4);
    FUN_00013eb0(3);
    FUN_00013eb0(2);
    FUN_00013eb0(1);
    FUN_00013eb0(0);
    FUN_00013eb0(0);
    FUN_00013fe0();
    if ((DAT_0004a76b == '\0') || (DAT_0004a76d == '\0')) {
      putchar(10);
    }
    else {
      iVar2 = FUN_00015160();
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001add0();
}

