	.file	"extr_silead.c_silead_ts_read_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Data read error %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"More touches reported then supported %d > %d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"x=%d y=%d hw_id=%d sw_id=%d\n"
	.text
	.p2align 4
	.type	silead_ts_read_data, @function
silead_ts_read_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -120[rbp], rsp
	mov	rbx, rsp
	call	i2c_get_clientdata@PLT
	mov	r12, QWORD PTR 40[rax]
	mov	r14, rax
	movsx	rax, DWORD PTR SILEAD_TS_DATA_LEN[rip]
	mov	r8, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	lea	r11, 3[rsp]
	mov	esi, DWORD PTR SILEAD_REG_DATA[rip]
	mov	edx, r8d
	mov	rdi, r13
	mov	rbx, r11
	and	r11, -4
	mov	rcx, r11
	mov	QWORD PTR -72[rbp], r11
	shr	rbx, 2
	call	i2c_smbus_read_i2c_block_data@PLT
	mov	r11, QWORD PTR -72[rbp]
	test	eax, eax
	mov	edx, eax
	js	.L27
	mov	edx, DWORD PTR 0[0+rbx*4]
	mov	ecx, DWORD PTR [r14]
	cmp	edx, ecx
	jg	.L28
.L7:
	movsx	rax, DWORD PTR SILEAD_POINT_DATA_LEN[rip]
	mov	rcx, rax
	lea	r15, [r11+rax*4]
	test	edx, edx
	jle	.L8
	lea	rax, 32[r14]
	mov	DWORD PTR -72[rbp], 0
	xor	ebx, ebx
	xor	r8d, r8d
	mov	QWORD PTR -112[rbp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	cmp	edx, 1
	mov	eax, 1
	cmovne	eax, DWORD PTR -72[rbp]
	add	r8d, 1
	mov	DWORD PTR -72[rbp], eax
	movsx	rax, ecx
	lea	r15, [r15+rax*4]
	cmp	DWORD PTR [r11], r8d
	jle	.L29
.L11:
	mov	rdx, QWORD PTR SILEAD_POINT_Y_MSB_OFF[rip]
	mov	eax, DWORD PTR SILEAD_EXTRA_DATA_MASK[rip]
	mov	edi, DWORD PTR [r15+rdx*4]
	and	edi, eax
	mov	edx, edi
	sar	edx, 4
	jne	.L30
	mov	rcx, QWORD PTR SILEAD_POINT_X_MSB_OFF[rip]
	mov	rdx, QWORD PTR 8[r14]
	movsx	rsi, ebx
	mov	QWORD PTR -104[rbp], r11
	mov	DWORD PTR -92[rbp], r8d
	add	ebx, 1
	and	eax, DWORD PTR [r15+rcx*4]
	mov	QWORD PTR -88[rbp], rsi
	sar	eax, 4
	mov	DWORD PTR [rdx+rsi*4], eax
	mov	rax, QWORD PTR SILEAD_POINT_Y_OFF[rip]
	lea	rdi, [r15+rax*4]
	call	get_unaligned_le16@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	rax, QWORD PTR SILEAD_POINT_X_OFF[rip]
	lea	rdi, [r15+rax*4]
	call	get_unaligned_le16@PLT
	mov	rsi, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -80[rbp]
	and	eax, 4095
	mov	edx, eax
	mov	rax, QWORD PTR 24[r14]
	and	ecx, 4095
	lea	rdi, [rax+rsi*8]
	mov	rsi, QWORD PTR -112[rbp]
	call	touchscreen_set_mt_pos@PLT
	mov	ecx, DWORD PTR SILEAD_POINT_DATA_LEN[rip]
	mov	r8d, DWORD PTR -92[rbp]
	mov	r11, QWORD PTR -104[rbp]
	movsx	rax, ecx
	add	r8d, 1
	lea	r15, [r15+rax*4]
	cmp	DWORD PTR [r11], r8d
	jg	.L11
.L29:
	mov	rdx, QWORD PTR 24[r14]
	mov	rsi, QWORD PTR 16[r14]
	xor	r8d, r8d
	mov	ecx, ebx
	mov	rdi, r12
	call	input_mt_assign_slots@PLT
	test	ebx, ebx
	je	.L12
	lea	eax, -1[rbx]
	xor	ebx, ebx
	lea	rax, 4[0+rax*4]
	mov	QWORD PTR -80[rbp], rax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 16[r14]
	mov	rdi, r12
	lea	r15, [rbx+rbx]
	mov	esi, DWORD PTR [rax+rbx]
	call	input_mt_slot@PLT
	mov	esi, DWORD PTR MT_TOOL_FINGER[rip]
	mov	edx, 1
	mov	rdi, r12
	call	input_mt_report_slot_state@PLT
	mov	rax, QWORD PTR 24[r14]
	mov	esi, DWORD PTR ABS_MT_POSITION_X[rip]
	mov	rdi, r12
	mov	edx, DWORD PTR 4[rax+r15]
	call	input_report_abs@PLT
	mov	rax, QWORD PTR 24[r14]
	mov	esi, DWORD PTR ABS_MT_POSITION_Y[rip]
	mov	rdi, r12
	mov	edx, DWORD PTR [rax+rbx*2]
	call	input_report_abs@PLT
	mov	rcx, QWORD PTR 24[r14]
	mov	rsi, QWORD PTR 16[r14]
	mov	rdi, r13
	mov	rax, QWORD PTR 8[r14]
	add	rcx, r15
	mov	r9d, DWORD PTR [rsi+rbx]
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR 4[rcx]
	mov	r8d, DWORD PTR [rax+rbx]
	add	rbx, 4
	mov	ecx, DWORD PTR [rcx]
	call	dev_dbg@PLT
	cmp	QWORD PTR -80[rbp], rbx
	jne	.L13
.L12:
	mov	rdi, r12
	call	input_mt_sync_frame@PLT
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR KEY_LEFTMETA[rip]
	mov	rdi, r12
	call	input_report_key@PLT
	mov	rdi, r12
	call	input_sync@PLT
	mov	rsp, QWORD PTR -120[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	mov	QWORD PTR -72[rbp], r11
	call	dev_warn@PLT
	mov	edx, DWORD PTR [r14]
	mov	r11, QWORD PTR -72[rbp]
	mov	DWORD PTR 0[0+rbx*4], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L27:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	rsp, QWORD PTR -120[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR 24[r14]
	mov	rsi, QWORD PTR 16[r14]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdi, r12
	call	input_mt_assign_slots@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L12
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	silead_ts_read_data, .-silead_ts_read_data
	.comm	SILEAD_TS_DATA_LEN,4,4
	.comm	SILEAD_REG_DATA,4,4
	.comm	SILEAD_POINT_Y_OFF,8,8
	.comm	SILEAD_POINT_Y_MSB_OFF,8,8
	.comm	SILEAD_POINT_X_OFF,8,8
	.comm	SILEAD_POINT_X_MSB_OFF,8,8
	.comm	SILEAD_POINT_DATA_LEN,4,4
	.comm	SILEAD_EXTRA_DATA_MASK,4,4
	.comm	MT_TOOL_FINGER,4,4
	.comm	KEY_LEFTMETA,4,4
	.comm	ABS_MT_POSITION_Y,4,4
	.comm	ABS_MT_POSITION_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_silead.c_silead_ts_read_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Data read error %d\012\000"
	.align	2
.LC1:
	.ascii	"More touches reported then supported %d > %d\012\000"
	.align	2
.LC2:
	.ascii	"x=%d y=%d hw_id=%d sw_id=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	silead_ts_read_data, %function
silead_ts_read_data:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r3, .L24
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	str	r0, [fp, #-56]
	bl	i2c_get_clientdata
	mov	r5, r0
	ldr	r3, .L24+4
	str	sp, [fp, #-60]
	ldr	r2, [r3]
	ldr	r1, .L24+8
	lsl	r3, r2, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r8, sp, #8
	mov	r3, r8
	mov	r0, r4
	ldr	r1, [r1]
	ldr	r6, [r5, #20]
	bl	i2c_smbus_read_i2c_block_data
	subs	r2, r0, #0
	blt	.L19
	ldr	r2, [r8]
	ldr	r3, [r5]
	cmp	r2, r3
	bgt	.L20
.L4:
	ldr	r9, .L24+12
	cmp	r2, #0
	ldr	r4, [r9]
	mov	r3, #0
	ldr	r2, [r5, #12]
	add	r4, r8, r4, lsl #2
	ble	.L5
	mov	r7, r3
	mov	r10, r3
	str	r3, [fp, #-48]
	str	r6, [fp, #-64]
	b	.L8
.L22:
	cmp	r3, #1
	ldr	r3, [fp, #-48]
	moveq	r3, #1
	str	r3, [fp, #-48]
.L7:
	ldr	r1, [r8]
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r1, r7
	add	r4, r4, r3, lsl #2
	ble	.L21
.L8:
	ldr	r3, .L24+16
	ldr	r1, .L24+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r3, [r4, r3, lsl #2]
	and	r3, r3, r1
	asrs	r3, r3, #4
	bne	.L22
	ldr	r3, .L24+24
	add	r2, r2, r10, lsl #3
	ldr	r0, [r3]
	ldr	r3, [r5, #4]
	ldr	ip, [r4, r0, lsl #2]
	ldr	r0, .L24+28
	and	r1, r1, ip
	ldr	r0, [r0]
	asr	r1, r1, #4
	str	r1, [r3, r10, lsl #2]
	add	r0, r4, r0, lsl #2
	str	r2, [fp, #-52]
	bl	get_unaligned_le16
	ldr	r3, .L24+32
	mov	r6, r0
	ldr	r3, [r3]
	add	r10, r10, #1
	add	r0, r4, r3, lsl #2
	bl	get_unaligned_le16
	mov	ip, r0
	ldr	r2, [fp, #-52]
	ldr	r3, .L24+36
	mov	r0, r2
	add	r1, r5, #16
	and	r2, r6, r3
	and	r3, r3, ip
	bl	touchscreen_set_mt_pos
	ldr	r2, [r5, #12]
	b	.L7
.L21:
	mov	r4, #0
	ldr	r6, [fp, #-64]
	ldr	r1, [r5, #8]
	mov	r3, r10
	mov	r0, r6
	str	r4, [sp]
	bl	input_mt_assign_slots
	cmp	r10, r4
	beq	.L9
	str	r10, [fp, #-52]
	ldr	r9, .L24+40
	ldr	r8, .L24+44
	ldr	r7, .L24+48
	ldr	r10, [fp, #-56]
.L10:
	ldr	r3, [r5, #8]
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	input_mt_slot
	ldr	r3, .L24+52
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r6
	bl	input_mt_report_slot_state
	ldr	r3, [r5, #12]
	ldr	r1, [r9]
	add	r3, r3, r4, lsl #3
	ldr	r2, [r3, #4]
	mov	r0, r6
	bl	input_report_abs
	ldr	r3, [r5, #12]
	ldr	r1, [r8]
	ldr	r2, [r3, r4, lsl #3]
	mov	r0, r6
	bl	input_report_abs
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #12]
	ldr	r0, [r2, r4, lsl #2]
	lsl	r3, r4, #3
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	ldr	r3, [r1, r4, lsl #3]
	str	r0, [sp, #4]
	ldr	r1, [r5, #4]
	mov	r0, r10
	ldr	r1, [r1, r4, lsl #2]
	add	r4, r4, #1
	str	r1, [sp]
	mov	r1, r7
	bl	dev_dbg
	ldr	r3, [fp, #-52]
	cmp	r3, r4
	bne	.L10
.L9:
	mov	r0, r6
	bl	input_mt_sync_frame
	ldr	r3, .L24+56
	ldr	r2, [fp, #-48]
	ldr	r1, [r3]
	mov	r0, r6
	bl	input_report_key
	mov	r0, r6
	bl	input_sync
	ldr	sp, [fp, #-60]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r1, .L24+60
	ldr	r0, [fp, #-56]
	bl	dev_warn
	ldr	r2, [r5]
	str	r2, [r8]
	b	.L4
.L19:
	ldr	r0, [fp, #-56]
	ldr	r1, .L24+64
	bl	dev_err
	ldr	sp, [fp, #-60]
	b	.L1
.L5:
	ldr	r1, [r5, #8]
	mov	r0, r6
	str	r3, [sp]
	str	r3, [fp, #-48]
	bl	input_mt_assign_slots
	b	.L9
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	SILEAD_TS_DATA_LEN
	.word	SILEAD_REG_DATA
	.word	SILEAD_POINT_DATA_LEN
	.word	SILEAD_POINT_Y_MSB_OFF
	.word	SILEAD_EXTRA_DATA_MASK
	.word	SILEAD_POINT_X_MSB_OFF
	.word	SILEAD_POINT_X_OFF
	.word	SILEAD_POINT_Y_OFF
	.word	4095
	.word	ABS_MT_POSITION_X
	.word	ABS_MT_POSITION_Y
	.word	.LC2
	.word	MT_TOOL_FINGER
	.word	KEY_LEFTMETA
	.word	.LC1
	.word	.LC0
	.size	silead_ts_read_data, .-silead_ts_read_data
	.comm	SILEAD_TS_DATA_LEN,4,4
	.comm	SILEAD_REG_DATA,4,4
	.comm	SILEAD_POINT_Y_OFF,4,4
	.comm	SILEAD_POINT_Y_MSB_OFF,4,4
	.comm	SILEAD_POINT_X_OFF,4,4
	.comm	SILEAD_POINT_X_MSB_OFF,4,4
	.comm	SILEAD_POINT_DATA_LEN,4,4
	.comm	SILEAD_EXTRA_DATA_MASK,4,4
	.comm	MT_TOOL_FINGER,4,4
	.comm	KEY_LEFTMETA,4,4
	.comm	ABS_MT_POSITION_Y,4,4
	.comm	ABS_MT_POSITION_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
