	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_write_oob_std
_nand_write_oob_std:                    ## @nand_write_oob_std
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rsi), %r15
	movq	_NAND_CMD_SEQIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %r12d
	movl	4(%rdi), %edx
	callq	*8(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	*16(%r14)
	movq	_NAND_CMD_PAGEPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	*8(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%r14)
	movq	_NAND_STATUS_FAIL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovnel	%edx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_SEQIN,4,2             ## @NAND_CMD_SEQIN
	.comm	_NAND_CMD_PAGEPROG,4,2          ## @NAND_CMD_PAGEPROG
	.comm	_NAND_STATUS_FAIL,4,2           ## @NAND_STATUS_FAIL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nand_write_oob_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_write_oob_std
_nand_write_oob_std:                    ; @nand_write_oob_std
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x3, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #24]
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _NAND_CMD_SEQIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_CMD_SEQIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldp	w22, w2, [x0]
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	blr	x8
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _NAND_CMD_PAGEPROG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CMD_PAGEPROG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #-1
	mov	w3, #-1
	blr	x8
	ldr	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	blr	x8
Lloh6:
	adrp	x8, _NAND_STATUS_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAND_STATUS_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EIO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csneg	w0, wzr, w9, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_SEQIN,4,2             ; @NAND_CMD_SEQIN
	.comm	_NAND_CMD_PAGEPROG,4,2          ; @NAND_CMD_PAGEPROG
	.comm	_NAND_STATUS_FAIL,4,2           ; @NAND_STATUS_FAIL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nand_write_oob_std
.subsections_via_symbols
