	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_sleep_to_enabled
_omap_hsmmc_sleep_to_enabled:           ## @omap_hsmmc_sleep_to_enabled
	.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
	movl	8(%rdi), %edi
	callq	_mmc_try_claim_host
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	24(%rbx), %edi
	callq	_clk_enable
	movq	%rbx, %rdi
	callq	_omap_hsmmc_context_restore
	movq	%rbx, %rdi
	callq	_mmc_slot
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_slot
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movl	12(%rbx), %ecx
	movq	(%rbx), %rdx
	movq	_CARDSLEEP@GOTPCREL(%rip), %r9
	xorl	%r8d, %r8d
	cmpq	(%r9), %rdx
	sete	%r8b
	xorl	%edx, %edx
	callq	*%rax
LBB0_3:
	movl	8(%rbx), %edi
	callq	_mmc_card_can_sleep
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	callq	_mmc_card_awake
LBB0_5:
	movl	8(%rbx), %edi
	callq	_mmc_dev
	movq	(%rbx), %rcx
	movq	_CARDSLEEP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	8(%rbx), %edi
	callq	_mmc_release_host
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARDSLEEP,8,3                  ## @CARDSLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -> ENABLED\n"

L_.str.1:                               ## @.str.1
	.asciz	"CARDSLEEP"

L_.str.2:                               ## @.str.2
	.asciz	"REGSLEEP"

	.comm	_ENABLED,8,3                    ## @ENABLED
	.no_dead_strip	_omap_hsmmc_sleep_to_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_sleep_to_enabled
_omap_hsmmc_sleep_to_enabled:           ; @omap_hsmmc_sleep_to_enabled
	.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	w0, [x0, #8]
	bl	_mmc_try_claim_host
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_clk_enable
	mov	x0, x19
	bl	_omap_hsmmc_context_restore
	mov	x0, x19
	bl	_mmc_slot
Lloh0:
	adrp	x20, _CARDSLEEP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CARDSLEEP@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mmc_slot
	mov	x8, x0
	ldp	w1, w0, [x19, #16]
	ldr	w3, [x19, #12]
	ldr	x9, [x19]
	ldr	x10, [x20]
	cmp	x9, x10
	cset	w4, eq
	mov	w2, #0
	blr	x8
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_mmc_card_can_sleep
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_mmc_card_awake
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_mmc_dev
	ldr	x8, [x19]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh4:
	adrp	x11, l_.str.1@PAGE
Lloh5:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh8:
	adrp	x8, _ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x19, #8]
	bl	_mmc_release_host
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CARDSLEEP,8,3                  ; @CARDSLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -> ENABLED\n"

l_.str.1:                               ; @.str.1
	.asciz	"CARDSLEEP"

l_.str.2:                               ; @.str.2
	.asciz	"REGSLEEP"

	.comm	_ENABLED,8,3                    ; @ENABLED
	.no_dead_strip	_omap_hsmmc_sleep_to_enabled
.subsections_via_symbols
