	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbDeviceRead
_usbDeviceRead:                         ## @usbDeviceRead
	.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, %r14
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	_usbMsgPtr@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movq	_usbMsgFlags@GOTPCREL(%rip), %rax
	movq	_USB_FLG_MSGPTR_IS_ROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_USB_READ_FLASH
	movq	%rax, (%r15,%rbx,8)
	addq	$8, %r13
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_3
LBB0_4:
	movq	%r13, (%r12)
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$4, %r14
	jb	LBB0_11
## %bb.7:
	movq	%r15, %rax
	subq	%r13, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.8:
	movq	%r14, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$12, %rsi
	jae	LBB0_12
## %bb.9:
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_11:
	movq	%r14, %rax
	jmp	LBB0_19
LBB0_12:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r13,%rsi,8), %xmm0
	movups	16(%r13,%rsi,8), %xmm1
	movups	%xmm0, (%r15,%rsi,8)
	movups	%xmm1, 16(%r15,%rsi,8)
	movups	32(%r13,%rsi,8), %xmm0
	movups	48(%r13,%rsi,8), %xmm1
	movups	%xmm0, 32(%r15,%rsi,8)
	movups	%xmm1, 48(%r15,%rsi,8)
	movups	64(%r13,%rsi,8), %xmm0
	movups	80(%r13,%rsi,8), %xmm1
	movups	%xmm0, 64(%r15,%rsi,8)
	movups	%xmm1, 80(%r15,%rsi,8)
	movups	96(%r13,%rsi,8), %xmm0
	movups	112(%r13,%rsi,8), %xmm1
	movups	%xmm0, 96(%r15,%rsi,8)
	movups	%xmm1, 112(%r15,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdx
	jne	LBB0_13
LBB0_14:
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	(%r15,%rsi,8), %rdx
	addq	$16, %rdx
	leaq	16(,%rsi,8), %rsi
	addq	%r13, %rsi
	shlq	$5, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_16
LBB0_17:
	leaq	(%r13,%rcx,8), %r13
	cmpq	%r14, %rcx
	je	LBB0_4
## %bb.18:
	movl	%r14d, %eax
	andl	$3, %eax
	leaq	(%r15,%rcx,8), %r15
LBB0_19:
	leaq	-1(%rax), %rcx
	movq	%rax, %rdx
	andq	$7, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	$8, %r13
	movq	%rsi, (%r15)
	addq	$8, %r15
	decq	%rax
	decq	%rdx
	jne	LBB0_20
LBB0_21:
	cmpq	$7, %rcx
	jb	LBB0_4
## %bb.22:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	movq	%rdx, (%r15,%rcx,8)
	movq	8(%r13), %rdx
	movq	%rdx, 8(%r15,%rcx,8)
	movq	16(%r13), %rdx
	movq	%rdx, 16(%r15,%rcx,8)
	movq	24(%r13), %rdx
	movq	%rdx, 24(%r15,%rcx,8)
	movq	32(%r13), %rdx
	movq	%rdx, 32(%r15,%rcx,8)
	movq	40(%r13), %rdx
	movq	%rdx, 40(%r15,%rcx,8)
	movq	48(%r13), %rdx
	movq	%rdx, 48(%r15,%rcx,8)
	movq	56(%r13), %rdx
	addq	$64, %r13
	movq	%rdx, 56(%r15,%rcx,8)
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_23
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_usbMsgPtr,8,3                  ## @usbMsgPtr
	.comm	_usbMsgFlags,4,2                ## @usbMsgFlags
	.comm	_USB_FLG_MSGPTR_IS_ROM,4,2      ## @USB_FLG_MSGPTR_IS_ROM
	.comm	_USB_FLG_USE_USER_RW,4,2        ## @USB_FLG_USE_USER_RW
	.no_dead_strip	_usbDeviceRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbDeviceRead
_usbDeviceRead:                         ; @usbDeviceRead
	.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
	cmp	x1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _usbMsgPtr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _usbMsgPtr@GOTPAGEOFF]
Lloh2:
	adrp	x8, _usbMsgFlags@GOTPAGE
Lloh3:
	ldr	x8, [x8, _usbMsgFlags@GOTPAGEOFF]
	ldr	x11, [x22]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _USB_FLG_MSGPTR_IS_ROM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_FLG_MSGPTR_IS_ROM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x23, x19
	mov	x20, x11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_USB_READ_FLASH
	str	x0, [x21], #8
	add	x20, x20, #8
	subs	x23, x23, #1
	b.ne	LBB0_3
	b	LBB0_11
LBB0_4:
	cmp	x19, #8
	b.lo	LBB0_9
; %bb.5:
	sub	x8, x21, x11
	cmp	x8, #64
	b.lo	LBB0_9
; %bb.6:
	and	x10, x19, #0xfffffffffffffff8
	and	x8, x19, #0x7
	lsl	x9, x10, #3
	add	x20, x11, x9
	add	x9, x21, x9
	add	x12, x21, #32
	add	x11, x11, #32
	mov	x13, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x19
	b.ne	LBB0_10
	b	LBB0_11
LBB0_9:
	mov	x8, x19
	mov	x20, x11
	mov	x9, x21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20], #8
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	str	x20, [x22]
LBB0_12:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_usbMsgPtr,8,3                  ; @usbMsgPtr
	.comm	_usbMsgFlags,4,2                ; @usbMsgFlags
	.comm	_USB_FLG_MSGPTR_IS_ROM,4,2      ; @USB_FLG_MSGPTR_IS_ROM
	.comm	_USB_FLG_USE_USER_RW,4,2        ; @USB_FLG_USE_USER_RW
	.no_dead_strip	_usbDeviceRead
.subsections_via_symbols
