	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_read_buf_irq_pref
_omap_read_buf_irq_pref:                ## @omap_read_buf_irq_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, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mtd_to_omap
	cmpl	%r15d, (%r12)
	jge	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	_OMAP_NAND_IO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	%r14, 24(%r13)
	movq	%r13, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movl	8(%r13), %edi
	movq	_PREFETCH_FIFOTHRESHOLD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_omap_prefetch_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_3
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_read_buf16                ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_read_buf_pref             ## TAILCALL
LBB0_5:
	movl	%r15d, (%r13)
	movl	20(%r13), %edi
	callq	_enable_irq
	movl	16(%r13), %edi
	callq	_enable_irq
	movq	%rbx, %rdi
	callq	_wait_for_completion
	movl	8(%r13), %edi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_prefetch_reset            ## TAILCALL
LBB0_3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %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	_OMAP_NAND_IO_READ,4,2          ## @OMAP_NAND_IO_READ
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ## @PREFETCH_FIFOTHRESHOLD_MAX
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.no_dead_strip	_omap_read_buf_irq_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_irq_pref
_omap_read_buf_irq_pref:                ; @omap_read_buf_irq_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
	mov	x23, x0
	bl	_nand_to_mtd
	mov	x22, x0
	bl	_mtd_to_omap
	ldr	w8, [x22]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _OMAP_NAND_IO_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_NAND_IO_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x20, [x0, #24]
	add	x23, x0, #12
	mov	x0, x23
	bl	_init_completion
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PREFETCH_FIFOTHRESHOLD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	w2, #0
	mov	x3, x19
	mov	w4, #0
	mov	x5, x21
	bl	_omap_prefetch_enable
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	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_4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	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_buf_pref
LBB0_5:
	str	w19, [x21]
	ldr	w0, [x21, #20]
	bl	_enable_irq
	ldr	w0, [x21, #16]
	bl	_enable_irq
	mov	x0, x23
	bl	_wait_for_completion
	ldr	w0, [x21, #8]
	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_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_NAND_IO_READ,4,2          ; @OMAP_NAND_IO_READ
	.comm	_PREFETCH_FIFOTHRESHOLD_MAX,4,2 ; @PREFETCH_FIFOTHRESHOLD_MAX
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.no_dead_strip	_omap_read_buf_irq_pref
.subsections_via_symbols
