	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_usb_probe
_rtsx_usb_probe:                        ## @rtsx_usb_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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_interface_to_usbdev
	movq	%rax, %r13
	leaq	4(%r15), %r14
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, 16(%rax)
	movq	_IOBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_usb_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 68(%rbx)
	movl	(%rcx), %eax
	movl	%eax, 64(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 56(%rbx)
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	movq	%r15, 32(%rbx)
	movq	%rbx, %rdi
	callq	_rtsx_usb_init_chip
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_rtsx_usb_sg_timed_out@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_rtsx_usb_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mfd_add_hotplug_devices
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	16(%rbx), %rdi
	movq	_IOBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	callq	_usb_free_coherent
	movl	%r12d, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": Realtek USB Card Reader found at bus %03d address %03d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IOBUF_SIZE,4,2                 ## @IOBUF_SIZE
	.comm	_rtsx_usb_sg_timed_out,4,2      ## @rtsx_usb_sg_timed_out
	.comm	_rtsx_usb_cells,4,2             ## @rtsx_usb_cells
	.no_dead_strip	_rtsx_usb_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_probe
_rtsx_usb_probe:                        ; @rtsx_usb_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	bl	_interface_to_usbdev
	mov	x23, x0
	add	x19, x21, #4
	ldr	x8, [x0, #8]
	ldr	w2, [x8]
	ldr	w3, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x23, [x0, #16]
Lloh4:
	adrp	x24, _IOBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IOBUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x23
	mov	x3, x20
	bl	_usb_alloc_coherent
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_usb_set_intfdata
	ldr	d0, [x22]
	str	d0, [x20, #64]
	ldr	x8, [x20, #8]
	stp	x8, x8, [x20, #48]
	add	x0, x20, #40
	bl	_mutex_init
	str	x21, [x20, #32]
	mov	x0, x20
	bl	_rtsx_usb_init_chip
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x20, #24
Lloh6:
	adrp	x8, _rtsx_usb_sg_timed_out@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rtsx_usb_sg_timed_out@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh9:
	adrp	x8, _rtsx_usb_cells@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rtsx_usb_cells@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mfd_add_hotplug_devices
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_4:
	ldr	w1, [x24]
	ldp	x2, x0, [x20, #8]
	ldr	w3, [x20]
	bl	_usb_free_coherent
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": Realtek USB Card Reader found at bus %03d address %03d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IOBUF_SIZE,4,2                 ; @IOBUF_SIZE
	.comm	_rtsx_usb_sg_timed_out,4,2      ; @rtsx_usb_sg_timed_out
	.comm	_rtsx_usb_cells,4,2             ; @rtsx_usb_cells
	.no_dead_strip	_rtsx_usb_probe
.subsections_via_symbols
