	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_flush_dte
_device_flush_dte:                      ## @device_flush_dte
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_amd_iommu_rlookup_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rsi
	movq	8(%rdi), %r14
	movq	(%rax,%rsi,8), %r15
	movq	%r15, %rdi
	callq	_iommu_flush_dte
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	(%rbx), %r14
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iommu_flush_dte
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	$-1, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_flush_iotlb             ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_iommu_rlookup_table,8,3    ## @amd_iommu_rlookup_table
	.no_dead_strip	_device_flush_dte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_flush_dte
_device_flush_dte:                      ; @device_flush_dte
	.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, x0
Lloh0:
	adrp	x8, _amd_iommu_rlookup_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_iommu_rlookup_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x1, x20, [x0]
	ldr	x21, [x8, x1, lsl #3]
	mov	x0, x21
	bl	_iommu_flush_dte
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x8, [x19]
	cmp	x20, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_iommu_flush_dte
	cbnz	w0, LBB0_1
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #-1
	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
	b	_device_flush_iotlb
LBB0_6:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_iommu_rlookup_table,8,3    ; @amd_iommu_rlookup_table
	.no_dead_strip	_device_flush_dte
.subsections_via_symbols
