	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmicron_probe_slot
_jmicron_probe_slot:                    ## @jmicron_probe_slot
	.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
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_SDHCI_HOST_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movq	_SDHCI_VENDOR_VER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SDHCI_VENDOR_VER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$171, %eax
	jg	LBB0_3
## %bb.2:
	movq	_SDHCI_QUIRK_BROKEN_ADMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	orl	%eax, (%rcx)
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_jmicron_enable_mmc
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_HOST_VERSION,8,3         ## @SDHCI_HOST_VERSION
	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ## @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ## @SDHCI_VENDOR_VER_SHIFT
	.comm	_SDHCI_QUIRK_BROKEN_ADMA,4,2    ## @SDHCI_QUIRK_BROKEN_ADMA
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC,8,3 ## @PCI_DEVICE_ID_JMICRON_JMB38X_MMC
	.no_dead_strip	_jmicron_probe_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmicron_probe_slot
_jmicron_probe_slot:                    ; @jmicron_probe_slot
	.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	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _SDHCI_HOST_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_HOST_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _SDHCI_VENDOR_VER_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_VENDOR_VER_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #171
	b.gt	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _SDHCI_QUIRK_BROKEN_ADMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_ADMA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19]
	mov	w1, #1
	bl	_jmicron_enable_mmc
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_HOST_VERSION,8,3         ; @SDHCI_HOST_VERSION
	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ; @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ; @SDHCI_VENDOR_VER_SHIFT
	.comm	_SDHCI_QUIRK_BROKEN_ADMA,4,2    ; @SDHCI_QUIRK_BROKEN_ADMA
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC,8,3 ; @PCI_DEVICE_ID_JMICRON_JMB38X_MMC
	.no_dead_strip	_jmicron_probe_slot
.subsections_via_symbols
