	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap2_iommu_disable
_omap2_iommu_disable:                   ## @omap2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MMU_CNTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_iommu_read_reg
	movq	_MMU_CNTL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_iommu_write_reg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dra7_cfg_dspsys_mmu
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMU_CNTL,4,2                   ## @MMU_CNTL
	.comm	_MMU_CNTL_MASK,4,2              ## @MMU_CNTL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is shutting down\n"

	.no_dead_strip	_omap2_iommu_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap2_iommu_disable
_omap2_iommu_disable:                   ; @omap2_iommu_disable
	.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	x20, _MMU_CNTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMU_CNTL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_iommu_read_reg
Lloh2:
	adrp	x8, _MMU_CNTL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMU_CNTL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_iommu_write_reg
	mov	x0, x19
	mov	w1, #0
	bl	_dra7_cfg_dspsys_mmu
	ldp	w2, w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMU_CNTL,4,2                   ; @MMU_CNTL
	.comm	_MMU_CNTL_MASK,4,2              ; @MMU_CNTL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is shutting down\n"

	.no_dead_strip	_omap2_iommu_disable
.subsections_via_symbols
