	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_command_lp
_nand_command_lp:                       ## @nand_command_lp
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_nand_to_mtd
	movq	_NAND_CMD_READOOB@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	addl	(%rax), %r15d
	movl	$135, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$137, %r12d
	cmpl	$137, %ebx
	je	LBB0_4
LBB0_3:
	movq	_NAND_NCE@GOTPCREL(%rip), %rax
	movq	_NAND_CLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	*16(%r13)
	movl	%ebx, %r12d
LBB0_4:
	movl	%r15d, %eax
	andl	%r14d, %eax
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rcx
	movq	_NAND_NCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpl	$-1, %r15d
	je	LBB0_7
## %bb.8:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	callq	_nand_opcode_8bits
	testl	%eax, %eax
	sete	%cl
	sarl	%cl, %r15d
LBB0_10:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	*16(%r13)
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r12d, %edi
	callq	_nand_opcode_8bits
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %esi
	sarl	$8, %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	*16(%r13)
LBB0_12:
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	cmpl	$-1, %r14d
	jne	LBB0_14
	jmp	LBB0_16
LBB0_5:
	movl	$-1, %r15d
	jmp	LBB0_16
LBB0_7:
	movl	$-1, %r15d
	cmpl	$-1, %r14d
	je	LBB0_16
LBB0_14:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	%rax, %rbx
	callq	*16(%r13)
	movl	%r14d, %esi
	sarl	$8, %esi
	movl	(%rbx), %edx
	movq	_NAND_NCE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	callq	*16(%r13)
	movq	_NAND_ROW_ADDR_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_16
## %bb.15:
	movl	%r14d, %esi
	sarl	$16, %esi
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	callq	*16(%r13)
LBB0_16:
	movq	_NAND_NCE@GOTPCREL(%rip), %rax
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rax), %edx
	movq	%r13, %rdi
	movl	$137, %esi
	callq	*16(%r13)
	addl	$-128, %r12d
	cmpl	$12, %r12d
	ja	LBB0_24
## %bb.17:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_NAND_CMD_RNDOUTSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAND_NCE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	callq	*16(%r13)
	movl	(%rbx), %edx
	orl	(%r14), %edx
	movq	%r13, %rdi
	movl	$137, %esi
	callq	*16(%r13)
LBB0_21:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_ccs_delay                 ## TAILCALL
LBB0_18:
	cmpl	$0, 12(%r13)
	jne	LBB0_25
## %bb.19:
	movl	8(%r13), %edi
	callq	_udelay
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAND_NCE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$128, %esi
	callq	*16(%r13)
	movl	(%rbx), %edx
	orl	(%r14), %edx
	movq	%r13, %rdi
	movl	$137, %esi
	callq	*16(%r13)
	movq	%r13, %rdi
	movl	$250, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_wait_status_ready         ## TAILCALL
LBB0_22:
	andl	%r14d, %r15d
	cmpl	$-1, %r15d
	je	LBB0_26
## %bb.23:
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAND_NCE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	callq	*16(%r13)
	movl	(%rbx), %edx
	orl	(%r14), %edx
	movq	%r13, %rdi
	movl	$137, %esi
	callq	*16(%r13)
LBB0_24:
	cmpl	$0, 12(%r13)
	je	LBB0_27
LBB0_25:
	movl	$100, %edi
	callq	_ndelay
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_wait_ready                ## TAILCALL
LBB0_27:
	movl	8(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_18
	.long	L0_0_set_26
	.long	L0_0_set_22
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_NAND_CMD_READOOB,4,2           ## @NAND_CMD_READOOB
	.comm	_NAND_NCE,4,2                   ## @NAND_NCE
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_NAND_CTRL_CHANGE,4,2           ## @NAND_CTRL_CHANGE
	.comm	_NAND_ALE,4,2                   ## @NAND_ALE
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NAND_ROW_ADDR_3,4,2            ## @NAND_ROW_ADDR_3
	.comm	_NAND_CMD_RNDOUTSTART,4,2       ## @NAND_CMD_RNDOUTSTART
	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.no_dead_strip	_nand_command_lp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_command_lp
_nand_command_lp:                       ; @nand_command_lp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_nand_to_mtd
Lloh0:
	adrp	x8, _NAND_CMD_READOOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_READOOB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _NAND_NCE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NAND_NCE@GOTPAGEOFF]
