	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_NAND_CMD_SEQIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*32(%rbx)
	movl	%r13d, %edi
	callq	_unlikely
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	*48(%rbx)
	jmp	LBB0_3
LBB0_2:
	callq	*40(%rbx)
LBB0_3:
	movq	_NAND_CMD_PAGEPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	*32(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*8(%rbx)
	movq	_NAND_STATUS_FAIL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.4:
	movq	16(%rbx), %r9
	testq	%r9, %r9
	je	LBB0_5
## %bb.6:
	movq	_FL_WRITING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	*%r9
	testl	%eax, (%r12)
	je	LBB0_7
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_SEQIN,4,2             ## @NAND_CMD_SEQIN
	.comm	_NAND_CACHEPRG,4,2              ## @NAND_CACHEPRG
	.comm	_NAND_CMD_PAGEPROG,4,2          ## @NAND_CMD_PAGEPROG
	.comm	_NAND_STATUS_FAIL,4,2           ## @NAND_STATUS_FAIL
	.comm	_FL_WRITING,4,2                 ## @FL_WRITING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NAND_CMD_CACHEDPROG,4,2        ## @NAND_CMD_CACHEDPROG
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x5
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1, #32]
Lloh0:
	adrp	x9, _NAND_CMD_SEQIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_CMD_SEQIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	w2, #0
	blr	x8
	mov	x0, x23
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #48]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #40]
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	blr	x8
	ldr	x8, [x20, #32]
Lloh3:
	adrp	x9, _NAND_CMD_PAGEPROG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CMD_PAGEPROG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #-1
	blr	x8
	ldr	x8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
Lloh6:
	adrp	x22, _NAND_STATUS_FAIL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NAND_STATUS_FAIL@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x3, x0
Lloh8:
	adrp	x9, _FL_WRITING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FL_WRITING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	blr	x8
	ldr	w8, [x22]
	and	w8, w8, w0
	cbz	w8, LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_SEQIN,4,2             ; @NAND_CMD_SEQIN
	.comm	_NAND_CACHEPRG,4,2              ; @NAND_CACHEPRG
	.comm	_NAND_CMD_PAGEPROG,4,2          ; @NAND_CMD_PAGEPROG
	.comm	_NAND_STATUS_FAIL,4,2           ; @NAND_STATUS_FAIL
	.comm	_FL_WRITING,4,2                 ; @FL_WRITING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NAND_CMD_CACHEDPROG,4,2        ; @NAND_CMD_CACHEDPROG
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.no_dead_strip	_nand_write_page
.subsections_via_symbols
