	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_remove
_mmc_blk_remove:                        ## @mmc_blk_remove
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mmc_blk_remove_debugfs
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmc_blk_remove_parts
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r15), %edi
	callq	_mmc_claim_host
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_mmc_blk_part_switch
	movl	16(%r15), %edi
	callq	_mmc_release_host
LBB0_2:
	movq	(%r15), %rax
	movq	_MMC_TYPE_SD_COMBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_4:
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%rbx, %rdi
	callq	_mmc_blk_remove_req
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movl	8(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroy_workqueue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TYPE_SD_COMBO,8,3          ## @MMC_TYPE_SD_COMBO
	.no_dead_strip	_mmc_blk_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_remove
_mmc_blk_remove:                        ; @mmc_blk_remove
	.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, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_blk_remove_debugfs
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_blk_remove_parts
	mov	x0, x20
	bl	_pm_runtime_get_sync
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_mmc_claim_host
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_mmc_blk_part_switch
	ldr	w0, [x19, #16]
	bl	_mmc_release_host
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MMC_TYPE_SD_COMBO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TYPE_SD_COMBO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pm_runtime_disable
LBB0_4:
	mov	x0, x20
	bl	_pm_runtime_put_noidle
	mov	x0, x21
	bl	_mmc_blk_remove_req
	mov	x0, x20
	mov	x1, #0
	bl	_dev_set_drvdata
	ldr	w0, [x19, #8]
	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	_destroy_workqueue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TYPE_SD_COMBO,8,3          ; @MMC_TYPE_SD_COMBO
	.no_dead_strip	_mmc_blk_remove
.subsections_via_symbols
