	.file	"extr_touchright.c_tr_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tr_interrupt, @function
tr_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	serio_get_drvdata@PLT
	mov	r12, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rax]
	mov	BYTE PTR [rdx+rax], bpl
	mov	rcx, QWORD PTR [rbx]
	movzx	eax, BYTE PTR [rcx]
	and	eax, DWORD PTR TR_FORMAT_STATUS_MASK[rip]
	cmp	eax, DWORD PTR TR_FORMAT_STATUS_BYTE[rip]
	je	.L7
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	add	rax, 1
	cmp	rax, QWORD PTR TR_LENGTH[rip]
	mov	QWORD PTR 8[rbx], rax
	jne	.L3
	movzx	eax, BYTE PTR 2[rcx]
	movzx	edx, BYTE PTR 1[rcx]
	mov	rdi, r12
	mov	esi, DWORD PTR ABS_X[rip]
	shr	al
	sal	edx, 5
	movzx	eax, al
	or	edx, eax
	call	input_report_abs@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR ABS_Y[rip]
	mov	rdi, r12
	movzx	edx, BYTE PTR 3[rax]
	movzx	eax, BYTE PTR 4[rax]
	shr	al
	sal	edx, 5
	movzx	eax, al
	or	edx, eax
	call	input_report_abs@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	mov	rdi, r12
	movzx	edx, BYTE PTR [rax]
	and	edx, DWORD PTR TR_FORMAT_TOUCH_BIT[rip]
	call	input_report_key@PLT
	mov	rdi, r12
	call	input_sync@PLT
	mov	QWORD PTR 8[rbx], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tr_interrupt, .-tr_interrupt
	.comm	TR_LENGTH,8,8
	.comm	TR_FORMAT_TOUCH_BIT,4,4
	.comm	TR_FORMAT_STATUS_MASK,4,4
	.comm	TR_FORMAT_STATUS_BYTE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BTN_TOUCH,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,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_touchright.c_tr_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tr_interrupt, %function
tr_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	bl	serio_get_drvdata
	ldm	r0, {r2, r3, r6}
	strb	r5, [r2, r3]
	ldr	r1, [r0]
	mov	r4, r0
	ldr	r0, .L8
	ldr	r2, .L8+4
	ldrb	r3, [r1]	@ zero_extendqisi2
	ldr	r0, [r0]
	ldr	r2, [r2]
	and	r3, r3, r0
	cmp	r3, r2
	beq	.L7
.L3:
	ldr	r3, .L8+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r2, .L8+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r4, #4]
	bne	.L3
	ldrb	r3, [r1, #2]	@ zero_extendqisi2
	ldrb	r2, [r1, #1]	@ zero_extendqisi2
	ldr	r1, .L8+16
	lsr	r3, r3, #1
	orr	r2, r3, r2, lsl #5
	ldr	r1, [r1]
	mov	r0, r6
	bl	input_report_abs
	ldr	r2, [r4]
	ldr	r1, .L8+20
	ldrb	r3, [r2, #4]	@ zero_extendqisi2
	ldrb	r2, [r2, #3]	@ zero_extendqisi2
	lsr	r3, r3, #1
	orr	r2, r3, r2, lsl #5
	ldr	r1, [r1]
	mov	r0, r6
	bl	input_report_abs
	ldr	r2, [r4]
	ldr	r3, .L8+24
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [r3]
	ldr	r3, .L8+28
	and	r2, r2, r1
	mov	r0, r6
	ldr	r1, [r3]
	bl	input_report_key
	mov	r0, r6
	bl	input_sync
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L3
.L9:
	.align	2
.L8:
	.word	TR_FORMAT_STATUS_MASK
	.word	TR_FORMAT_STATUS_BYTE
	.word	IRQ_HANDLED
	.word	TR_LENGTH
	.word	ABS_X
	.word	ABS_Y
	.word	TR_FORMAT_TOUCH_BIT
	.word	BTN_TOUCH
	.size	tr_interrupt, .-tr_interrupt
	.comm	TR_LENGTH,4,4
	.comm	TR_FORMAT_TOUCH_BIT,4,4
	.comm	TR_FORMAT_STATUS_MASK,4,4
	.comm	TR_FORMAT_STATUS_BYTE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BTN_TOUCH,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
