	.file	"extr_btuinput.c_uinput_rep_mouse.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uinput_rep_mouse
	.type	uinput_rep_mouse, @function
uinput_rep_mouse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	not	rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	shr	rdi, 63
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	mov	r12, QWORD PTR 80[rsp]
	call	assert@PLT
	xor	eax, eax
	call	uinput_get_rcpt_mask@PLT
	and	rax, QWORD PTR EVDEV_RCPT_HW_MOUSE[rip]
	je	.L1
	test	r13, r13
	jne	.L3
.L6:
	test	r15, r15
	jne	.L25
	cmp	QWORD PTR 8[rsp], 0
	jne	.L26
.L8:
	test	r14, r14
	jne	.L27
.L11:
	mov	rdi, QWORD PTR mbuttons[rip]
	xor	r13d, r13d
	mov	r14d, 1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, r14d
	mov	ecx, r13d
	mov	rdx, rbx
	mov	rdi, QWORD PTR mbuttons[rip]
	sal	eax, cl
	xor	rdx, r12
	cdqe
	test	rdx, rax
	je	.L12
	xor	ecx, ecx
	mov	edx, DWORD PTR [rdi+r13*4]
	test	rax, rbx
	mov	esi, DWORD PTR EV_KEY[rip]
	setne	cl
	mov	rdi, rbp
	call	uinput_write_event@PLT
	test	rax, rax
	js	.L9
	mov	rdi, QWORD PTR mbuttons[rip]
.L12:
	add	r13, 1
.L13:
	call	nitems@PLT
	cmp	rax, r13
	ja	.L14
	mov	edx, DWORD PTR SYN_REPORT[rip]
	mov	esi, DWORD PTR EV_SYN[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	uinput_write_event@PLT
	sar	rax, 63
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR REL_X[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	ecx, r13d
	mov	rdi, rbp
	call	uinput_write_event@PLT
	test	rax, rax
	jns	.L6
.L9:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, -1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR REL_WHEEL[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR EV_REL[rip]
	neg	ecx
	call	uinput_write_event@PLT
	test	rax, rax
	js	.L9
	test	r14, r14
	je	.L11
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR REL_Y[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	ecx, r15d
	mov	rdi, rbp
	call	uinput_write_event@PLT
	test	rax, rax
	js	.L9
	cmp	QWORD PTR 8[rsp], 0
	je	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR REL_HWHEEL[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	ecx, r14d
	mov	rdi, rbp
	call	uinput_write_event@PLT
	test	rax, rax
	jns	.L11
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	uinput_rep_mouse, .-uinput_rep_mouse
	.comm	mbuttons,8,8
	.comm	SYN_REPORT,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	REL_WHEEL,4,4
	.comm	REL_HWHEEL,4,4
	.comm	EV_SYN,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EVDEV_RCPT_HW_MOUSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_btuinput.c_uinput_rep_mouse.c"
	.text
	.align	2
	.global	uinput_rep_mouse
	.syntax unified
	.arm
	.fpu softvfp
	.type	uinput_rep_mouse, %function
uinput_rep_mouse:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mvn	r0, r0
	lsr	r0, r0, #31
	mov	r6, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r9, [sp, #36]
	bl	assert
	bl	uinput_get_rcpt_mask
	ldr	ip, .L28
	ldr	ip, [ip]
	ands	r0, r0, ip
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r6, #0
	bne	.L3
.L6:
	cmp	r4, #0
	bne	.L25
	cmp	r5, #0
	bne	.L26
.L8:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	bne	.L27
.L11:
	ldr	r5, .L28+4
	ldr	r3, [sp, #40]
	mov	r4, #0
	mov	r8, #1
	ldr	r10, .L28+8
	ldr	r0, [r5]
	eor	r6, r9, r3
	b	.L13
.L14:
	tst	r6, r3
	ldr	r0, [r5]
	beq	.L12
	tst	r3, r9
	movne	r3, #1
	moveq	r3, #0
	ldr	r2, [r0, r4, lsl #2]
	ldr	r1, [r10]
	mov	r0, r7
	bl	uinput_write_event
	cmp	r0, #0
	blt	.L9
	ldr	r0, [r5]
.L12:
	add	r4, r4, #1
.L13:
	bl	nitems
	cmp	r0, r4
	lsl	r3, r8, r4
	bhi	.L14
	ldr	r3, .L28+12
	ldr	r2, .L28+16
	ldr	r1, [r3]
	mov	r0, r7
	mov	r3, #0
	ldr	r2, [r2]
	bl	uinput_write_event
	asr	r0, r0, #31
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r2, .L28+20
	ldr	r1, .L28+24
	mov	r3, r6
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	uinput_write_event
	cmp	r0, #0
	bge	.L6
.L9:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r2, .L28+28
	ldr	r1, .L28+24
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r1]
	rsb	r3, r5, #0
	bl	uinput_write_event
	cmp	r0, #0
	blt	.L9
	ldr	r3, [sp, #32]
	cmp	r3, #0
	beq	.L11
	b	.L27
.L25:
	ldr	r2, .L28+32
	ldr	r1, .L28+24
	mov	r3, r4
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	uinput_write_event
	cmp	r0, #0
	blt	.L9
	cmp	r5, #0
	beq	.L8
	b	.L26
.L27:
	ldr	r3, .L28+24
	ldr	r2, .L28+36
	ldr	r1, [r3]
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r3, [sp, #32]
	bl	uinput_write_event
	cmp	r0, #0
	bge	.L11
	b	.L9
.L29:
	.align	2
.L28:
	.word	EVDEV_RCPT_HW_MOUSE
	.word	mbuttons
	.word	EV_KEY
	.word	EV_SYN
	.word	SYN_REPORT
	.word	REL_X
	.word	EV_REL
	.word	REL_WHEEL
	.word	REL_Y
	.word	REL_HWHEEL
	.size	uinput_rep_mouse, .-uinput_rep_mouse
	.comm	mbuttons,4,4
	.comm	SYN_REPORT,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	REL_WHEEL,4,4
	.comm	REL_HWHEEL,4,4
	.comm	EV_SYN,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EVDEV_RCPT_HW_MOUSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
