	.file	"extr_touchwin.c_tw_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tw_interrupt, @function
tw_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 24[rax]
	mov	rbx, rax
	test	bpl, bpl
	je	.L2
	mov	DWORD PTR [rax], 1
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	lea	rcx, 1[rax]
	mov	QWORD PTR 16[rbx], rcx
	mov	BYTE PTR [rdx+rax], bpl
	mov	rax, QWORD PTR TW_LENGTH[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L8
.L4:
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	mov	rdi, r12
	xor	edx, edx
	call	input_report_key@PLT
	mov	rdi, r12
	call	input_sync@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	mov	DWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	movzx	ecx, BYTE PTR 2[rax]
	cmp	BYTE PTR 1[rax], cl
	jne	.L4
	movzx	edx, BYTE PTR [rax]
	mov	esi, DWORD PTR ABS_X[rip]
	mov	rdi, r12
	call	input_report_abs@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR ABS_Y[rip]
	mov	rdi, r12
	movzx	edx, BYTE PTR 1[rax]
	call	input_report_abs@PLT
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	mov	edx, 1
	mov	rdi, r12
	call	input_report_key@PLT
	mov	rdi, r12
	call	input_sync@PLT
	mov	QWORD PTR 16[rbx], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tw_interrupt, .-tw_interrupt
	.comm	TW_LENGTH,8,8
	.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_touchwin.c_tw_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tw_interrupt, %function
tw_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	serio_get_drvdata
	cmp	r5, #0
	mov	r4, r0
	ldr	r6, [r0, #12]
	beq	.L2
	ldmib	r0, {r2, r3}
	mov	r7, #1
	add	r1, r3, r7
	str	r1, [r0, #8]
	ldr	r1, .L12
	str	r7, [r0]
	strb	r5, [r2, r3]
	ldr	r2, [r0, #8]
	ldr	r3, [r1]
	cmp	r2, r3
	beq	.L11
.L4:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L12+8
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r6
	bl	input_report_key
	mov	r0, r6
	bl	input_sync
	str	r5, [r4, #8]
	str	r5, [r4]
	b	.L4
.L11:
	ldr	r3, [r0, #4]
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	cmp	r1, r2
	bne	.L4
	ldr	r1, .L12+12
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [r1]
	mov	r0, r6
	bl	input_report_abs
	ldr	r3, .L12+16
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	mov	r0, r6
	bl	input_report_abs
	ldr	r3, .L12+8
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r6
	bl	input_report_key
	mov	r0, r6
	bl	input_sync
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L4
.L13:
	.align	2
.L12:
	.word	TW_LENGTH
	.word	IRQ_HANDLED
	.word	BTN_TOUCH
	.word	ABS_X
	.word	ABS_Y
	.size	tw_interrupt, .-tw_interrupt
	.comm	TW_LENGTH,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
