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

void __regparm3 decode_rdac_vpd_c9_rtpg_data(uint8_t aas,uint8_t vendor)

{
  uint uVar1;
  uint extraout_ECX;
  undefined4 extraout_ECX_00;
  undefined3 in_register_00000009;
  undefined4 uVar2;
  undefined4 extraout_EDX;
  uint uVar3;
  uint uVar4;
  
  uVar2 = CONCAT31(in_register_00000009,vendor);
  uVar3 = aas & 0xf;
  __printf_chk(1,"  Asymmetric Access State:");
  uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];
  uVar4 = uVar1;
  switch(uVar3) {
  case 0:
    __printf_chk(1," Active/Optimized",uVar1,uVar1);
    break;
  case 1:
    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);
    break;
  case 2:
    __printf_chk(1," Standby",uVar1,uVar1);
    break;
  case 3:
    __printf_chk(1," Unavailable",uVar1,uVar1);
    break;
  default:
    uVar1 = extraout_ECX;
    uVar4 = extraout_ECX;
    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);
    break;
  case 0xe:
    __printf_chk(1," Offline",uVar1,uVar1);
    break;
  case 0xf:
    uVar1 = uVar3;
    uVar4 = uVar3;
    __printf_chk(1," Transitioning",uVar3,uVar3);
  }
  putchar(10);
  __printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4);
  if (vendor == '\x04') {
    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);
    goto LAB_0001608e;
  }
  if (vendor < 5) {
    if (vendor == '\x02') {
      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (2 < vendor) {
      __printf_chk(1," Controller being held in reset",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (vendor == '\x01') {
      __printf_chk(1," Operating normally",uVar2,uVar2);
      goto LAB_0001608e;
    }
  }
  else {
    if (vendor == '\x06') {
      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (vendor < 6) {
      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);
      goto LAB_0001608e;
    }
    if (vendor == '\a') {
      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,
                   extraout_ECX_00);
      goto LAB_0001608e;
    }
    if (vendor == 0xff) {
      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);
      goto LAB_0001608e;
    }
  }
  __printf_chk(1," (unknown)",uVar2,uVar2);
LAB_0001608e:
  putchar(10);
  return;
}



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

void __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)

