	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ushc_probe
LCPI0_0:
	.long	261632                          ## 0x3fe00
	.long	1                               ## 0x1
	.long	261632                          ## 0x3fe00
	.long	512                             ## 0x200
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ushc_probe:                            ## @ushc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_interface_to_usbdev
	movq	%rax, %r14
	movq	(%r12), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_16
## %bb.1:
	leaq	8(%r12), %rsi
	movl	$88, %edi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_usb_set_intfdata
	movq	%r14, 32(%r15)
	movq	%r13, 8(%r15)
	leaq	80(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	callq	_ushc_hw_reset
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	movq	%r15, %rdi
	callq	_ushc_hw_get_caps
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movq	_ushc_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movabsq	$214748364800400000, %rax       ## imm = 0x2FAF08000061A80
	movq	%rax, (%r13)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r13)
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_USHC_GET_CAPS_HIGH_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	je	LBB0_6
## %bb.5:
	movq	_MMC_CAP_SD_HIGHSPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%eax, %ecx
	movl	%ecx, 12(%r13)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [261632,1,261632,512]
	movups	%xmm0, 16(%r13)
	movl	$511, 32(%r13)                  ## imm = 0x1FF
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	16(%r15), %rbx
	movq	32(%r15), %r13
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movq	72(%r15), %rcx
	movq	_int_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	(%r12), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%rsp)
	movq	%r15, (%rsp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	%eax, %edx
	movl	$4, %r8d
	callq	_usb_fill_int_urb
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	_USHC_CBW_SIGNATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	32(%r15), %r12
	movq	64(%r15), %rbx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movq	56(%r15), %rcx
	movq	_cbw_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$4, %r8d
	callq	_usb_fill_bulk_urb
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	movq	32(%r15), %r12
	movq	40(%r15), %rbx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_usb_rcvbulkpipe
	movq	24(%r15), %rcx
	movq	_csw_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$4, %r8d
	callq	_usb_fill_bulk_urb
	movq	8(%r15), %rdi
	callq	_mmc_add_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	callq	_usb_submit_urb
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_25
## %bb.15:
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	callq	_mmc_remove_host
	movl	%r14d, %ebx
	jmp	LBB0_24
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_23:
	subl	(%rax), %ebx
LBB0_24:
	movq	%r15, %rdi
	callq	_ushc_clean_up
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ushc_ops,4,2                   ## @ushc_ops
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
	.comm	_USHC_GET_CAPS_HIGH_SPD,4,2     ## @USHC_GET_CAPS_HIGH_SPD
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ## @MMC_CAP_SD_HIGHSPEED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_int_callback,4,2               ## @int_callback
	.comm	_USHC_CBW_SIGNATURE,4,2         ## @USHC_CBW_SIGNATURE
	.comm	_cbw_callback,4,2               ## @cbw_callback
	.comm	_csw_callback,4,2               ## @csw_callback
	.no_dead_strip	_ushc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ushc_probe
lCPI0_0:
	.long	400000                          ; 0x61a80
	.long	50000000                        ; 0x2faf080
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	261632                          ; 0x3fe00
	.long	1                               ; 0x1
	.long	261632                          ; 0x3fe00
	.long	512                             ; 0x200
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ushc_probe:                            ; @ushc_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	x21, x0
	bl	_interface_to_usbdev
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	b.le	LBB0_14
; %bb.1:
	mov	x20, x0
	add	x1, x21, #8
	mov	w0, #88
	bl	_mmc_alloc_host
	cbz	x0, LBB0_16
; %bb.2:
	mov	x23, x0
	bl	_mmc_priv
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_usb_set_intfdata
	str	x20, [x19, #32]
	str	x23, [x19, #8]
	add	x0, x19, #80
	bl	_spin_lock_init
	mov	x0, x19
	bl	_ushc_hw_reset
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	x0, x19
	bl	_ushc_hw_get_caps
	tbnz	w0, #31, LBB0_15
; %bb.4:
Lloh0:
	adrp	x8, _ushc_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ushc_ops@GOTPAGEOFF]
	str	x8, [x23, #40]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x23]
Lloh4:
	adrp	x8, _MMC_VDD_32_33@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMC_VDD_32_33@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MMC_VDD_33_34@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_VDD_33_34@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _USHC_GET_CAPS_HIGH_SPD@GOTPAGE
Lloh17:
	ldr	x10, [x10, _USHC_GET_CAPS_HIGH_SPD@GOTPAGEOFF]
	ldr	w11, [x19]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w11
Lloh19:
	adrp	x10, _MMC_CAP_SD_HIGHSPEED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MMC_CAP_SD_HIGHSPEED@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
	stp	w8, w9, [x23, #8]
Lloh22:
	adrp	x8, lCPI0_1@PAGE
Lloh23:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [x23, #16]
	mov	w8, #511
	str	w8, [x23, #32]
Lloh24:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.5:
	ldr	w1, [x24]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x22, [x19, #16]
	ldr	x23, [x19, #32]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	x3, [x19, #72]
Lloh26:
	adrp	x8, _int_callback@GOTPAGE
Lloh27:
	ldr	x8, [x8, _int_callback@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w7, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	w4, #4
	mov	x6, x19
	bl	_usb_fill_int_urb
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #64]
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w1, [x24]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_18
; %bb.8:
Lloh29:
	adrp	x8, _USHC_CBW_SIGNATURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _USHC_CBW_SIGNATURE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	x21, [x19, #64]
	ldr	x22, [x19, #32]
	mov	x0, x20
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	x3, [x19, #56]
Lloh32:
	adrp	x8, _cbw_callback@GOTPAGE
Lloh33:
	ldr	x8, [x8, _cbw_callback@GOTPAGEOFF]
Lloh34:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w4, #4
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #48]
	cbz	x0, LBB0_18
; %bb.9:
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #40]
	cbz	x0, LBB0_18
; %bb.10:
	ldr	w1, [x24]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.11:
	ldp	x22, x21, [x19, #32]
	mov	x0, x20
	mov	w1, #6
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x3, [x19, #24]
Lloh35:
	adrp	x8, _csw_callback@GOTPAGE
Lloh36:
	ldr	x8, [x8, _csw_callback@GOTPAGEOFF]
Lloh37:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w4, #4
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	x0, [x19, #8]
	bl	_mmc_add_host
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.12:
	ldr	x0, [x19, #16]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_21
; %bb.13:
	mov	w22, #0
	b	LBB0_20
LBB0_14:
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	x22, x0
	b	LBB0_19
LBB0_16:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_18:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x19
	bl	_ushc_clean_up
LBB0_20:
	mov	x0, x22
	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
LBB0_21:
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_mmc_remove_host
	b	LBB0_19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ushc_ops,4,2                   ; @ushc_ops
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
	.comm	_USHC_GET_CAPS_HIGH_SPD,4,2     ; @USHC_GET_CAPS_HIGH_SPD
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ; @MMC_CAP_SD_HIGHSPEED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_int_callback,4,2               ; @int_callback
	.comm	_USHC_CBW_SIGNATURE,4,2         ; @USHC_CBW_SIGNATURE
	.comm	_cbw_callback,4,2               ; @cbw_callback
	.comm	_csw_callback,4,2               ; @csw_callback
	.no_dead_strip	_ushc_probe
.subsections_via_symbols
