	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_change_write_column_op    ## -- Begin function nand_change_write_column_op
	.p2align	4, 0x90
_nand_change_write_column_op:           ## @nand_change_write_column_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nand_to_mtd
	testq	%r15, %r15
	jne	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_2
LBB0_4:
	leal	(%r12,%r13), %edx
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jbe	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$512, %ecx                      ## imm = 0x200
	ja	LBB0_7
## %bb.6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_nand_has_exec_op
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	leaq	20(%r14), %rdi
	callq	_nand_get_sdr_timings
	movq	%rax, %rbx
	movq	_NAND_CMD_RNDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_NAND_OP_CMD
	movl	%eax, -72(%rbp)
	movl	(%rbx), %edi
	callq	_PSEC_TO_NSEC
	leaq	-56(%rbp), %rbx
	movl	$2, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_NAND_OP_ADDR
	movl	%eax, -68(%rbp)
	movl	%r13d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_NAND_OP_DATA_OUT
	movl	%eax, -64(%rbp)
	movl	16(%r14), %edi
	leaq	-72(%rbp), %rsi
	callq	_NAND_OPERATION
	movl	%eax, %r15d
	movl	%eax, -80(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_nand_fill_column_cycles
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.10:
	decl	%r15d
	movl	%r15d, -80(%rbp)
LBB0_11:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nand_exec_op
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_13:
	movq	_NAND_CMD_RNDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$-1, %ecx
	callq	*8(%r14)
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	*(%r14)
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_NAND_CMD_RNDIN,4,2             ## @NAND_CMD_RNDIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_change_write_column_op    ; -- Begin function nand_change_write_column_op
	.p2align	2
_nand_change_write_column_op:           ; @nand_change_write_column_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_nand_to_mtd
	cbnz	x23, LBB0_2
; %bb.1:
	cbnz	w20, LBB0_3
LBB0_2:
	add	w9, w20, w22
	ldp	w8, w10, [x0]
	add	w10, w10, w8
	cmp	w9, w10
	b.ls	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	cmp	w8, #512
	b.hi	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_nand_has_exec_op
	cbz	x0, LBB0_14
; %bb.10:
	add	x0, x19, #20
	bl	_nand_get_sdr_timings
	mov	x24, x0
Lloh10:
	adrp	x8, _NAND_CMD_RNDIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NAND_CMD_RNDIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_NAND_OP_CMD
	str	w0, [sp, #16]
	ldr	w0, [x24]
	bl	_PSEC_TO_NSEC
	mov	x2, x0
	add	x1, sp, #32
	mov	w0, #2
	bl	_NAND_OP_ADDR
	str	w0, [sp, #20]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_NAND_OP_DATA_OUT
	str	w0, [sp, #24]
	ldr	w0, [x19, #16]
	add	x1, sp, #16
	bl	_NAND_OPERATION
	mov	x23, x0
	str	w0, [sp, #8]
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, x22
	bl	_nand_fill_column_cycles
	tbnz	w0, #31, LBB0_5
; %bb.11:
	str	w21, [sp, #24]
	cbnz	w20, LBB0_13
; %bb.12:
	sub	w8, w23, #1
	str	w8, [sp, #8]
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nand_exec_op
	b	LBB0_5
LBB0_14:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _NAND_CMD_RNDIN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NAND_CMD_RNDIN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #-1
	blr	x8
	cbz	w20, LBB0_16
; %bb.15:
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	blr	x8
LBB0_16:
	mov	w0, #0
	b	LBB0_5
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_NAND_CMD_RNDIN,4,2             ; @NAND_CMD_RNDIN
.subsections_via_symbols
