	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_usb_sdmmc_drv_probe
_rtsx_usb_sdmmc_drv_probe:              ## @rtsx_usb_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, %r12
	movl	(%rdi), %edi
	callq	_to_usb_interface
	movl	%eax, %edi
	callq	_usb_get_intfdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movl	$64, %edi
	movq	%r12, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	%r15, 56(%rax)
	movq	%r14, 48(%rax)
	movq	%r12, 40(%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	36(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_rtsx_usb_init_host
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_mmc_add_host
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	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 USB SD/MMC controller found\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_rtsx_usb_led_control,4,2       ## @rtsx_usb_led_control
	.comm	_rtsx_usb_update_led,4,2        ## @rtsx_usb_update_led
	.no_dead_strip	_rtsx_usb_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_usb_sdmmc_drv_probe
_rtsx_usb_sdmmc_drv_probe:              ; @rtsx_usb_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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_usb_interface
	bl	_usb_get_intfdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #64
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_mmc_priv
	mov	x22, x0
	stp	x20, x21, [x0, #48]
	str	x19, [x0, #40]
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	add	x0, x22, #36
	bl	_mutex_init
	mov	x0, x22
	bl	_rtsx_usb_init_host
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_mmc_add_host
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": Realtek USB SD/MMC controller found\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_rtsx_usb_led_control,4,2       ; @rtsx_usb_led_control
	.comm	_rtsx_usb_update_led,4,2        ; @rtsx_usb_update_led
	.no_dead_strip	_rtsx_usb_sdmmc_drv_probe
.subsections_via_symbols
