	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_check_ctrl_status        ## -- Begin function nvmet_check_ctrl_status
	.p2align	4, 0x90
_nvmet_check_ctrl_status:               ## @nvmet_check_ctrl_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	_NVME_CC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	_NVME_CSTS_RDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	4(%rax), %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	(%r14), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	callq	_pr_err
	movq	_NVME_SC_CMD_SEQ_ERROR@GOTPCREL(%rip), %rcx
	movq	_NVME_SC_DNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CC_ENABLE,4,2             ## @NVME_CC_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got cmd %d while CC.EN == 0 on qid = %d\n"

	.comm	_NVME_SC_CMD_SEQ_ERROR,4,2      ## @NVME_SC_CMD_SEQ_ERROR
	.comm	_NVME_SC_DNR,4,2                ## @NVME_SC_DNR
	.comm	_NVME_CSTS_RDY,4,2              ## @NVME_CSTS_RDY
L_.str.1:                               ## @.str.1
	.asciz	"got cmd %d while CSTS.RDY == 0 on qid = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_check_ctrl_status        ; -- Begin function nvmet_check_ctrl_status
	.p2align	2
_nvmet_check_ctrl_status:               ; @nvmet_check_ctrl_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NVME_CC_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_CC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #4]
Lloh5:
	adrp	x9, _NVME_CSTS_RDY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NVME_CSTS_RDY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w1, [x20]
	ldr	x8, [x19]
	ldr	w2, [x8]
	bl	_pr_err
Lloh10:
	adrp	x8, _NVME_SC_CMD_SEQ_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NVME_SC_CMD_SEQ_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _NVME_SC_DNR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NVME_SC_DNR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CC_ENABLE,4,2             ; @NVME_CC_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got cmd %d while CC.EN == 0 on qid = %d\n"

	.comm	_NVME_SC_CMD_SEQ_ERROR,4,2      ; @NVME_SC_CMD_SEQ_ERROR
	.comm	_NVME_SC_DNR,4,2                ; @NVME_SC_DNR
	.comm	_NVME_CSTS_RDY,4,2              ; @NVME_CSTS_RDY
l_.str.1:                               ; @.str.1
	.asciz	"got cmd %d while CSTS.RDY == 0 on qid = %d\n"

.subsections_via_symbols
