	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msmsdcc_suspend
_msmsdcc_suspend:                       ## @msmsdcc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_mmc_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_disable_irq
LBB0_4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rax
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mmc_suspend_host
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	movq	_MMCIMASK0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movl	12(%r15), %edi
	callq	_clk_disable
	movl	8(%r15), %edi
	callq	_clk_disable
	movq	$0, (%r15)
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TYPE_SDIO,8,3              ## @MMC_TYPE_SDIO
	.comm	_MMCIMASK0,8,3                  ## @MMCIMASK0
	.no_dead_strip	_msmsdcc_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msmsdcc_suspend
_msmsdcc_suspend:                       ; @msmsdcc_suspend
	.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, x1
	bl	_mmc_get_drvdata
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_disable_irq
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MMC_TYPE_SDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TYPE_SDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_mmc_suspend_host
	cbnz	w0, LBB0_9
LBB0_6:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _MMCIMASK0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMCIMASK0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #12]
	bl	_clk_disable
	ldr	w0, [x19, #8]
	bl	_clk_disable
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TYPE_SDIO,8,3              ; @MMC_TYPE_SDIO
	.comm	_MMCIMASK0,8,3                  ; @MMCIMASK0
	.no_dead_strip	_msmsdcc_suspend
.subsections_via_symbols
