	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_read_page_syndrome
_nand_read_page_syndrome:               ## @nand_read_page_syndrome
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	24(%rsi), %ebx
	movq	8(%rsi), %r15
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movslq	16(%r14), %rax
	movslq	20(%r14), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%ebx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NAND_ECC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*48(%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*(%r14)
	movl	28(%r14), %edx
	testl	%edx, %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%r14)
	movslq	28(%r14), %rax
	leaq	(%r15,%rax,4), %r15
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NAND_ECC_READSYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*48(%r14)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	*(%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	*32(%r14)
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	movl	$1, %edx
	cmovsl	%edx, %eax
	addl	%eax, 4(%r13,%rcx,4)
	leaq	(%r15,%rbx,4), %r15
	movl	40(%r14), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%r14)
	movslq	40(%r14), %rax
	leaq	(%r15,%rax,4), %r15
	jmp	LBB0_7
LBB0_8:
	movq	8(%r14), %rax
	jmp	LBB0_9
LBB0_1:
	movq	%r15, %rax
LBB0_9:
	movl	(%r13), %edx
	movq	%r15, %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	subl	%ecx, %edx
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%r14)
LBB0_11:
	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_ECC_READ,4,2              ## @NAND_ECC_READ
	.comm	_NAND_ECC_READSYN,4,2           ## @NAND_ECC_READSYN
	.no_dead_strip	_nand_read_page_syndrome
.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_syndrome
_nand_read_page_syndrome:               ; @nand_read_page_syndrome
	.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	x20, x1
	mov	x19, x0
	ldr	w25, [x1, #24]
	ldr	x21, [x1, #8]
	cbz	w25, LBB0_8
; %bb.1:
	mov	x22, x2
	ldpsw	x23, x24, [x20, #16]
	lsl	x26, x23, #2
	mov	w27, #4
	mov	w28, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x26
	subs	w25, w25, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
Lloh0:
	adrp	x9, _NAND_ECC_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_ECC_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	blr	x8
	ldr	w2, [x20, #28]
	cbz	w2, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldrsw	x8, [x20, #28]
	add	x21, x21, x8, lsl #2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #48]
Lloh3:
	adrp	x9, _NAND_ECC_READSYN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_ECC_READSYN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	blr	x8
	ldr	x8, [x20, #32]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, #0
	blr	x8
	cmp	w0, #0
	csel	x8, x28, x27, lt
	ldr	w9, [x19, x8]
	csinc	w10, w0, wzr, ge
	add	w9, w9, w10
	str	w9, [x19, x8]
	add	x21, x21, x24, lsl #2
	ldr	w2, [x20, #40]
	cbz	w2, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldrsw	x8, [x20, #40]
	add	x21, x21, x8, lsl #2
	b	LBB0_2
LBB0_7:
	ldr	x8, [x20, #8]
	b	LBB0_9
LBB0_8:
	mov	x8, x21
LBB0_9:
	ldr	w9, [x19]
	sub	x8, x21, x8
	lsr	x8, x8, #2
	subs	w2, w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ECC_READ,4,2              ; @NAND_ECC_READ
	.comm	_NAND_ECC_READSYN,4,2           ; @NAND_ECC_READSYN
	.no_dead_strip	_nand_read_page_syndrome
.subsections_via_symbols
