	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_set_device_table
_iommu_set_device_table:                ## @iommu_set_device_table
	.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	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	_amd_iommu_dev_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_iommu_virt_to_phys
	movq	_dev_table_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	$12, %ecx
	decl	%ecx
	orl	%eax, %ecx
	movl	%ecx, -12(%rbp)
	movq	_MMIO_DEV_TABLE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	leaq	-12(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy_toio
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_iommu_dev_table,4,2        ## @amd_iommu_dev_table
	.comm	_dev_table_size,4,2             ## @dev_table_size
	.comm	_MMIO_DEV_TABLE_OFFSET,4,2      ## @MMIO_DEV_TABLE_OFFSET
	.no_dead_strip	_iommu_set_device_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_set_device_table
_iommu_set_device_table:                ; @iommu_set_device_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x8, _amd_iommu_dev_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_iommu_dev_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_iommu_virt_to_phys
Lloh3:
	adrp	x8, _dev_table_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dev_table_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w8, #12
	sub	w8, w8, #1
	orr	w8, w8, w0
	str	w8, [sp, #12]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _MMIO_DEV_TABLE_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMIO_DEV_TABLE_OFFSET@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy_toio
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_iommu_dev_table,4,2        ; @amd_iommu_dev_table
	.comm	_dev_table_size,4,2             ; @dev_table_size
	.comm	_MMIO_DEV_TABLE_OFFSET,4,2      ; @MMIO_DEV_TABLE_OFFSET
	.no_dead_strip	_iommu_set_device_table
.subsections_via_symbols
