	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_mouse               ## -- Begin function uinput_rep_mouse
	.p2align	4, 0x90
_uinput_rep_mouse:                      ## @uinput_rep_mouse
	.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	%r9, %r14
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_uinput_get_rcpt_mask
	movq	_EVDEV_RCPT_HW_MOUSE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_20
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_uinput_write_event
	testq	%rax, %rax
	js	LBB0_19
LBB0_3:
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	callq	_uinput_write_event
	testq	%rax, %rax
	js	LBB0_19
LBB0_5:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	negl	%ecx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_uinput_write_event
	testq	%rax, %rax
	js	LBB0_19
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_uinput_write_event
	testq	%rax, %rax
	js	LBB0_19
LBB0_9:
	movq	_mbuttons@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	16(%rbp), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_nitems
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	andq	%r14, %rax
	andq	%r13, %rcx
	cmpq	%rcx, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%r15, %rdi
	callq	_uinput_write_event
	testq	%rax, %rax
	jns	LBB0_11
LBB0_19:
	movq	$-1, %r12
	jmp	LBB0_20
LBB0_15:
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYN_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_uinput_write_event
	movq	%rax, %r12
	sarq	$63, %r12
LBB0_20:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDEV_RCPT_HW_MOUSE,8,3        ## @EVDEV_RCPT_HW_MOUSE
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_mbuttons,8,3                   ## @mbuttons
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_SYN_REPORT,4,2                 ## @SYN_REPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_mouse               ; -- Begin function uinput_rep_mouse
	.p2align	2
_uinput_rep_mouse:                      ; @uinput_rep_mouse
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	bl	_uinput_get_rcpt_mask
Lloh0:
	adrp	x8, _EVDEV_RCPT_HW_MOUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVDEV_RCPT_HW_MOUSE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_15
; %bb.1:
Lloh3:
	adrp	x26, _EV_REL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _EV_REL@GOTPAGEOFF]
	cbz	x25, LBB0_3
; %bb.2:
	ldr	w1, [x26]
Lloh5:
	adrp	x8, _REL_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x25
	bl	_uinput_write_event
	tbnz	x0, #63, LBB0_14
LBB0_3:
	cbz	x24, LBB0_5
; %bb.4:
	ldr	w1, [x26]
Lloh8:
	adrp	x8, _REL_Y@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x24
	bl	_uinput_write_event
	tbnz	x0, #63, LBB0_14
LBB0_5:
	cbz	x23, LBB0_7
; %bb.6:
	ldr	w1, [x26]
Lloh11:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	neg	w3, w23
	mov	x0, x19
	bl	_uinput_write_event
	tbnz	x0, #63, LBB0_14
LBB0_7:
	cbz	x22, LBB0_9
; %bb.8:
	ldr	w1, [x26]
Lloh14:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_uinput_write_event
	tbnz	x0, #63, LBB0_14
LBB0_9:
Lloh17:
	adrp	x22, _mbuttons@GOTPAGE
Lloh18:
	ldr	x22, [x22, _mbuttons@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_nitems
	cbz	x0, LBB0_16
; %bb.10:
	mov	x23, #0
	mov	w24, #1
Lloh19:
	adrp	x25, _EV_KEY@GOTPAGE
Lloh20:
	ldr	x25, [x25, _EV_KEY@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_nitems
	cmp	x23, x0
	b.hs	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, w23
	sxtw	x9, w8
	and	x8, x9, x21
	and	x9, x9, x20
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x25]
	ldr	x9, [x22]
	ldr	w2, [x9, x23, lsl #2]
	cmp	x8, #0
	cset	w3, ne
	mov	x0, x19
	bl	_uinput_write_event
	tbz	x0, #63, LBB0_11
LBB0_14:
	mov	x0, #-1
	b	LBB0_17
LBB0_15:
	mov	x0, #0
	b	LBB0_17
LBB0_16:
Lloh21:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _SYN_REPORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYN_REPORT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_uinput_write_event
	asr	x0, x0, #63
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDEV_RCPT_HW_MOUSE,8,3        ; @EVDEV_RCPT_HW_MOUSE
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_mbuttons,8,3                   ; @mbuttons
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_SYN_REPORT,4,2                 ; @SYN_REPORT
.subsections_via_symbols
