	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_write_data_op             ## -- Begin function nand_write_data_op
	.p2align	4, 0x90
_nand_write_data_op:                    ## @nand_write_data_op
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%edx, %r12d
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_nand_has_exec_op
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_NAND_OP_DATA_OUT
	movl	%eax, -48(%rbp)
	movl	16(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_NAND_OPERATION
	movl	%eax, -56(%rbp)
	movl	%r15d, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nand_exec_op
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	movl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %esi
	movq	%r13, %rdi
	callq	*8(%r13)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	*(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_write_data_op             ; -- Begin function nand_write_data_op
	.p2align	2
_nand_write_data_op:                    ; @nand_write_data_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x2
	cbz	w2, LBB0_4
; %bb.2:
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	bl	_nand_has_exec_op
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	bl	_NAND_OP_DATA_OUT
	str	w0, [sp, #8]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_NAND_OPERATION
	str	w0, [sp]
	str	w21, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_nand_exec_op
	b	LBB0_10
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	cbz	w21, LBB0_8
; %bb.6:
	mov	w21, w22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x20], #4
	mov	x0, x19
	blr	x8
	subs	x21, x21, #1
	b.ne	LBB0_7
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	blr	x8
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
