	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msix_release                   ## -- Begin function msix_release
	.p2align	4, 0x90
_msix_release:                          ## @msix_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_msi_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movl	%ebx, %edi
	callq	_intr_lookup_source
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movl	36(%rbx), %edi
	movq	24(%rbx), %rsi
	movl	32(%rbx), %edx
	callq	_apic_free_vector
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 16(%rbx)
	movq	_msi_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_msi_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_msi_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msi_lock,4,2                   ## @msi_lock
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unowned message"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msix_release                   ; -- Begin function msix_release
	.p2align	2
_msix_release:                          ; @msix_release
	.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	x19, x0
Lloh0:
	adrp	x0, _msi_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _msi_lock@GOTPAGEOFF]
	bl	_mtx_lock
	mov	x0, x19
	bl	_intr_lookup_source
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, ne
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	stp	xzr, xzr, [x19, #40]
	ldr	x1, [x19, #24]
	ldp	w2, w0, [x19, #32]
	bl	_apic_free_vector
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
Lloh4:
	adrp	x0, _msi_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _msi_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, _msi_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _msi_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, _msi_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _msi_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_msi_lock,4,2                   ; @msi_lock
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unowned message"

.subsections_via_symbols
