	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_write
_onenand_write:                         ## @onenand_write
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rdx, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	%r8, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	_FL_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_onenand_get_device
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_onenand_write_ops_nolock
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_onenand_release_device
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_WRITING,4,2                 ## @FL_WRITING
	.no_dead_strip	_onenand_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onenand_write
_onenand_write:                         ; @onenand_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	stp	x2, xzr, [sp, #8]
	stp	xzr, x4, [sp, #24]
	str	wzr, [sp, #40]
Lloh0:
	adrp	x8, _FL_WRITING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FL_WRITING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_onenand_get_device
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_onenand_write_ops_nolock
	mov	x20, x0
	mov	x0, x21
	bl	_onenand_release_device
	ldr	x8, [sp, #16]
	str	x8, [x19]
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_WRITING,4,2                 ; @FL_WRITING
	.no_dead_strip	_onenand_write
.subsections_via_symbols
