	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmio_mmc_host_remove           ## -- Begin function tmio_mmc_host_remove
	.p2align	4, 0x90
_tmio_mmc_host_remove:                  ## @tmio_mmc_host_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, %rbx
	movq	24(%rdi), %r15
	movq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	16(%rbx), %rax
	movq	_TMIO_MMC_SDIO_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CTL_TRANSACTION_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sd_ctrl_write16
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_pm_qos_hide_latency_limit
	movq	%r15, %rdi
	callq	_mmc_remove_host
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_tmio_mmc_release_dma
	movq	%r14, %rdi
	callq	_pm_runtime_dont_use_autosuspend
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
LBB0_4:
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_disable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TMIO_MMC_SDIO_IRQ,4,2          ## @TMIO_MMC_SDIO_IRQ
	.comm	_CTL_TRANSACTION_CTL,4,2        ## @CTL_TRANSACTION_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmio_mmc_host_remove           ; -- Begin function tmio_mmc_host_remove
	.p2align	2
_tmio_mmc_host_remove:                  ; @tmio_mmc_host_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	x20, x0
	ldp	x21, x19, [x0, #24]
	mov	x0, x19
	bl	_pm_runtime_get_sync
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _TMIO_MMC_SDIO_IRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TMIO_MMC_SDIO_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CTL_TRANSACTION_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_TRANSACTION_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_sd_ctrl_write16
LBB0_2:
	mov	x0, x19
	bl	_dev_pm_qos_hide_latency_limit
	mov	x0, x21
	bl	_mmc_remove_host
	add	x0, x20, #12
	bl	_cancel_work_sync
	add	x0, x20, #8
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_tmio_mmc_release_dma
	mov	x0, x19
	bl	_pm_runtime_dont_use_autosuspend
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pm_runtime_put_noidle
LBB0_4:
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	x0, x19
	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	_pm_runtime_disable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TMIO_MMC_SDIO_IRQ,4,2          ; @TMIO_MMC_SDIO_IRQ
	.comm	_CTL_TRANSACTION_CTL,4,2        ; @CTL_TRANSACTION_CTL
.subsections_via_symbols
