	.file	"extr_resistive-adc-touch.c_grts_cb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grts_cb, @function
grts_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rdi]
	mov	ecx, DWORD PTR 4[rdi]
	mov	eax, edx
	or	eax, ecx
	cmp	QWORD PTR 8[rsi], 0
	je	.L2
	mov	r12d, DWORD PTR 8[rdi]
	test	eax, eax
	je	.L3
	cmp	DWORD PTR [rsi], r12d
	ja	.L3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	xor	r8d, r8d
	lea	rsi, 16[rbx]
	call	touchscreen_report_pos@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L16
.L6:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	mov	edx, 1
	call	input_report_key@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	input_sync@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR ABS_PRESSURE[rip]
	mov	edx, r12d
	call	input_report_abs@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r12d, r12d
	test	eax, eax
	jne	.L4
.L3:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	xor	edx, edx
	call	input_report_key@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	input_sync@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	grts_cb, .-grts_cb
	.comm	BTN_TOUCH,4,4
	.comm	ABS_PRESSURE,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_resistive-adc-touch.c_grts_cb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grts_cb, %function
grts_cb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldm	r0, {r2, r3}
	mov	r4, r1
	ldr	r1, [r1, #8]
	sub	sp, sp, #12
	cmp	r1, #0
	orr	ip, r2, r3
	beq	.L2
	cmp	ip, #0
	ldr	r5, [r0, #8]
	beq	.L3
	ldr	r1, [r4]
	cmp	r1, r5
	bhi	.L3
.L4:
	mov	r1, #0
	str	r1, [sp]
	ldr	r0, [r4, #4]
	add	r1, r4, #12
	bl	touchscreen_report_pos
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L20
.L6:
	mov	r2, #1
	ldr	r3, .L21
.L18:
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	input_report_key
	ldr	r0, [r4, #4]
	bl	input_sync
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L20:
	ldr	r3, .L21+4
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	input_report_abs
	b	.L6
.L2:
	cmp	ip, #0
	movne	r5, r1
	bne	.L4
.L3:
	mov	r2, #0
	ldr	r3, .L21
	b	.L18
.L22:
	.align	2
.L21:
	.word	BTN_TOUCH
	.word	ABS_PRESSURE
	.size	grts_cb, .-grts_cb
	.comm	BTN_TOUCH,4,4
	.comm	ABS_PRESSURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
