	.file	"extr_wacom_wac.c_wacom_wac_pad_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wacom_wac_pad_event, @function
wacom_wac_pad_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	hid_get_drvdata@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r15, QWORD PTR 40[rax]
	mov	rbx, rax
	call	wacom_equivalent_usage@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, eax
	test	esi, esi
	jne	.L2
	cmp	eax, 132
	je	.L2
.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r14]
	mov	DWORD PTR 12[rsp], edx
	call	wacom_equivalent_usage@PLT
	cmp	eax, DWORD PTR HID_DG_TABLETFUNCTIONKEY[rip]
	mov	edx, DWORD PTR 12[rsp]
	je	.L48
.L4:
	lea	eax, -128[rdx]
	cmp	eax, 5
	ja	.L5
	lea	rcx, .L7[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L48:
	cmp	QWORD PTR 0[rbp], 129
	je	.L4
	or	DWORD PTR 12[rbx], r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	DWORD PTR 0[r13], 1386
	jne	.L13
	mov	eax, DWORD PTR 4[r13]
	lea	edx, -855[rax]
	cmp	edx, 1
	setbe	cl
	cmp	eax, 914
	sete	dl
	or	ecx, edx
	lea	edx, -845[rax]
	cmp	edx, 1
	setbe	dl
	sub	eax, 920
	cmp	eax, 1
	setbe	al
	or	dl, al
	jne	.L22
	test	cl, cl
	je	.L13
.L22:
	mov	edx, DWORD PTR 8[r14]
	sub	edx, r12d
	test	cl, cl
	jne	.L49
	mov	r8d, 2
	mov	ecx, 1
	mov	rsi, rbp
	mov	rdi, r15
	call	wacom_offset_rotation@PLT
	mov	r12d, eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	ecx, r12d
	mov	rdi, r15
	call	input_event@PLT
	test	r12d, r12d
	je	.L1
	mov	DWORD PTR 16[rbx], 1
	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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 4[rax]
	test	edi, edi
	je	.L1
	cmp	edx, 131
	jne	.L17
	test	r12d, r12d
	je	.L17
	mov	edx, DWORD PTR [rax]
	xor	r12d, r12d
	test	edx, edx
	sete	r12b
	mov	DWORD PTR [rax], r12d
.L18:
	xor	edx, edx
	mov	esi, DWORD PTR SW_MUTE_DEVICE[rip]
	test	r12d, r12d
	sete	dl
	call	input_report_switch@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 4[rax]
	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
	jmp	input_sync@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	xor	r13d, r13d
	test	ecx, ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 32[rbx]
	mov	ecx, r13d
	mov	edx, r12d
	mov	rdi, rbx
	add	r13d, 1
	call	wacom_update_led@PLT
	cmp	DWORD PTR [rbx], r13d
	jg	.L12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	test	r12d, r12d
	jne	.L1
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	xor	ecx, ecx
	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
	jmp	input_event@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	DWORD PTR 8[rbx], r12d
	je	.L1
	mov	DWORD PTR 8[rbx], r12d
	mov	esi, DWORD PTR WACOM_WORKER_MODE_CHANGE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, 8[rbx]
	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
	jmp	wacom_schedule_work@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, r12d
	mov	r8d, 4
	mov	rsi, rbp
	mov	rdi, r15
	mov	ecx, 1
	call	wacom_offset_rotation@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L49:
	mov	r8d, 16
	mov	ecx, 3
	mov	rsi, rbp
	mov	rdi, r15
	call	wacom_offset_rotation@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	edx, 130
	je	.L19
	mov	r12d, DWORD PTR [rax]
	jmp	.L18
.L19:
	mov	DWORD PTR [rax], r12d
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	wacom_wac_pad_event, .-wacom_wac_pad_event
	.comm	WACOM_WORKER_MODE_CHANGE,4,4
	.comm	SW_MUTE_DEVICE,4,4
	.comm	HID_DG_TABLETFUNCTIONKEY,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_wacom_wac.c_wacom_wac_pad_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wacom_wac_pad_event, %function
wacom_wac_pad_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	mov	r5, r2
	mov	r6, r3
	mov	r8, r1
	mov	r9, r0
	bl	hid_get_drvdata
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r10, [r4, #24]
	bl	wacom_equivalent_usage
	ldr	r2, [r5, #8]
	subs	r3, r0, #132
	movne	r3, #1
	cmp	r2, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L1
	mov	r7, r0
	ldr	r0, [r8]
	bl	wacom_equivalent_usage
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L37
.L4:
	sub	r3, r7, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L9
	.word	.L8
	.word	.L6
.L13:
	mov	r3, #4
	mov	r2, r6
.L35:
	str	r3, [sp]
	mov	r1, r5
	mov	r3, #1
	mov	r0, r10
	bl	wacom_offset_rotation
	mov	r6, r0
.L5:
	mov	r3, r6
	mov	r0, r10
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	bl	input_event
	cmp	r6, #0
	movne	r3, #1
	strne	r3, [r4, #12]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L37:
	ldr	r3, [r5]
	cmp	r3, #129
	ldrne	r3, [r4, #8]
	orrne	r3, r3, r6
	strne	r3, [r4, #8]
	b	.L4
.L9:
	ldr	r1, [r4, #16]
	ldr	r0, [r1, #4]
	cmp	r0, #0
	beq	.L1
	sub	r3, r7, #131
	clz	r3, r3
	cmp	r6, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bne	.L38
	cmp	r7, #130
	ldrne	r6, [r1]
	streq	r6, [r1]
.L17:
	clz	r2, r6
	ldr	r3, .L39+4
	lsr	r2, r2, #5
	ldr	r1, [r3]
	bl	input_report_switch
	ldr	r3, [r4, #16]
	ldr	r0, [r3, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	input_sync
.L11:
	cmp	r6, #0
	bne	.L1
	mov	r3, r6
	mov	r0, r10
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	input_event
.L8:
	ldr	r3, [r4, #4]
	cmp	r3, r6
	beq	.L1
	mov	r0, r4
	ldr	r3, .L39+8
	str	r6, [r0, #4]!
	ldr	r1, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	wacom_schedule_work
.L6:
	ldr	r3, [r4]
	cmp	r3, #0
	movgt	r7, #0
	ble	.L5
.L12:
	mov	r3, r7
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r4, #20]
	bl	wacom_update_led
	ldr	r3, [r4]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L12
	b	.L5
.L10:
	ldr	r3, .L39+12
	ldr	r2, [r9]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [r9, #4]
	ldr	r0, .L39+16
	sub	r2, r3, #852
	sub	r2, r2, #3
	cmp	r3, r0
	cmpne	r2, #1
	sub	r1, r3, #844
	sub	r1, r1, #1
	sub	r3, r3, #920
	movls	r2, #1
	movhi	r2, #0
	cmp	r3, #1
	cmphi	r1, #1
	movls	r3, #1
	movhi	r3, #0
	orrs	r3, r2, r3
	beq	.L13
	ldr	r3, [r8, #4]
	cmp	r2, #0
	sub	r2, r3, r6
	moveq	r3, #2
	beq	.L35
	mov	r3, #16
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r10
	mov	r3, #3
	bl	wacom_offset_rotation
	mov	r6, r0
	b	.L5
.L38:
	ldr	r6, [r1]
	clz	r6, r6
	lsr	r6, r6, #5
	str	r6, [r1]
	b	.L17
.L40:
	.align	2
.L39:
	.word	HID_DG_TABLETFUNCTIONKEY
	.word	SW_MUTE_DEVICE
	.word	WACOM_WORKER_MODE_CHANGE
	.word	1386
	.word	914
	.size	wacom_wac_pad_event, .-wacom_wac_pad_event
	.comm	WACOM_WORKER_MODE_CHANGE,4,4
	.comm	SW_MUTE_DEVICE,4,4
	.comm	HID_DG_TABLETFUNCTIONKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
