
char * sg_get_nvme_opcode_name(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)

{
  byte *pbVar1;
  undefined *puVar2;
  undefined3 in_register_00000010;
  uint uVar3;
  undefined3 in_register_00000014;
  
  uVar3 = CONCAT31(in_register_00000010,cmd_byte0);
  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;
  if (CONCAT31(in_register_00000014,admin) == 0) {
    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;
  }
  if ((buff != (char *)0x0) && (0 < buff_len)) {
    if (buff_len == 1) {
      *buff = '\0';
    }
    else {
      while (*(int *)(puVar2 + 4) != 0) {
        pbVar1 = puVar2 + 3;
        puVar2 = puVar2 + 8;
        if (*pbVar1 == uVar3) {
          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);
          return buff;
        }
      }
      if (CONCAT31(in_register_00000014,admin) == 0) {
        if (-1 < (char)cmd_byte0) goto LAB_000187fc;
      }
      else if (uVar3 < 0xc0) {
        if ((char)cmd_byte0 < '\0') {
          (*(code *)PTR___snprintf_chk_00054aac)();
          return buff;
        }
LAB_000187fc:
        (*(code *)PTR___snprintf_chk_00054aac)
                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);
        return buff;
      }
      (*(code *)PTR___snprintf_chk_00054aac)
                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);
    }
  }
  return buff;
}



undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)

{
  byte *pbVar1;
  undefined *puVar2;
  
  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;
  if (param_2 == 0) {
    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;
  }
  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {
    if (param_3 == 1) {
      *param_4 = 0;
    }
    else {
      while (*(int *)(puVar2 + 4) != 0) {
        pbVar1 = puVar2 + 3;
        puVar2 = puVar2 + 8;
        if (*pbVar1 == param_1) {
          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);
          return param_4;
        }
      }
      if (param_2 == 0) {
        if (-1 < (char)param_1) goto LAB_000187fc;
      }
      else if (param_1 < 0xc0) {
        if ((char)param_1 < '\0') {
          (*(code *)PTR___snprintf_chk_00054aac)();
          return param_4;
        }
LAB_000187fc:
        (*(code *)PTR___snprintf_chk_00054aac)
                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);
        return param_4;
      }
      (*(code *)PTR___snprintf_chk_00054aac)
                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);
    }
  }
  return param_4;
}


