	.file	"extr_hid-a4tech.c_a4_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	a4_event, @function
a4_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	hid_get_drvdata@PLT
	mov	r14, rax
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR HID_CLAIMED_INPUT[rip]
	je	.L1
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L8
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR A4_2WHEEL_MOUSE_HACK_B8[rip], eax
	jne	.L24
.L3:
	test	DWORD PTR A4_2WHEEL_MOUSE_HACK_7[rip], eax
	je	.L7
	cmp	DWORD PTR 16[rbp], 589831
	je	.L25
.L7:
	mov	rbx, QWORD PTR REL_WHEEL_HI_RES[rip]
	xor	eax, eax
	cmp	QWORD PTR 8[rbp], rbx
	je	.L26
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rsi, QWORD PTR EV_REL[rip]
	cmp	QWORD PTR 0[rbp], rsi
	je	.L27
.L4:
	mov	edx, DWORD PTR A4_WHEEL_ORIENTATION[rip]
	cmp	DWORD PTR 16[rbp], edx
	jne	.L3
	mov	ecx, DWORD PTR 4[r14]
	test	r13d, r13d
	jne	.L28
	mov	rdx, QWORD PTR REL_WHEEL[rip]
	mov	rdi, r12
	call	input_event@PLT
	imul	ecx, DWORD PTR 4[r14], 120
	mov	rdx, QWORD PTR REL_WHEEL_HI_RES[rip]
.L6:
	mov	rsi, QWORD PTR EV_REL[rip]
	mov	rdi, r12
	call	input_event@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR 8[r14]
	test	eax, eax
	je	.L1
	mov	rdx, QWORD PTR REL_HWHEEL[rip]
	mov	rsi, QWORD PTR 0[rbp]
	mov	ecx, r13d
	mov	rdi, r12
	call	input_event@PLT
	imul	ecx, r13d, 120
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	mov	rdx, QWORD PTR REL_HWHEEL_HI_RES[rip]
	call	input_event@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rcx, QWORD PTR REL_WHEEL_HI_RES[rip]
	cmp	QWORD PTR 8[rbp], rcx
	jne	.L4
	mov	DWORD PTR 4[r14], r13d
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xor	eax, eax
	test	r13d, r13d
	setne	al
	mov	DWORD PTR 8[r14], eax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdx, QWORD PTR REL_HWHEEL[rip]
	mov	rdi, r12
	call	input_event@PLT
	imul	ecx, DWORD PTR 4[r14], 120
	mov	rdx, QWORD PTR REL_HWHEEL_HI_RES[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	a4_event, .-a4_event
	.comm	REL_WHEEL_HI_RES,8,8
	.comm	REL_WHEEL,8,8
	.comm	REL_HWHEEL_HI_RES,8,8
	.comm	REL_HWHEEL,8,8
	.comm	HID_CLAIMED_INPUT,4,4
	.comm	EV_REL,8,8
	.comm	A4_WHEEL_ORIENTATION,4,4
	.comm	A4_2WHEEL_MOUSE_HACK_B8,4,4
	.comm	A4_2WHEEL_MOUSE_HACK_7,4,4
	.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_hid-a4tech.c_a4_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	a4_event, %function
a4_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, r2
	mov	r6, r3
	mov	r7, r1
	bl	hid_get_drvdata
	ldr	r3, .L29
	ldr	ip, [r5]
	ldr	r2, [r3]
	mov	r5, r0
	ands	r0, ip, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	ip, [r7]
	cmp	ip, #0
	beq	.L9
	ldr	r2, .L29+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r7, [ip]
	tst	r3, r2
	bne	.L24
.L3:
	ldr	r2, .L29+8
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L7
	ldr	r3, .L29+12
	ldr	r2, [r4, #8]
	cmp	r2, r3
	beq	.L25
.L7:
	ldr	r3, .L29+16
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L26
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r8, .L29+20
	ldr	r2, [r4]
	ldr	r1, [r8]
	cmp	r2, r1
	beq	.L27
.L4:
	ldr	r2, .L29+24
	ldr	r0, [r4, #8]
	ldr	r2, [r2]
	cmp	r0, r2
	bne	.L3
	cmp	r6, #0
	ldr	r3, [r5, #4]
	bne	.L28
	ldr	r2, .L29+28
	mov	r0, r7
	ldr	r2, [r2]
	bl	input_event
	ldr	r3, .L29+16
	ldr	r1, [r8]
	ldr	r2, [r3]
.L6:
	ldr	r3, [r5, #4]
	mov	r0, r7
	rsb	r3, r3, r3, lsl #4
	lsl	r3, r3, #3
	bl	input_event
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r2, .L29+16
	ldr	r0, [r4, #4]
	ldr	r2, [r2]
	cmp	r0, r2
	bne	.L4
	mov	r0, #1
	str	r6, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r0, [r5, #8]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L29+32
	mov	r3, r6
	ldr	r1, [r4]
	mov	r0, r7
	ldr	r2, [r2]
	bl	input_event
	ldr	r2, .L29+36
	rsb	r6, r6, r6, lsl #4
	mov	r0, r7
	ldr	r1, [r4]
	ldr	r2, [r2]
	lsl	r3, r6, #3
	bl	input_event
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	subs	r6, r6, #0
	movne	r6, #1
	mov	r0, #1
	str	r6, [r5, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	ldr	r2, .L29+32
	mov	r0, r7
	ldr	r2, [r2]
	bl	input_event
	ldr	r3, .L29+36
	ldr	r1, [r8]
	ldr	r2, [r3]
	b	.L6
.L30:
	.align	2
.L29:
	.word	HID_CLAIMED_INPUT
	.word	A4_2WHEEL_MOUSE_HACK_B8
	.word	A4_2WHEEL_MOUSE_HACK_7
	.word	589831
	.word	REL_WHEEL_HI_RES
	.word	EV_REL
	.word	A4_WHEEL_ORIENTATION
	.word	REL_WHEEL
	.word	REL_HWHEEL
	.word	REL_HWHEEL_HI_RES
	.size	a4_event, .-a4_event
	.comm	REL_WHEEL_HI_RES,4,4
	.comm	REL_WHEEL,4,4
	.comm	REL_HWHEEL_HI_RES,4,4
	.comm	REL_HWHEEL,4,4
	.comm	HID_CLAIMED_INPUT,4,4
	.comm	EV_REL,4,4
	.comm	A4_WHEEL_ORIENTATION,4,4
	.comm	A4_2WHEEL_MOUSE_HACK_B8,4,4
	.comm	A4_2WHEEL_MOUSE_HACK_7,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
