	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_get_cd
_sdhci_get_cd:                          ## @sdhci_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_mmc_gpio_get_cd
	movl	%eax, %r14d
	movq	_SDHCI_DEVICE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_2:
	movl	8(%r15), %edi
	callq	_mmc_card_is_removable
	movb	$1, %cl
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	testl	%r14d, %r14d
	js	LBB0_4
LBB0_6:
	setne	%cl
	jmp	LBB0_7
LBB0_4:
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_5
LBB0_7:
	movzbl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CARD_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ## @SDHCI_DEVICE_DEAD
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_SDHCI_PRESENT_STATE,4,2        ## @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ## @SDHCI_CARD_PRESENT
	.no_dead_strip	_sdhci_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_get_cd
_sdhci_get_cd:                          ; @sdhci_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
	mov	x20, x0
	bl	_mmc_priv
	mov	x19, x0
	mov	x0, x20
	bl	_mmc_gpio_get_cd
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDHCI_DEVICE_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_DEVICE_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_mmc_card_is_removable
	cbz	w0, LBB0_7
; %bb.3:
	tbnz	w20, #31, LBB0_6
; %bb.4:
	cmp	w20, #0
LBB0_5:
	cset	w0, ne
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
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
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ; @SDHCI_DEVICE_DEAD
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_SDHCI_PRESENT_STATE,4,2        ; @SDHCI_PRESENT_STATE
	.comm	_SDHCI_CARD_PRESENT,4,2         ; @SDHCI_CARD_PRESENT
	.no_dead_strip	_sdhci_get_cd
.subsections_via_symbols
