	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_nandc_command
_qcom_nandc_command:                    ## @qcom_nandc_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, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_to_qcom_nand_host
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_get_qcom_nand_controller
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_pre_command
	leal	-129(%r13), %eax
	cmpl	$7, %eax
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setne	%dil
	callq	_WARN_ON
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_set_address
	jmp	LBB0_11
LBB0_7:
	movq	%r15, %rdi
	callq	_reset
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_9
LBB0_2:
	movl	$4, (%r14)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_read_id
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_9
LBB0_5:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setne	%dil
	callq	_WARN_ON
	movl	$1, (%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_set_address
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_update_rw_regs
	jmp	LBB0_11
LBB0_3:
	movq	%r15, %rdi
	callq	_nandc_param
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_descs                     ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_erase_block
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_submit_descs
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
LBB0_11:
	movq	%r14, %rdi
	callq	_free_descs
	movq	%r15, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_post_command                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failure executing command %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failure submitting descs for command %d\n"

	.no_dead_strip	_qcom_nandc_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_nandc_command
_qcom_nandc_command:                    ; @qcom_nandc_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	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x23, x0
	bl	_to_qcom_nand_host
	mov	x21, x0
	mov	x0, x23
	bl	_get_qcom_nand_controller
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_pre_command
	sub	w8, w19, #129
	cmp	w8, #7
	b.hi	LBB0_11
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w24, #0
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_set_address
	b	LBB0_11
LBB0_3:
	mov	x0, x21
	bl	_reset
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_4:
	mov	w8, #4
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x24
	bl	_read_id
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_5:
	cmp	w24, #0
	cset	w0, ne
	bl	_WARN_ON
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_set_address
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #1
	bl	_update_rw_regs
	b	LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_nandc_param
	cbz	w0, LBB0_9
LBB0_7:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	x0, x20
	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	_free_descs
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_erase_block
	cbnz	w0, LBB0_7
LBB0_9:
	mov	x0, x20
	bl	_submit_descs
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	bl	_free_descs
	mov	x0, x21
	mov	x1, 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	_post_command
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failure executing command %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failure submitting descs for command %d\n"

	.no_dead_strip	_qcom_nandc_command
.subsections_via_symbols
