	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxc_nand_command
_mxc_nand_command:                      ## @mxc_nand_command
	.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, %r8d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r8d, %ebx
	callq	_DEBUG
	movl	$0, (%r14)
	movl	$1, %r13d
	leal	-128(%r15), %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	$1, (%r14)
	movl	$128, %r15d
	jmp	LBB0_15
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	jle	LBB0_6
## %bb.10:
	movl	$0, 8(%r14)
	movl	%r12d, 4(%r14)
	xorl	%r13d, %r13d
	movl	$129, %r15d
	cmpq	$0, 16(%r14)
	jne	LBB0_15
## %bb.11:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	$133, %esi
	xorl	%edx, %edx
	callq	_send_cmd
	jmp	LBB0_15
LBB0_4:
	movl	%r12d, 4(%r14)
	movl	$1, 8(%r14)
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	setne	%al
	leal	(%rax,%rax), %r15d
	addl	$131, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_3:
	movl	%r12d, 4(%r14)
	movl	$0, 8(%r14)
	xorl	%r13d, %r13d
	movl	$133, %r15d
	jmp	LBB0_15
LBB0_12:
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_send_prog_page
	movl	$134, %r15d
	cmpq	$0, 16(%r14)
	je	LBB0_15
## %bb.13:
	movl	8(%r14), %edx
	movl	$1, %r13d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_send_prog_page
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_send_prog_page
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_send_prog_page
	jmp	LBB0_15
LBB0_14:
	xorl	%r13d, %r13d
	movl	$136, %r15d
	jmp	LBB0_15
LBB0_6:
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.8:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$133, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_mxc_nand_command
	movl	%r12d, %eax
	subl	(%r15), %eax
	movl	%eax, 4(%r14)
	movl	$1, 8(%r14)
	movl	$129, %r15d
	cmpq	$0, 16(%r14)
	jne	LBB0_15
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	%ecx, 4(%r14)
	movl	$1, 8(%r14)
LBB0_9:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	$131, %esi
	xorl	%edx, %edx
	callq	_send_cmd
	movl	$129, %r15d
LBB0_15:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_send_cmd
	cmpl	$-1, %r12d
	je	LBB0_18
## %bb.16:
	xorl	%edx, %edx
	cmpl	$-1, %ebx
	sete	%dl
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_send_addr
	cmpq	$0, 16(%r14)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_send_addr
LBB0_18:
	cmpl	$-1, %ebx
	je	LBB0_24
## %bb.19:
	movzbl	%bl, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_send_addr
	cmpq	$0, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movzbl	%bh, %esi
	je	LBB0_21
## %bb.20:
	cmpl	$268435455, %eax                ## imm = 0xFFFFFFF
	jle	LBB0_23
LBB0_22:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_send_addr
	shrl	$16, %ebx
	movzbl	%bl, %esi
LBB0_23:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_send_addr
LBB0_24:
	cmpl	$133, %r15d
	je	LBB0_27
## %bb.25:
	cmpl	$132, %r15d
	je	LBB0_31
## %bb.26:
	cmpl	$131, %r15d
	jne	LBB0_32
LBB0_27:
	cmpq	$0, 16(%r14)
	je	LBB0_29
