	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_o2_wait_card_detect_stable
_sdhci_o2_wait_card_detect_stable:      ## @sdhci_o2_wait_card_detect_stable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	$50, %esi
	callq	_ktime_add_ms
	movl	%eax, %r15d
	movq	_SDHCI_CD_LVL@GOTPCREL(%rip), %r13
	movq	_SDHCI_CD_LVL_SHIFT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_ktime_after
	movl	%eax, %ebx
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CARD_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SDHCI_CARD_PRES_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %edx
	andl	(%r13), %eax
	movzbl	(%r12), %ecx
	sarl	%cl, %eax
	cmpl	%eax, %edx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	jmp	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_dumpregs                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_PRESENT_STATE,4,2        ## @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ## @SDHCI_CARD_PRESENT
	.comm	_SDHCI_CARD_PRES_SHIFT,4,2      ## @SDHCI_CARD_PRES_SHIFT
	.comm	_SDHCI_CD_LVL,4,2               ## @SDHCI_CD_LVL
	.comm	_SDHCI_CD_LVL_SHIFT,4,2         ## @SDHCI_CD_LVL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Card Detect debounce never finished.\n"

	.no_dead_strip	_sdhci_o2_wait_card_detect_stable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_o2_wait_card_detect_stable
_sdhci_o2_wait_card_detect_stable:      ; @sdhci_o2_wait_card_detect_stable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_ktime_get
	mov	w1, #50
	bl	_ktime_add_ms
	mov	x20, x0
Lloh0:
	adrp	x22, _SDHCI_PRESENT_STATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDHCI_PRESENT_STATE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SDHCI_CARD_PRESENT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDHCI_CARD_PRESENT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _SDHCI_CARD_PRES_SHIFT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SDHCI_CARD_PRES_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _SDHCI_CD_LVL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SDHCI_CD_LVL@GOTPAGEOFF]
Lloh8:
	adrp	x26, _SDHCI_CD_LVL_SHIFT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SDHCI_CD_LVL_SHIFT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ktime_get
	mov	x1, x20
	bl	_ktime_after
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sdhci_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	ldr	w9, [x25]
	and	w9, w9, w0
	ldr	w10, [x26]
	asr	w9, w9, w10
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w21, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	b	LBB0_1
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19]
	bl	_mmc_hostname
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sdhci_dumpregs
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_PRESENT_STATE,4,2        ; @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ; @SDHCI_CARD_PRESENT
	.comm	_SDHCI_CARD_PRES_SHIFT,4,2      ; @SDHCI_CARD_PRES_SHIFT
	.comm	_SDHCI_CD_LVL,4,2               ; @SDHCI_CD_LVL
	.comm	_SDHCI_CD_LVL_SHIFT,4,2         ; @SDHCI_CD_LVL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Card Detect debounce never finished.\n"

	.no_dead_strip	_sdhci_o2_wait_card_detect_stable
.subsections_via_symbols
