	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_write_page_swecc
_nand_write_page_swecc:                 ## @nand_write_page_swecc
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rsi), %r15d
	movq	48(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movslq	4(%r12), %rax
	movslq	(%r12), %rcx
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	*24(%r12)
	addq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	decl	%r15d
	jne	LBB0_2
LBB0_3:
	cmpl	$0, 12(%r12)
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_6
## %bb.4:
	movq	40(%r12), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rcx,4), %edx
	movq	(%rbx,%rcx,8), %rsi
	movl	%edx, (%rax,%rsi,4)
	incq	%rcx
	movslq	12(%r12), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
LBB0_6:
	movq	16(%r12), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nand_write_page_swecc
.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_swecc
_nand_write_page_swecc:                 ; @nand_write_page_swecc
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w26, [x1, #8]
	ldr	x8, [x1, #48]
	ldr	x24, [x8]
	ldr	x8, [x1, #32]
	ldr	x25, [x8]
	cbz	w26, LBB0_3
; %bb.1:
	ldpsw	x9, x8, [x20]
	lsl	x27, x8, #2
	lsl	x28, x9, #2
	mov	x22, x19
	mov	x23, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	blr	x8
	add	x23, x23, x27
	add	x22, x22, x28
	subs	w26, w26, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
	ldr	x9, [x20, #40]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x24, x8, lsl #2]
	ldr	x11, [x25, x8, lsl #3]
	str	w10, [x9, x11, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x20, #12]
	cmp	x8, x10
	b.lt	LBB0_5
LBB0_6:
	ldr	x3, [x20, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nand_write_page_swecc
.subsections_via_symbols
