	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_flush_iotlb
_iommu_flush_iotlb:                     ## @iommu_flush_iotlb
	.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
	movl	%esi, %eax
	leaq	(%rdi,%rax,4), %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	_viking_mxcc_present@GOTPCREL(%rip), %rcx
	andq	(%rax), %rbx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.1:
	cmpq	%r14, %rbx
	jae	LBB0_11
## %bb.2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_viking_mxcc_flush_page
	addq	(%r15), %rbx
	cmpq	%r14, %rbx
	jb	LBB0_3
	jmp	LBB0_11
LBB0_4:
	movq	_viking_flush@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	cmpq	%r14, %rbx
	jae	LBB0_11
## %bb.6:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_viking_flush_page
	addq	(%r15), %rbx
	cmpq	%r14, %rbx
	jb	LBB0_7
	jmp	LBB0_11
LBB0_8:
	cmpq	%r14, %rbx
	jae	LBB0_11
## %bb.9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	___flush_page_to_ram
	addq	(%r15), %rbx
	cmpq	%r14, %rbx
	jb	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_viking_mxcc_present,8,3        ## @viking_mxcc_present
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_viking_flush,8,3               ## @viking_flush
	.no_dead_strip	_iommu_flush_iotlb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_flush_iotlb
_iommu_flush_iotlb:                     ; @iommu_flush_iotlb
	.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	x20, x0
	add	x0, x0, w1, uxtw #2
	bl	_PAGE_ALIGN
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x20, x8, x20
Lloh3:
	adrp	x8, _viking_mxcc_present@GOTPAGE
Lloh4:
	ldr	x8, [x8, _viking_mxcc_present@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	x20, x19
	b.hs	LBB0_11
; %bb.2:
Lloh6:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_viking_mxcc_flush_page
	ldr	x8, [x21]
	add	x20, x8, x20
	cmp	x20, x19
	b.lo	LBB0_3
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _viking_flush@GOTPAGE
Lloh9:
	ldr	x8, [x8, _viking_flush@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	cmp	x20, x19
	b.hs	LBB0_11
; %bb.6:
Lloh11:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_viking_flush_page
	ldr	x8, [x21]
	add	x20, x8, x20
	cmp	x20, x19
	b.lo	LBB0_7
	b	LBB0_11
LBB0_8:
	cmp	x20, x19
	b.hs	LBB0_11
; %bb.9:
Lloh13:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___flush_page_to_ram
	ldr	x8, [x21]
	add	x20, x8, x20
	cmp	x20, x19
	b.lo	LBB0_10
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_viking_mxcc_present,8,3        ; @viking_mxcc_present
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_viking_flush,8,3               ; @viking_flush
	.no_dead_strip	_iommu_flush_iotlb
.subsections_via_symbols
