	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cmd_regs
_set_cmd_regs:                          ## @set_cmd_regs
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_mtd_to_flctl
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_FLCMNCR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r12d
	movq	_SNAND_E@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	orl	%r12d, %eax
	notl	%edx
	andl	%edx, %r12d
	cmpq	$0, 8(%r15)
	cmovnel	%eax, %r12d
	movq	_DOCMD1_E@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DOADR_E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %r13d
	orl	%ecx, %r13d
	xorl	%eax, %eax
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rbx,4), %rbx
	addq	%rdi, %rbx
	jmpq	*%rbx
LBB0_2:
	andl	%edx, %r12d
	movq	_DOSR_E@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
LBB0_3:
	notl	%esi
	andl	%esi, %ecx
	movl	%ecx, %r13d
	jmp	LBB0_9
LBB0_4:
	movl	4(%r15), %eax
	movq	_CDSRC_E@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	andl	%edx, %r12d
	movq	_ADRCNT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	movl	4(%r15), %eax
	movq	_DOCMD2_E@GOTPCREL(%rip), %rcx
	movq	_CDSRC_E@GOTPCREL(%rip), %rdx
	movq	_SELRW@GOTPCREL(%rip), %rsi
	orl	(%rcx), %r13d
	orl	(%rdx), %r13d
	orl	(%rsi), %r13d
	jmp	LBB0_9
LBB0_7:
	movl	(%r15), %eax
	movq	_DOCMD2_E@GOTPCREL(%rip), %rcx
LBB0_8:
	orl	(%rcx), %r13d
LBB0_9:
	orl	%eax, %r13d
	movq	%r15, %rdi
	callq	_FLCMNCR
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r15, %rdi
	callq	_FLCMDCR
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r15, %rdi
	callq	_FLCMCDR
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_SNAND_E,4,2                    ## @SNAND_E
	.comm	_DOCMD1_E,4,2                   ## @DOCMD1_E
	.comm	_DOADR_E,4,2                    ## @DOADR_E
	.comm	_DOCMD2_E,4,2                   ## @DOCMD2_E
	.comm	_CDSRC_E,4,2                    ## @CDSRC_E
	.comm	_SELRW,4,2                      ## @SELRW
	.comm	_ADRCNT_1,4,2                   ## @ADRCNT_1
	.comm	_DOSR_E,4,2                     ## @DOSR_E
	.no_dead_strip	_set_cmd_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cmd_regs
_set_cmd_regs:                          ; @set_cmd_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_mtd_to_flctl
	mov	x20, x0
	bl	_FLCMNCR
	bl	_readl
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _SNAND_E@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNAND_E@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w10, w9, w0
	bic	w11, w0, w9
	cmp	x8, #0
	csel	w21, w11, w10, eq
Lloh3:
	adrp	x8, _DOCMD1_E@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOCMD1_E@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _DOADR_E@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOADR_E@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x8]
	orr	w8, w11, w10
	sub	w13, w22, #128
	cmp	w13, #7
	b.hi	LBB0_4
; %bb.1:
	mvn	w12, w9
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x14, LBB0_2
	ldrb	w15, [x9, x13]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_2:
	mov	w9, #0
	and	w21, w21, w12
Lloh11:
	adrp	x8, _DOSR_E@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DOSR_E@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w11
	bic	w8, w10, w8
	b	LBB0_10
LBB0_3:
	ldr	w9, [x20, #4]
Lloh14:
	adrp	x10, _CDSRC_E@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CDSRC_E@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	w9, #0
	b	LBB0_10
LBB0_5:
	mov	w9, #0
	bic	w8, w10, w11
	b	LBB0_10
LBB0_6:
	and	w21, w21, w12
Lloh16:
	adrp	x9, _ADRCNT_1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ADRCNT_1@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	b	LBB0_10
LBB0_7:
	ldr	w9, [x20, #4]
Lloh19:
	adrp	x10, _DOCMD2_E@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DOCMD2_E@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _CDSRC_E@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CDSRC_E@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, _SELRW@GOTPAGE
Lloh26:
	ldr	x12, [x12, _SELRW@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
	orr	w8, w10, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
	b	LBB0_10
LBB0_8:
	ldr	w9, [x20]
Lloh28:
	adrp	x10, _DOCMD2_E@GOTPAGE
Lloh29:
	ldr	x10, [x10, _DOCMD2_E@GOTPAGEOFF]
LBB0_9:
	ldr	w10, [x10]
	orr	w8, w10, w8
LBB0_10:
	orr	w22, w9, w8
	mov	x0, x20
	bl	_FLCMNCR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	mov	x0, x20
	bl	_FLCMDCR
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	mov	x0, x20
	bl	_FLCMCDR
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_SNAND_E,4,2                    ; @SNAND_E
	.comm	_DOCMD1_E,4,2                   ; @DOCMD1_E
	.comm	_DOADR_E,4,2                    ; @DOADR_E
	.comm	_DOCMD2_E,4,2                   ; @DOCMD2_E
	.comm	_CDSRC_E,4,2                    ; @CDSRC_E
	.comm	_SELRW,4,2                      ; @SELRW
	.comm	_ADRCNT_1,4,2                   ; @ADRCNT_1
	.comm	_DOSR_E,4,2                     ; @DOSR_E
	.no_dead_strip	_set_cmd_regs
.subsections_via_symbols
