	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_pci_ms_drv_probe
_rtsx_pci_ms_drv_probe:                 ## @rtsx_pci_ms_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	$32, %edi
	movq	%rbx, %rsi
	callq	_memstick_alloc_host
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_memstick_priv
	movq	%rax, %r15
	movq	%r12, 24(%rax)
	movq	%r14, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%r12), %rax
	movq	_RTSX_MS_CARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	%rbx, 8(%rax,%rcx)
	movq	_rtsx_pci_ms_card_event@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx)
	leaq	4(%r15), %rdi
	callq	_mutex_init
	movq	_rtsx_pci_ms_handle_req@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_WORK
	movq	_rtsx_pci_ms_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_rtsx_pci_ms_set_param@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_MEMSTICK_CAP_PAR4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_memstick_add_host
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_memstick_free_host
	jmp	LBB0_9
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": Realtek PCI-E Memstick controller found\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RTSX_MS_CARD,8,3               ## @RTSX_MS_CARD
	.comm	_rtsx_pci_ms_card_event,4,2     ## @rtsx_pci_ms_card_event
	.comm	_rtsx_pci_ms_handle_req,4,2     ## @rtsx_pci_ms_handle_req
	.comm	_rtsx_pci_ms_request,4,2        ## @rtsx_pci_ms_request
	.comm	_rtsx_pci_ms_set_param,4,2      ## @rtsx_pci_ms_set_param
	.comm	_MEMSTICK_CAP_PAR4,4,2          ## @MEMSTICK_CAP_PAR4
	.no_dead_strip	_rtsx_pci_ms_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_ms_drv_probe
_rtsx_pci_ms_drv_probe:                 ; @rtsx_pci_ms_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_5
; %bb.1:
	ldr	x22, [x8]
	cbz	x22, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #32
	mov	x1, x20
	bl	_memstick_alloc_host
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	bl	_memstick_priv
	mov	x21, x0
	stp	x19, x22, [x0, #16]
	str	x20, [x0, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _RTSX_MS_CARD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTSX_MS_CARD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	str	x20, [x8, #8]
Lloh5:
	adrp	x9, _rtsx_pci_ms_card_event@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rtsx_pci_ms_card_event@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8]
	add	x0, x21, #4
	bl	_mutex_init
Lloh8:
	adrp	x8, _rtsx_pci_ms_handle_req@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rtsx_pci_ms_handle_req@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_WORK
Lloh11:
	adrp	x8, _rtsx_pci_ms_request@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rtsx_pci_ms_request@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh14:
	adrp	x8, _rtsx_pci_ms_set_param@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rtsx_pci_ms_set_param@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MEMSTICK_CAP_PAR4@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEMSTICK_CAP_PAR4@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_memstick_add_host
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_memstick_free_host
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x8, _ENXIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": Realtek PCI-E Memstick controller found\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RTSX_MS_CARD,8,3               ; @RTSX_MS_CARD
	.comm	_rtsx_pci_ms_card_event,4,2     ; @rtsx_pci_ms_card_event
	.comm	_rtsx_pci_ms_handle_req,4,2     ; @rtsx_pci_ms_handle_req
	.comm	_rtsx_pci_ms_request,4,2        ; @rtsx_pci_ms_request
	.comm	_rtsx_pci_ms_set_param,4,2      ; @rtsx_pci_ms_set_param
	.comm	_MEMSTICK_CAP_PAR4,4,2          ; @MEMSTICK_CAP_PAR4
	.no_dead_strip	_rtsx_pci_ms_drv_probe
.subsections_via_symbols
