	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_stop_host                  ## -- Begin function mmc_stop_host
	.p2align	4, 0x90
_mmc_stop_host:                         ## @mmc_stop_host
	.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	%rdi, %rbx
	movq	_MMC_CAP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rdi
	callq	_cancel_delayed_work
LBB0_2:
	leaq	28(%rbx), %rdi
	callq	_cancel_delayed_work
	xorl	%eax, %eax
	callq	_mmc_flush_scheduled_work
	movq	%rbx, %rdi
	callq	_mmc_bus_get
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	$0, 24(%rbx)
	je	LBB0_4
LBB0_7:
	movq	%rbx, %rdi
	callq	_mmc_bus_put
	movl	8(%rbx), %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mmc_power_off                  ## TAILCALL
LBB0_4:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	%rbx, %rdi
	callq	_mmc_claim_host
	movq	%rbx, %rdi
	callq	_mmc_detach_bus
	movq	%rbx, %rdi
	callq	_mmc_release_host
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mmc_bus_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_DISABLE,4,2            ## @MMC_CAP_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_stop_host                  ; -- Begin function mmc_stop_host
	.p2align	2
_mmc_stop_host:                         ; @mmc_stop_host
	.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	x19, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _MMC_CAP_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #32
	bl	_cancel_delayed_work
LBB0_2:
	add	x0, x19, #28
	bl	_cancel_delayed_work
	bl	_mmc_flush_scheduled_work
	mov	x0, x19
	bl	_mmc_bus_get
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w9, [x19, #24]
	cbz	w9, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mmc_bus_put
	ldr	w0, [x19, #8]
	bl	_BUG_ON
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_power_off
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	x0, x19
	bl	_mmc_claim_host
	mov	x0, x19
	bl	_mmc_detach_bus
	mov	x0, x19
	bl	_mmc_release_host
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_bus_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_DISABLE,4,2            ; @MMC_CAP_DISABLE
.subsections_via_symbols
