	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_release_resources
_dmar_release_resources:                ## @dmar_release_resources
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_dmar_fini_busdma
	movq	%r15, %rdi
	callq	_dmar_fini_irt
	movq	%r15, %rdi
	callq	_dmar_fini_qi
	movq	%r15, %rdi
	callq	_dmar_fini_fault_log
	movq	_DMAR_INTR_TOTAL@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dmar_release_intr
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_2
LBB0_3:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	24(%r15), %edx
	movl	%r14d, %edi
	callq	_bus_deactivate_resource
	movl	(%rbx), %esi
	movl	24(%r15), %edx
	movq	16(%r15), %rcx
	movl	%r14d, %edi
	callq	_bus_release_resource
	movq	$0, 16(%r15)
LBB0_5:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_delete_unrhdr
	movq	$0, 8(%r15)
LBB0_7:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_vm_object_deallocate
	movq	$0, (%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_INTR_TOTAL,4,2            ## @DMAR_INTR_TOTAL
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.no_dead_strip	_dmar_release_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_release_resources
_dmar_release_resources:                ; @dmar_release_resources
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_dmar_fini_busdma
	mov	x0, x19
	bl	_dmar_fini_irt
	mov	x0, x19
	bl	_dmar_fini_qi
	mov	x0, x19
	bl	_dmar_fini_fault_log
Lloh0:
	adrp	x22, _DMAR_INTR_TOTAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMAR_INTR_TOTAL@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_dmar_release_intr
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	x3, [x19, #16]
	cbz	x3, LBB0_5
; %bb.4:
Lloh2:
	adrp	x21, _SYS_RES_MEMORY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_bus_deactivate_resource
	ldr	w1, [x21]
	ldr	w2, [x19, #24]
	ldr	x3, [x19, #16]
	mov	x0, x20
	bl	_bus_release_resource
	str	xzr, [x19, #16]
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_delete_unrhdr
	str	xzr, [x19, #8]
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_vm_object_deallocate
	str	xzr, [x19]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_INTR_TOTAL,4,2            ; @DMAR_INTR_TOTAL
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.no_dead_strip	_dmar_release_resources
.subsections_via_symbols
