	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_read_page_op              ## -- Begin function nand_read_page_op
	.p2align	4, 0x90
_nand_read_page_op:                     ## @nand_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_nand_to_mtd
	movq	%rax, %r13
	testq	%r14, %r14
	jne	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	jne	LBB0_2
LBB0_3:
	leal	(%r15,%rbx), %eax
	movl	4(%r13), %ecx
	addl	(%r13), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_nand_has_exec_op
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpl	$513, (%r13)                    ## imm = 0x201
	jb	LBB0_6
## %bb.10:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_lp_exec_read_page_op      ## TAILCALL
LBB0_7:
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*8(%r12)
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	*(%r12)
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_sp_exec_read_page_op      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_read_page_op              ; -- Begin function nand_read_page_op
	.p2align	2
_nand_read_page_op:                     ; @nand_read_page_op
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_nand_to_mtd
	mov	x24, x0
	cbnz	x20, LBB0_2
; %bb.1:
	cbnz	w19, LBB0_3
LBB0_2:
	add	w8, w19, w22
	ldp	w9, w10, [x24]
	add	w9, w10, w9
	cmp	w8, w9
	b.ls	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x21
	bl	_nand_has_exec_op
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x24]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	cmp	w8, #513
	b.lo	LBB0_11
; %bb.7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nand_lp_exec_read_page_op
LBB0_8:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _NAND_CMD_READ0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	blr	x8
	cbz	w19, LBB0_10
; %bb.9:
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
LBB0_10:
	mov	w0, #0
	b	LBB0_4
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nand_sp_exec_read_page_op
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
.subsections_via_symbols
