	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_read_buf_pref
_omap_read_buf_pref:                    ## @omap_read_buf_pref
	.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	%edx, %r14d
	movq	%rsi, %r12
	callq	_nand_to_mtd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mtd_to_omap
	movq	%rax, %r15
	leal	3(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	andl	$-4, %eax
	movl	%r14d, %r13d
	subl	%eax, %r13d
	je	LBB0_5
## %bb.1:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_omap_read_buf16
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_omap_read_buf8
LBB0_4:
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %r12
	subl	%r13d, %r14d
LBB0_5:
	movl	(%r15), %edi
	movq	_PREFETCH_FIFOTHRESHOLD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_omap_prefetch_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_read_buf16                ## TAILCALL
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r15), %edi
	callq	_readl
	movl	%eax, %edi
	callq	_PREFETCH_STATUS_FIFO_CNT
	movl	%eax, %r13d
	movl	%eax, %ebx
	sarl	$2, %ebx
	movl	8(%r15), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ioread32_rep
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %r12
	andl	$-4, %r13d
	subl	%r13d, %r14d
	jne	LBB0_8
## %bb.9:
	movl	(%r15), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_prefetch_reset            ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_read_buf8                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ## @PREFETCH_FIFOTHRESHOLD_MAX
	.no_dead_strip	_omap_read_buf_pref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_read_buf_pref
_omap_read_buf_pref:                    ; @omap_read_buf_pref
	.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, x2
	mov	x20, x1
	bl	_nand_to_mtd
	mov	x22, x0
	bl	_mtd_to_omap
	mov	x21, x0
	negs	w8, w19
	and	w8, w8, #0x3
	and	w9, w19, #0x3
	csneg	w23, w9, w8, mi
Lloh0:
	adrp	x24, _NAND_BUSWIDTH_16@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NAND_BUSWIDTH_16@GOTPAGEOFF]
	cbz	w23, LBB0_5
; %bb.1:
	ldr	w8, [x21, #4]
	ldr	w9, [x24]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_omap_read_buf16
	b	LBB0_4
LBB0_3:
	bl	_omap_read_buf8
LBB0_4:
	add	x20, x20, w23, sxtw #2
	sub	w19, w19, w23
LBB0_5:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, x19
	mov	w4, #0
	mov	x5, x21
	bl	_omap_prefetch_enable
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x21, #4]
	ldr	w9, [x24]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	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	_omap_read_buf16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #12]
	bl	_readl
	bl	_PREFETCH_STATUS_FIFO_CNT
	mov	x22, x0
	asr	w23, w0, #2
	ldr	w0, [x21, #8]
	mov	x1, x20
	mov	x2, x23
	bl	_ioread32_rep
	add	x20, x20, w23, sxtw #2
	and	w8, w22, #0xfffffffc
	subs	w19, w19, w8
	b.ne	LBB0_8
; %bb.9:
	ldr	w0, [x21]
	mov	x1, x21
	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	_omap_prefetch_reset
LBB0_10:
	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	_omap_read_buf8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ; @PREFETCH_FIFOTHRESHOLD_MAX
	.no_dead_strip	_omap_read_buf_pref
.subsections_via_symbols
