	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_pci_sdmmc_drv_probe
_rtsx_pci_sdmmc_drv_probe:              ## @rtsx_pci_sdmmc_drv_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.4:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	$40, %edi
	movq	%rbx, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movq	%r12, 32(%rax)
	movq	%r14, 24(%rax)
	movq	%rbx, 16(%rax)
	movl	$-1, (%rax)
	movq	_SDMMC_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	8(%r15), %rdi
	movq	_sd_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	(%r12), %rax
	movq	_RTSX_SD_CARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	%rbx, 8(%rax,%rcx)
	movq	_rtsx_pci_sdmmc_card_event@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx)
	leaq	4(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_realtek_init_host
	movq	%r14, %rdi
	callq	_mmc_add_host
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": Realtek PCI-E SDMMC controller found\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SDMMC_POWER_OFF,4,2            ## @SDMMC_POWER_OFF
	.comm	_sd_request,4,2                 ## @sd_request
	.comm	_RTSX_SD_CARD,8,3               ## @RTSX_SD_CARD
	.comm	_rtsx_pci_sdmmc_card_event,4,2  ## @rtsx_pci_sdmmc_card_event
	.no_dead_strip	_rtsx_pci_sdmmc_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_pci_sdmmc_drv_probe
_rtsx_pci_sdmmc_drv_probe:              ; @rtsx_pci_sdmmc_drv_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x22, [x8]
	cbz	x22, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #40
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	stp	x20, x22, [x0, #24]
	str	x19, [x0, #16]
	mov	w8, #-1
	str	w8, [x0]
Lloh2:
	adrp	x8, _SDMMC_POWER_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDMMC_POWER_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	add	x0, x0, #8
Lloh5:
	adrp	x8, _sd_request@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sd_request@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _RTSX_SD_CARD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTSX_SD_CARD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	str	x19, [x8, #8]
Lloh11:
	adrp	x9, _rtsx_pci_sdmmc_card_event@GOTPAGE
Lloh12:
	ldr	x9, [x9, _rtsx_pci_sdmmc_card_event@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x8]
	add	x0, x21, #4
	bl	_mutex_init
	mov	x0, x21
	bl	_realtek_init_host
	mov	x0, x20
	bl	_mmc_add_host
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": Realtek PCI-E SDMMC controller found\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SDMMC_POWER_OFF,4,2            ; @SDMMC_POWER_OFF
	.comm	_sd_request,4,2                 ; @sd_request
	.comm	_RTSX_SD_CARD,8,3               ; @RTSX_SD_CARD
	.comm	_rtsx_pci_sdmmc_card_event,4,2  ; @rtsx_pci_sdmmc_card_event
	.no_dead_strip	_rtsx_pci_sdmmc_drv_probe
.subsections_via_symbols
