
_Bool sg_get_sense_info_fld(uint8_t *sbp,int sb_len,uint64_t *info_outp)

{
  uint uVar1;
  ulong uVar2;
  _Bool _Var3;
  uint8_t *puVar4;
  byte bVar5;
  
  if (info_outp != (uint64_t *)0x0) {
    *info_outp = 0;
  }
  if (sb_len < 7) {
    return false;
  }
  bVar5 = *sbp & 0x7f;
  if (bVar5 < 0x70) {
    return false;
  }
  if (0x71 < bVar5) {
    if (bVar5 < 0x74) {
      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);
      if (puVar4 == (uint8_t *)0x0) {
        _Var3 = false;
      }
      else {
        _Var3 = false;
        if (puVar4[1] == '\n') {
          if (info_outp != (uint64_t *)0x0) {
            uVar2 = *(ulong *)(puVar4 + 4);
            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |
                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |
                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
          }
          _Var3 = (_Bool)(puVar4[2] >> 7);
        }
      }
      return _Var3;
    }
    return false;
  }
  if (info_outp != (uint64_t *)0x0) {
    uVar1 = *(uint *)(sbp + 3);
    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                        uVar1 << 0x18);
  }
  return (_Bool)(*sbp >> 7);
}



byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)

{
  uint uVar1;
  ulong uVar2;
  byte bVar3;
  long lVar4;
  
  if (param_3 != (ulong *)0x0) {
    *param_3 = 0;
  }
  if (param_2 < 7) {
    return 0;
  }
  bVar3 = *param_1 & 0x7f;
  if (bVar3 < 0x70) {
    return 0;
  }
  if (0x71 < bVar3) {
    if (bVar3 < 0x74) {
      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);
      if (lVar4 == 0) {
        bVar3 = 0;
      }
      else {
        bVar3 = 0;
        if (*(char *)(lVar4 + 1) == '\n') {
          if (param_3 != (ulong *)0x0) {
            uVar2 = *(ulong *)(lVar4 + 4);
            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |
                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |
                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
          }
          bVar3 = *(byte *)(lVar4 + 2) >> 7;
        }
      }
      return bVar3;
    }
    return 0;
  }
  if (param_3 != (ulong *)0x0) {
    uVar1 = *(uint *)(param_1 + 3);
    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                      uVar1 << 0x18);
  }
  return *param_1 >> 7;
}


