	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_write_page_syndrome
_nand_write_page_syndrome:              ## @nand_write_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, %r12
	movq	%rdi, %r14
	movl	24(%rsi), %ebx
	movq	8(%rsi), %r13
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movslq	16(%r12), %rax
	movslq	20(%r12), %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
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	decl	%ebx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NAND_ECC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*48(%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*(%r12)
	movl	28(%r12), %edx
	testl	%edx, %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*(%r12)
	movslq	28(%r12), %rax
	leaq	(%r13,%rax,4), %r13
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	*40(%r12)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r14, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	*(%r12)
	leaq	(%r13,%r14,4), %r13
	movl	32(%r12), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*(%r12)
	movslq	32(%r12), %rax
	leaq	(%r13,%rax,4), %r13
	jmp	LBB0_7
LBB0_8:
	movq	8(%r12), %rax
	jmp	LBB0_9
LBB0_1:
	movq	%r13, %rax
LBB0_9:
	movl	(%r14), %edx
	movq	%r13, %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	subl	%ecx, %edx
	jne	LBB0_11
## %bb.10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ECC_WRITE,4,2             ## @NAND_ECC_WRITE
	.no_dead_strip	_nand_write_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_write_page_syndrome
_nand_write_page_syndrome:              ; @nand_write_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
Lloh0:
	adrp	x27, _NAND_ECC_WRITE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NAND_ECC_WRITE@GOTPAGEOFF]
	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]
	ldr	w1, [x27]
	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, #40]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	blr	x8
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	blr	x8
	add	x21, x21, x24, lsl #2
	ldr	w2, [x20, #32]
	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, #32]
	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.ne	LBB0_11
; %bb.10:
	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
LBB0_11:
	ldr	x3, [x20]
	mov	x0, x19
	mov	x1, x21
	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
	br	x3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ECC_WRITE,4,2             ; @NAND_ECC_WRITE
	.no_dead_strip	_nand_write_page_syndrome
.subsections_via_symbols
