	.file	"extr_elan_i2c_core.c_elan_report_absolute.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	elan_report_absolute, @function
elan_report_absolute:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR ETP_FINGER_DATA_OFFSET[rip]
	mov	edx, DWORD PTR ETP_MAX_FINGERS[rip]
	mov	r14, QWORD PTR [rdi]
	lea	r15, [rsi+rax*4]
	mov	rax, QWORD PTR ETP_TOUCH_INFO_OFFSET[rip]
	mov	ebp, DWORD PTR [rsi+rax*4]
	mov	rax, QWORD PTR ETP_HOVER_INFO_OFFSET[rip]
	mov	eax, DWORD PTR [rsi+rax*4]
	and	eax, 64
	mov	DWORD PTR 12[rsp], eax
	test	edx, edx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	lea	ecx, 3[rbx]
	mov	edx, 1
	mov	esi, ebx
	mov	rdi, r12
	sal	edx, cl
	mov	rcx, r15
	and	edx, ebp
	mov	r13d, edx
	call	elan_report_contact@PLT
	test	r13d, r13d
	je	.L3
	movsx	rax, DWORD PTR ETP_FINGER_DATA_LEN[rip]
	lea	r15, [r15+rax*4]
.L3:
	add	ebx, 1
	cmp	DWORD PTR ETP_MAX_FINGERS[rip], ebx
	jg	.L4
.L5:
	xor	edi, edi
	call	BIT@PLT
	mov	esi, DWORD PTR BTN_LEFT[rip]
	mov	rdi, r14
	and	eax, ebp
	mov	edx, eax
	call	input_report_key@PLT
	mov	edi, 2
	call	BIT@PLT
	mov	esi, DWORD PTR BTN_MIDDLE[rip]
	mov	rdi, r14
	and	eax, ebp
	mov	edx, eax
	call	input_report_key@PLT
	mov	edi, 1
	call	BIT@PLT
	mov	esi, DWORD PTR BTN_RIGHT[rip]
	mov	rdi, r14
	and	eax, ebp
	mov	edx, eax
	call	input_report_key@PLT
	mov	eax, DWORD PTR 12[rsp]
	xor	edx, edx
	mov	rdi, r14
	mov	esi, DWORD PTR ABS_DISTANCE[rip]
	test	eax, eax
	setne	dl
	call	input_report_abs@PLT
	mov	rdi, r14
	mov	esi, 1
	call	input_mt_report_pointer_emulation@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	.cfi_endproc
.LFE0:
	.size	elan_report_absolute, .-elan_report_absolute
	.comm	ETP_TOUCH_INFO_OFFSET,8,8
	.comm	ETP_MAX_FINGERS,4,4
	.comm	ETP_HOVER_INFO_OFFSET,8,8
	.comm	ETP_FINGER_DATA_OFFSET,8,8
	.comm	ETP_FINGER_DATA_LEN,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_DISTANCE,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_elan_i2c_core.c_elan_report_absolute.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	elan_report_absolute, %function
elan_report_absolute:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, .L12
	ldr	r7, .L12+4
	ldr	ip, [r3]
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	ldr	r0, [r7]
	ldr	fp, [r1, ip, lsl #2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r0, #0
	sub	sp, sp, #12
	and	r0, fp, #64
	movgt	r4, #0
	ldr	r9, [r6]
	ldr	r5, [r1, r2, lsl #2]
	ldrgt	r10, .L12+16
	str	r0, [sp, #4]
	add	fp, r1, r3, lsl #2
	ble	.L5
.L4:
	mov	r3, #1
	add	r8, r4, #3
	and	r8, r5, r3, lsl r8
	mov	r2, r8
	mov	r3, fp
	mov	r1, r4
	mov	r0, r6
	bl	elan_report_contact
	cmp	r8, #0
	ldrne	r2, [r10]
	ldr	r3, [r7]
	add	r4, r4, #1
	addne	fp, fp, r2, lsl #2
	cmp	r3, r4
	bgt	.L4
.L5:
	ldr	r3, .L12+20
	mov	r0, #0
	ldr	r4, [r3]
	bl	BIT
	mov	r1, r4
	and	r2, r0, r5
	mov	r0, r9
	bl	input_report_key
	ldr	r3, .L12+24
	mov	r0, #2
	ldr	r4, [r3]
	bl	BIT
	mov	r1, r4
	and	r2, r0, r5
	mov	r0, r9
	bl	input_report_key
	ldr	r3, .L12+28
	mov	r0, #1
	ldr	r4, [r3]
	bl	BIT
	mov	r1, r4
	and	r2, r0, r5
	mov	r0, r9
	bl	input_report_key
	ldr	r2, [sp, #4]
	ldr	r3, .L12+32
	subs	r2, r2, #0
	ldr	r1, [r3]
	movne	r2, #1
	mov	r0, r9
	bl	input_report_abs
	mov	r1, #1
	mov	r0, r9
	bl	input_mt_report_pointer_emulation
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	input_sync
.L13:
	.align	2
.L12:
	.word	ETP_HOVER_INFO_OFFSET
	.word	ETP_MAX_FINGERS
	.word	ETP_TOUCH_INFO_OFFSET
	.word	ETP_FINGER_DATA_OFFSET
	.word	ETP_FINGER_DATA_LEN
	.word	BTN_LEFT
	.word	BTN_MIDDLE
	.word	BTN_RIGHT
	.word	ABS_DISTANCE
	.size	elan_report_absolute, .-elan_report_absolute
	.comm	ETP_TOUCH_INFO_OFFSET,4,4
	.comm	ETP_MAX_FINGERS,4,4
	.comm	ETP_HOVER_INFO_OFFSET,4,4
	.comm	ETP_FINGER_DATA_OFFSET,4,4
	.comm	ETP_FINGER_DATA_LEN,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_DISTANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
