	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_iommu_disable
_rk_iommu_disable:                      ## @rk_iommu_disable
	.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	%rdi, %r14
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	callq	_clk_bulk_enable
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_rk_iommu_enable_stall
	movq	%r14, %rdi
	callq	_rk_iommu_disable_paging
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_RK_MMU_INT_MASK@GOTPCREL(%rip), %r15
	movq	_RK_MMU_DTE_ADDR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_rk_iommu_write
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_rk_iommu_write
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_rk_iommu_disable_stall
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clk_bulk_disable               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RK_MMU_INT_MASK,4,2            ## @RK_MMU_INT_MASK
	.comm	_RK_MMU_DTE_ADDR,4,2            ## @RK_MMU_DTE_ADDR
	.no_dead_strip	_rk_iommu_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_iommu_disable
_rk_iommu_disable:                      ; @rk_iommu_disable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #4]
	bl	_clk_bulk_enable
	bl	_WARN_ON
	mov	x0, x19
	bl	_rk_iommu_enable_stall
	mov	x0, x19
	bl	_rk_iommu_disable_paging
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _RK_MMU_INT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RK_MMU_INT_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x22, _RK_MMU_DTE_ADDR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RK_MMU_DTE_ADDR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x23, x20, #2
	ldr	w0, [x8, x23]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_rk_iommu_write
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x23]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_rk_iommu_write
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_rk_iommu_disable_stall
	ldp	w1, w0, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_clk_bulk_disable
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RK_MMU_INT_MASK,4,2            ; @RK_MMU_INT_MASK
	.comm	_RK_MMU_DTE_ADDR,4,2            ; @RK_MMU_DTE_ADDR
	.no_dead_strip	_rk_iommu_disable
.subsections_via_symbols
