	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_bus_remove
_sdio_bus_remove:                       ## @sdio_bus_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_sdio_driver
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dev_to_sdio_func
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_MMC_CAP_POWER_OFF_CARD@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
LBB0_2:
	movq	%rbx, %rdi
	callq	*8(%r15)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	%rbx, %rdi
	callq	_sdio_claim_host
	movq	%rbx, %rdi
	callq	_sdio_release_irq
	movq	%rbx, %rdi
	callq	_sdio_release_host
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_pm_domain_detach
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ## @MMC_CAP_POWER_OFF_CARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: driver %s did not remove its interrupt handler!\n"

	.no_dead_strip	_sdio_bus_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_bus_remove
_sdio_bus_remove:                       ; @sdio_bus_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
	ldr	w0, [x0]
	bl	_to_sdio_driver
	mov	x21, x0
	mov	x0, x19
	bl	_dev_to_sdio_func
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x22, _MMC_CAP_POWER_OFF_CARD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMC_CAP_POWER_OFF_CARD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pm_runtime_get_sync
LBB0_2:
	ldr	x8, [x21, #8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	x0, x20
	bl	_sdio_claim_host
	mov	x0, x20
	bl	_sdio_release_irq
	mov	x0, x20
	bl	_sdio_release_host
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_pm_runtime_put_sync
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_dev_pm_domain_detach
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ; @MMC_CAP_POWER_OFF_CARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: driver %s did not remove its interrupt handler!\n"

	.no_dead_strip	_sdio_bus_remove
.subsections_via_symbols
