	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_mouse_send                 ## -- Begin function usb_mouse_send
	.p2align	4, 0x90
_usb_mouse_send:                        ## @usb_mouse_send
	.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
	movl	%ecx, %r14d
	movl	%esi, %ebx
	xorl	%eax, %eax
	callq	_usb_configured
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$-128, %ebx
	movl	$-127, %eax
	cmovel	%eax, %ebx
	cmpl	$-128, %r14d
	cmovel	%eax, %r14d
	movq	_SREG@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_cli
	movq	_MOUSE_ENDPOINT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	_UENUM@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movq	_UEINTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RWAL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ecx
	btl	%ecx, %eax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jae	LBB0_4
## %bb.2:
	movq	%r12, %r14
	jmp	LBB0_8
LBB0_4:
	movq	_UDFNUML@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$50, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rbx
	movq	%rdx, %r12
	movq	%r15, (%r14)
	xorl	%eax, %eax
	callq	_usb_configured
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_UDFNUML@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %r15
	xorl	%eax, %eax
	callq	_cli
	movq	%r12, %rdx
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movq	_UEINTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	(%rbx), %ecx
	btl	%ecx, %eax
	jae	LBB0_5
LBB0_8:
	movq	_usb_mouse_protocol@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmovel	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	_UEDATX@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_UEINTX@GOTPCREL(%rip), %rax
	movl	$58, (%rax)
	movq	%r15, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$-1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SREG,8,3                       ## @SREG
	.comm	_MOUSE_ENDPOINT,4,2             ## @MOUSE_ENDPOINT
	.comm	_UENUM,4,2                      ## @UENUM
	.comm	_UDFNUML,8,3                    ## @UDFNUML
	.comm	_UEINTX,4,2                     ## @UEINTX
	.comm	_RWAL,4,2                       ## @RWAL
	.comm	_UEDATX,4,2                     ## @UEDATX
	.comm	_usb_mouse_protocol,8,3         ## @usb_mouse_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_mouse_send                 ; -- Begin function usb_mouse_send
	.p2align	2
_usb_mouse_send:                        ; @usb_mouse_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x1
	bl	_usb_configured
	cbz	w0, LBB0_7
; %bb.1:
	cmn	w20, #128
	mov	w8, #-127
	csel	w20, w8, w20, eq
	cmn	w19, #128
	csel	w21, w8, w19, eq
Lloh0:
	adrp	x19, _SREG@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SREG@GOTPAGEOFF]
	ldr	x23, [x19]
	bl	_cli
Lloh2:
	adrp	x24, _MOUSE_ENDPOINT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MOUSE_ENDPOINT@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh4:
	adrp	x25, _UENUM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _UENUM@GOTPAGEOFF]
Lloh6:
	adrp	x22, _UEINTX@GOTPAGE
Lloh7:
	ldr	x22, [x22, _UEINTX@GOTPAGEOFF]
	str	w8, [x25]
	ldr	w8, [x22]
Lloh8:
	adrp	x26, _RWAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RWAL@GOTPAGEOFF]
	ldr	w9, [x26]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_6
; %bb.2:
Lloh10:
	adrp	x27, _UDFNUML@GOTPAGE
Lloh11:
	ldr	x27, [x27, _UDFNUML@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x28, x8, #50
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [x19]
	bl	_usb_configured
	mov	x8, x0
	mov	w0, #-1
	cbz	w8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	cmp	x8, x28
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x19]
	bl	_cli
	ldr	w8, [x24]
	str	w8, [x25]
	ldr	w8, [x22]
	ldr	w9, [x26]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_3
LBB0_6:
	mov	w0, #0
Lloh12:
	adrp	x8, _usb_mouse_protocol@GOTPAGE
Lloh13:
	ldr	x8, [x8, _usb_mouse_protocol@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w8, w20, w21, eq
Lloh15:
	adrp	x9, _UEDATX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UEDATX@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	mov	w8, #58
	str	w8, [x22]
	str	x23, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SREG,8,3                       ; @SREG
	.comm	_MOUSE_ENDPOINT,4,2             ; @MOUSE_ENDPOINT
	.comm	_UENUM,4,2                      ; @UENUM
	.comm	_UDFNUML,8,3                    ; @UDFNUML
	.comm	_UEINTX,4,2                     ; @UEINTX
	.comm	_RWAL,4,2                       ; @RWAL
	.comm	_UEDATX,4,2                     ; @UEDATX
	.comm	_usb_mouse_protocol,8,3         ; @usb_mouse_protocol
.subsections_via_symbols
