	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sdio_resume
_mmc_sdio_resume:                       ## @mmc_sdio_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mmc_claim_host
	movq	%rbx, %rdi
	callq	_mmc_card_keep_power
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_mmc_card_wake_sdio_irq
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	32(%rbx), %rdi
	callq	_sdio_enable_4bit_bus
	jmp	LBB0_6
LBB0_1:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmc_power_up
	movq	_MMC_CAP_POWER_OFF_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_pm_runtime_disable
	movq	32(%rbx), %rdi
	callq	_pm_runtime_set_active
	movq	32(%rbx), %rdi
	callq	_pm_runtime_enable
LBB0_3:
	movq	%rbx, %rdi
	callq	_mmc_sdio_reinit_card
LBB0_6:
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_7:
	movq	32(%rbx), %rdi
	callq	_mmc_card_clr_suspended
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_12
## %bb.8:
	movq	_MMC_CAP2_SDIO_IRQ_NOTHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.10:
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_queue_delayed_work
	jmp	LBB0_12
LBB0_9:
	movl	16(%rbx), %edi
	callq	_wake_up_process
LBB0_12:
	movq	%rbx, %rdi
	callq	_mmc_release_host
	movq	_MMC_PM_KEEP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ## @MMC_CAP_POWER_OFF_CARD
	.comm	_MMC_CAP2_SDIO_IRQ_NOTHREAD,4,2 ## @MMC_CAP2_SDIO_IRQ_NOTHREAD
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
	.comm	_system_wq,4,2                  ## @system_wq
	.comm	_MMC_PM_KEEP_POWER,4,2          ## @MMC_PM_KEEP_POWER
	.no_dead_strip	_mmc_sdio_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_sdio_resume
_mmc_sdio_resume:                       ; @mmc_sdio_resume
	.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
	bl	_mmc_claim_host
	mov	x0, x19
	bl	_mmc_card_keep_power
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mmc_card_wake_sdio_irq
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #32]
	bl	_sdio_enable_4bit_bus
	mov	x20, x0
	cbnz	w0, LBB0_12
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_mmc_power_up
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MMC_CAP_POWER_OFF_CARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_POWER_OFF_CARD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19, #32]
	bl	_pm_runtime_disable
	ldr	x0, [x19, #32]
	bl	_pm_runtime_set_active
	ldr	x0, [x19, #32]
	bl	_pm_runtime_enable
LBB0_5:
	mov	x0, x19
	bl	_mmc_sdio_reinit_card
	mov	x20, x0
	cbnz	w0, LBB0_12
LBB0_6:
	ldr	x0, [x19, #32]
	bl	_mmc_card_clr_suspended
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _MMC_CAP2_SDIO_IRQ_NOTHREAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_CAP2_SDIO_IRQ_NOTHREAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh9:
	adrp	x8, _system_wq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #12
	mov	w2, #0
	bl	_queue_delayed_work
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_wake_up_process
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_mmc_release_host
Lloh12:
	adrp	x8, _MMC_PM_KEEP_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_PM_KEEP_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ; @MMC_CAP_POWER_OFF_CARD
	.comm	_MMC_CAP2_SDIO_IRQ_NOTHREAD,4,2 ; @MMC_CAP2_SDIO_IRQ_NOTHREAD
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
	.comm	_system_wq,4,2                  ; @system_wq
	.comm	_MMC_PM_KEEP_POWER,4,2          ; @MMC_PM_KEEP_POWER
	.no_dead_strip	_mmc_sdio_resume
.subsections_via_symbols