lui gp,0x4
addiu gp,gp,0x4118
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,-0x7f68(gp)
lw v1,-0x7dd4(gp)
sw gp,0x18(sp)
sw s0,0x20(sp)
or s0,a3,zero
sw ra,0x24(sp)
beq a3,zero,0x00018740
_movz v0,v1,a1
blez a2,0x00018740
_or t0,a2,zero
li v1,0x1
bne a2,v1,0x00018760
_nop
sb zero,0x0(a3)
lw ra,0x24(sp)
or v0,s0,zero
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lbu v1,0x3(v0)
beq v1,a0,0x000187b4
_addiu v0,v0,0x8
lw a3,0x4(v0)
bne a3,zero,0x00018754
_nop
beq a1,zero,0x000187e0
_seb v0,a0
sltiu v0,a0,0xc0
beq v0,zero,0x00018820
_seb v0,a0
lw t9,-0x7d64(gp)
sw a0,0x14(sp)
li a3,-0x1
li a2,0x1
or a1,t0,zero
bgez v0,0x000187fc
_or a0,s0,zero
lw v0,-0x7fd4(gp)
addiu v0,v0,0x1f44
jalr t9
_sw v0,0x10(sp)
b 0x00018744
_lw ra,0x24(sp)
lw a2,-0x7fd4(gp)
or a0,s0,zero
lw t9,-0x7eac(gp)
or a1,t0,zero
jalr t9
_addiu a2,a2,0x1ee0
or v0,s0,zero
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7d64(gp)
sw a0,0x14(sp)
li a3,-0x1
li a2,0x1
or a1,t0,zero
bltz v0,0x00018838
_or a0,s0,zero
lw v0,-0x7fd4(gp)
addiu v0,v0,0x1f68
jalr t9
_sw v0,0x10(sp)
or v0,s0,zero
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7d64(gp)
li a3,-0x1
li a2,0x1
sw a0,0x14(sp)
or a1,t0,zero
or a0,s0,zero
lw v0,-0x7fd4(gp)
addiu v0,v0,0x1f24
jalr t9
_sw v0,0x10(sp)
b 0x00018744
_lw ra,0x24(sp)
(translation_unit "undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}\n\n" (function_definition "undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" type_identifier (pointer_declarator "* sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" * (function_declarator "sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" identifier (parameter_list "(uint param_1,int param_2,int param_3,undefined1 *param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" { (expression_statement "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c" identifier = identifier) ;) })) (if_statement "if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" if (parenthesized_expression "((param_4 != (undefined1 *)0x0) && (0 < param_3))" ( (binary_expression "(param_4 != (undefined1 *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (undefined1 *)0x0)" ( (binary_expression "param_4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" { (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" else (compound_statement "{\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" { (while_statement "while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" while (parenthesized_expression "(*(int *)(puVar2 + 4) != 0)" ( (binary_expression "*(int *)(puVar2 + 4) != 0" (pointer_expression "*(int *)(puVar2 + 4)" * (cast_expression "(int *)(puVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" { (expression_statement "pbVar1 = puVar2 + 3;" (assignment_expression "pbVar1 = puVar2 + 3" identifier = (binary_expression "puVar2 + 3" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 8;" (assignment_expression "puVar2 = puVar2 + 8" identifier = (binary_expression "puVar2 + 8" identifier + number_literal)) ;) (if_statement "if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" if (parenthesized_expression "(*pbVar1 == param_1)" ( (binary_expression "*pbVar1 == param_1" (pointer_expression "*pbVar1" * identifier) == identifier) )) (compound_statement "{\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" { (expression_statement "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);" (call_expression "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" (parenthesized_expression "(*(code *)PTR_snprintf_00054964)" ( (pointer_expression "*(code *)PTR_snprintf_00054964" * (cast_expression "(code *)PTR_snprintf_00054964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" ( identifier , identifier , (binary_expression "PTR_LAB_0005483c + 0x1ee0" identifier + number_literal) ))) ;) (return_statement "return param_4;" return identifier ;) })) })) (if_statement "if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }" { (if_statement "if (-1 < (char)param_1) goto LAB_000187fc;" if (parenthesized_expression "(-1 < (char)param_1)" ( (binary_expression "-1 < (char)param_1" number_literal < (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000187fc;" goto statement_identifier ;)) }) (else_clause "else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" else (if_statement "if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" if (parenthesized_expression "(param_1 < 0xc0)" ( (binary_expression "param_1 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" { (if_statement "if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" if (parenthesized_expression "((char)param_1 < '\0')" ( (binary_expression "(char)param_1 < '\0'" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" { (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)();" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)()" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return param_4;" return identifier ;) })) (labeled_statement "LAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" statement_identifier : (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f68" identifier + number_literal) , identifier ))) ;)) (return_statement "return param_4;" return identifier ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f24" identifier + number_literal) , identifier ))) ;) }))) })) (return_statement "return param_4;" return identifier ;) })))
(translation_unit "char * sg_get_nvme_opcode_name(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  undefined3 in_register_00000010;\n  uint uVar3;\n  undefined3 in_register_00000014;\n  \n  uVar3 = CONCAT31(in_register_00000010,cmd_byte0);\n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (CONCAT31(in_register_00000014,admin) == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }\n  }\n  return buff;\n}\n\n" (function_definition "char * sg_get_nvme_opcode_name(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  undefined3 in_register_00000010;\n  uint uVar3;\n  undefined3 in_register_00000014;\n  \n  uVar3 = CONCAT31(in_register_00000010,cmd_byte0);\n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (CONCAT31(in_register_00000014,admin) == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }\n  }\n  return buff;\n}" primitive_type (pointer_declarator "* sg_get_nvme_opcode_name(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)" * (function_declarator "sg_get_nvme_opcode_name(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)" identifier (parameter_list "(uint8_t cmd_byte0,_Bool admin,int buff_len,char *buff)" ( (parameter_declaration "uint8_t cmd_byte0" primitive_type identifier) , (parameter_declaration "_Bool admin" type_identifier identifier) , (parameter_declaration "int buff_len" primitive_type identifier) , (parameter_declaration "char *buff" primitive_type (pointer_declarator "*buff" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  undefined3 in_register_00000010;\n  uint uVar3;\n  undefined3 in_register_00000014;\n  \n  uVar3 = CONCAT31(in_register_00000010,cmd_byte0);\n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (CONCAT31(in_register_00000014,admin) == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }\n  }\n  return buff;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined3 in_register_00000010;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (expression_statement "uVar3 = CONCAT31(in_register_00000010,cmd_byte0);" (assignment_expression "uVar3 = CONCAT31(in_register_00000010,cmd_byte0)" identifier = (call_expression "CONCAT31(in_register_00000010,cmd_byte0)" identifier (argument_list "(in_register_00000010,cmd_byte0)" ( identifier , identifier )))) ;) (expression_statement "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8" identifier = identifier) ;) (if_statement "if (CONCAT31(in_register_00000014,admin) == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" if (parenthesized_expression "(CONCAT31(in_register_00000014,admin) == 0)" ( (binary_expression "CONCAT31(in_register_00000014,admin) == 0" (call_expression "CONCAT31(in_register_00000014,admin)" identifier (argument_list "(in_register_00000014,admin)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" { (expression_statement "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c" identifier = identifier) ;) })) (if_statement "if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }\n  }" if (parenthesized_expression "((buff != (char *)0x0) && (0 < buff_len))" ( (binary_expression "(buff != (char *)0x0) && (0 < buff_len)" (parenthesized_expression "(buff != (char *)0x0)" ( (binary_expression "buff != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < buff_len)" ( (binary_expression "0 < buff_len" number_literal < identifier) ))) )) (compound_statement "{\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }\n  }" { (if_statement "if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }" if (parenthesized_expression "(buff_len == 1)" ( (binary_expression "buff_len == 1" identifier == number_literal) )) (compound_statement "{\n      *buff = '\0';\n    }" { (expression_statement "*buff = '\0';" (assignment_expression "*buff = '\0'" (pointer_expression "*buff" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }" else (compound_statement "{\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }\n      if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);\n    }" { (while_statement "while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }" while (parenthesized_expression "(*(int *)(puVar2 + 4) != 0)" ( (binary_expression "*(int *)(puVar2 + 4) != 0" (pointer_expression "*(int *)(puVar2 + 4)" * (cast_expression "(int *)(puVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }\n      }" { (expression_statement "pbVar1 = puVar2 + 3;" (assignment_expression "pbVar1 = puVar2 + 3" identifier = (binary_expression "puVar2 + 3" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 8;" (assignment_expression "puVar2 = puVar2 + 8" identifier = (binary_expression "puVar2 + 8" identifier + number_literal)) ;) (if_statement "if (*pbVar1 == uVar3) {\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }" if (parenthesized_expression "(*pbVar1 == uVar3)" ( (binary_expression "*pbVar1 == uVar3" (pointer_expression "*pbVar1" * identifier) == identifier) )) (compound_statement "{\n          (*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);\n          return buff;\n        }" { (expression_statement "(*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0);" (call_expression "(*(code *)PTR_snprintf_00054964)(buff,buff_len,PTR_LAB_0005483c + 0x1ee0)" (parenthesized_expression "(*(code *)PTR_snprintf_00054964)" ( (pointer_expression "*(code *)PTR_snprintf_00054964" * (cast_expression "(code *)PTR_snprintf_00054964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buff,buff_len,PTR_LAB_0005483c + 0x1ee0)" ( identifier , identifier , (binary_expression "PTR_LAB_0005483c + 0x1ee0" identifier + number_literal) ))) ;) (return_statement "return buff;" return identifier ;) })) })) (if_statement "if (CONCAT31(in_register_00000014,admin) == 0) {\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }\n      else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }" if (parenthesized_expression "(CONCAT31(in_register_00000014,admin) == 0)" ( (binary_expression "CONCAT31(in_register_00000014,admin) == 0" (call_expression "CONCAT31(in_register_00000014,admin)" identifier (argument_list "(in_register_00000014,admin)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n        if (-1 < (char)cmd_byte0) goto LAB_000187fc;\n      }" { (if_statement "if (-1 < (char)cmd_byte0) goto LAB_000187fc;" if (parenthesized_expression "(-1 < (char)cmd_byte0)" ( (binary_expression "-1 < (char)cmd_byte0" number_literal < (cast_expression "(char)cmd_byte0" ( (type_descriptor "char" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000187fc;" goto statement_identifier ;)) }) (else_clause "else if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }" else (if_statement "if (uVar3 < 0xc0) {\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }" if (parenthesized_expression "(uVar3 < 0xc0)" ( (binary_expression "uVar3 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);\n        return buff;\n      }" { (if_statement "if ((char)cmd_byte0 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }" if (parenthesized_expression "((char)cmd_byte0 < '\0')" ( (binary_expression "(char)cmd_byte0 < '\0'" (cast_expression "(char)cmd_byte0" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return buff;\n        }" { (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)();" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)()" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return buff;" return identifier ;) })) (labeled_statement "LAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);" statement_identifier : (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                  (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,uVar3)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f68" identifier + number_literal) , identifier ))) ;)) (return_statement "return buff;" return identifier ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                (buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buff,buff_len,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,uVar3)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f24" identifier + number_literal) , identifier ))) ;) }))) })) (return_statement "return buff;" return identifier ;) })))
(translation_unit "undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}\n\n" (function_definition "undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" type_identifier (pointer_declarator "* sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" * (function_declarator "sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" identifier (parameter_list "(uint param_1,int param_2,int param_3,undefined1 *param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" { (expression_statement "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c" identifier = identifier) ;) })) (if_statement "if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" if (parenthesized_expression "((param_4 != (undefined1 *)0x0) && (0 < param_3))" ( (binary_expression "(param_4 != (undefined1 *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (undefined1 *)0x0)" ( (binary_expression "param_4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" { (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" else (compound_statement "{\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" { (while_statement "while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" while (parenthesized_expression "(*(int *)(puVar2 + 4) != 0)" ( (binary_expression "*(int *)(puVar2 + 4) != 0" (pointer_expression "*(int *)(puVar2 + 4)" * (cast_expression "(int *)(puVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" { (expression_statement "pbVar1 = puVar2 + 3;" (assignment_expression "pbVar1 = puVar2 + 3" identifier = (binary_expression "puVar2 + 3" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 8;" (assignment_expression "puVar2 = puVar2 + 8" identifier = (binary_expression "puVar2 + 8" identifier + number_literal)) ;) (if_statement "if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" if (parenthesized_expression "(*pbVar1 == param_1)" ( (binary_expression "*pbVar1 == param_1" (pointer_expression "*pbVar1" * identifier) == identifier) )) (compound_statement "{\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" { (expression_statement "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);" (call_expression "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" (parenthesized_expression "(*(code *)PTR_snprintf_00054964)" ( (pointer_expression "*(code *)PTR_snprintf_00054964" * (cast_expression "(code *)PTR_snprintf_00054964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" ( identifier , identifier , (binary_expression "PTR_LAB_0005483c + 0x1ee0" identifier + number_literal) ))) ;) (return_statement "return param_4;" return identifier ;) })) })) (if_statement "if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }" { (if_statement "if (-1 < (char)param_1) goto LAB_000187fc;" if (parenthesized_expression "(-1 < (char)param_1)" ( (binary_expression "-1 < (char)param_1" number_literal < (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000187fc;" goto statement_identifier ;)) }) (else_clause "else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" else (if_statement "if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" if (parenthesized_expression "(param_1 < 0xc0)" ( (binary_expression "param_1 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" { (if_statement "if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" if (parenthesized_expression "((char)param_1 < '\0')" ( (binary_expression "(char)param_1 < '\0'" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" { (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)();" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)()" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return param_4;" return identifier ;) })) (labeled_statement "LAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" statement_identifier : (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f68" identifier + number_literal) , identifier ))) ;)) (return_statement "return param_4;" return identifier ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" * (cast_expression "(code *)PTR___snprintf_chk_00054aac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0005483c + 0x1f24" identifier + number_literal) , identifier ))) ;) }))) })) (return_statement "return param_4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;)) (return_statement return IDENT ;) })))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "undefined1 * sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" (type_identifier "undefined1") (pointer_declarator "* sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" (* "*") (function_declarator "sg_get_nvme_opcode_name(uint param_1,int param_2,int param_3,undefined1 *param_4)" (identifier "sg_get_nvme_opcode_name") (parameter_list "(uint param_1,int param_2,int param_3,undefined1 *param_4)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined1 *param_4" (type_identifier "undefined1") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;\n  if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }\n  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }\n  return param_4;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8" (identifier "puVar2") (= "=") (identifier "PTR_sg_lib_nvme_admin_cmd_arr_000548a8")) (; ";")) (if_statement "if (param_2 == 0) {\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;\n  }" ({ "{") (expression_statement "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;" (assignment_expression "puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c" (identifier "puVar2") (= "=") (identifier "PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c")) (; ";")) (} "}"))) (if_statement "if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" (if "if") (parenthesized_expression "((param_4 != (undefined1 *)0x0) && (0 < param_3))" (( "(") (binary_expression "(param_4 != (undefined1 *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (undefined1 *)0x0)" (( "(") (binary_expression "param_4 != (undefined1 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }\n  }" ({ "{") (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *param_4 = 0;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" (else "else") (compound_statement "{\n      while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }\n      if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }\n      (*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);\n    }" ({ "{") (while_statement "while (*(int *)(puVar2 + 4) != 0) {\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" (while "while") (parenthesized_expression "(*(int *)(puVar2 + 4) != 0)" (( "(") (binary_expression "*(int *)(puVar2 + 4) != 0" (pointer_expression "*(int *)(puVar2 + 4)" (* "*") (cast_expression "(int *)(puVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pbVar1 = puVar2 + 3;\n        puVar2 = puVar2 + 8;\n        if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }\n      }" ({ "{") (expression_statement "pbVar1 = puVar2 + 3;" (assignment_expression "pbVar1 = puVar2 + 3" (identifier "pbVar1") (= "=") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "puVar2 = puVar2 + 8;" (assignment_expression "puVar2 = puVar2 + 8" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*pbVar1 == param_1) {\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" (if "if") (parenthesized_expression "(*pbVar1 == param_1)" (( "(") (binary_expression "*pbVar1 == param_1" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);\n          return param_4;\n        }" ({ "{") (expression_statement "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);" (call_expression "(*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" (parenthesized_expression "(*(code *)PTR_snprintf_00054964)" (( "(") (pointer_expression "*(code *)PTR_snprintf_00054964" (* "*") (cast_expression "(code *)PTR_snprintf_00054964" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_snprintf_00054964"))) () ")")) (argument_list "(param_4,param_3,PTR_LAB_0005483c + 0x1ee0)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (binary_expression "PTR_LAB_0005483c + 0x1ee0" (identifier "PTR_LAB_0005483c") (+ "+") (number_literal "0x1ee0")) () ")"))) (; ";")) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_2 == 0) {\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }\n      else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (-1 < (char)param_1) goto LAB_000187fc;\n      }" ({ "{") (if_statement "if (-1 < (char)param_1) goto LAB_000187fc;" (if "if") (parenthesized_expression "(-1 < (char)param_1)" (( "(") (binary_expression "-1 < (char)param_1" (number_literal "-1") (< "<") (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1"))) () ")")) (goto_statement "goto LAB_000187fc;" (goto "goto") (statement_identifier "LAB_000187fc") (; ";"))) (} "}")) (else_clause "else if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" (else "else") (if_statement "if (param_1 < 0xc0) {\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" (if "if") (parenthesized_expression "(param_1 < 0xc0)" (( "(") (binary_expression "param_1 < 0xc0" (identifier "param_1") (< "<") (number_literal "0xc0")) () ")")) (compound_statement "{\n        if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }\nLAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);\n        return param_4;\n      }" ({ "{") (if_statement "if ((char)param_1 < '\0') {\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" (if "if") (parenthesized_expression "((char)param_1 < '\0')" (( "(") (binary_expression "(char)param_1 < '\0'" (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          (*(code *)PTR___snprintf_chk_00054aac)();\n          return param_4;\n        }" ({ "{") (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)();" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)()" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" (* "*") (cast_expression "(code *)PTR___snprintf_chk_00054aac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_00054aac"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}"))) (labeled_statement "LAB_000187fc:\n        (*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" (statement_identifier "LAB_000187fc") (: ":") (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" (* "*") (cast_expression "(code *)PTR___snprintf_chk_00054aac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_00054aac"))) () ")")) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_LAB_0005483c + 0x1f68" (identifier "PTR_LAB_0005483c") (+ "+") (number_literal "0x1f68")) (, ",") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}"))))) (expression_statement "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_00054aac)\n                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00054aac)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_00054aac" (* "*") (cast_expression "(code *)PTR___snprintf_chk_00054aac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_00054aac"))) () ")")) (argument_list "(param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_LAB_0005483c + 0x1f24" (identifier "PTR_LAB_0005483c") (+ "+") (number_literal "0x1f24")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (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: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (return_statement (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (return_statement (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))))))) (return_statement (identifier)))))

undefined1 * MASKED(uint param_1,int param_2,int param_3,undefined1 *param_4)

{
  byte *pbVar1;
  undefined *puVar2;
  
  puVar2 = PTR_sg_lib_nvme_admin_cmd_arr_000548a8;
  if (param_2 == 0) {
    puVar2 = PTR_sg_lib_nvme_nvm_cmd_arr_00054a3c;
  }
  if ((param_4 != (undefined1 *)0x0) && (0 < param_3)) {
    if (param_3 == 1) {
      *param_4 = 0;
    }
    else {
      while (*(int *)(puVar2 + 4) != 0) {
        pbVar1 = puVar2 + 3;
        puVar2 = puVar2 + 8;
        if (*pbVar1 == param_1) {
          (*(code *)PTR_snprintf_00054964)(param_4,param_3,PTR_LAB_0005483c + 0x1ee0);
          return param_4;
        }
      }
      if (param_2 == 0) {
        if (-1 < (char)param_1) goto LAB_000187fc;
      }
      else if (param_1 < 0xc0) {
        if ((char)param_1 < '\0') {
          (*(code *)PTR___snprintf_chk_00054aac)();
          return param_4;
        }
LAB_000187fc:
        (*(code *)PTR___snprintf_chk_00054aac)
                  (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f68,param_1);
        return param_4;
      }
      (*(code *)PTR___snprintf_chk_00054aac)
                (param_4,param_3,1,0xffffffff,PTR_LAB_0005483c + 0x1f24,param_1);
    }
  }
  return param_4;
}

