	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_release_intr
_dmar_release_intr:                     ## @dmar_release_intr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r12
	movslq	%edx, %rbx
	shlq	$4, %rbx
	cmpl	$-1, (%r12,%rbx)
	je	LBB0_2
## %bb.1:
	movl	%edi, %r15d
	leaq	(%r12,%rbx), %r14
	movl	8(%r12,%rbx), %esi
	movl	12(%r12,%rbx), %edx
	callq	_bus_teardown_intr
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	4(%r12,%rbx), %edx
	movl	8(%r12,%rbx), %ecx
	movl	%r15d, %edi
	callq	_bus_release_resource
	movl	(%r13), %esi
	movl	4(%r12,%rbx), %edx
	movl	%r15d, %edi
	callq	_bus_delete_resource
	movl	%r15d, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	callq	_device_get_parent
	movl	(%r14), %edx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_PCIB_RELEASE_MSIX
	movl	$-1, (%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.no_dead_strip	_dmar_release_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_release_intr
_dmar_release_intr:                     ; @dmar_release_intr
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x1]
	add	x20, x8, w2, sxtw #4
	ldr	w9, [x20]
	cmn	w9, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	sxtw	x9, w2
	add	x21, x8, x9, lsl #4
	ldp	w1, w2, [x21, #8]
	bl	_bus_teardown_intr
Lloh0:
	adrp	x22, _SYS_RES_IRQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SYS_RES_IRQ@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w2, w3, [x21, #4]
	mov	x0, x19
	bl	_bus_release_resource
	ldr	w1, [x22]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_bus_delete_resource
	mov	x0, x19
	bl	_device_get_parent
	bl	_device_get_parent
	ldr	w2, [x20]
	mov	x1, x19
	bl	_PCIB_RELEASE_MSIX
	mov	w8, #-1
	str	w8, [x20]
LBB0_2:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.no_dead_strip	_dmar_release_intr
.subsections_via_symbols
