	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_read_page_raw_syndrome
_nand_read_page_raw_syndrome:           ## @nand_read_page_raw_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, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	movl	24(%rsi), %r13d
	testl	%r13d, %r13d
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movslq	16(%r15), %rax
	movslq	20(%r15), %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
	incl	%r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%r15)
	movslq	32(%r15), %rax
	leaq	(%r12,%rax,4), %r12
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%r13d
	cmpl	$1, %r13d
	jle	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*(%r15)
	movl	28(%r15), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%r15)
	movslq	28(%r15), %rax
	leaq	(%r12,%rax,4), %r12
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	*(%r15)
	leaq	(%r12,%r14,4), %r12
	movl	32(%r15), %edx
	testl	%edx, %edx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	8(%r15), %rax
	jmp	LBB0_10
LBB0_1:
	movq	%r12, %rax
LBB0_10:
	movl	(%r14), %edx
	movq	%r12, %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	subl	%ecx, %edx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%r15)
LBB0_12:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nand_read_page_raw_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_raw_syndrome
_nand_read_page_raw_syndrome:           ; @nand_read_page_raw_syndrome
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
	ldr	w8, [x1, #24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x2
	ldpsw	x23, x24, [x21, #16]
	lsl	x25, x23, #2
	add	w26, w8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x25
	sub	w26, w26, #1
	cmp	w26, #1
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	blr	x8
	ldr	w2, [x21, #28]
	cbz	w2, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldrsw	x8, [x21, #28]
	add	x20, x20, x8, lsl #2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	blr	x8
	add	x20, x20, x24, lsl #2
	ldr	w2, [x21, #32]
	cbz	w2, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldrsw	x8, [x21, #32]
	add	x20, x20, x8, lsl #2
	b	LBB0_2
LBB0_7:
	ldr	x8, [x21, #8]
	b	LBB0_9
LBB0_8:
	mov	x8, x20
LBB0_9:
	ldr	w9, [x19]
	sub	x8, x20, x8
	lsr	x8, x8, #2
	subs	w2, w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nand_read_page_raw_syndrome
.subsections_via_symbols
