	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_do_read_ops
_nand_do_read_ops:                      ## @nand_do_read_ops
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movl	(%r13), %ecx
	subl	4(%r13), %ecx
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	notl	%eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	(%rdx), %r12d
	movl	4(%rdx), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movb	8(%r13), %cl
	sarl	%cl, %esi
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	callq	*24(%r13)
	movb	4(%r13), %cl
	movl	%r15d, %edx
	movl	%r15d, %eax
	sarl	%cl, %eax
	movl	12(%r13), %r15d
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	andl	%eax, %r15d
	movl	(%r14), %edi
	leal	-1(%rdi), %ecx
	andl	%edx, %ecx
	movq	24(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	32(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_NAND_CANAUTOINCR
	testl	%r15d, -116(%rbp)               ## 4-byte Folded Reload
	movl	$1, %ecx
	movl	-112(%rbp), %ebx                ## 4-byte Reload
	cmovel	%ecx, %ebx
	testl	%eax, %eax
	cmovel	%ecx, %ebx
	movl	(%r14), %edi
	xorl	%ecx, %ecx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	subl	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r12d, %esi
	callq	_min
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %r14d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	16(%r13), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, -112(%rbp)                ## 4-byte Spill
	movq	32(%r13), %rax
	movslq	-96(%rbp), %rsi                 ## 4-byte Folded Reload
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subl	%r15d, %r12d
	jne	LBB0_41
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r13), %rax
	movq	(%rax), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	*80(%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%edi, %edi
	movq	_MTD_OOB_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	*48(%r13)
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_NAND_SUBPAGE_READ
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	*56(%r13)
	movl	%eax, %edx
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	*64(%r13)
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	js	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_NAND_SUBPAGE_READ
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r13), %rax
	movslq	-96(%rbp), %rsi                 ## 4-byte Folded Reload
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rdx), %rax
	movq	_MTD_OOB_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r14), %ecx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_nand_transfer_oob
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	72(%r13), %rax
	movl	(%rax), %esi
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_min
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, %ecx
	callq	_nand_transfer_oob
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	subl	%r14d, %r15d
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_NAND_NO_READRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r13)
	movl	%ebx, -112(%rbp)                ## 4-byte Spill
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 44(%r13)
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_nand_wait_ready
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	subl	%r15d, %r12d
	je	LBB0_35
LBB0_41:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	12(%r13), %r15d
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	andl	%eax, %r15d
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-108(%rbp), %ebx                ## 4-byte Reload
	incl	%ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	*24(%r13)
	movq	%r14, %rdi
	movl	%ebx, -108(%rbp)                ## 4-byte Spill
	movl	%ebx, %esi
	callq	*24(%r13)
	jmp	LBB0_43
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	40(%r13), %edi
	callq	_udelay
	subl	%r15d, %r12d
	jne	LBB0_41
LBB0_35:
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_36:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %eax
	subl	%r12d, %eax
	movl	%eax, 16(%rcx)
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_38
## %bb.37:
	movl	4(%rcx), %eax
	subl	%edx, %eax
	movl	%eax, 20(%rcx)
LBB0_38:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	jne	LBB0_45
## %bb.39:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, 16(%r14)
	jne	LBB0_40
## %bb.44:
	movq	_EUCLEAN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, 8(%r14)
	cmovel	%ecx, %edx
	jmp	LBB0_45
LBB0_40:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
LBB0_45:
	movl	%edx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %eax
	subl	%r12d, %eax
	movl	%eax, 16(%rcx)
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.comm	_MTD_OOB_RAW,8,3                ## @MTD_OOB_RAW
	.comm	_NAND_NO_READRDY,4,2            ## @NAND_NO_READRDY
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_EUCLEAN,4,2                    ## @EUCLEAN
	.no_dead_strip	_nand_do_read_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_do_read_ops
