	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_enable_aen
_nvme_enable_aen:                       ## @nvme_enable_aen
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_NVME_AEN_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rdi), %ebx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	_NVME_FEAT_ASYNC_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %r9
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nvme_set_features
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_3:
	movq	_nvme_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r14
	movq	%r14, %rsi
	callq	_queue_work
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_AEN_SUPPORTED,4,2         ## @NVME_AEN_SUPPORTED
	.comm	_NVME_FEAT_ASYNC_EVENT,4,2      ## @NVME_FEAT_ASYNC_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure AEN (cfg %x)\n"

	.comm	_nvme_wq,4,2                    ## @nvme_wq
	.no_dead_strip	_nvme_enable_aen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_enable_aen
_nvme_enable_aen:                       ; @nvme_enable_aen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NVME_AEN_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_AEN_SUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w20, w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _NVME_FEAT_ASYNC_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_FEAT_ASYNC_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x2, x20
	mov	x3, #0
	mov	w4, #0
	bl	_nvme_set_features
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_3:
Lloh8:
	adrp	x8, _nvme_wq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nvme_wq@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_queue_work
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_AEN_SUPPORTED,4,2         ; @NVME_AEN_SUPPORTED
	.comm	_NVME_FEAT_ASYNC_EVENT,4,2      ; @NVME_FEAT_ASYNC_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure AEN (cfg %x)\n"

	.comm	_nvme_wq,4,2                    ; @nvme_wq
	.no_dead_strip	_nvme_enable_aen
.subsections_via_symbols
