	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_read_page_hwecc_oob_first
_nand_read_page_hwecc_oob_first:        ## @nand_read_page_hwecc_oob_first
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	4(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	72(%rsi), %rax
	movq	(%rax), %r13
	movq	8(%rax), %r12
	movq	40(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_NAND_CMD_READOOB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*64(%r15)
	movq	56(%r15), %rsi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	*48(%r15)
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	*64(%r15)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$0, 12(%r15)
	jle	LBB0_3
## %bb.1:
	movq	56(%r15), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rcx,8), %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, (%r12,%rcx,4)
	incq	%rcx
	movslq	12(%r15), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_2
LBB0_3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	shlq	$2, %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(,%rdx,4), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_NAND_ECC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*32(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*48(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	*24(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	*16(%r15)
	movq	%r14, %rdx
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	movl	$1, %esi
	cmovsl	%esi, %eax
	addl	%eax, 4(%r14,%rcx,4)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	addq	%rax, %r12
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%ecx
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_READOOB,4,2           ## @NAND_CMD_READOOB
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.comm	_NAND_ECC_READ,4,2              ## @NAND_ECC_READ
	.no_dead_strip	_nand_read_page_hwecc_oob_first
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_read_page_hwecc_oob_first
_nand_read_page_hwecc_oob_first:        ; @nand_read_page_hwecc_oob_first
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldpsw	x22, x27, [x1]
	ldr	w24, [x1, #8]
	ldr	x8, [x1, #40]
	ldr	x28, [x8]
	ldp	x9, x8, [x1, #64]
	ldp	x26, x25, [x8]
Lloh0:
	adrp	x8, _NAND_CMD_READOOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_READOOB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	blr	x9
	ldp	x8, x1, [x20, #48]
	ldr	w2, [x21]
	mov	x0, x21
	blr	x8
	ldr	x8, [x20, #64]
Lloh3:
	adrp	x9, _NAND_CMD_READ0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #0
	mov	x3, x23
	blr	x8
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x20, #56]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x28, x8, lsl #3]
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x25, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x20, #12]
	cmp	x8, x10
	b.lt	LBB0_2
LBB0_3:
	cbz	w24, LBB0_6
; %bb.4:
	mov	x23, #0
	lsl	x27, x27, #2
	lsl	x28, x22, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
Lloh6:
	adrp	x9, _NAND_ECC_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NAND_ECC_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	ldr	x8, [x20, #48]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	blr	x8
	ldr	x8, [x20, #24]
	add	x2, x26, x23
	mov	x0, x21
	mov	x1, x19
	blr	x8
	ldr	x8, [x20, #16]
	add	x2, x25, x23
	mov	x0, x21
	mov	x1, x19
	mov	x3, #0
	blr	x8
	cmp	w0, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, lt
	csinc	w9, w0, wzr, ge
	ldr	w10, [x21, x8]
	add	w9, w10, w9
	str	w9, [x21, x8]
	add	x23, x23, x27
	add	x19, x19, x28
	subs	w24, w24, #1
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_READOOB,4,2           ; @NAND_CMD_READOOB
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.comm	_NAND_ECC_READ,4,2              ; @NAND_ECC_READ
	.no_dead_strip	_nand_read_page_hwecc_oob_first
.subsections_via_symbols
