	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ushc_request
_ushc_request:                          ## @ushc_request
	.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, %r15
	movq	%rdi, %r14
	callq	_mmc_priv
	movq	%rax, %r13
	leaq	24(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$64, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	js	LBB0_17
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	cmpl	$5999999, (%r13)                ## imm = 0x5B8D7F
	jle	LBB0_4
LBB0_7:
	movq	%r15, 56(%r13)
	movl	12(%rax), %edi
	callq	_cpu_to_le16
	movq	48(%r13), %rcx
	movq	%rax, 16(%rcx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	16(%rax), %edi
	callq	_cpu_to_le16
	movq	48(%r13), %rcx
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	%rax, 8(%rcx)
	movq	(%r15), %rax
	movl	8(%rax), %edi
	callq	_cpu_to_le32
	movq	48(%r13), %rcx
	movl	%eax, (%rcx)
	movq	16(%r13), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.12:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	40(%r13), %edi
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:
	movl	$6, %esi
	callq	_usb_rcvbulkpipe
	jmp	LBB0_15
LBB0_14:
	movl	$2, %esi
	callq	_usb_sndbulkpipe
LBB0_15:
	movq	8(%r13), %rdi
	movl	40(%r13), %esi
	movq	8(%rbx), %rcx
	movl	(%rcx), %r8d
	movq	_data_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r13, (%rsp)
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_usb_fill_bulk_urb
	movq	8(%r13), %rdi
	movl	$1, (%rdi)
	movq	8(%rbx), %rax
	movq	%rax, 8(%rdi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_16
LBB0_18:
	movq	32(%r13), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_16:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_17:
	movq	16(%r13), %rdi
	callq	_usb_unlink_urb
	movq	8(%r13), %rdi
	callq	_usb_unlink_urb
	movq	(%r15), %rax
	movl	%ebx, 4(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DISCONNECTED,4,2               ## @DISCONNECTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_data_callback,4,2              ## @data_callback
	.no_dead_strip	_ushc_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ushc_request
_ushc_request:                          ; @ushc_request
	.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	x19, x1
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	add	x22, x0, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #64
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _MMC_RSP_136@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MMC_RSP_136@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	tbnz	w23, #31, LBB0_20
; %bb.6:
	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_7:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w9, [x21]
	mov	w10, #36223
	movk	w10, #91, lsl #16
	cmp	w9, w10
	b.le	LBB0_3
LBB0_9:
	str	x19, [x21, #56]
	ldr	w0, [x8, #12]
	bl	_cpu_to_le16
	ldr	x8, [x21, #48]
	str	x0, [x8, #16]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	w0, [x9, #16]
	bl	_cpu_to_le16
	ldr	x8, [x21, #48]
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_cpu_to_le32
	ldr	x8, [x21, #48]
	str	w0, [x8]
	ldr	x0, [x21, #16]
Lloh10:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_19
; %bb.13:
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_18
; %bb.14:
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w0, [x21, #40]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	w1, #6
	bl	_usb_rcvbulkpipe
	b	LBB0_17
LBB0_16:
	mov	w1, #2
	bl	_usb_sndbulkpipe
LBB0_17:
	mov	x2, x0
	ldr	x0, [x21, #8]
	ldr	w1, [x21, #40]
	ldr	x8, [x23, #8]
	ldr	w4, [x8]
Lloh15:
	adrp	x8, _data_callback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _data_callback@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x3, #0
	mov	x6, x21
	bl	_usb_fill_bulk_urb
	ldr	x0, [x21, #8]
	mov	w8, #1
	str	w8, [x0]
	ldr	x8, [x23, #8]
	str	x8, [x0, #8]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_19
LBB0_18:
	ldr	x0, [x21, #32]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	mov	x23, x0
	b	LBB0_5
LBB0_19:
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_20:
	ldr	x0, [x21, #16]
	bl	_usb_unlink_urb
	ldr	x0, [x21, #8]
	bl	_usb_unlink_urb
	ldr	x8, [x19]
	str	w23, [x8, #4]
	mov	x0, x20
	mov	x1, x19
	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
	b	_mmc_request_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DISCONNECTED,4,2               ; @DISCONNECTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_data_callback,4,2              ; @data_callback
	.no_dead_strip	_ushc_request
.subsections_via_symbols
