	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dte_entry
_set_dte_entry:                         ## @set_dte_entry
	.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, %r14
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_virt_to_phys
	movq	_DEV_ENTRY_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%r14), %ebx
	movq	_DEV_ENTRY_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_IOMMU_PTE_IR@GOTPCREL(%rip), %rcx
	movq	_IOMMU_PTE_IW@GOTPCREL(%rip), %rdx
	movq	_IOMMU_PTE_P@GOTPCREL(%rip), %rsi
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	movq	_IOMMU_PTE_TV@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	4(%r14), %eax
	movq	_amd_iommu_dev_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, 8(%rcx)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, 4(%rcx)
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, (%rcx)
	movq	_amd_iommu_pd_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, (%rax,%r15,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_ENTRY_MODE_MASK,4,2        ## @DEV_ENTRY_MODE_MASK
	.comm	_DEV_ENTRY_MODE_SHIFT,4,2       ## @DEV_ENTRY_MODE_SHIFT
	.comm	_IOMMU_PTE_IR,4,2               ## @IOMMU_PTE_IR
	.comm	_IOMMU_PTE_IW,4,2               ## @IOMMU_PTE_IW
	.comm	_IOMMU_PTE_P,4,2                ## @IOMMU_PTE_P
	.comm	_IOMMU_PTE_TV,4,2               ## @IOMMU_PTE_TV
	.comm	_amd_iommu_dev_table,8,3        ## @amd_iommu_dev_table
	.comm	_amd_iommu_pd_table,8,3         ## @amd_iommu_pd_table
	.no_dead_strip	_set_dte_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dte_entry
_set_dte_entry:                         ; @set_dte_entry
	.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
	ldr	w0, [x1, #8]
	bl	_virt_to_phys
Lloh0:
	adrp	x8, _DEV_ENTRY_MODE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_ENTRY_MODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _DEV_ENTRY_MODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEV_ENTRY_MODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _IOMMU_PTE_IR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOMMU_PTE_IR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _IOMMU_PTE_IW@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IOMMU_PTE_IW@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _IOMMU_PTE_P@GOTPAGE
Lloh13:
	ldr	x12, [x12, _IOMMU_PTE_P@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w8, w8, w0
Lloh15:
	adrp	x13, _IOMMU_PTE_TV@GOTPAGE
Lloh16:
	ldr	x13, [x13, _IOMMU_PTE_TV@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	orr	w8, w8, w9
	orr	w8, w8, w11
	orr	w8, w8, w12
Lloh18:
	adrp	x22, _amd_iommu_dev_table@GOTPAGE
Lloh19:
	ldr	x22, [x22, _amd_iommu_dev_table@GOTPAGEOFF]
	orr	w21, w8, w13
	ldr	x8, [x22]
	lsl	x20, x20, #3
	ldr	x8, [x8, x20]
	str	w10, [x8, #8]
	mov	x0, x21
	bl	_upper_32_bits
	ldr	x8, [x22]
	ldr	x8, [x8, x20]
	str	w0, [x8, #4]
	mov	x0, x21
	bl	_lower_32_bits
	ldr	x8, [x22]
	ldr	x8, [x8, x20]
	str	w0, [x8]
Lloh20:
	adrp	x8, _amd_iommu_pd_table@GOTPAGE
Lloh21:
	ldr	x8, [x8, _amd_iommu_pd_table@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x19, [x8, x20]
	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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_ENTRY_MODE_MASK,4,2        ; @DEV_ENTRY_MODE_MASK
	.comm	_DEV_ENTRY_MODE_SHIFT,4,2       ; @DEV_ENTRY_MODE_SHIFT
	.comm	_IOMMU_PTE_IR,4,2               ; @IOMMU_PTE_IR
	.comm	_IOMMU_PTE_IW,4,2               ; @IOMMU_PTE_IW
	.comm	_IOMMU_PTE_P,4,2                ; @IOMMU_PTE_P
	.comm	_IOMMU_PTE_TV,4,2               ; @IOMMU_PTE_TV
	.comm	_amd_iommu_dev_table,8,3        ; @amd_iommu_dev_table
	.comm	_amd_iommu_pd_table,8,3         ; @amd_iommu_pd_table
	.no_dead_strip	_set_dte_entry
.subsections_via_symbols
