	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mmcif_stop_cmd
_sh_mmcif_stop_cmd:                     ## @sh_mmcif_stop_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sh_mmcif_host_to_dev
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	cmpl	$129, %ecx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.3:
	movq	_MASK_MCMD12RBE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_MASK_MCMD12DRE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_MMCIF_CE_INT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sh_mmcif_bitset
	movq	_MMCIF_WAIT_FOR_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_sh_mmcif_error_manage
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMCIF_CE_INT_MASK,4,2          ## @MMCIF_CE_INT_MASK
	.comm	_MASK_MCMD12DRE,4,2             ## @MASK_MCMD12DRE
	.comm	_MASK_MCMD12RBE,4,2             ## @MASK_MCMD12RBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported stop cmd\n"

	.comm	_MMCIF_WAIT_FOR_STOP,4,2        ## @MMCIF_WAIT_FOR_STOP
	.no_dead_strip	_sh_mmcif_stop_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_stop_cmd
_sh_mmcif_stop_cmd:                     ; @sh_mmcif_stop_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_sh_mmcif_host_to_dev
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MASK_MCMD12RBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASK_MCMD12RBE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _MASK_MCMD12DRE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_MCMD12DRE@GOTPAGEOFF]
LBB0_4:
Lloh4:
	adrp	x9, _MMCIF_CE_INT_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMCIF_CE_INT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sh_mmcif_bitset
Lloh7:
	adrp	x8, _MMCIF_WAIT_FOR_STOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMCIF_WAIT_FOR_STOP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_sh_mmcif_error_manage
	ldr	x8, [x20]
	str	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MMCIF_CE_INT_MASK,4,2          ; @MMCIF_CE_INT_MASK
	.comm	_MASK_MCMD12DRE,4,2             ; @MASK_MCMD12DRE
	.comm	_MASK_MCMD12RBE,4,2             ; @MASK_MCMD12RBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported stop cmd\n"

	.comm	_MMCIF_WAIT_FOR_STOP,4,2        ; @MMCIF_WAIT_FOR_STOP
	.no_dead_strip	_sh_mmcif_stop_cmd
.subsections_via_symbols