_nand_do_read_ops:                      ; @nand_do_read_ops
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #24]
	ldp	w8, w9, [x23]
	sub	w8, w8, w9
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w26, w8
	ldp	w22, w8, [x2]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x9, [x0, #8]
	ldr	x8, [x0, #16]
	stp	x9, x8, [sp, #8]                ; 16-byte Folded Spill
	ldr	w8, [x23, #8]
	asr	w1, w1, w8
	ldr	x8, [x23, #24]
	str	w1, [sp, #36]                   ; 4-byte Folded Spill
	blr	x8
	mov	w28, #0
	ldr	w8, [x23, #4]
	asr	w25, w21, w8
	ldr	w8, [x23, #12]
	and	w20, w25, w8
	ldr	w8, [x19]
	sub	w9, w8, #1
	and	w24, w9, w21
	ldr	x9, [x27, #32]
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x9, [x27, #24]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	mov	w9, #1
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
	str	w26, [sp, #32]                  ; 4-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_NAND_CANAUTOINCR
	mov	w24, #0
	tst	w20, w26
	ccmp	w0, #0, #4, ne
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w8, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w8, w24
	mov	x1, x22
	bl	_min
	mov	x21, x0
	ldr	w8, [x23, #16]
	cmp	w25, w8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x19
	mov	x26, x27
	ldr	w27, [x19]
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	cmp	w21, w27
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #32]
	ldr	x28, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #80]
Lloh0:
	adrp	x9, _NAND_CMD_READ0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	blr	x8
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26, #8]
Lloh3:
	adrp	x9, _MTD_OOB_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTD_OOB_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #48]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	add	x1, x8, w24, sxtw #2
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x24
	mov	x2, x21
	bl	_memcpy
	mov	x20, #0
	add	x24, x24, w21, sxtw #2
	str	x24, [sp, #56]                  ; 8-byte Folded Spill
	subs	w22, w22, w21
	b.ne	LBB0_32
	b	LBB0_35
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, w27
	b.ne	LBB0_23
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #64]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x28
	mov	x3, x20
	blr	x8
	mov	x28, x0
	tbnz	w0, #31, LBB0_36
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, w27
	mov	x27, x26
	ldr	w26, [sp, #32]                  ; 4-byte Folded Reload
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	b.eq	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_NAND_SUBPAGE_READ
	cbnz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x20, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x23, #16]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	add	x1, x8, w24, sxtw #2
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x2, x21
	bl	_memcpy
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x8, w21, sxtw #2
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_unlikely
	cbz	x0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27, #8]
Lloh6:
	adrp	x9, _MTD_OOB_RAW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTD_OOB_RAW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x19, #4]
	mov	x0, x23
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	mov	x2, x27
	bl	_nand_transfer_oob
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_28
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #72]
	ldr	w1, [x8]
	ldr	w24, [sp, #28]                  ; 4-byte Folded Reload
	mov	x0, x24
	bl	_min
	cbz	w0, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	mov	x0, x23
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x27
	mov	x3, x20
	bl	_nand_transfer_oob
	sub	w24, w24, w20
	mov	x20, x0
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_28
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_NAND_SUBPAGE_READ
	cbz	x0, LBB0_11
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_11
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #56]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x28
	blr	x8
	mov	x28, x0
	tbnz	w0, #31, LBB0_44
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x26
	ldr	w26, [sp, #32]                  ; 4-byte Folded Reload
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_14
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #20]
Lloh9:
	adrp	x9, _NAND_NO_READRDY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NAND_NO_READRDY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #44]
	cbz	w8, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_nand_wait_ready
LBB0_31:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w22, w22, w21
	b.eq	LBB0_35
LBB0_32:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	add	w25, w25, #1
	ldr	w8, [x23, #12]
	ands	w20, w8, w25
	b.ne	LBB0_1
; %bb.33:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	add	w21, w21, #1
	ldr	x8, [x23, #24]
	mov	x0, x19
	mov	w1, #-1
	blr	x8
	ldr	x8, [x23, #24]
	mov	x0, x19
	str	w21, [sp, #36]                  ; 4-byte Folded Spill
	mov	x1, x21
	blr	x8
	b	LBB0_1
LBB0_34:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23, #40]
	bl	_udelay
	subs	w22, w22, w21
	b.ne	LBB0_32
LBB0_35:
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	b	LBB0_37
LBB0_36:
	mov	x27, x26
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
LBB0_37:
	ldr	w8, [x27]
	sub	w8, w8, w22
	str	w8, [x27, #16]
	cbz	x20, LBB0_39
; %bb.38:
	ldr	w8, [x27, #4]
	sub	w8, w8, w9
	str	w8, [x27, #20]
LBB0_39:
	cbnz	w28, LBB0_43
; %bb.40:
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.41:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _EUCLEAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EUCLEAN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x8, x10
	csneg	w28, wzr, w9, eq
	b	LBB0_43
LBB0_42:
Lloh15:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_43:
	mov	x0, x28
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_44:
	ldr	w8, [x26]
	sub	w8, w8, w22
	str	w8, [x26, #16]
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.comm	_MTD_OOB_RAW,8,3                ; @MTD_OOB_RAW
	.comm	_NAND_NO_READRDY,4,2            ; @NAND_NO_READRDY
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_EUCLEAN,4,2                    ; @EUCLEAN
	.no_dead_strip	_nand_do_read_ops
.subsections_via_symbols
