	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_lp_exec_read_page_op
_nand_lp_exec_read_page_op:             ## @nand_lp_exec_read_page_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movl	%edx, -128(%rbp)                ## 4-byte Spill
	movl	%esi, -124(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	addq	$8, %rdi
	callq	_nand_get_sdr_timings
	movq	%rax, %r15
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_NAND_OP_CMD
	movl	%eax, -112(%rbp)
	leaq	-80(%rbp), %rsi
	movl	$4, %edi
	xorl	%edx, %edx
	callq	_NAND_OP_ADDR
	movl	%eax, -108(%rbp)
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r15), %edi
	callq	_PSEC_TO_NSEC
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_NAND_OP_CMD
	movl	%eax, -104(%rbp)
	movl	4(%r15), %edi
	callq	_PSEC_TO_MSEC
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_PSEC_TO_NSEC
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_NAND_OP_WAIT_RDY
	movl	%eax, -100(%rbp)
	movl	%r12d, %edi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_NAND_OP_DATA_IN
	movl	%eax, -96(%rbp)
	movl	4(%r14), %edi
	leaq	-112(%rbp), %rsi
	callq	_NAND_OPERATION
	cmpl	$1, %r12d
	sbbl	$0, %eax
	movl	%eax, -120(%rbp)
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	movl	-128(%rbp), %edx                ## 4-byte Reload
	callq	_nand_fill_column_cycles
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, -72(%rbp)
	movl	%ecx, %eax
	shrl	$8, %eax
	movl	%eax, -68(%rbp)
	movq	_NAND_ROW_ADDR_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	shrl	$16, %ecx
	movl	%ecx, -64(%rbp)
	incl	-108(%rbp)
LBB0_3:
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nand_exec_op
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.comm	_NAND_ROW_ADDR_3,4,2            ## @NAND_ROW_ADDR_3
	.no_dead_strip	_nand_lp_exec_read_page_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_lp_exec_read_page_op
_nand_lp_exec_read_page_op:             ; @nand_lp_exec_read_page_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, 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, #56]
	add	x0, x0, #8
	bl	_nand_get_sdr_timings
	mov	x24, x0
Lloh3:
	adrp	x8, _NAND_CMD_READ0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_NAND_OP_CMD
	str	w0, [sp, #16]
	add	x1, sp, #36
	mov	w0, #4
	mov	w2, #0
	bl	_NAND_OP_ADDR
	str	w0, [sp, #20]
Lloh6:
	adrp	x8, _NAND_CMD_READSTART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	ldr	w0, [x24, #8]
	bl	_PSEC_TO_NSEC
	mov	x1, x0
	mov	x0, x25
	bl	_NAND_OP_CMD
	str	w0, [sp, #24]
	ldr	w0, [x24, #4]
	bl	_PSEC_TO_MSEC
	mov	x25, x0
	ldr	w0, [x24]
	bl	_PSEC_TO_NSEC
	mov	x1, x0
	mov	x0, x25
	bl	_NAND_OP_WAIT_RDY
	str	w0, [sp, #28]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_NAND_OP_DATA_IN
	str	w0, [sp, #32]
	ldr	w0, [x19, #4]
	add	x1, sp, #16
	bl	_NAND_OPERATION
	cmp	w22, #0
	cset	w8, eq
	sub	w8, w0, w8
	str	w8, [sp, #8]
	add	x1, sp, #36
	mov	x0, x19
	mov	x2, x21
	bl	_nand_fill_column_cycles
	tbnz	w0, #31, LBB0_4
; %bb.1:
	lsr	w8, w20, #8
	stp	w20, w8, [sp, #44]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _NAND_ROW_ADDR_3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NAND_ROW_ADDR_3@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	lsr	w8, w20, #16
	str	w8, [sp, #52]
	ldr	w8, [sp, #20]
	add	w8, w8, #1
	str	w8, [sp, #20]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nand_exec_op
LBB0_4:
	ldr	x8, [sp, #56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.comm	_NAND_ROW_ADDR_3,4,2            ; @NAND_ROW_ADDR_3
	.no_dead_strip	_nand_lp_exec_read_page_op
.subsections_via_symbols
