	.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, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nand_get_controller_data
	movq	%rax, %rbx
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_dev_dbg
	movl	$0, (%rbx)
	leal	-128(%r13), %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	*8(%rax)
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	setne	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_WARN_ONCE
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
LBB0_3:
	movq	$1, (%rbx)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$1, %edx
	callq	*8(%rax)
	movl	%r15d, %eax
	andl	%r12d, %eax
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	$128, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_WARN_ONCE
LBB0_5:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxc_do_addr_cycle              ## TAILCALL
LBB0_2:
	movq	16(%rbx), %rax
	movq	%r14, %rdi
	callq	*24(%rax)
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movq	%rbx, %rdi
	movl	$129, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	$130, %esi
	movl	$1, %edx
	callq	*8(%rax)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_mxc_do_addr_cycle
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	jmp	LBB0_9
LBB0_6:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	$131, %esi
	xorl	%edx, %edx
	callq	*8(%rax)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_mxc_do_addr_cycle
	movq	16(%rbx), %rax
	movq	_NFC_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy32_fromio
LBB0_9:
	movl	$0, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mxc_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected column/row value (cmd=%u, col=%d, row=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unexpected column value (cmd=%u, col=%d)\n"

	.comm	_NFC_OUTPUT,4,2                 ## @NFC_OUTPUT
L_.str.3:                               ## @.str.3
	.asciz	"Unimplemented command (cmd=%u)\n"

	.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:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_nand_to_mtd
	mov	x20, x0
	mov	x0, x22
	bl	_nand_get_controller_data
	mov	x22, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	mov	x4, x19
	bl	_dev_dbg
	str	wzr, [x22]
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	blr	x8
	cmn	w21, #1
	cset	w0, ne
	mov	x8, x21
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	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
	add	sp, sp, #80
	b	_WARN_ONCE
LBB0_4:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	w1, #128
	mov	w2, #1
	blr	x8
	and	w8, w19, w21
	cmn	w8, #1
	cset	w0, ne
	stp	x21, x19, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #128
LBB0_5:
	bl	_WARN_ONCE
	mov	x0, x20
	mov	x1, x21
	mov	x2, 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
	add	sp, sp, #80
	b	_mxc_do_addr_cycle
LBB0_6:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #24]
	mov	x0, x20
	blr	x8
	ldr	x8, [x22, #16]
	ldr	x3, [x8, #8]
	mov	x0, x22
	mov	w1, #129
	mov	w2, #0
	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
	add	sp, sp, #80
	br	x3
LBB0_7:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	w1, #130
	mov	w2, #1
	blr	x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_mxc_do_addr_cycle
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #16]
	mov	x0, x22
	blr	x8
	b	LBB0_9
LBB0_8:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	w1, #131
	mov	w2, #0
	blr	x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_mxc_do_addr_cycle
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _NFC_OUTPUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NFC_OUTPUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldp	w1, w0, [x22, #8]
	mov	w2, #512
	bl	_memcpy32_fromio
LBB0_9:
	str	wzr, [x22, #4]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mxc_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected column/row value (cmd=%u, col=%d, row=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unexpected column value (cmd=%u, col=%d)\n"

	.comm	_NFC_OUTPUT,4,2                 ; @NFC_OUTPUT
l_.str.3:                               ; @.str.3
	.asciz	"Unimplemented command (cmd=%u)\n"

	.no_dead_strip	_mxc_nand_command
.subsections_via_symbols
