	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r13d
                                        ## kill: def $esi killed $esi def $rsi
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_NAND_CMD_READOOB@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	addl	(%rdi), %r13d
	movl	$138, %esi
LBB0_2:
	movq	_NAND_NCE@GOTPCREL(%rip), %r12
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movzbl	%sil, %esi
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rdi, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	*24(%r15)
	movl	%r13d, %eax
	andl	%ebx, %eax
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.3:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %ebx
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpl	$-1, %r13d
	je	LBB0_5
## %bb.4:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	andl	(%r15), %eax
	setne	%cl
	sarl	%cl, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	*24(%r15)
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	sarl	$8, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	*24(%r15)
LBB0_5:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	cmpl	$-1, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	*24(%r15)
	movl	%r13d, %esi
	sarl	$8, %esi
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	callq	*24(%r15)
	cmpl	$134217729, 4(%r15)             ## imm = 0x8000001
	jl	LBB0_8
## %bb.7:
	sarl	$16, %r13d
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	*24(%r15)
LBB0_8:
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %r13
	orl	(%r12), %edx
	movq	%r14, %rdi
	callq	*24(%r15)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	$-128, %ecx
	cmpl	$15, %ecx
	movq	%r15, %rbx
	movq	%r14, %r15
	ja	LBB0_16
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_NAND_CMD_RNDOUTSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movq	%r15, %rdi
	callq	*24(%rbx)
	movq	24(%rbx), %rax
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	cmpl	$0, 20(%rbx)
	jne	LBB0_17
## %bb.11:
	movl	16(%rbx), %edi
	callq	_udelay
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movq	%r15, %rdi
	movl	$133, %esi
	callq	*24(%rbx)
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	*24(%rbx)
	movq	_NAND_STATUS_READY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	*8(%rbx)
	testl	%eax, (%r14)
	je	LBB0_12
	jmp	LBB0_13
LBB0_15:
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movq	%r15, %rdi
	callq	*24(%rbx)
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	*24(%rbx)
LBB0_16:
	cmpl	$0, 20(%rbx)
	je	LBB0_18
LBB0_17:
	movl	$100, %edi
	callq	_ndelay
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_wait_ready                ## TAILCALL
LBB0_18:
	movl	16(%rbx), %edi
	addq	$40, %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_18, LBB0_18-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.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_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.comm	_NAND_STATUS_READY,4,2          ## @NAND_STATUS_READY
	.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	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	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _NAND_CMD_READOOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_READOOB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w22, w8, w22
	mov	w20, #138
	b	LBB0_3
LBB0_2:
	mov	x20, x1
LBB0_3:
	ldr	x8, [x24, #24]
	and	w1, w20, #0xff
Lloh3:
	adrp	x25, _NAND_NCE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NAND_NCE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh5:
	adrp	x27, _NAND_CLE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _NAND_CLE@GOTPAGEOFF]
	ldr	w10, [x27]
	orr	w9, w10, w9
Lloh7:
	adrp	x26, _NAND_CTRL_CHANGE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NAND_CTRL_CHANGE@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w2, w9, w10
	mov	x0, x19
	blr	x8
	and	w8, w22, w21
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.4:
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh9:
	adrp	x28, _NAND_ALE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _NAND_ALE@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w23, w8, w9
	cmn	w22, #1
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _NAND_BUSWIDTH_16@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NAND_BUSWIDTH_16@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	asr	w22, w22, w8
	ldr	x8, [x24, #24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	blr	x8
	ldr	w8, [x26]
	bic	w23, w23, w8
	ldr	x8, [x24, #24]
	asr	w1, w22, #8
	mov	x0, x19
	mov	x2, x23
	blr	x8
LBB0_6:
	cmn	w21, #1
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x24, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	blr	x8
	ldr	x8, [x24, #24]
	asr	w1, w21, #8
	ldr	w9, [x25]
	ldr	w10, [x28]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
	ldr	w8, [x24, #4]
	mov	w9, #1
	movk	w9, #2048, lsl #16
	cmp	w8, w9
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x24, #24]
	asr	w1, w21, #16
	ldr	w9, [x25]
	ldr	w10, [x28]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	x8, [x24, #24]
Lloh14:
	adrp	x21, _NAND_CMD_NONE@GOTPAGE
Lloh15:
	ldr	x21, [x21, _NAND_CMD_NONE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
	sub	w8, w20, #128
	cmp	w8, #15
	b.hi	LBB0_17
; %bb.10:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	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
	ret
LBB0_12:
	ldr	x8, [x24, #24]
Lloh18:
	adrp	x9, _NAND_CMD_RNDOUTSTART@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NAND_CMD_RNDOUTSTART@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	ldr	w9, [x25]
	ldr	w10, [x27]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w2, w9, w10
	mov	x0, x19
	blr	x8
	ldr	x3, [x24, #24]
	ldr	w1, [x21]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	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
	br	x3
LBB0_13:
	ldr	w8, [x24, #20]
	cbnz	w8, LBB0_18
; %bb.14:
	ldr	w0, [x24, #16]
	bl	_udelay
	ldr	x8, [x24, #24]
	ldr	w9, [x25]
	ldr	w10, [x27]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w2, w9, w10
	mov	x0, x19
	mov	w1, #133
	blr	x8
	ldr	x8, [x24, #24]
	ldr	w1, [x21]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
Lloh21:
	adrp	x20, _NAND_STATUS_READY@GOTPAGE
Lloh22:
	ldr	x20, [x20, _NAND_STATUS_READY@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_15
	b	LBB0_11
LBB0_16:
	ldr	x8, [x24, #24]
Lloh23:
	adrp	x9, _NAND_CMD_READSTART@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	ldr	w9, [x25]
	ldr	w10, [x27]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w2, w9, w10
	mov	x0, x19
	blr	x8
	ldr	x8, [x24, #24]
	ldr	w1, [x21]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w2, w10, w9
	mov	x0, x19
	blr	x8
LBB0_17:
	ldr	w8, [x24, #20]
	cbz	w8, LBB0_19
LBB0_18:
	mov	w0, #100
	bl	_ndelay
	mov	x0, x19
	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	_nand_wait_ready
LBB0_19:
	ldr	w0, [x24, #16]
	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	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>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_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.comm	_NAND_STATUS_READY,4,2          ; @NAND_STATUS_READY
	.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
