	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_o2_get_cd
_sdhci_o2_get_cd:                       ## @sdhci_o2_get_cd
	.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
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	_O2_PLL_DLL_WDT_CONTROL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_O2_PLL_LOCK_STATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sdhci_o2_enable_internal_clock
LBB0_2:
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CARD_PRESENT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O2_PLL_DLL_WDT_CONTROL1,4,2    ## @O2_PLL_DLL_WDT_CONTROL1
	.comm	_O2_PLL_LOCK_STATUS,4,2         ## @O2_PLL_LOCK_STATUS
	.comm	_SDHCI_PRESENT_STATE,4,2        ## @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ## @SDHCI_CARD_PRESENT
	.no_dead_strip	_sdhci_o2_get_cd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_o2_get_cd
_sdhci_o2_get_cd:                       ; @sdhci_o2_get_cd
	.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
	bl	_mmc_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _O2_PLL_DLL_WDT_CONTROL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O2_PLL_DLL_WDT_CONTROL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdhci_readw
Lloh3:
	adrp	x8, _O2_PLL_LOCK_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O2_PLL_LOCK_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sdhci_o2_enable_internal_clock
LBB0_2:
Lloh6:
	adrp	x8, _SDHCI_PRESENT_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_PRESENT_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_readl
Lloh9:
	adrp	x8, _SDHCI_CARD_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_CARD_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_O2_PLL_DLL_WDT_CONTROL1,4,2    ; @O2_PLL_DLL_WDT_CONTROL1
	.comm	_O2_PLL_LOCK_STATUS,4,2         ; @O2_PLL_LOCK_STATUS
	.comm	_SDHCI_PRESENT_STATE,4,2        ; @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ; @SDHCI_CARD_PRESENT
	.no_dead_strip	_sdhci_o2_get_cd
.subsections_via_symbols
