	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mmcif_start_cmd
_sh_mmcif_start_cmd:                    ## @sh_mmcif_start_cmd
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movq	_MMC_RSP_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_START_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MASK_MCRSPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MASK_MRBSYE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	24(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MASK_MCCSTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_BLOCK_SET@GOTPCREL(%rip), %rax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %esi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	callq	_sh_mmcif_writel
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_BLOCK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movl	(%rax), %edx
	callq	_sh_mmcif_writel
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_2:
	testl	%r12d, %esi
	cmovel	%edi, %r13d
	orl	%edx, %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sh_mmcif_set_cmd
	movl	%eax, %r15d
	movq	_INT_CCS@GOTPCREL(%rip), %rax
	movl	$-670814016, %ecx               ## imm = 0xD80430C0
	movl	(%rax), %edx
	orl	%ecx, %edx
	cmpq	$0, 24(%rbx)
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovnel	%ecx, %edx
	callq	_sh_mmcif_writel
	xorl	%eax, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	cmovel	%eax, %r14d
	orl	%r13d, %r14d
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_sh_mmcif_writel
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	callq	_sh_mmcif_writel
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_CMD_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_sh_mmcif_writel
	movq	_MMCIF_WAIT_FOR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	callq	_schedule_delayed_work
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_RSP_BUSY,4,2               ## @MMC_RSP_BUSY
	.comm	_MASK_START_CMD,4,2             ## @MASK_START_CMD
	.comm	_MASK_MRBSYE,4,2                ## @MASK_MRBSYE
	.comm	_MASK_MCRSPE,4,2                ## @MASK_MCRSPE
	.comm	_MASK_MCCSTO,4,2                ## @MASK_MCCSTO
	.comm	_MMCIF_CE_BLOCK_SET,4,2         ## @MMCIF_CE_BLOCK_SET
	.comm	_MMCIF_CE_INT,4,2               ## @MMCIF_CE_INT
	.comm	_INT_CCS,4,2                    ## @INT_CCS
	.comm	_MMCIF_CE_INT_MASK,4,2          ## @MMCIF_CE_INT_MASK
	.comm	_MMCIF_CE_ARG,4,2               ## @MMCIF_CE_ARG
	.comm	_MMCIF_CE_CMD_SET,4,2           ## @MMCIF_CE_CMD_SET
	.comm	_MMCIF_WAIT_FOR_CMD,4,2         ## @MMCIF_WAIT_FOR_CMD
	.no_dead_strip	_sh_mmcif_start_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mmcif_start_cmd
_sh_mmcif_start_cmd:                    ; @sh_mmcif_start_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	ldp	x8, x21, [x1]
	ldr	w25, [x21]
Lloh0:
	adrp	x9, _MMC_RSP_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_RSP_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MASK_START_CMD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MASK_START_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x9]
Lloh5:
	ldr	w24, [x10]
Lloh6:
	adrp	x9, _MASK_MCRSPE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASK_MCRSPE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MASK_MRBSYE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MASK_MRBSYE@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x9]
Lloh11:
	ldr	w28, [x10]
	ldr	x23, [x0, #24]
Lloh12:
	adrp	x9, _MASK_MCCSTO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MASK_MCCSTO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh15:
	adrp	x22, _MMCIF_CE_BLOCK_SET@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MMCIF_CE_BLOCK_SET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_sh_mmcif_writel
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	ldr	x8, [x20]
	ldr	w2, [x8]
	bl	_sh_mmcif_writel
LBB0_2:
	tst	w26, w25
	csel	w8, w27, w28, eq
	orr	w22, w8, w24
	mov	x0, x19
	mov	x1, x20
	bl	_sh_mmcif_set_cmd
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x9, _MMCIF_CE_INT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMCIF_CE_INT@GOTPAGEOFF]
Lloh19:
	adrp	x10, _INT_CCS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _INT_CCS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
Lloh22:
	ldr	w9, [x10]
	mov	w10, #12480
	movk	w10, #55300, lsl #16
	orr	w9, w9, w10
	cmp	x8, #0
	csel	w2, w9, w10, eq
	bl	_sh_mmcif_writel
	cmp	x23, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	csel	w8, wzr, w8, eq
	orr	w2, w8, w22
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x8, _MMCIF_CE_INT_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMCIF_CE_INT_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_sh_mmcif_writel
	ldr	w0, [x19, #16]
Lloh26:
	adrp	x8, _MMCIF_CE_ARG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MMCIF_CE_ARG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	bl	_sh_mmcif_writel
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #16]
Lloh29:
	adrp	x8, _MMCIF_CE_CMD_SET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMCIF_CE_CMD_SET@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_sh_mmcif_writel
Lloh32:
	adrp	x8, _MMCIF_WAIT_FOR_CMD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MMCIF_WAIT_FOR_CMD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x0, x19, #8
	ldr	w1, [x19, #4]
	bl	_schedule_delayed_work
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_BUSY,4,2               ; @MMC_RSP_BUSY
	.comm	_MASK_START_CMD,4,2             ; @MASK_START_CMD
	.comm	_MASK_MRBSYE,4,2                ; @MASK_MRBSYE
	.comm	_MASK_MCRSPE,4,2                ; @MASK_MCRSPE
	.comm	_MASK_MCCSTO,4,2                ; @MASK_MCCSTO
	.comm	_MMCIF_CE_BLOCK_SET,4,2         ; @MMCIF_CE_BLOCK_SET
	.comm	_MMCIF_CE_INT,4,2               ; @MMCIF_CE_INT
	.comm	_INT_CCS,4,2                    ; @INT_CCS
	.comm	_MMCIF_CE_INT_MASK,4,2          ; @MMCIF_CE_INT_MASK
	.comm	_MMCIF_CE_ARG,4,2               ; @MMCIF_CE_ARG
	.comm	_MMCIF_CE_CMD_SET,4,2           ; @MMCIF_CE_CMD_SET
	.comm	_MMCIF_WAIT_FOR_CMD,4,2         ; @MMCIF_WAIT_FOR_CMD
	.no_dead_strip	_sh_mmcif_start_cmd
.subsections_via_symbols