TEST RDX,RDX
JZ 0x0010f685
MOV qword ptr [RDX],0x0
MOV EAX,0x0
CMP ESI,0x6
JLE 0x0010f703
MOVZX ECX,byte ptr [RDI]
AND ECX,0x7f
CMP CL,0x70
JC 0x0010f6f6
CMP CL,0x71
JBE 0x0010f6c8
CMP CL,0x73
JA 0x0010f6c7
PUSH RBX
MOV RBX,RDX
MOV EDX,0x0
CALL 0x0010e180
MOV RDX,RAX
TEST RAX,RAX
JZ 0x0010f6fc
MOV EAX,0x0
CMP byte ptr [RDX + 0x1],0xa
JZ 0x0010f6de
POP RBX
RET
RET
TEST RDX,RDX
JZ 0x0010f6d7
MOV EAX,dword ptr [RDI + 0x3]
BSWAP EAX
MOV EAX,EAX
MOV qword ptr [RDX],RAX
MOVZX EAX,byte ptr [RDI]
SHR AL,0x7
RET
TEST RBX,RBX
JZ 0x0010f6ed
MOV RAX,qword ptr [RDX + 0x4]
BSWAP RAX
MOV qword ptr [RBX],RAX
MOVZX EAX,byte ptr [RDX + 0x2]
SHR AL,0x7
JMP 0x0010f6c5
MOV EAX,0x0
RET
MOV EAX,0x0
JMP 0x0010f6c5
RET
(translation_unit "byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}\n\n" (function_definition "byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" type_identifier (function_declarator "sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)" identifier (parameter_list "(byte *param_1,int param_2,ulong *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = 0;\n  }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_2 < 7) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 7)" ( (binary_expression "param_2 < 7" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (if_statement "if (bVar3 < 0x70) {\n    return 0;\n  }" if (parenthesized_expression "(bVar3 < 0x70)" ( (binary_expression "bVar3 < 0x70" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" if (parenthesized_expression "(0x71 < bVar3)" ( (binary_expression "0x71 < bVar3" number_literal < identifier) )) (compound_statement "{\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" { (if_statement "if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" if (parenthesized_expression "(bVar3 < 0x74)" ( (binary_expression "bVar3 < 0x74" identifier < number_literal) )) (compound_statement "{\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" { (expression_statement "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);" (assignment_expression "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0)" identifier = (call_expression "sg_scsi_sense_desc_find(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar3 = 0;\n      }" { (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" else (compound_statement "{\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" { (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" if (parenthesized_expression "(*(char *)(lVar4 + 1) == '\n')" ( (binary_expression "*(char *)(lVar4 + 1) == '\n'" (pointer_expression "*(char *)(lVar4 + 1)" * (cast_expression "(char *)(lVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 1)" ( (binary_expression "lVar4 + 1" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" { (if_statement "if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" { (expression_statement "uVar2 = *(ulong *)(lVar4 + 4);" (assignment_expression "uVar2 = *(ulong *)(lVar4 + 4)" identifier = (pointer_expression "*(ulong *)(lVar4 + 4)" * (cast_expression "(ulong *)(lVar4 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 4)" ( (binary_expression "lVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (assignment_expression "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal))) ;) })) (expression_statement "bVar3 = *(byte *)(lVar4 + 2) >> 7;" (assignment_expression "bVar3 = *(byte *)(lVar4 + 2) >> 7" identifier = (binary_expression "*(byte *)(lVar4 + 2) >> 7" (pointer_expression "*(byte *)(lVar4 + 2)" * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) >> number_literal)) ;) })) }))) (return_statement "return bVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" { (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" identifier = (pointer_expression "*(uint *)(param_1 + 3)" * (cast_expression "(uint *)(param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);" (assignment_expression "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (pointer_expression "*param_3" * identifier) = (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) })) (return_statement "return *param_1 >> 7;" return (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" * identifier) >> number_literal) ;) })))
(translation_unit "_Bool sg_get_sense_info_fld(uint8_t *sbp,int sb_len,uint64_t *info_outp)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  _Bool _Var3;\n  uint8_t *puVar4;\n  byte bVar5;\n  \n  if (info_outp != (uint64_t *)0x0) {\n    *info_outp = 0;\n  }\n  if (sb_len < 7) {\n    return false;\n  }\n  bVar5 = *sbp & 0x7f;\n  if (bVar5 < 0x70) {\n    return false;\n  }\n  if (0x71 < bVar5) {\n    if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }\n    return false;\n  }\n  if (info_outp != (uint64_t *)0x0) {\n    uVar1 = *(uint *)(sbp + 3);\n    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);\n  }\n  return (_Bool)(*sbp >> 7);\n}\n\n" (function_definition "_Bool sg_get_sense_info_fld(uint8_t *sbp,int sb_len,uint64_t *info_outp)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  _Bool _Var3;\n  uint8_t *puVar4;\n  byte bVar5;\n  \n  if (info_outp != (uint64_t *)0x0) {\n    *info_outp = 0;\n  }\n  if (sb_len < 7) {\n    return false;\n  }\n  bVar5 = *sbp & 0x7f;\n  if (bVar5 < 0x70) {\n    return false;\n  }\n  if (0x71 < bVar5) {\n    if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }\n    return false;\n  }\n  if (info_outp != (uint64_t *)0x0) {\n    uVar1 = *(uint *)(sbp + 3);\n    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);\n  }\n  return (_Bool)(*sbp >> 7);\n}" type_identifier (function_declarator "sg_get_sense_info_fld(uint8_t *sbp,int sb_len,uint64_t *info_outp)" identifier (parameter_list "(uint8_t *sbp,int sb_len,uint64_t *info_outp)" ( (parameter_declaration "uint8_t *sbp" primitive_type (pointer_declarator "*sbp" * identifier)) , (parameter_declaration "int sb_len" primitive_type identifier) , (parameter_declaration "uint64_t *info_outp" primitive_type (pointer_declarator "*info_outp" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  _Bool _Var3;\n  uint8_t *puVar4;\n  byte bVar5;\n  \n  if (info_outp != (uint64_t *)0x0) {\n    *info_outp = 0;\n  }\n  if (sb_len < 7) {\n    return false;\n  }\n  bVar5 = *sbp & 0x7f;\n  if (bVar5 < 0x70) {\n    return false;\n  }\n  if (0x71 < bVar5) {\n    if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }\n    return false;\n  }\n  if (info_outp != (uint64_t *)0x0) {\n    uVar1 = *(uint *)(sbp + 3);\n    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);\n  }\n  return (_Bool)(*sbp >> 7);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "uint8_t *puVar4;" primitive_type (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (if_statement "if (info_outp != (uint64_t *)0x0) {\n    *info_outp = 0;\n  }" if (parenthesized_expression "(info_outp != (uint64_t *)0x0)" ( (binary_expression "info_outp != (uint64_t *)0x0" identifier != (cast_expression "(uint64_t *)0x0" ( (type_descriptor "uint64_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *info_outp = 0;\n  }" { (expression_statement "*info_outp = 0;" (assignment_expression "*info_outp = 0" (pointer_expression "*info_outp" * identifier) = number_literal) ;) })) (if_statement "if (sb_len < 7) {\n    return false;\n  }" if (parenthesized_expression "(sb_len < 7)" ( (binary_expression "sb_len < 7" identifier < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "bVar5 = *sbp & 0x7f;" (assignment_expression "bVar5 = *sbp & 0x7f" identifier = (binary_expression "*sbp & 0x7f" (pointer_expression "*sbp" * identifier) & number_literal)) ;) (if_statement "if (bVar5 < 0x70) {\n    return false;\n  }" if (parenthesized_expression "(bVar5 < 0x70)" ( (binary_expression "bVar5 < 0x70" identifier < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if (0x71 < bVar5) {\n    if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }\n    return false;\n  }" if (parenthesized_expression "(0x71 < bVar5)" ( (binary_expression "0x71 < bVar5" number_literal < identifier) )) (compound_statement "{\n    if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }\n    return false;\n  }" { (if_statement "if (bVar5 < 0x74) {\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }" if (parenthesized_expression "(bVar5 < 0x74)" ( (binary_expression "bVar5 < 0x74" identifier < number_literal) )) (compound_statement "{\n      puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);\n      if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }\n      return _Var3;\n    }" { (expression_statement "puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0);" (assignment_expression "puVar4 = sg_scsi_sense_desc_find(sbp,sb_len,0)" identifier = (call_expression "sg_scsi_sense_desc_find(sbp,sb_len,0)" identifier (argument_list "(sbp,sb_len,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (puVar4 == (uint8_t *)0x0) {\n        _Var3 = false;\n      }\n      else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }" if (parenthesized_expression "(puVar4 == (uint8_t *)0x0)" ( (binary_expression "puVar4 == (uint8_t *)0x0" identifier == (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        _Var3 = false;\n      }" { (expression_statement "_Var3 = false;" (assignment_expression "_Var3 = false" identifier = false) ;) }) (else_clause "else {\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }" else (compound_statement "{\n        _Var3 = false;\n        if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }\n      }" { (expression_statement "_Var3 = false;" (assignment_expression "_Var3 = false" identifier = false) ;) (if_statement "if (puVar4[1] == '\n') {\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }" if (parenthesized_expression "(puVar4[1] == '\n')" ( (binary_expression "puVar4[1] == '\n'" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n          if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          _Var3 = (_Bool)(puVar4[2] >> 7);\n        }" { (if_statement "if (info_outp != (uint64_t *)0x0) {\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" if (parenthesized_expression "(info_outp != (uint64_t *)0x0)" ( (binary_expression "info_outp != (uint64_t *)0x0" identifier != (cast_expression "(uint64_t *)0x0" ( (type_descriptor "uint64_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar2 = *(ulong *)(puVar4 + 4);\n            *info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" { (expression_statement "uVar2 = *(ulong *)(puVar4 + 4);" (assignment_expression "uVar2 = *(ulong *)(puVar4 + 4)" identifier = (pointer_expression "*(ulong *)(puVar4 + 4)" * (cast_expression "(ulong *)(puVar4 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 4)" ( (binary_expression "puVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (assignment_expression "*info_outp = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (pointer_expression "*info_outp" * identifier) = (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                         (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                         (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                         (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal))) ;) })) (expression_statement "_Var3 = (_Bool)(puVar4[2] >> 7);" (assignment_expression "_Var3 = (_Bool)(puVar4[2] >> 7)" identifier = (call_expression "(_Bool)(puVar4[2] >> 7)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "(puVar4[2] >> 7)" ( (binary_expression "puVar4[2] >> 7" (subscript_expression "puVar4[2]" identifier [ number_literal ]) >> number_literal) )))) ;) })) }))) (return_statement "return _Var3;" return identifier ;) })) (return_statement "return false;" return false ;) })) (if_statement "if (info_outp != (uint64_t *)0x0) {\n    uVar1 = *(uint *)(sbp + 3);\n    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);\n  }" if (parenthesized_expression "(info_outp != (uint64_t *)0x0)" ( (binary_expression "info_outp != (uint64_t *)0x0" identifier != (cast_expression "(uint64_t *)0x0" ( (type_descriptor "uint64_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *(uint *)(sbp + 3);\n    *info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);\n  }" { (expression_statement "uVar1 = *(uint *)(sbp + 3);" (assignment_expression "uVar1 = *(uint *)(sbp + 3)" identifier = (pointer_expression "*(uint *)(sbp + 3)" * (cast_expression "(uint *)(sbp + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sbp + 3)" ( (binary_expression "sbp + 3" identifier + number_literal) ))))) ;) (expression_statement "*info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18);" (assignment_expression "*info_outp = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18)" (pointer_expression "*info_outp" * identifier) = (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                        uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) })) (return_statement "return (_Bool)(*sbp >> 7);" return (call_expression "(_Bool)(*sbp >> 7)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "(*sbp >> 7)" ( (binary_expression "*sbp >> 7" (pointer_expression "*sbp" * identifier) >> number_literal) ))) ;) })))
(translation_unit "byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}\n\n" (function_definition "byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" type_identifier (function_declarator "sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)" identifier (parameter_list "(byte *param_1,int param_2,ulong *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = 0;\n  }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_2 < 7) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 7)" ( (binary_expression "param_2 < 7" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (if_statement "if (bVar3 < 0x70) {\n    return 0;\n  }" if (parenthesized_expression "(bVar3 < 0x70)" ( (binary_expression "bVar3 < 0x70" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" if (parenthesized_expression "(0x71 < bVar3)" ( (binary_expression "0x71 < bVar3" number_literal < identifier) )) (compound_statement "{\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" { (if_statement "if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" if (parenthesized_expression "(bVar3 < 0x74)" ( (binary_expression "bVar3 < 0x74" identifier < number_literal) )) (compound_statement "{\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" { (expression_statement "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);" (assignment_expression "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0)" identifier = (call_expression "sg_scsi_sense_desc_find(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar3 = 0;\n      }" { (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" else (compound_statement "{\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" { (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" if (parenthesized_expression "(*(char *)(lVar4 + 1) == '\n')" ( (binary_expression "*(char *)(lVar4 + 1) == '\n'" (pointer_expression "*(char *)(lVar4 + 1)" * (cast_expression "(char *)(lVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 1)" ( (binary_expression "lVar4 + 1" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" { (if_statement "if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" { (expression_statement "uVar2 = *(ulong *)(lVar4 + 4);" (assignment_expression "uVar2 = *(ulong *)(lVar4 + 4)" identifier = (pointer_expression "*(ulong *)(lVar4 + 4)" * (cast_expression "(ulong *)(lVar4 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 4)" ( (binary_expression "lVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (assignment_expression "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal))) ;) })) (expression_statement "bVar3 = *(byte *)(lVar4 + 2) >> 7;" (assignment_expression "bVar3 = *(byte *)(lVar4 + 2) >> 7" identifier = (binary_expression "*(byte *)(lVar4 + 2) >> 7" (pointer_expression "*(byte *)(lVar4 + 2)" * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) >> number_literal)) ;) })) }))) (return_statement "return bVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" if (parenthesized_expression "(param_3 != (ulong *)0x0)" ( (binary_expression "param_3 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" { (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" identifier = (pointer_expression "*(uint *)(param_1 + 3)" * (cast_expression "(uint *)(param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);" (assignment_expression "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (pointer_expression "*param_3" * identifier) = (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) })) (return_statement "return *param_1 >> 7;" return (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" * identifier) >> number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) })) }))) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )))) ;) })) (return_statement return (binary_expression (pointer_expression * IDENT) >> LIT) ;) })))
(function_definition "byte sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" (type_identifier "byte") (function_declarator "sg_get_sense_info_fld(byte *param_1,int param_2,ulong *param_3)" (identifier "sg_get_sense_info_fld") (parameter_list "(byte *param_1,int param_2,ulong *param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "ulong *param_3" (type_identifier "ulong") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  byte bVar3;\n  long lVar4;\n  \n  if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }\n  if (param_2 < 7) {\n    return 0;\n  }\n  bVar3 = *param_1 & 0x7f;\n  if (bVar3 < 0x70) {\n    return 0;\n  }\n  if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }\n  if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }\n  return *param_1 >> 7;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (if_statement "if (param_3 != (ulong *)0x0) {\n    *param_3 = 0;\n  }" (if "if") (parenthesized_expression "(param_3 != (ulong *)0x0)" (( "(") (binary_expression "param_3 != (ulong *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_3 = 0;\n  }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_2 < 7) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 < 7)" (( "(") (binary_expression "param_2 < 7" (identifier "param_2") (< "<") (number_literal "7")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" (identifier "bVar3") (= "=") (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x7f"))) (; ";")) (if_statement "if (bVar3 < 0x70) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(bVar3 < 0x70)" (( "(") (binary_expression "bVar3 < 0x70" (identifier "bVar3") (< "<") (number_literal "0x70")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (0x71 < bVar3) {\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(0x71 < bVar3)" (( "(") (binary_expression "0x71 < bVar3" (number_literal "0x71") (< "<") (identifier "bVar3")) () ")")) (compound_statement "{\n    if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (bVar3 < 0x74) {\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" (if "if") (parenthesized_expression "(bVar3 < 0x74)" (( "(") (binary_expression "bVar3 < 0x74" (identifier "bVar3") (< "<") (number_literal "0x74")) () ")")) (compound_statement "{\n      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);\n      if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }\n      return bVar3;\n    }" ({ "{") (expression_statement "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);" (assignment_expression "lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0)" (identifier "lVar4") (= "=") (call_expression "sg_scsi_sense_desc_find(param_1,param_2,0)" (identifier "sg_scsi_sense_desc_find") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar4 == 0) {\n        bVar3 = 0;\n      }\n      else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar3 = 0;\n      }" ({ "{") (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" (identifier "bVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" (else "else") (compound_statement "{\n        bVar3 = 0;\n        if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }\n      }" ({ "{") (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" (identifier "bVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(lVar4 + 1) == '\n') {\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" (if "if") (parenthesized_expression "(*(char *)(lVar4 + 1) == '\n')" (( "(") (binary_expression "*(char *)(lVar4 + 1) == '\n'" (pointer_expression "*(char *)(lVar4 + 1)" (* "*") (cast_expression "(char *)(lVar4 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 1)" (( "(") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n          if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }\n          bVar3 = *(byte *)(lVar4 + 2) >> 7;\n        }" ({ "{") (if_statement "if (param_3 != (ulong *)0x0) {\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" (if "if") (parenthesized_expression "(param_3 != (ulong *)0x0)" (( "(") (binary_expression "param_3 != (ulong *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            uVar2 = *(ulong *)(lVar4 + 4);\n            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n          }" ({ "{") (expression_statement "uVar2 = *(ulong *)(lVar4 + 4);" (assignment_expression "uVar2 = *(ulong *)(lVar4 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(ulong *)(lVar4 + 4)" (* "*") (cast_expression "(ulong *)(lVar4 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 4)" (( "(") (binary_expression "lVar4 + 4" (identifier "lVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (assignment_expression "*param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n                       (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |\n                       (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |\n                       (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" (identifier "uVar2") (>> ">>") (number_literal "0x38")) (| "|") (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" (( "(") (binary_expression "uVar2 & 0xff000000000000" (identifier "uVar2") (& "&") (number_literal "0xff000000000000")) () ")")) (>> ">>") (number_literal "0x28"))) (| "|") (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" (( "(") (binary_expression "uVar2 & 0xff0000000000" (identifier "uVar2") (& "&") (number_literal "0xff0000000000")) () ")")) (>> ">>") (number_literal "0x18"))) (| "|") (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" (( "(") (binary_expression "uVar2 & 0xff00000000" (identifier "uVar2") (& "&") (number_literal "0xff00000000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" (( "(") (binary_expression "uVar2 & 0xff000000" (identifier "uVar2") (& "&") (number_literal "0xff000000")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (<< "<<") (number_literal "0x18"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "0x28"))) (| "|") (binary_expression "uVar2 << 0x38" (identifier "uVar2") (<< "<<") (number_literal "0x38")))) (; ";")) (} "}"))) (expression_statement "bVar3 = *(byte *)(lVar4 + 2) >> 7;" (assignment_expression "bVar3 = *(byte *)(lVar4 + 2) >> 7" (identifier "bVar3") (= "=") (binary_expression "*(byte *)(lVar4 + 2) >> 7" (pointer_expression "*(byte *)(lVar4 + 2)" (* "*") (cast_expression "(byte *)(lVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 2)" (( "(") (binary_expression "lVar4 + 2" (identifier "lVar4") (+ "+") (number_literal "2")) () ")")))) (>> ">>") (number_literal "7"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 != (ulong *)0x0) {\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" (if "if") (parenthesized_expression "(param_3 != (ulong *)0x0)" (( "(") (binary_expression "param_3 != (ulong *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar1 = *(uint *)(param_1 + 3);\n    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(param_1 + 3);" (assignment_expression "uVar1 = *(uint *)(param_1 + 3)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 3)" (* "*") (cast_expression "(uint *)(param_1 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18);" (assignment_expression "*param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18)" (( "(") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                      uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";")) (} "}"))) (return_statement "return *param_1 >> 7;" (return "return") (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (>> ">>") (number_literal "7")) (; ";")) (} "}")))

type_1 function_1(uint8_t *var_7,int var_2,uint64_t *var_1)

{
  type_2 var_8;
  type_3 var_6;
  type_1 _Var3;
  uint8_t *var_5;
  type_4 var_3;
  
  if (var_1 != (uint64_t *)0x0) {
    *var_1 = 0;
  }
  if (var_2 < 7) {
    return false;
  }
  var_3 = *var_7 & 0x7f;
  if (var_3 < 0x70) {
    return false;
  }
  if (0x71 < var_3) {
    if (var_3 < 0x74) {
      var_5 = var_4(var_7,var_2,0);
      if (var_5 == (uint8_t *)0x0) {
        _Var3 = false;
      }
      else {
        _Var3 = false;
        if (var_5[1] == '\n') {
          if (var_1 != (uint64_t *)0x0) {
            var_6 = *(type_3 *)(var_5 + 4);
            *var_1 = var_6 >> 0x38 | (var_6 & 0xff000000000000) >> 0x28 |
                         (var_6 & 0xff0000000000) >> 0x18 | (var_6 & 0xff00000000) >> 8 |
                         (var_6 & 0xff000000) << 8 | (var_6 & 0xff0000) << 0x18 |
                         (var_6 & 0xff00) << 0x28 | var_6 << 0x38;
          }
          _Var3 = (type_1)(var_5[2] >> 7);
        }
      }
      return _Var3;
    }
    return false;
  }
  if (var_1 != (uint64_t *)0x0) {
    var_8 = *(type_2 *)(var_7 + 3);
    *var_1 = (type_3)(var_8 >> 0x18 | (var_8 & 0xff0000) >> 8 | (var_8 & 0xff00) << 8 |
                        var_8 << 0x18);
  }
  return (type_1)(*var_7 >> 7);
}


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

byte MASKED(byte *param_1,int param_2,ulong *param_3)

{
  uint uVar1;
  ulong uVar2;
  byte bVar3;
  long lVar4;
  
  if (param_3 != (ulong *)0x0) {
    *param_3 = 0;
  }
  if (param_2 < 7) {
    return 0;
  }
  bVar3 = *param_1 & 0x7f;
  if (bVar3 < 0x70) {
    return 0;
  }
  if (0x71 < bVar3) {
    if (bVar3 < 0x74) {
      lVar4 = sg_scsi_sense_desc_find(param_1,param_2,0);
      if (lVar4 == 0) {
        bVar3 = 0;
      }
      else {
        bVar3 = 0;
        if (*(char *)(lVar4 + 1) == '\n') {
          if (param_3 != (ulong *)0x0) {
            uVar2 = *(ulong *)(lVar4 + 4);
            *param_3 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 |
                       (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 |
                       (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
                       (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
          }
          bVar3 = *(byte *)(lVar4 + 2) >> 7;
        }
      }
      return bVar3;
    }
    return 0;
  }
  if (param_3 != (ulong *)0x0) {
    uVar1 = *(uint *)(param_1 + 3);
    *param_3 = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                      uVar1 << 0x18);
  }
  return *param_1 >> 7;
}

