	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_execute_async_event      ## -- Begin function nvmet_execute_async_event
	.p2align	4, 0x90
_nvmet_execute_async_event:             ## @nvmet_execute_async_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_NVMET_ASYNC_EVENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	16(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	%r14, (%rcx,%rax,8)
	movq	%r15, %rdi
	callq	_mutex_unlock
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_NVME_SC_ASYNC_LIMIT@GOTPCREL(%rip), %rax
	movq	_NVME_SC_DNR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_req_complete             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_ASYNC_EVENTS,8,3         ## @NVMET_ASYNC_EVENTS
	.comm	_NVME_SC_ASYNC_LIMIT,4,2        ## @NVME_SC_ASYNC_LIMIT
	.comm	_NVME_SC_DNR,4,2                ## @NVME_SC_DNR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_execute_async_event      ; -- Begin function nvmet_execute_async_event
	.p2align	2
_nvmet_execute_async_event:             ; @nvmet_execute_async_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	add	x20, x21, #12
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NVMET_ASYNC_EVENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVMET_ASYNC_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x9, [x21, #16]
	add	x10, x8, #1
	str	x10, [x21]
	str	x19, [x9, x8, lsl #3]
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x21, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_schedule_work
LBB0_2:
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _NVME_SC_ASYNC_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_SC_ASYNC_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NVME_SC_DNR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVME_SC_DNR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvmet_req_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_ASYNC_EVENTS,8,3         ; @NVMET_ASYNC_EVENTS
	.comm	_NVME_SC_ASYNC_LIMIT,4,2        ; @NVME_SC_ASYNC_LIMIT
	.comm	_NVME_SC_DNR,4,2                ; @NVME_SC_DNR
.subsections_via_symbols