{
  byte bVar1;
  uint uVar2;
  uint extraout_ECX;
  undefined4 extraout_ECX_00;
  undefined4 extraout_EDX;
  uint uVar3;
  
  param_1 = param_1 & 0xf;
  __printf_chk(1,"  Asymmetric Access State:");
  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);
  uVar3 = uVar2;
  switch(param_1) {
  case 0:
    __printf_chk(1," Active/Optimized",uVar2,uVar2);
    break;
  case 1:
    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);
    break;
  case 2:
    __printf_chk(1," Standby",uVar2,uVar2);
    break;
  case 3:
    __printf_chk(1," Unavailable",uVar2,uVar2);
    break;
  default:
    uVar2 = extraout_ECX;
    uVar3 = extraout_ECX;
    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);
    break;
  case 0xe:
    __printf_chk(1," Offline",uVar2,uVar2);
    break;
  case 0xf:
    uVar2 = param_1;
    uVar3 = param_1;
    __printf_chk(1," Transitioning",param_1,param_1);
  }
  putchar(10);
  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);
  bVar1 = (byte)param_2;
  if (bVar1 == 4) {
    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);
    goto code_r0x0001608e;
  }
  if (bVar1 < 5) {
    if (bVar1 == 2) {
      __printf_chk(1," Non-responsive to queries",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (2 < bVar1) {
      __printf_chk(1," Controller being held in reset",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (bVar1 == 1) {
      __printf_chk(1," Operating normally",param_2,param_2);
      goto code_r0x0001608e;
    }
  }
  else {
    if (bVar1 == 6) {
      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (bVar1 < 6) {
      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);
      goto code_r0x0001608e;
    }
    if (bVar1 == 7) {
      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,
                   extraout_ECX_00);
      goto code_r0x0001608e;
    }
    if (bVar1 == 0xff) {
      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);
      goto code_r0x0001608e;
    }
  }
  __printf_chk(1," (unknown)",param_2,param_2);
code_r0x0001608e:
  putchar(10);
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
AND EDI,0xf
MOV ESI,EDX
PUSH EBX
CALL 0x00015cc0
ADD EBX,0x14ed1
SUB ESP,0x8
LEA EAX,[EBX + 0xffff2176]
PUSH EAX
PUSH 0x1
CALL 0x00013330
MOV EAX,dword ptr [EBX + EDI*0x4 + 0xffff811c]
ADD ESP,0x10
ADD EAX,EBX
JMP EAX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015fe0(uint param_1,undefined4 param_2)" identifier (parameter_list "(uint param_1,undefined4 param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "param_1 = param_1 & 0xf;" (assignment_expression "param_1 = param_1 & 0xf" identifier = (binary_expression "param_1 & 0xf" identifier & number_literal)) ;) (expression_statement "__printf_chk(1,"  Asymmetric Access State:");" (call_expression "__printf_chk(1,"  Asymmetric Access State:")" identifier (argument_list "(1,"  Asymmetric Access State:")" ( number_literal , (string_literal ""  Asymmetric Access State:"" " string_content ") ))) ;) (expression_statement "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);" (assignment_expression "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" identifier = (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_00022fdc + param_1 * 4)" * (cast_expression "(int *)(&DAT_00022fdc + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00022fdc + param_1 * 4)" ( (binary_expression "&DAT_00022fdc + param_1 * 4" (pointer_expression "&DAT_00022fdc" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (switch_statement "switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" { (case_statement "case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Optimized",uVar2,uVar2)" identifier (argument_list "(1," Active/Optimized",uVar2,uVar2)" ( number_literal , (string_literal "" Active/Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2)" identifier (argument_list "(1," Active/Non-Optimized",uVar2,uVar2)" ( number_literal , (string_literal "" Active/Non-Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Standby",uVar2,uVar2);" (call_expression "__printf_chk(1," Standby",uVar2,uVar2)" identifier (argument_list "(1," Standby",uVar2,uVar2)" ( number_literal , (string_literal "" Standby"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Unavailable",uVar2,uVar2);" (call_expression "__printf_chk(1," Unavailable",uVar2,uVar2)" identifier (argument_list "(1," Unavailable",uVar2,uVar2)" ( number_literal , (string_literal "" Unavailable"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;" default : (expression_statement "uVar2 = extraout_ECX;" (assignment_expression "uVar2 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" identifier = identifier) ;) (expression_statement "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);" (call_expression "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX)" identifier (argument_list "(1," (unknown)",extraout_ECX,extraout_ECX)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Offline",uVar2,uVar2);" (call_expression "__printf_chk(1," Offline",uVar2,uVar2)" identifier (argument_list "(1," Offline",uVar2,uVar2)" ( number_literal , (string_literal "" Offline"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);" case number_literal : (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" identifier = identifier) ;) (expression_statement "__printf_chk(1," Transitioning",param_1,param_1);" (call_expression "__printf_chk(1," Transitioning",param_1,param_1)" identifier (argument_list "(1," Transitioning",param_1,param_1)" ( number_literal , (string_literal "" Transitioning"" " string_content ") , identifier , identifier ))) ;)) })) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);" (call_expression "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3)" identifier (argument_list "(1,"  Vendor Specific Field:",uVar2,uVar3)" ( number_literal , (string_literal ""  Vendor Specific Field:"" " string_content ") , identifier , identifier ))) ;) (expression_statement "bVar1 = (byte)param_2;" (assignment_expression "bVar1 = (byte)param_2" identifier = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" if (parenthesized_expression "(bVar1 == 4)" ( (binary_expression "bVar1 == 4" identifier == number_literal) )) (compound_statement "{\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" { (expression_statement "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);" (call_expression "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2)" identifier (argument_list "(1," Performing controller firmware download (1st controller)",param_2,param_2)" ( number_literal , (string_literal "" Performing controller firmware download (1st controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" if (parenthesized_expression "(bVar1 < 5)" ( (binary_expression "bVar1 < 5" identifier < number_literal) )) (compound_statement "{\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }" { (if_statement "if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 2)" ( (binary_expression "bVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Non-responsive to queries",param_2,param_2);" (call_expression "__printf_chk(1," Non-responsive to queries",param_2,param_2)" identifier (argument_list "(1," Non-responsive to queries",param_2,param_2)" ( number_literal , (string_literal "" Non-responsive to queries"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(2 < bVar1)" ( (binary_expression "2 < bVar1" number_literal < identifier) )) (compound_statement "{\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Controller being held in reset",param_2,param_2);" (call_expression "__printf_chk(1," Controller being held in reset",param_2,param_2)" identifier (argument_list "(1," Controller being held in reset",param_2,param_2)" ( number_literal , (string_literal "" Controller being held in reset"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 1)" ( (binary_expression "bVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Operating normally",param_2,param_2);" (call_expression "__printf_chk(1," Operating normally",param_2,param_2)" identifier (argument_list "(1," Operating normally",param_2,param_2)" ( number_literal , (string_literal "" Operating normally"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" else (compound_statement "{\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" { (if_statement "if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 6)" ( (binary_expression "bVar1 == 6" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);" (call_expression "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2)" identifier (argument_list "(1," Quiesced as a result of an administrative request",param_2,param_2)" ( number_literal , (string_literal "" Quiesced as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 < 6)" ( (binary_expression "bVar1 < 6" identifier < number_literal) )) (compound_statement "{\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);" (call_expression "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1)" identifier (argument_list "(1," Performing controller firmware download (2nd controller)",param_1,param_1)" ( number_literal , (string_literal "" Performing controller firmware download (2nd controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 7)" ( (binary_expression "bVar1 == 7" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);" (call_expression "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" identifier (argument_list "(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" ( number_literal , (string_literal "" Service mode as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 0xff)" ( (binary_expression "bVar1 == 0xff" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);" (call_expression "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX)" identifier (argument_list "(1," Details are not available",extraout_EDX,extraout_EDX)" ( number_literal , (string_literal "" Details are not available"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) }))) (expression_statement "__printf_chk(1," (unknown)",param_2,param_2);" (call_expression "__printf_chk(1," (unknown)",param_2,param_2)" identifier (argument_list "(1," (unknown)",param_2,param_2)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "code_r0x0001608e:\n  putchar(10);" statement_identifier : (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 decode_rdac_vpd_c9_rtpg_data(uint8_t aas,uint8_t vendor)\n\n{\n  uint uVar1;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined3 in_register_00000009;\n  undefined4 uVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = CONCAT31(in_register_00000009,vendor);\n  uVar3 = aas & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];\n  uVar4 = uVar1;\n  switch(uVar3) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;\n  default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;\n  case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4);\n  if (vendor == '\x04') {\n    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);\n    goto LAB_0001608e;\n  }\n  if (vendor < 5) {\n    if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n  }\n  else {\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",uVar2,uVar2);\nLAB_0001608e:\n  putchar(10);\n  return;\n}\n\n" comment (function_definition "void __regparm3 decode_rdac_vpd_c9_rtpg_data(uint8_t aas,uint8_t vendor)\n\n{\n  uint uVar1;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined3 in_register_00000009;\n  undefined4 uVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = CONCAT31(in_register_00000009,vendor);\n  uVar3 = aas & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];\n  uVar4 = uVar1;\n  switch(uVar3) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;\n  default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;\n  case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4);\n  if (vendor == '\x04') {\n    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);\n    goto LAB_0001608e;\n  }\n  if (vendor < 5) {\n    if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n  }\n  else {\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",uVar2,uVar2);\nLAB_0001608e:\n  putchar(10);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "decode_rdac_vpd_c9_rtpg_data(uint8_t aas,uint8_t vendor)" identifier (parameter_list "(uint8_t aas,uint8_t vendor)" ( (parameter_declaration "uint8_t aas" primitive_type identifier) , (parameter_declaration "uint8_t vendor" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined3 in_register_00000009;\n  undefined4 uVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = CONCAT31(in_register_00000009,vendor);\n  uVar3 = aas & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];\n  uVar4 = uVar1;\n  switch(uVar3) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;\n  default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;\n  case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4);\n  if (vendor == '\x04') {\n    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);\n    goto LAB_0001608e;\n  }\n  if (vendor < 5) {\n    if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n  }\n  else {\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",uVar2,uVar2);\nLAB_0001608e:\n  putchar(10);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "undefined3 in_register_00000009;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = CONCAT31(in_register_00000009,vendor);" (assignment_expression "uVar2 = CONCAT31(in_register_00000009,vendor)" identifier = (call_expression "CONCAT31(in_register_00000009,vendor)" identifier (argument_list "(in_register_00000009,vendor)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = aas & 0xf;" (assignment_expression "uVar3 = aas & 0xf" identifier = (binary_expression "aas & 0xf" identifier & number_literal)) ;) (expression_statement "__printf_chk(1,"  Asymmetric Access State:");" (call_expression "__printf_chk(1,"  Asymmetric Access State:")" identifier (argument_list "(1,"  Asymmetric Access State:")" ( number_literal , (string_literal ""  Asymmetric Access State:"" " string_content ") ))) ;) (expression_statement "uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];" (assignment_expression "uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3]" identifier = (binary_expression "(int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3]" (cast_expression "(int)&_GLOBAL_OFFSET_TABLE_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) + (subscript_expression "(&switchD_00016012::switchdataD_00022fdc)[uVar3]" (parenthesized_expression "(&switchD_00016012::switchdataD_00022fdc)" ( (ERROR "&switchD_00016012::" (pointer_expression "&switchD_00016012" & identifier) : :) identifier )) [ identifier ]))) ;) (expression_statement "uVar4 = uVar1;" (assignment_expression "uVar4 = uVar1" identifier = identifier) ;) (switch_statement "switch(uVar3) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;\n  default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;\n  case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);\n  }" switch (parenthesized_expression "(uVar3)" ( identifier )) (compound_statement "{\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;\n  default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;\n  case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);\n  }" { (case_statement "case 0:\n    __printf_chk(1," Active/Optimized",uVar1,uVar1);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Optimized",uVar1,uVar1);" (call_expression "__printf_chk(1," Active/Optimized",uVar1,uVar1)" identifier (argument_list "(1," Active/Optimized",uVar1,uVar1)" ( number_literal , (string_literal "" Active/Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar1,uVar1);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Non-Optimized",uVar1,uVar1);" (call_expression "__printf_chk(1," Active/Non-Optimized",uVar1,uVar1)" identifier (argument_list "(1," Active/Non-Optimized",uVar1,uVar1)" ( number_literal , (string_literal "" Active/Non-Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n    __printf_chk(1," Standby",uVar1,uVar1);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Standby",uVar1,uVar1);" (call_expression "__printf_chk(1," Standby",uVar1,uVar1)" identifier (argument_list "(1," Standby",uVar1,uVar1)" ( number_literal , (string_literal "" Standby"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    __printf_chk(1," Unavailable",uVar1,uVar1);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Unavailable",uVar1,uVar1);" (call_expression "__printf_chk(1," Unavailable",uVar1,uVar1)" identifier (argument_list "(1," Unavailable",uVar1,uVar1)" ( number_literal , (string_literal "" Unavailable"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "default:\n    uVar1 = extraout_ECX;\n    uVar4 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;" default : (expression_statement "uVar1 = extraout_ECX;" (assignment_expression "uVar1 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar4 = extraout_ECX;" (assignment_expression "uVar4 = extraout_ECX" identifier = identifier) ;) (expression_statement "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);" (call_expression "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX)" identifier (argument_list "(1," (unknown)",extraout_ECX,extraout_ECX)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    __printf_chk(1," Offline",uVar1,uVar1);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Offline",uVar1,uVar1);" (call_expression "__printf_chk(1," Offline",uVar1,uVar1)" identifier (argument_list "(1," Offline",uVar1,uVar1)" ( number_literal , (string_literal "" Offline"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    uVar1 = uVar3;\n    uVar4 = uVar3;\n    __printf_chk(1," Transitioning",uVar3,uVar3);" case number_literal : (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "__printf_chk(1," Transitioning",uVar3,uVar3);" (call_expression "__printf_chk(1," Transitioning",uVar3,uVar3)" identifier (argument_list "(1," Transitioning",uVar3,uVar3)" ( number_literal , (string_literal "" Transitioning"" " string_content ") , identifier , identifier ))) ;)) })) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "__printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4);" (call_expression "__printf_chk(1,"  Vendor Specific Field:",uVar1,uVar4)" identifier (argument_list "(1,"  Vendor Specific Field:",uVar1,uVar4)" ( number_literal , (string_literal ""  Vendor Specific Field:"" " string_content ") , identifier , identifier ))) ;) (if_statement "if (vendor == '\x04') {\n    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);\n    goto LAB_0001608e;\n  }" if (parenthesized_expression "(vendor == '\x04')" ( (binary_expression "vendor == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);\n    goto LAB_0001608e;\n  }" { (expression_statement "__printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2);" (call_expression "__printf_chk(1," Performing controller firmware download (1st controller)",uVar2,uVar2)" identifier (argument_list "(1," Performing controller firmware download (1st controller)",uVar2,uVar2)" ( number_literal , (string_literal "" Performing controller firmware download (1st controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (vendor < 5) {\n    if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n  }\n  else {\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }" if (parenthesized_expression "(vendor < 5)" ( (binary_expression "vendor < 5" identifier < number_literal) )) (compound_statement "{\n    if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n  }" { (if_statement "if (vendor == '\x02') {\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor == '\x02')" ( (binary_expression "vendor == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      __printf_chk(1," Non-responsive to queries",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Non-responsive to queries",uVar2,uVar2);" (call_expression "__printf_chk(1," Non-responsive to queries",uVar2,uVar2)" identifier (argument_list "(1," Non-responsive to queries",uVar2,uVar2)" ( number_literal , (string_literal "" Non-responsive to queries"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (2 < vendor) {\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(2 < vendor)" ( (binary_expression "2 < vendor" number_literal < identifier) )) (compound_statement "{\n      __printf_chk(1," Controller being held in reset",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Controller being held in reset",uVar2,uVar2);" (call_expression "__printf_chk(1," Controller being held in reset",uVar2,uVar2)" identifier (argument_list "(1," Controller being held in reset",uVar2,uVar2)" ( number_literal , (string_literal "" Controller being held in reset"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (vendor == '\x01') {\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor == '\x01')" ( (binary_expression "vendor == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      __printf_chk(1," Operating normally",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Operating normally",uVar2,uVar2);" (call_expression "__printf_chk(1," Operating normally",uVar2,uVar2)" identifier (argument_list "(1," Operating normally",uVar2,uVar2)" ( number_literal , (string_literal "" Operating normally"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }" else (compound_statement "{\n    if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }\n    if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }\n    if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }\n    if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }\n  }" { (if_statement "if (vendor == '\x06') {\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor == '\x06')" ( (binary_expression "vendor == '\x06'" identifier == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n      __printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2);" (call_expression "__printf_chk(1," Quiesced as a result of an administrative request",uVar2,uVar2)" identifier (argument_list "(1," Quiesced as a result of an administrative request",uVar2,uVar2)" ( number_literal , (string_literal "" Quiesced as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (vendor < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor < 6)" ( (binary_expression "vendor < 6" identifier < number_literal) )) (compound_statement "{\n      __printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);" (call_expression "__printf_chk(1," Performing controller firmware download (2nd controller)",uVar3,uVar3)" identifier (argument_list "(1," Performing controller firmware download (2nd controller)",uVar3,uVar3)" ( number_literal , (string_literal "" Performing controller firmware download (2nd controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (vendor == '\a') {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor == '\a')" ( (binary_expression "vendor == '\a'" identifier == (char_literal "'\a'" ' escape_sequence ')) )) (compound_statement "{\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);" (call_expression "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" identifier (argument_list "(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" ( number_literal , (string_literal "" Service mode as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) (if_statement "if (vendor == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }" if (parenthesized_expression "(vendor == 0xff)" ( (binary_expression "vendor == 0xff" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto LAB_0001608e;\n    }" { (expression_statement "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);" (call_expression "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX)" identifier (argument_list "(1," Details are not available",extraout_EDX,extraout_EDX)" ( number_literal , (string_literal "" Details are not available"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0001608e;" goto statement_identifier ;) })) }))) (expression_statement "__printf_chk(1," (unknown)",uVar2,uVar2);" (call_expression "__printf_chk(1," (unknown)",uVar2,uVar2)" identifier (argument_list "(1," (unknown)",uVar2,uVar2)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "LAB_0001608e:\n  putchar(10);" statement_identifier : (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015fe0(uint param_1,undefined4 param_2)" identifier (parameter_list "(uint param_1,undefined4 param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "param_1 = param_1 & 0xf;" (assignment_expression "param_1 = param_1 & 0xf" identifier = (binary_expression "param_1 & 0xf" identifier & number_literal)) ;) (expression_statement "__printf_chk(1,"  Asymmetric Access State:");" (call_expression "__printf_chk(1,"  Asymmetric Access State:")" identifier (argument_list "(1,"  Asymmetric Access State:")" ( number_literal , (string_literal ""  Asymmetric Access State:"" " string_content ") ))) ;) (expression_statement "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);" (assignment_expression "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" identifier = (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_00022fdc + param_1 * 4)" * (cast_expression "(int *)(&DAT_00022fdc + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00022fdc + param_1 * 4)" ( (binary_expression "&DAT_00022fdc + param_1 * 4" (pointer_expression "&DAT_00022fdc" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (switch_statement "switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" { (case_statement "case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Optimized",uVar2,uVar2)" identifier (argument_list "(1," Active/Optimized",uVar2,uVar2)" ( number_literal , (string_literal "" Active/Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2)" identifier (argument_list "(1," Active/Non-Optimized",uVar2,uVar2)" ( number_literal , (string_literal "" Active/Non-Optimized"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Standby",uVar2,uVar2);" (call_expression "__printf_chk(1," Standby",uVar2,uVar2)" identifier (argument_list "(1," Standby",uVar2,uVar2)" ( number_literal , (string_literal "" Standby"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Unavailable",uVar2,uVar2);" (call_expression "__printf_chk(1," Unavailable",uVar2,uVar2)" identifier (argument_list "(1," Unavailable",uVar2,uVar2)" ( number_literal , (string_literal "" Unavailable"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;" default : (expression_statement "uVar2 = extraout_ECX;" (assignment_expression "uVar2 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" identifier = identifier) ;) (expression_statement "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);" (call_expression "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX)" identifier (argument_list "(1," (unknown)",extraout_ECX,extraout_ECX)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;" case number_literal : (expression_statement "__printf_chk(1," Offline",uVar2,uVar2);" (call_expression "__printf_chk(1," Offline",uVar2,uVar2)" identifier (argument_list "(1," Offline",uVar2,uVar2)" ( number_literal , (string_literal "" Offline"" " string_content ") , identifier , identifier ))) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);" case number_literal : (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" identifier = identifier) ;) (expression_statement "__printf_chk(1," Transitioning",param_1,param_1);" (call_expression "__printf_chk(1," Transitioning",param_1,param_1)" identifier (argument_list "(1," Transitioning",param_1,param_1)" ( number_literal , (string_literal "" Transitioning"" " string_content ") , identifier , identifier ))) ;)) })) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (expression_statement "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);" (call_expression "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3)" identifier (argument_list "(1,"  Vendor Specific Field:",uVar2,uVar3)" ( number_literal , (string_literal ""  Vendor Specific Field:"" " string_content ") , identifier , identifier ))) ;) (expression_statement "bVar1 = (byte)param_2;" (assignment_expression "bVar1 = (byte)param_2" identifier = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" if (parenthesized_expression "(bVar1 == 4)" ( (binary_expression "bVar1 == 4" identifier == number_literal) )) (compound_statement "{\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" { (expression_statement "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);" (call_expression "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2)" identifier (argument_list "(1," Performing controller firmware download (1st controller)",param_2,param_2)" ( number_literal , (string_literal "" Performing controller firmware download (1st controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" if (parenthesized_expression "(bVar1 < 5)" ( (binary_expression "bVar1 < 5" identifier < number_literal) )) (compound_statement "{\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }" { (if_statement "if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 2)" ( (binary_expression "bVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Non-responsive to queries",param_2,param_2);" (call_expression "__printf_chk(1," Non-responsive to queries",param_2,param_2)" identifier (argument_list "(1," Non-responsive to queries",param_2,param_2)" ( number_literal , (string_literal "" Non-responsive to queries"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(2 < bVar1)" ( (binary_expression "2 < bVar1" number_literal < identifier) )) (compound_statement "{\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Controller being held in reset",param_2,param_2);" (call_expression "__printf_chk(1," Controller being held in reset",param_2,param_2)" identifier (argument_list "(1," Controller being held in reset",param_2,param_2)" ( number_literal , (string_literal "" Controller being held in reset"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 1)" ( (binary_expression "bVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Operating normally",param_2,param_2);" (call_expression "__printf_chk(1," Operating normally",param_2,param_2)" identifier (argument_list "(1," Operating normally",param_2,param_2)" ( number_literal , (string_literal "" Operating normally"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" else (compound_statement "{\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" { (if_statement "if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 6)" ( (binary_expression "bVar1 == 6" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);" (call_expression "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2)" identifier (argument_list "(1," Quiesced as a result of an administrative request",param_2,param_2)" ( number_literal , (string_literal "" Quiesced as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 < 6)" ( (binary_expression "bVar1 < 6" identifier < number_literal) )) (compound_statement "{\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);" (call_expression "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1)" identifier (argument_list "(1," Performing controller firmware download (2nd controller)",param_1,param_1)" ( number_literal , (string_literal "" Performing controller firmware download (2nd controller)"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 7)" ( (binary_expression "bVar1 == 7" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);" (call_expression "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" identifier (argument_list "(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" ( number_literal , (string_literal "" Service mode as a result of an administrative request"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) (if_statement "if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" if (parenthesized_expression "(bVar1 == 0xff)" ( (binary_expression "bVar1 == 0xff" identifier == number_literal) )) (compound_statement "{\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" { (expression_statement "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);" (call_expression "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX)" identifier (argument_list "(1," Details are not available",extraout_EDX,extraout_EDX)" ( number_literal , (string_literal "" Details are not available"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto code_r0x0001608e;" goto statement_identifier ;) })) }))) (expression_statement "__printf_chk(1," (unknown)",param_2,param_2);" (call_expression "__printf_chk(1," (unknown)",param_2,param_2)" identifier (argument_list "(1," (unknown)",param_2,param_2)" ( number_literal , (string_literal "" (unknown)"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "code_r0x0001608e:\n  putchar(10);" statement_identifier : (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement default : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;)) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;)) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00015fe0(uint param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015fe0(uint param_1,undefined4 param_2)" (identifier "FUN_00015fe0") (parameter_list "(uint param_1,undefined4 param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  \n  param_1 = param_1 & 0xf;\n  __printf_chk(1,"  Asymmetric Access State:");\n  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);\n  uVar3 = uVar2;\n  switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }\n  putchar(10);\n  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);\n  bVar1 = (byte)param_2;\n  if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }\n  if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }\n  __printf_chk(1," (unknown)",param_2,param_2);\ncode_r0x0001608e:\n  putchar(10);\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint extraout_ECX;" (type_identifier "uint") (identifier "extraout_ECX") (; ";")) (declaration "undefined4 extraout_ECX_00;" (type_identifier "undefined4") (identifier "extraout_ECX_00") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "param_1 = param_1 & 0xf;" (assignment_expression "param_1 = param_1 & 0xf" (identifier "param_1") (= "=") (binary_expression "param_1 & 0xf" (identifier "param_1") (& "&") (number_literal "0xf"))) (; ";")) (expression_statement "__printf_chk(1,"  Asymmetric Access State:");" (call_expression "__printf_chk(1,"  Asymmetric Access State:")" (identifier "__printf_chk") (argument_list "(1,"  Asymmetric Access State:")" (( "(") (number_literal "1") (, ",") (string_literal ""  Asymmetric Access State:"" (" """) (string_content "  Asymmetric Access State:") (" """)) () ")"))) (; ";")) (expression_statement "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);" (assignment_expression "uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" (identifier "uVar2") (= "=") (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4)" (cast_expression "(int)&__DT_PLTGOT" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (+ "+") (pointer_expression "*(int *)(&DAT_00022fdc + param_1 * 4)" (* "*") (cast_expression "(int *)(&DAT_00022fdc + param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00022fdc + param_1 * 4)" (( "(") (binary_expression "&DAT_00022fdc + param_1 * 4" (pointer_expression "&DAT_00022fdc" (& "&") (identifier "DAT_00022fdc")) (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (switch_statement "switch(param_1) {\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" (switch "switch") (parenthesized_expression "(param_1)" (( "(") (identifier "param_1") () ")")) (compound_statement "{\n  case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;\n  case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;\n  case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;\n  case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;\n  default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;\n  case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;\n  case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);\n  }" ({ "{") (case_statement "case 0:\n    __printf_chk(1," Active/Optimized",uVar2,uVar2);\n    break;" (case "case") (number_literal "0") (: ":") (expression_statement "__printf_chk(1," Active/Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Optimized",uVar2,uVar2)" (identifier "__printf_chk") (argument_list "(1," Active/Optimized",uVar2,uVar2)" (( "(") (number_literal "1") (, ",") (string_literal "" Active/Optimized"" (" """) (string_content " Active/Optimized") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 1:\n    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);\n    break;" (case "case") (number_literal "1") (: ":") (expression_statement "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2);" (call_expression "__printf_chk(1," Active/Non-Optimized",uVar2,uVar2)" (identifier "__printf_chk") (argument_list "(1," Active/Non-Optimized",uVar2,uVar2)" (( "(") (number_literal "1") (, ",") (string_literal "" Active/Non-Optimized"" (" """) (string_content " Active/Non-Optimized") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 2:\n    __printf_chk(1," Standby",uVar2,uVar2);\n    break;" (case "case") (number_literal "2") (: ":") (expression_statement "__printf_chk(1," Standby",uVar2,uVar2);" (call_expression "__printf_chk(1," Standby",uVar2,uVar2)" (identifier "__printf_chk") (argument_list "(1," Standby",uVar2,uVar2)" (( "(") (number_literal "1") (, ",") (string_literal "" Standby"" (" """) (string_content " Standby") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n    __printf_chk(1," Unavailable",uVar2,uVar2);\n    break;" (case "case") (number_literal "3") (: ":") (expression_statement "__printf_chk(1," Unavailable",uVar2,uVar2);" (call_expression "__printf_chk(1," Unavailable",uVar2,uVar2)" (identifier "__printf_chk") (argument_list "(1," Unavailable",uVar2,uVar2)" (( "(") (number_literal "1") (, ",") (string_literal "" Unavailable"" (" """) (string_content " Unavailable") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n    uVar2 = extraout_ECX;\n    uVar3 = extraout_ECX;\n    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);\n    break;" (default "default") (: ":") (expression_statement "uVar2 = extraout_ECX;" (assignment_expression "uVar2 = extraout_ECX" (identifier "uVar2") (= "=") (identifier "extraout_ECX")) (; ";")) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" (identifier "uVar3") (= "=") (identifier "extraout_ECX")) (; ";")) (expression_statement "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);" (call_expression "__printf_chk(1," (unknown)",extraout_ECX,extraout_ECX)" (identifier "__printf_chk") (argument_list "(1," (unknown)",extraout_ECX,extraout_ECX)" (( "(") (number_literal "1") (, ",") (string_literal "" (unknown)"" (" """) (string_content " (unknown)") (" """)) (, ",") (identifier "extraout_ECX") (, ",") (identifier "extraout_ECX") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xe:\n    __printf_chk(1," Offline",uVar2,uVar2);\n    break;" (case "case") (number_literal "0xe") (: ":") (expression_statement "__printf_chk(1," Offline",uVar2,uVar2);" (call_expression "__printf_chk(1," Offline",uVar2,uVar2)" (identifier "__printf_chk") (argument_list "(1," Offline",uVar2,uVar2)" (( "(") (number_literal "1") (, ",") (string_literal "" Offline"" (" """) (string_content " Offline") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xf:\n    uVar2 = param_1;\n    uVar3 = param_1;\n    __printf_chk(1," Transitioning",param_1,param_1);" (case "case") (number_literal "0xf") (: ":") (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" (identifier "uVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" (identifier "uVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "__printf_chk(1," Transitioning",param_1,param_1);" (call_expression "__printf_chk(1," Transitioning",param_1,param_1)" (identifier "__printf_chk") (argument_list "(1," Transitioning",param_1,param_1)" (( "(") (number_literal "1") (, ",") (string_literal "" Transitioning"" (" """) (string_content " Transitioning") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_1") () ")"))) (; ";"))) (} "}"))) (expression_statement "putchar(10);" (call_expression "putchar(10)" (identifier "putchar") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (expression_statement "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);" (call_expression "__printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3)" (identifier "__printf_chk") (argument_list "(1,"  Vendor Specific Field:",uVar2,uVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""  Vendor Specific Field:"" (" """) (string_content "  Vendor Specific Field:") (" """)) (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "bVar1 = (byte)param_2;" (assignment_expression "bVar1 = (byte)param_2" (identifier "bVar1") (= "=") (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if (bVar1 == 4) {\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" (if "if") (parenthesized_expression "(bVar1 == 4)" (( "(") (binary_expression "bVar1 == 4" (identifier "bVar1") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);\n    goto code_r0x0001608e;\n  }" ({ "{") (expression_statement "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);" (call_expression "__printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," Performing controller firmware download (1st controller)",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" Performing controller firmware download (1st controller)"" (" """) (string_content " Performing controller firmware download (1st controller)") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (bVar1 < 5) {\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }\n  else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" (if "if") (parenthesized_expression "(bVar1 < 5)" (( "(") (binary_expression "bVar1 < 5" (identifier "bVar1") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n    if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n  }" ({ "{") (if_statement "if (bVar1 == 2) {\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 == 2)" (( "(") (binary_expression "bVar1 == 2" (identifier "bVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      __printf_chk(1," Non-responsive to queries",param_2,param_2);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Non-responsive to queries",param_2,param_2);" (call_expression "__printf_chk(1," Non-responsive to queries",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," Non-responsive to queries",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" Non-responsive to queries"" (" """) (string_content " Non-responsive to queries") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (2 < bVar1) {\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(2 < bVar1)" (( "(") (binary_expression "2 < bVar1" (number_literal "2") (< "<") (identifier "bVar1")) () ")")) (compound_statement "{\n      __printf_chk(1," Controller being held in reset",param_2,param_2);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Controller being held in reset",param_2,param_2);" (call_expression "__printf_chk(1," Controller being held in reset",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," Controller being held in reset",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" Controller being held in reset"" (" """) (string_content " Controller being held in reset") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (bVar1 == 1) {\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 == 1)" (( "(") (binary_expression "bVar1 == 1" (identifier "bVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      __printf_chk(1," Operating normally",param_2,param_2);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Operating normally",param_2,param_2);" (call_expression "__printf_chk(1," Operating normally",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," Operating normally",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" Operating normally"" (" """) (string_content " Operating normally") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" (else "else") (compound_statement "{\n    if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }\n    if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }\n  }" ({ "{") (if_statement "if (bVar1 == 6) {\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 == 6)" (( "(") (binary_expression "bVar1 == 6" (identifier "bVar1") (== "==") (number_literal "6")) () ")")) (compound_statement "{\n      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);" (call_expression "__printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," Quiesced as a result of an administrative request",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" Quiesced as a result of an administrative request"" (" """) (string_content " Quiesced as a result of an administrative request") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (bVar1 < 6) {\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 < 6)" (( "(") (binary_expression "bVar1 < 6" (identifier "bVar1") (< "<") (number_literal "6")) () ")")) (compound_statement "{\n      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);" (call_expression "__printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1)" (identifier "__printf_chk") (argument_list "(1," Performing controller firmware download (2nd controller)",param_1,param_1)" (( "(") (number_literal "1") (, ",") (string_literal "" Performing controller firmware download (2nd controller)"" (" """) (string_content " Performing controller firmware download (2nd controller)") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (bVar1 == 7) {\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 == 7)" (( "(") (binary_expression "bVar1 == 7" (identifier "bVar1") (== "==") (number_literal "7")) () ")")) (compound_statement "{\n      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00);" (call_expression "__printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" (identifier "__printf_chk") (argument_list "(1," Service mode as a result of an administrative request",extraout_ECX_00,\n                   extraout_ECX_00)" (( "(") (number_literal "1") (, ",") (string_literal "" Service mode as a result of an administrative request"" (" """) (string_content " Service mode as a result of an administrative request") (" """)) (, ",") (identifier "extraout_ECX_00") (, ",") (identifier "extraout_ECX_00") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (if_statement "if (bVar1 == 0xff) {\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0xff)" (( "(") (binary_expression "bVar1 == 0xff" (identifier "bVar1") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);\n      goto code_r0x0001608e;\n    }" ({ "{") (expression_statement "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);" (call_expression "__printf_chk(1," Details are not available",extraout_EDX,extraout_EDX)" (identifier "__printf_chk") (argument_list "(1," Details are not available",extraout_EDX,extraout_EDX)" (( "(") (number_literal "1") (, ",") (string_literal "" Details are not available"" (" """) (string_content " Details are not available") (" """)) (, ",") (identifier "extraout_EDX") (, ",") (identifier "extraout_EDX") () ")"))) (; ";")) (goto_statement "goto code_r0x0001608e;" (goto "goto") (statement_identifier "code_r0x0001608e") (; ";")) (} "}"))) (} "}")))) (expression_statement "__printf_chk(1," (unknown)",param_2,param_2);" (call_expression "__printf_chk(1," (unknown)",param_2,param_2)" (identifier "__printf_chk") (argument_list "(1," (unknown)",param_2,param_2)" (( "(") (number_literal "1") (, ",") (string_literal "" (unknown)"" (" """) (string_content " (unknown)") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (labeled_statement "code_r0x0001608e:\n  putchar(10);" (statement_identifier "code_r0x0001608e") (: ":") (expression_statement "putchar(10);" (call_expression "putchar(10)" (identifier "putchar") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(uint8_t var_2,uint8_t var_5)

{
  type_1 uVar1;
  type_1 extraout_ECX;
  type_2 extraout_ECX_00;
  type_3 in_register_00000009;
  type_2 uVar2;
  type_2 extraout_EDX;
  type_1 uVar3;
  type_1 uVar4;
  
  uVar2 = var_1(in_register_00000009,var_5);
  uVar3 = var_2 & 0xf;
  var_3(1,"  Asymmetric Access State:");
  uVar1 = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00016012::switchdataD_00022fdc)[uVar3];
  uVar4 = uVar1;
  switch(uVar3) {
  case 0:
    var_3(1," Active/Optimized",uVar1,uVar1);
    break;
  case 1:
    var_3(1," Active/Non-Optimized",uVar1,uVar1);
    break;
  case 2:
    var_3(1," Standby",uVar1,uVar1);
    break;
  case 3:
    var_3(1," Unavailable",uVar1,uVar1);
    break;
  default:
    uVar1 = extraout_ECX;
    uVar4 = extraout_ECX;
    var_3(1," (unknown)",extraout_ECX,extraout_ECX);
    break;
  case 0xe:
    var_3(1," Offline",uVar1,uVar1);
    break;
  case 0xf:
    uVar1 = uVar3;
    uVar4 = uVar3;
    var_3(1," Transitioning",uVar3,uVar3);
  }
  var_4(10);
  var_3(1,"  Vendor Specific Field:",uVar1,uVar4);
  if (var_5 == '\x04') {
    var_3(1," Performing controller firmware download (1st controller)",uVar2,uVar2);
    goto LAB_0001608e;
  }
  if (var_5 < 5) {
    if (var_5 == '\x02') {
      var_3(1," Non-responsive to queries",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (2 < var_5) {
      var_3(1," Controller being held in reset",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (var_5 == '\x01') {
      var_3(1," Operating normally",uVar2,uVar2);
      goto LAB_0001608e;
    }
  }
  else {
    if (var_5 == '\x06') {
      var_3(1," Quiesced as a result of an administrative request",uVar2,uVar2);
      goto LAB_0001608e;
    }
    if (var_5 < 6) {
      var_3(1," Performing controller firmware download (2nd controller)",uVar3,uVar3);
      goto LAB_0001608e;
    }
    if (var_5 == '\a') {
      var_3(1," Service mode as a result of an administrative request",extraout_ECX_00,
                   extraout_ECX_00);
      goto LAB_0001608e;
    }
    if (var_5 == 0xff) {
      var_3(1," Details are not available",extraout_EDX,extraout_EDX);
      goto LAB_0001608e;
    }
  }
  var_3(1," (unknown)",uVar2,uVar2);
LAB_0001608e:
  var_4(10);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (return_statement))))

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

void __regparm3 MASKED(uint param_1,undefined4 param_2)

{
  byte bVar1;
  uint uVar2;
  uint extraout_ECX;
  undefined4 extraout_ECX_00;
  undefined4 extraout_EDX;
  uint uVar3;
  
  param_1 = param_1 & 0xf;
  __printf_chk(1,"  Asymmetric Access State:");
  uVar2 = (int)&__DT_PLTGOT + *(int *)(&DAT_00022fdc + param_1 * 4);
  uVar3 = uVar2;
  switch(param_1) {
  case 0:
    __printf_chk(1," Active/Optimized",uVar2,uVar2);
    break;
  case 1:
    __printf_chk(1," Active/Non-Optimized",uVar2,uVar2);
    break;
  case 2:
    __printf_chk(1," Standby",uVar2,uVar2);
    break;
  case 3:
    __printf_chk(1," Unavailable",uVar2,uVar2);
    break;
  default:
    uVar2 = extraout_ECX;
    uVar3 = extraout_ECX;
    __printf_chk(1," (unknown)",extraout_ECX,extraout_ECX);
    break;
  case 0xe:
    __printf_chk(1," Offline",uVar2,uVar2);
    break;
  case 0xf:
    uVar2 = param_1;
    uVar3 = param_1;
    __printf_chk(1," Transitioning",param_1,param_1);
  }
  putchar(10);
  __printf_chk(1,"  Vendor Specific Field:",uVar2,uVar3);
  bVar1 = (byte)param_2;
  if (bVar1 == 4) {
    __printf_chk(1," Performing controller firmware download (1st controller)",param_2,param_2);
    goto code_r0x0001608e;
  }
  if (bVar1 < 5) {
    if (bVar1 == 2) {
      __printf_chk(1," Non-responsive to queries",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (2 < bVar1) {
      __printf_chk(1," Controller being held in reset",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (bVar1 == 1) {
      __printf_chk(1," Operating normally",param_2,param_2);
      goto code_r0x0001608e;
    }
  }
  else {
    if (bVar1 == 6) {
      __printf_chk(1," Quiesced as a result of an administrative request",param_2,param_2);
      goto code_r0x0001608e;
    }
    if (bVar1 < 6) {
      __printf_chk(1," Performing controller firmware download (2nd controller)",param_1,param_1);
      goto code_r0x0001608e;
    }
    if (bVar1 == 7) {
      __printf_chk(1," Service mode as a result of an administrative request",extraout_ECX_00,
                   extraout_ECX_00);
      goto code_r0x0001608e;
    }
    if (bVar1 == 0xff) {
      __printf_chk(1," Details are not available",extraout_EDX,extraout_EDX);
      goto code_r0x0001608e;
    }
  }
  __printf_chk(1," (unknown)",param_2,param_2);
code_r0x0001608e:
  putchar(10);
  return;
}