Lloh5:
	adrp	x24, _NAND_CTRL_CHANGE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NAND_CTRL_CHANGE@GOTPAGEOFF]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0]
	add	w21, w8, w21
	mov	w22, #135
	b	LBB0_3
LBB0_2:
	cmp	w22, #137
	b.eq	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
Lloh7:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w2, w9, w10
	mov	x0, x19
	mov	x1, x22
	blr	x8
LBB0_4:
	and	w8, w21, w20
	cmn	w8, #1
	b.eq	LBB0_13
; %bb.5:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh10:
	adrp	x26, _NAND_ALE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _NAND_ALE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w23, w8, w9
	cmn	w21, #1
	b.eq	LBB0_10
; %bb.6:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_nand_opcode_8bits
	cmp	w0, #0
	cset	w8, eq
	asr	w21, w21, w8
LBB0_8:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	blr	x8
	ldr	w8, [x24]
	bic	w23, w23, w8
	mov	x0, x22
	bl	_nand_opcode_8bits
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	asr	w1, w21, #8
	mov	x0, x19
	mov	x2, x23
	blr	x8
LBB0_10:
	cmn	w20, #1
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	blr	x8
	ldr	x8, [x19, #16]
	asr	w1, w20, #8
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _NAND_ROW_ADDR_3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NAND_ROW_ADDR_3@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x19, #16]
	asr	w1, w20, #16
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
	b	LBB0_14
LBB0_13:
	mov	w21, #-1
LBB0_14:
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
	ldr	w10, [x24]
	orr	w2, w10, w9
	mov	x0, x19
	mov	w1, #137
	blr	x8
	sub	w8, w22, #128
	cmp	w8, #12
	b.hi	LBB0_23
; %bb.15:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x9, _NAND_CMD_RNDOUTSTART@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NAND_CMD_RNDOUTSTART@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	ldr	w9, [x25]
Lloh23:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w2, w9, w10
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
	ldr	w10, [x24]
	orr	w2, w10, w9
	mov	x0, x19
	mov	w1, #137
	blr	x8
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nand_ccs_delay
LBB0_19:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_24
; %bb.20:
	ldr	w0, [x19, #8]
	bl	_udelay
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
Lloh26:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w2, w9, w10
	mov	x0, x19
	mov	w1, #128
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
	ldr	w10, [x24]
	orr	w2, w10, w9
	mov	x0, x19
	mov	w1, #137
	blr	x8
	mov	x0, x19
	mov	w1, #250
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nand_wait_status_ready
LBB0_21:
	and	w8, w21, w20
	cmn	w8, #1
	b.eq	LBB0_16
; %bb.22:
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _NAND_CMD_READSTART@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x9]
	ldr	w9, [x25]
Lloh32:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh33:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w2, w9, w10
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w9, [x25]
	ldr	w10, [x24]
	orr	w2, w10, w9
	mov	x0, x19
	mov	w1, #137
	blr	x8
LBB0_23:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_25
LBB0_24:
	mov	w0, #100
	bl	_ndelay
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nand_wait_ready
LBB0_25:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_21-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
                                        ; -- End function
	.comm	_NAND_CMD_READOOB,4,2           ; @NAND_CMD_READOOB
	.comm	_NAND_NCE,4,2                   ; @NAND_NCE
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_NAND_CTRL_CHANGE,4,2           ; @NAND_CTRL_CHANGE
	.comm	_NAND_ALE,4,2                   ; @NAND_ALE
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NAND_ROW_ADDR_3,4,2            ; @NAND_ROW_ADDR_3
	.comm	_NAND_CMD_RNDOUTSTART,4,2       ; @NAND_CMD_RNDOUTSTART
	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.no_dead_strip	_nand_command_lp
.subsections_via_symbols
