	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_prefetch_enable
_omap_prefetch_enable:                  ## @omap_prefetch_enable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	_PREFETCH_FIFOTHRESHOLD_MAX@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%esi, (%rcx)
	jl	LBB0_4
## %bb.1:
	movq	%r9, %r14
	movl	%r8d, %r13d
	movl	%esi, %ebx
	movl	%edi, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r9), %edi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_writel
	movq	_PREFETCH_CONFIG1_CS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	%ebx, %edi
	callq	_PREFETCH_FIFOTHRESHOLD
	movq	_DMA_MPU_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	movq	_ENABLE_PREFETCH@GOTPCREL(%rip), %rcx
	andl	$1, %r13d
	orl	%eax, %r13d
	orl	%r12d, %r13d
	orl	(%rcx), %r13d
	orl	%edx, %r13d
	movl	4(%r14), %esi
	movl	%r13d, %edi
	callq	_writel
	movl	(%r14), %esi
	movl	$1, %edi
	callq	_writel
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ## @PREFETCH_FIFOTHRESHOLD_MAX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PREFETCH_CONFIG1_CS_SHIFT,4,2  ## @PREFETCH_CONFIG1_CS_SHIFT
	.comm	_ENABLE_PREFETCH,4,2            ## @ENABLE_PREFETCH
	.comm	_DMA_MPU_MODE_SHIFT,4,2         ## @DMA_MPU_MODE_SHIFT
	.no_dead_strip	_omap_prefetch_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_prefetch_enable
_omap_prefetch_enable:                  ; @omap_prefetch_enable
	.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
Lloh0:
	adrp	x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x5]
	bl	_readl
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19, #8]
	mov	x0, x24
	bl	_writel
Lloh6:
	adrp	x8, _PREFETCH_CONFIG1_CS_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PREFETCH_CONFIG1_CS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w23, w23, w8
	mov	x0, x22
	bl	_PREFETCH_FIFOTHRESHOLD
Lloh9:
	adrp	x8, _ENABLE_PREFETCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENABLE_PREFETCH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DMA_MPU_MODE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMA_MPU_MODE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	and	w10, w20, #0x1
	orr	w10, w0, w10
	orr	w10, w10, w23
	orr	w8, w10, w8
	orr	w0, w8, w9
	ldr	w1, [x19, #4]
	bl	_writel
	ldr	w1, [x19]
	mov	w0, #1
	bl	_writel
	mov	w0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ; @PREFETCH_FIFOTHRESHOLD_MAX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PREFETCH_CONFIG1_CS_SHIFT,4,2  ; @PREFETCH_CONFIG1_CS_SHIFT
	.comm	_ENABLE_PREFETCH,4,2            ; @ENABLE_PREFETCH
	.comm	_DMA_MPU_MODE_SHIFT,4,2         ; @DMA_MPU_MODE_SHIFT
	.no_dead_strip	_omap_prefetch_enable
.subsections_via_symbols
