	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execmd_read_page_sector
_execmd_read_page_sector:               ## @execmd_read_page_sector
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_mtd_to_flctl
	movq	%rax, %r13
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rax)
	setne	%r14b
	movq	%rax, %rdi
	callq	_FLCMNCR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_ACM_SACCES_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	__4ECCCORRECT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_FLCMNCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	%esi, %edx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_set_cmd_regs
	shll	$2, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	leaq	(%r14,%r14,2), %rax
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_FL4ECCCR
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r13, %rdi
	callq	_wait_completion
	incq	%r15
	addq	$16, %r12
	addl	$512, %ebx                      ## imm = 0x200
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_empty_fifo
	movq	%r13, %rdi
	callq	_FLCMDCR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r14d
	orl	$1, %r14d
	movq	%r13, %rdi
	callq	_FLCMDCR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	%r15d, %ebx
	movq	%r13, %rdi
	callq	_FLADR
	movl	%ebx, %edi
	movq	%r14, %rbx
	movl	%eax, %esi
	callq	_writel
	movq	%r13, %rdi
	callq	_start_translation
	movq	%r13, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%ebx, %edx
	callq	_read_fiforeg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rsi
	addq	%r12, %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_read_ecfiforeg
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movl	$1, (%rax,%r15,4)
	jmp	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_FLCMNCR
	movl	%eax, %edi
	callq	_readl
	movq	__4ECCCORRECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_ACM_SACCES_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r13, %rdi
	callq	_FLCMNCR
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACM_SACCES_MODE,4,2            ## @ACM_SACCES_MODE
	.comm	__4ECCCORRECT,4,2               ## @_4ECCCORRECT
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.no_dead_strip	_execmd_read_page_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execmd_read_page_sector
_execmd_read_page_sector:               ; @execmd_read_page_sector
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x20, x0
	bl	_mtd_to_flctl
	mov	x19, x0
	ldr	x24, [x0, #16]
	bl	_FLCMNCR
	bl	_readl
Lloh0:
	adrp	x8, _ACM_SACCES_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACM_SACCES_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh3:
	adrp	x25, __4ECCCORRECT@GOTPAGE
Lloh4:
	ldr	x25, [x25, __4ECCCORRECT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_FLCMNCR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
Lloh5:
	adrp	x8, _NAND_CMD_READ0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _NAND_CMD_READSTART@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w1, w8, lsl #8
	mov	x0, x20
	bl	_set_cmd_regs
	mov	w21, #0
	mov	x26, #0
	mov	x22, #0
	lsl	w27, w23, #2
	cmp	x24, #0
	mov	w8, #4
	csinc	x28, x8, xzr, ne
	mov	w24, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_FL4ECCCR
	mov	x1, x0
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	bl	_wait_completion
	add	x22, x22, #1
	add	x26, x26, #16
	add	w21, w21, #512
	cmp	x28, x22
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_empty_fifo
	mov	x0, x19
	bl	_FLCMDCR
	bl	_readl
	orr	w23, w0, #0x1
	mov	x0, x19
	bl	_FLCMDCR
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	orr	w23, w27, w22
	mov	x0, x19
	bl	_FLADR
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	mov	x0, x19
	bl	_start_translation
	mov	x0, x19
	mov	w1, #512
	mov	x2, x21
	bl	_read_fiforeg
	ldr	x8, [x19, #8]
	ldrsw	x9, [x20]
	add	x9, x26, x9
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x22
	bl	_read_ecfiforeg
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	str	w24, [x8, x22, lsl #2]
	b	LBB0_1
LBB0_4:
	mov	x0, x19
	bl	_FLCMNCR
	bl	_readl
Lloh11:
	adrp	x8, _ACM_SACCES_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACM_SACCES_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	bic	w20, w0, w8
	mov	x0, x19
	bl	_FLCMNCR
	mov	x1, x0
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ACM_SACCES_MODE,4,2            ; @ACM_SACCES_MODE
	.comm	__4ECCCORRECT,4,2               ; @_4ECCCORRECT
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.no_dead_strip	_execmd_read_page_sector
.subsections_via_symbols
