	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbPoll                        ## -- Begin function usbPoll
	.p2align	4, 0x90
_usbPoll:                               ## @usbPoll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_usbRxLen@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	cmpq	$3, %rsi
	jl	LBB0_2
## %bb.1:
	addq	$-3, %rsi
	movq	_usbRxBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_USB_BUFSIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_usbInputBufOffset@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	incq	%rdi
	callq	_usbProcessRx
	movq	$0, (%rbx)
LBB0_2:
	movq	_usbTxLen@GOTPCREL(%rip), %rax
	testb	$16, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_usbMsgLen@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_USB_NO_MSG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_usbBuildTxBlock
LBB0_5:
	movq	_USBIN@GOTPCREL(%rip), %rax
	movq	_USBMASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$20, %ebx
	testq	%rcx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_usbNewDeviceAddr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_usbDeviceAddr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_usbResetStall
	movl	$255, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_DBG1
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_usbHandleResetHook             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_usbRxLen,8,3                   ## @usbRxLen
	.comm	_usbRxBuf,8,3                   ## @usbRxBuf
	.comm	_USB_BUFSIZE,8,3                ## @USB_BUFSIZE
	.comm	_usbInputBufOffset,8,3          ## @usbInputBufOffset
	.comm	_usbTxLen,4,2                   ## @usbTxLen
	.comm	_usbMsgLen,8,3                  ## @usbMsgLen
	.comm	_USB_NO_MSG,8,3                 ## @USB_NO_MSG
	.comm	_USBIN,8,3                      ## @USBIN
	.comm	_USBMASK,8,3                    ## @USBMASK
	.comm	_usbNewDeviceAddr,8,3           ## @usbNewDeviceAddr
	.comm	_usbDeviceAddr,8,3              ## @usbDeviceAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbPoll                        ; -- Begin function usbPoll
	.p2align	2
_usbPoll:                               ; @usbPoll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _usbRxLen@GOTPAGE
Lloh1:
	ldr	x19, [x19, _usbRxLen@GOTPAGEOFF]
	ldr	x8, [x19]
	subs	x1, x8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _usbRxBuf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _usbRxBuf@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _USB_BUFSIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_BUFSIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _usbInputBufOffset@GOTPAGE
Lloh9:
	ldr	x10, [x10, _usbInputBufOffset@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x8, x8, x9
	sub	x8, x8, x10
	add	x0, x8, #1
	bl	_usbProcessRx
	str	xzr, [x19]
LBB0_2:
Lloh11:
	adrp	x8, _usbTxLen@GOTPAGE
Lloh12:
	ldr	x8, [x8, _usbTxLen@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbz	w8, #4, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _usbMsgLen@GOTPAGE
Lloh14:
	ldr	x8, [x8, _usbMsgLen@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _USB_NO_MSG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _USB_NO_MSG@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	bl	_usbBuildTxBlock
LBB0_5:
Lloh19:
	adrp	x8, _USBIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USBIN@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _USBMASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _USBMASK@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #20
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _usbNewDeviceAddr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _usbNewDeviceAddr@GOTPAGEOFF]
Lloh27:
	str	xzr, [x8]
Lloh28:
	adrp	x8, _usbDeviceAddr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _usbDeviceAddr@GOTPAGEOFF]
Lloh30:
	str	xzr, [x8]
	bl	_usbResetStall
	mov	w0, #255
	mov	w1, #0
	mov	w2, #0
	bl	_DBG1
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usbHandleResetHook
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_usbRxLen,8,3                   ; @usbRxLen
	.comm	_usbRxBuf,8,3                   ; @usbRxBuf
	.comm	_USB_BUFSIZE,8,3                ; @USB_BUFSIZE
	.comm	_usbInputBufOffset,8,3          ; @usbInputBufOffset
	.comm	_usbTxLen,4,2                   ; @usbTxLen
	.comm	_usbMsgLen,8,3                  ; @usbMsgLen
	.comm	_USB_NO_MSG,8,3                 ; @USB_NO_MSG
	.comm	_USBIN,8,3                      ; @USBIN
	.comm	_USBMASK,8,3                    ; @USBMASK
	.comm	_usbNewDeviceAddr,8,3           ; @usbNewDeviceAddr
	.comm	_usbDeviceAddr,8,3              ; @usbDeviceAddr
.subsections_via_symbols
