	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usdhi6_stop_cmd
_usdhi6_stop_cmd:                       ## @usdhi6_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movl	4(%rax), %eax
	movq	_MMC_STOP_TRANSMISSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_USDHI6_WAIT_FOR_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movl	(%rdi), %edi
	callq	_mmc_dev
	movq	(%rbx), %rcx
	movq	8(%rbx), %rsi
	movl	4(%rcx), %edx
	movl	(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movq	(%rbx), %rsi
	movl	%edx, (%rsi)
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_STOP_TRANSMISSION,4,2      ## @MMC_STOP_TRANSMISSION
	.comm	_USDHI6_WAIT_FOR_STOP,4,2       ## @USDHI6_WAIT_FOR_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported stop CMD%d for CMD%d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_usdhi6_stop_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usdhi6_stop_cmd
_usdhi6_stop_cmd:                       ; @usdhi6_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
	ldr	x19, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _MMC_STOP_TRANSMISSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_STOP_TRANSMISSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #0
Lloh3:
	adrp	x9, _USDHI6_WAIT_FOR_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USDHI6_WAIT_FOR_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x0, #4]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x0]
	bl	_mmc_dev
	ldp	x8, x9, [x19]
	ldr	w2, [x8, #4]
	ldr	w3, [x9]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w9, w9
	ldr	x10, [x19]
	str	w9, [x10]
	ldr	w8, [x8]
	neg	w8, w8
LBB0_4:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_STOP_TRANSMISSION,4,2      ; @MMC_STOP_TRANSMISSION
	.comm	_USDHI6_WAIT_FOR_STOP,4,2       ; @USDHI6_WAIT_FOR_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported stop CMD%d for CMD%d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_usdhi6_stop_cmd
.subsections_via_symbols
