	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sdio_suspend
_mmc_sdio_suspend:                      ## @mmc_sdio_suspend
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_card_keep_power
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON
	movl	8(%rbx), %edi
	callq	_mmc_card_set_suspended
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_mmc_claim_host
	movq	%rbx, %rdi
	callq	_mmc_card_keep_power
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_mmc_card_wake_sdio_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_sdio_disable_wide
LBB0_6:
	movq	%rbx, %rdi
	callq	_mmc_card_keep_power
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_mmc_retune_timer_stop
	movq	%rbx, %rdi
	callq	_mmc_retune_needed
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	callq	_mmc_power_off
LBB0_10:
	movq	%rbx, %rdi
	callq	_mmc_release_host
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mmc_sdio_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_sdio_suspend
_mmc_sdio_suspend:                      ; @mmc_sdio_suspend
	.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	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mmc_card_keep_power
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_WARN_ON
	ldr	w0, [x19, #8]
	bl	_mmc_card_set_suspended
	add	x0, x19, #12
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_mmc_claim_host
	mov	x0, x19
	bl	_mmc_card_keep_power
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mmc_card_wake_sdio_irq
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_sdio_disable_wide
LBB0_6:
	mov	x0, x19
	bl	_mmc_card_keep_power
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_mmc_retune_timer_stop
	mov	x0, x19
	bl	_mmc_retune_needed
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_mmc_power_off
LBB0_10:
	mov	x0, x19
	bl	_mmc_release_host
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mmc_sdio_suspend
.subsections_via_symbols
