	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_write_page
_nand_write_page:                       ## @nand_write_page
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	_NAND_NO_SUBPAGE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	testl	%ecx, (%rbx)
	je	LBB0_1
LBB0_4:
	movl	16(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	*16(%rbx)
	jmp	LBB0_10
LBB0_1:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_3
## %bb.7:
	movl	16(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_6
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	*8(%rbx)
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	*24(%rbx)
LBB0_10:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	setg	%r13b
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_NO_SUBPAGE_WRITE,4,2      ## @NAND_NO_SUBPAGE_WRITE
	.no_dead_strip	_nand_write_page
.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
_nand_write_page:                       ; @nand_write_page
	.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	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	bl	_nand_to_mtd
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _NAND_NO_SUBPAGE_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_NO_SUBPAGE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_1:
	mov	w26, #0
LBB0_2:
	mov	x0, x25
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_3:
	ldr	x8, [x22, #16]
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	b	LBB0_10
LBB0_5:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_1
; %bb.6:
	cbz	x24, LBB0_12
; %bb.7:
	mov	x0, x25
	bl	_unlikely
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_8:
	cbz	w26, LBB0_11
LBB0_9:
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	blr	x8
LBB0_10:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	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
LBB0_11:
	ldr	x8, [x22, #24]
	b	LBB0_4
LBB0_12:
	ldr	w8, [x0]
	cmp	w8, w23
	cset	w26, gt
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_NO_SUBPAGE_WRITE,4,2      ; @NAND_NO_SUBPAGE_WRITE
	.no_dead_strip	_nand_write_page
.subsections_via_symbols
