	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _usb_read_sync
__usb_read_sync:                        ## @_usb_read_sync
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	callq	_to_usb_device
	movq	%rax, %r12
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	16(%rbx), %r14
	incq	%rax
	movq	%rax, (%rbx)
	movq	_RTL_USB_MAX_RX_COUNT@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	cmovlq	%rax, %r15
	movq	%r15, (%rbx)
	leaq	(%r14,%r15,4), %rbx
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_REALTEK_USB_VENQT_CMD_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REALTEK_USB_VENQT_CMD_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	__usbctrl_vendorreq_sync_read
	movl	(%r14,%r15,4), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le32_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_USB_MAX_RX_COUNT,8,3       ## @RTL_USB_MAX_RX_COUNT
	.comm	_REALTEK_USB_VENQT_CMD_REQ,4,2  ## @REALTEK_USB_VENQT_CMD_REQ
	.comm	_REALTEK_USB_VENQT_CMD_IDX,8,3  ## @REALTEK_USB_VENQT_CMD_IDX
	.no_dead_strip	__usb_read_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _usb_read_sync
__usb_read_sync:                        ; @_usb_read_sync
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0, #24]
	bl	_to_usb_device
	mov	x22, x0
	add	x23, x21, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
Lloh0:
	adrp	x10, _RTL_USB_MAX_RX_COUNT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RTL_USB_MAX_RX_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, ge
	str	x8, [x21]
	ldr	x9, [x21, #16]
	add	x21, x9, x8, lsl #2
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _REALTEK_USB_VENQT_CMD_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REALTEK_USB_VENQT_CMD_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REALTEK_USB_VENQT_CMD_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REALTEK_USB_VENQT_CMD_IDX@GOTPAGEOFF]
Lloh8:
	ldr	x3, [x8]
	mov	x0, x22
	mov	x2, x20
	mov	x4, x21
	mov	x5, x19
	bl	__usbctrl_vendorreq_sync_read
	ldr	w0, [x21]
	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	_le32_to_cpu
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_USB_MAX_RX_COUNT,8,3       ; @RTL_USB_MAX_RX_COUNT
	.comm	_REALTEK_USB_VENQT_CMD_REQ,4,2  ; @REALTEK_USB_VENQT_CMD_REQ
	.comm	_REALTEK_USB_VENQT_CMD_IDX,8,3  ; @REALTEK_USB_VENQT_CMD_IDX
	.no_dead_strip	__usb_read_sync
.subsections_via_symbols
