	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_nvme_release_ioreq
_pci_nvme_release_ioreq:                ## @pci_nvme_release_ioreq
	.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	%rsi, %rbx
	movq	%rdi, %r15
	leaq	12(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsi)
	movq	$0, 24(%rsi)
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	24(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 24(%r15)
	decq	(%r15)
	je	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sem_post                       ## TAILCALL
LBB0_1:
	movl	20(%r15), %edi
	callq	_NVME_CC_GET_EN
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	16(%r15), %edi
	callq	_NVME_CSTS_GET_RDY
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_NVME_CSTS_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CSTS_RDY,4,2              ## @NVME_CSTS_RDY
	.no_dead_strip	_pci_nvme_release_ioreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_nvme_release_ioreq
_pci_nvme_release_ioreq:                ; @pci_nvme_release_ioreq
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #12
	stp	xzr, xzr, [x1, #8]
	str	xzr, [x1, #24]
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #24]
	str	x8, [x21]
	str	x21, [x19, #24]
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_pthread_mutex_unlock
	add	x0, x19, #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	_sem_post
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_NVME_CC_GET_EN
	cbz	x0, LBB0_1
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_NVME_CSTS_GET_RDY
	cbnz	w0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _NVME_CSTS_RDY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_CSTS_RDY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CSTS_RDY,4,2              ; @NVME_CSTS_RDY
	.no_dead_strip	_pci_nvme_release_ioreq
.subsections_via_symbols