## %bb.28:
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_send_cmd
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_send_read_page
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_send_read_page
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_send_read_page
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	jmp	LBB0_30
LBB0_31:
	movl	$0, 4(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_read_id                   ## TAILCALL
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	cmpl	$67108864, %eax                 ## imm = 0x4000000
	jge	LBB0_22
	jmp	LBB0_23
LBB0_29:
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_read_page                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MTD_DEBUG_LEVEL3,4,2           ## @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mxc_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n"

	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.no_dead_strip	_mxc_nand_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mxc_nand_command
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mxc_nand_command:                      ; @mxc_nand_command
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _MTD_DEBUG_LEVEL3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTD_DEBUG_LEVEL3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	bl	_DEBUG
	str	wzr, [x19]
	mov	w24, #1
	sub	w8, w23, #128
	cmp	w8, #8
	b.hi	LBB0_18
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w24, #1
	mov	w23, #128
	b	LBB0_18
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, w22
	b.le	LBB0_11
; %bb.4:
	stp	w22, wzr, [x19, #4]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_17
; %bb.5:
	mov	x0, x19
	mov	w1, #133
	b	LBB0_16
LBB0_6:
	mov	w24, #0
	mov	w8, #1
	stp	w22, w8, [x19, #4]
	ldr	x8, [x19, #16]
	cmp	x8, #0
	mov	w8, #133
	mov	w9, #131
	csel	w23, w9, w8, eq
	b	LBB0_18
LBB0_7:
	mov	w24, #0
	stp	w22, wzr, [x19, #4]
	mov	w23, #133
	b	LBB0_18
LBB0_8:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_send_prog_page
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	w2, [x19, #8]
	mov	w24, #1
	mov	x0, x19
	mov	w1, #1
	bl	_send_prog_page
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_send_prog_page
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #3
	bl	_send_prog_page
	mov	w23, #134
	b	LBB0_18
LBB0_10:
	mov	w24, #0
	mov	w23, #136
	b	LBB0_18
LBB0_11:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_14
; %bb.12:
	mov	x0, x21
	mov	w1, #133
	mov	w2, #0
	mov	x3, x20
	bl	_mxc_nand_command
	ldr	x8, [x19, #16]
	ldr	w9, [x21]
	sub	w9, w22, w9
	mov	w10, #1
	stp	w9, w10, [x19, #4]
	cbnz	x8, LBB0_17
	b	LBB0_15
LBB0_13:
	mov	w24, #1
	mov	w23, #134
	b	LBB0_18
LBB0_14:
	sub	w8, w22, w8
	mov	w9, #1
	stp	w8, w9, [x19, #4]
LBB0_15:
	mov	x0, x19
	mov	w1, #131
LBB0_16:
	mov	w2, #0
	bl	_send_cmd
LBB0_17:
	mov	w24, #0
	mov	w23, #129
LBB0_18:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_send_cmd
	cmn	w22, #1
	b.eq	LBB0_21
; %bb.19:
	cmn	w20, #1
	cset	w2, eq
	mov	x0, x19
	mov	w1, #0
	bl	_send_addr
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_send_addr
LBB0_21:
	cmn	w20, #1
	b.eq	LBB0_26
; %bb.22:
	and	w1, w20, #0xff
	mov	x0, x19
	mov	w2, #0
	bl	_send_addr
	ldr	x9, [x19, #16]
	ldr	w8, [x21, #4]
	ubfx	w1, w20, #8, #8
	cbz	x9, LBB0_33
; %bb.23:
	mov	w9, #268435455
	cmp	w8, w9
	b.le	LBB0_25
LBB0_24:
	mov	x0, x19
	mov	w2, #0
	bl	_send_addr
	ubfx	w1, w20, #16, #8
LBB0_25:
	mov	x0, x19
	mov	w2, #1
	bl	_send_addr
LBB0_26:
	cmp	w23, #133
	b.eq	LBB0_29
; %bb.27:
	cmp	w23, #132
	b.eq	LBB0_31
; %bb.28:
	cmp	w23, #131
	b.ne	LBB0_32
LBB0_29:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_34
; %bb.30:
Lloh9:
	adrp	x8, _NAND_CMD_READSTART@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_send_cmd
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_send_read_page
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_send_read_page
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_send_read_page
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #3
	b	LBB0_35
LBB0_31:
	str	wzr, [x19, #4]
	mov	x0, x19
	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	_send_read_id
LBB0_32:
	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_33:
	mov	w9, #67108864
	cmp	w8, w9
	b.ge	LBB0_24
	b	LBB0_25
LBB0_34:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #0
LBB0_35:
	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	_send_read_page
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_MTD_DEBUG_LEVEL3,4,2           ; @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mxc_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n"

	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.no_dead_strip	_mxc_nand_command
.subsections_via_symbols
