	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmicron_probe
_jmicron_probe:                         ## @jmicron_probe
	.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
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_SDHCI_QUIRK_32BIT_DMA_ADDR@GOTPCREL(%rip), %rcx
	movq	_SDHCI_QUIRK_32BIT_DMA_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_SDHCI_QUIRK_32BIT_ADMA_SIZE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SDHCI_QUIRK_BROKEN_SMALL_PIO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	orl	%edx, (%r14)
LBB0_2:
	movq	8(%rax), %rax
	movq	_PCI_DEVICE_ID_JMICRON_JMB38X_SD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movq	_PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.7:
	movq	_PCI_VENDOR_ID_JMICRON@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_pci_get_device
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	28(%rax), %edi
	callq	_PCI_SLOT
	movq	%rax, %r12
	movl	8(%rbx), %edi
	callq	_PCI_SLOT
	cmpq	%rax, %r12
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rax
	movq	16(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_11
## %bb.18:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	8(%r14), %rdi
	addq	$24, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_jmicron_pmos
	movq	8(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	addq	$24, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_17
LBB0_14:
	movq	8(%rdi), %rax
	movq	_PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movq	_PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:
	movq	_SDHCI_QUIRK_UNSTABLE_RO_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_QUIRK_32BIT_DMA_ADDR,4,2 ## @SDHCI_QUIRK_32BIT_DMA_ADDR
	.comm	_SDHCI_QUIRK_32BIT_DMA_SIZE,4,2 ## @SDHCI_QUIRK_32BIT_DMA_SIZE
	.comm	_SDHCI_QUIRK_32BIT_ADMA_SIZE,4,2 ## @SDHCI_QUIRK_32BIT_ADMA_SIZE
	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ## @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_BROKEN_SMALL_PIO,4,2 ## @SDHCI_QUIRK_BROKEN_SMALL_PIO
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_SD,8,3 ## @PCI_DEVICE_ID_JMICRON_JMB38X_SD
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC,8,3 ## @PCI_DEVICE_ID_JMICRON_JMB38X_MMC
	.comm	_PCI_DEVICE_ID_JMICRON_JMB388_SD,8,3 ## @PCI_DEVICE_ID_JMICRON_JMB388_SD
	.comm	_PCI_DEVICE_ID_JMICRON_JMB388_ESD,8,3 ## @PCI_DEVICE_ID_JMICRON_JMB388_ESD
	.comm	_PCI_VENDOR_ID_JMICRON,4,2      ## @PCI_VENDOR_ID_JMICRON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Refusing to bind to secondary interface.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Failure enabling card power\n"

	.comm	_SDHCI_QUIRK_UNSTABLE_RO_DETECT,4,2 ## @SDHCI_QUIRK_UNSTABLE_RO_DETECT
	.no_dead_strip	_jmicron_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmicron_probe
_jmicron_probe:                         ; @jmicron_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _SDHCI_QUIRK_32BIT_DMA_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_QUIRK_32BIT_DMA_ADDR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SDHCI_QUIRK_32BIT_DMA_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SDHCI_QUIRK_32BIT_DMA_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _SDHCI_QUIRK_32BIT_ADMA_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SDHCI_QUIRK_32BIT_ADMA_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _SDHCI_QUIRK_BROKEN_SMALL_PIO@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SDHCI_QUIRK_BROKEN_SMALL_PIO@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh14:
	ldr	w10, [x11]
	orr	w9, w9, w10
	ldr	w10, [x19]
	orr	w9, w9, w10
	str	w9, [x19]
LBB0_2:
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _PCI_DEVICE_ID_JMICRON_JMB38X_SD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_DEVICE_ID_JMICRON_JMB38X_SD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCI_DEVICE_ID_JMICRON_JMB38X_MMC@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
	cbnz	x20, LBB0_6
	b	LBB0_12
LBB0_4:
Lloh21:
	adrp	x9, _PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
Lloh24:
	adrp	x8, _PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPAGEOFF]
Lloh26:
	ldr	x20, [x8]
	cbz	x20, LBB0_12
LBB0_6:
Lloh27:
	adrp	x23, _PCI_VENDOR_ID_JMICRON@GOTPAGE
Lloh28:
	ldr	x23, [x23, _PCI_VENDOR_ID_JMICRON@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x21
	bl	_pci_get_device
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #28]
	bl	_PCI_SLOT
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_PCI_SLOT
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.11:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19, #8]
	add	x0, x8, #24
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_jmicron_pmos
	ldr	x8, [x19, #8]
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
	add	x0, x8, #24
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_16
LBB0_14:
	ldr	x8, [x8, #8]
Lloh36:
	adrp	x9, _PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PCI_DEVICE_ID_JMICRON_JMB388_SD@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPAGE
Lloh40:
	ldr	x10, [x10, _PCI_DEVICE_ID_JMICRON_JMB388_ESD@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	cmp	x8, x9
	mov	w20, #0
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.15:
Lloh42:
	adrp	x8, _SDHCI_QUIRK_UNSTABLE_RO_DETECT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SDHCI_QUIRK_UNSTABLE_RO_DETECT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_QUIRK_32BIT_DMA_ADDR,4,2 ; @SDHCI_QUIRK_32BIT_DMA_ADDR
	.comm	_SDHCI_QUIRK_32BIT_DMA_SIZE,4,2 ; @SDHCI_QUIRK_32BIT_DMA_SIZE
	.comm	_SDHCI_QUIRK_32BIT_ADMA_SIZE,4,2 ; @SDHCI_QUIRK_32BIT_ADMA_SIZE
	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ; @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_BROKEN_SMALL_PIO,4,2 ; @SDHCI_QUIRK_BROKEN_SMALL_PIO
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_SD,8,3 ; @PCI_DEVICE_ID_JMICRON_JMB38X_SD
	.comm	_PCI_DEVICE_ID_JMICRON_JMB38X_MMC,8,3 ; @PCI_DEVICE_ID_JMICRON_JMB38X_MMC
	.comm	_PCI_DEVICE_ID_JMICRON_JMB388_SD,8,3 ; @PCI_DEVICE_ID_JMICRON_JMB388_SD
	.comm	_PCI_DEVICE_ID_JMICRON_JMB388_ESD,8,3 ; @PCI_DEVICE_ID_JMICRON_JMB388_ESD
	.comm	_PCI_VENDOR_ID_JMICRON,4,2      ; @PCI_VENDOR_ID_JMICRON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Refusing to bind to secondary interface.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Failure enabling card power\n"

	.comm	_SDHCI_QUIRK_UNSTABLE_RO_DETECT,4,2 ; @SDHCI_QUIRK_UNSTABLE_RO_DETECT
	.no_dead_strip	_jmicron_probe
.subsections_via_symbols
