	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_uninit_device
_iommu_uninit_device:                   ## @iommu_uninit_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_get_device_id
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_amd_iommu_rlookup_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	movq	(%rcx,%rdx,8), %r14
	movl	%eax, %edi
	callq	_search_dev_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_detach_device
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iommu_device_unlink
	movq	%rbx, %rdi
	callq	_iommu_group_remove_device
	movq	$0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_iommu_rlookup_table,8,3    ## @amd_iommu_rlookup_table
	.no_dead_strip	_iommu_uninit_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_uninit_device
_iommu_uninit_device:                   ; @iommu_uninit_device
	.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
	bl	_get_device_id
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _amd_iommu_rlookup_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_iommu_rlookup_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8, w0, uxtw #3]
	bl	_search_dev_data
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_detach_device
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_iommu_device_unlink
	mov	x0, x19
	bl	_iommu_group_remove_device
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_iommu_rlookup_table,8,3    ; @amd_iommu_rlookup_table
	.no_dead_strip	_iommu_uninit_device
.subsections_via_symbols
