	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __command_read_data
___command_read_data:                   ## @__command_read_data
	.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, %r14
	movl	(%rdi), %r15d
	leal	511(%r15), %eax
	andl	$-512, %eax                     ## imm = 0xFE00
	leal	63(%r15), %ebx
	andl	$-64, %ebx
	cmpq	$0, 40(%rdi)
	movq	%rdx, %r12
	cmovnel	%eax, %ebx
	cmpl	%r15d, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	movq	_pad_input_to_usb_pkt@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r13
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_usb_rcvbulkpipe
	movl	$0, -52(%rbp)
	leal	16383(%rbx), %r9d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r9d
	sarl	$14, %r9d
	addl	$2000, %r9d                     ## imm = 0x7D0
	leaq	-52(%rbp), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_vub300_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	cmpl	%r15d, -52(%rbp)
	jge	LBB0_13
## %bb.5:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	$0, (%rdx)
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_6:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_usb_rcvbulkpipe
	leaq	16(%r14), %rdi
	movl	8(%r14), %esi
	movl	4(%r12), %r9d
	movl	8(%r12), %r8d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%r12, %r13
	xorl	%r12d, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %edx
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	$0
	callq	_usb_sg_init
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leal	16383(%r15), %edi
	testl	%r15d, %r15d
	cmovnsl	%r15d, %edi
	sarl	$14, %edi
	addl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	leaq	24(%r14), %rbx
	movq	%rax, 24(%r14)
	movq	%rbx, %rdi
	callq	_add_timer
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_sg_wait
	movq	%rbx, %rdi
	callq	_del_timer
	movq	16(%r14), %rax
	testq	%rax, %rax
	js	LBB0_12
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	$0, (%rdx)
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %ebx
	movl	36(%r14), %edi
	callq	_usb_unlink_urb
	movl	32(%r14), %edi
	callq	_usb_unlink_urb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$0, (%r13)
	jmp	LBB0_15
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$0, (%r12)
	movq	%r13, %rdi
	callq	_kfree
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$0, (%r13)
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_13:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_sg_copy_from_buffer
	movq	%r13, %rdi
	callq	_kfree
	movl	(%r14), %eax
	movl	%eax, (%r12)
LBB0_14:
	movl	%r15d, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pad_input_to_usb_pkt,4,2       ## @pad_input_to_usb_pkt
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___command_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __command_read_data
___command_read_data:                   ; @__command_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #40]
	add	w9, w20, #511
	and	w9, w9, #0xfffffe00
	add	w10, w20, #63
	and	w10, w10, #0xffffffc0
	cmp	x8, #0
	csel	w24, w10, w9, eq
Lloh0:
	adrp	x8, _pad_input_to_usb_pkt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pad_input_to_usb_pkt@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w20
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldp	w1, w0, [x22, #4]
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	add	x23, x22, #16
	ldr	w1, [x22, #8]
	ldp	w5, w4, [x19, #4]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w7, [x8]
	mov	x0, x23
	mov	w3, #0
	mov	w6, #0
	bl	_usb_sg_init
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
	mov	w8, #16383
	add	w8, w20, w8
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w8, w8, #14
	add	w0, w8, #2000
	bl	_msecs_to_jiffies
	add	x8, x0, x24
	mov	x24, x22
	str	x8, [x24, #24]!
	mov	x0, x24
	bl	_add_timer
	mov	x0, x23
	bl	_usb_sg_wait
	mov	x0, x24
	bl	_del_timer
	ldur	x8, [x24, #-8]
	tbz	x8, #63, LBB0_14
; %bb.3:
	mov	w20, #0
	str	w8, [x21]
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	ldp	w1, w0, [x22, #4]
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	str	wzr, [sp, #12]
	mov	w8, #16383
	add	w8, w24, w8
	cmp	w24, #0
	csel	w8, w8, w24, lt
	asr	w8, w8, #14
	add	w5, w8, #2000
	add	x4, sp, #12
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	bl	_vub300_usb_bulk_msg
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ge	LBB0_13
; %bb.7:
Lloh12:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
	b	LBB0_12
LBB0_8:
	mov	x24, x0
	ldr	w0, [x22, #36]
	bl	_usb_unlink_urb
	ldr	w0, [x22, #32]
	bl	_usb_unlink_urb
	mov	w20, #0
	str	w24, [x21]
	b	LBB0_10
LBB0_9:
	mov	w20, #0
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
LBB0_10:
	str	wzr, [x19]
	b	LBB0_15
LBB0_11:
	str	w0, [x21]
LBB0_12:
	str	wzr, [x19]
	mov	x0, x23
	bl	_kfree
	mov	w20, #0
	b	LBB0_15
LBB0_13:
	ldp	w1, w0, [x19, #4]
	mov	x2, x23
	mov	x3, x20
	bl	_sg_copy_from_buffer
	mov	x0, x23
	bl	_kfree
LBB0_14:
	ldr	w8, [x22]
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_pad_input_to_usb_pkt,4,2       ; @pad_input_to_usb_pkt
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___command_read_data
.subsections_via_symbols
