	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_cleanup                  ## -- Begin function iommu_cleanup
	.p2align	4, 0x90
_iommu_cleanup:                         ## @iommu_cleanup
	.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
	movq	_add_tag@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_pci_add_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVENTHANDLER_DEREGISTER
	movq	$0, (%rbx)
LBB0_2:
	movq	_delete_tag@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_pci_delete_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVENTHANDLER_DEREGISTER
	movq	$0, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	callq	_IOMMU_DISABLE
	movq	_host_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOMMU_DESTROY_DOMAIN
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_IOMMU_CLEANUP                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_add_tag,8,3                    ## @add_tag
	.comm	_pci_add_device,4,2             ## @pci_add_device
	.comm	_delete_tag,8,3                 ## @delete_tag
	.comm	_pci_delete_device,4,2          ## @pci_delete_device
	.comm	_host_domain,4,2                ## @host_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_cleanup                  ; -- Begin function iommu_cleanup
	.p2align	2
_iommu_cleanup:                         ; @iommu_cleanup
	.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
Lloh0:
	adrp	x19, _add_tag@GOTPAGE
Lloh1:
	ldr	x19, [x19, _add_tag@GOTPAGEOFF]
	ldr	x1, [x19]
	cbz	x1, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _pci_add_device@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pci_add_device@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_EVENTHANDLER_DEREGISTER
	str	xzr, [x19]
LBB0_2:
Lloh5:
	adrp	x19, _delete_tag@GOTPAGE
Lloh6:
	ldr	x19, [x19, _delete_tag@GOTPAGEOFF]
	ldr	x1, [x19]
	cbz	x1, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _pci_delete_device@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pci_delete_device@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_EVENTHANDLER_DEREGISTER
	str	xzr, [x19]
LBB0_4:
	bl	_IOMMU_DISABLE
Lloh10:
	adrp	x8, _host_domain@GOTPAGE
Lloh11:
	ldr	x8, [x8, _host_domain@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_IOMMU_DESTROY_DOMAIN
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IOMMU_CLEANUP
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_add_tag,8,3                    ; @add_tag
	.comm	_pci_add_device,4,2             ; @pci_add_device
	.comm	_delete_tag,8,3                 ; @delete_tag
	.comm	_pci_delete_device,4,2          ; @pci_delete_device
	.comm	_host_domain,4,2                ; @host_domain
.subsections_via_symbols
