	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_iommu_tlb_flush_all
_mtk_iommu_tlb_flush_all:               ## @mtk_iommu_tlb_flush_all
	.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
	movq	_F_INVLD_EN1@GOTPCREL(%rip), %rax
	movq	_F_INVLD_EN0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_REG_MMU_INV_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_F_ALL_INVLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_MMU_INVALIDATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_F_INVLD_EN1,4,2                ## @F_INVLD_EN1
	.comm	_F_INVLD_EN0,4,2                ## @F_INVLD_EN0
	.comm	_REG_MMU_INV_SEL,8,3            ## @REG_MMU_INV_SEL
	.comm	_F_ALL_INVLD,4,2                ## @F_ALL_INVLD
	.comm	_REG_MMU_INVALIDATE,8,3         ## @REG_MMU_INVALIDATE
	.no_dead_strip	_mtk_iommu_tlb_flush_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_iommu_tlb_flush_all
_mtk_iommu_tlb_flush_all:               ; @mtk_iommu_tlb_flush_all
	.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
Lloh0:
	adrp	x8, _F_INVLD_EN1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_INVLD_EN1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _F_INVLD_EN0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_INVLD_EN0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _REG_MMU_INV_SEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_MMU_INV_SEL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh9:
	adrp	x8, _F_ALL_INVLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_ALL_INVLD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _REG_MMU_INVALIDATE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REG_MMU_INVALIDATE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wmb
	.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	_F_INVLD_EN1,4,2                ; @F_INVLD_EN1
	.comm	_F_INVLD_EN0,4,2                ; @F_INVLD_EN0
	.comm	_REG_MMU_INV_SEL,8,3            ; @REG_MMU_INV_SEL
	.comm	_F_ALL_INVLD,4,2                ; @F_ALL_INVLD
	.comm	_REG_MMU_INVALIDATE,8,3         ; @REG_MMU_INVALIDATE
	.no_dead_strip	_mtk_iommu_tlb_flush_all
.subsections_via_symbols
