	.file	"extr_goodix.c_goodix_ts_read_input_report.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I2C transfer error: %d\n"
	.text
	.p2align 4
	.type	goodix_ts_read_input_report, @function
goodix_ts_read_input_report:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR GOODIX_BUFFER_STATUS_TIMEOUT[rip]
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	rbp, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR [rbx]
	mov	r12d, eax
	and	r12d, DWORD PTR GOODIX_BUFFER_STATUS_READY[rip]
	jne	.L14
	mov	esi, 2000
	mov	edi, 1000
	call	usleep_range@PLT
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, rbp
	call	time_before@PLT
	test	rax, rax
	je	.L1
.L6:
	mov	eax, DWORD PTR 0[r13]
	mov	rdi, QWORD PTR 8[r13]
	mov	rdx, rbx
	mov	rsi, QWORD PTR GOODIX_READ_COOR_ADDR[rip]
	lea	ecx, 1[rax]
	call	goodix_i2c_read@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	mov	rdi, QWORD PTR 8[r13]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12d, eax
	and	r12d, 15
	cmp	DWORD PTR 4[r13], r12d
	jl	.L15
	test	al, 14
	je	.L1
	movsx	rax, DWORD PTR 0[r13]
	lea	ecx, -1[r12]
	mov	rsi, QWORD PTR GOODIX_READ_COOR_ADDR[rip]
	mov	rdi, QWORD PTR 8[r13]
	imul	ecx, eax
	lea	edx, 1[rax]
	movsx	rdx, edx
	lea	rsi, 1[rsi+rax]
	lea	rdx, [rbx+rdx*4]
	call	goodix_i2c_read@PLT
	test	eax, eax
	cmovne	r12d, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r12d, DWORD PTR EPROTO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	goodix_ts_read_input_report, .-goodix_ts_read_input_report
	.comm	jiffies,8,8
	.comm	GOODIX_READ_COOR_ADDR,8,8
	.comm	GOODIX_BUFFER_STATUS_TIMEOUT,4,4
	.comm	GOODIX_BUFFER_STATUS_READY,4,4
	.comm	EPROTO,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_goodix.c_goodix_ts_read_input_report.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I2C transfer error: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	goodix_ts_read_input_report, %function
goodix_ts_read_input_report:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r3]
	mov	r5, r1
	bl	msecs_to_jiffies
	ldr	r7, .L16+4
	ldr	r8, .L16+8
	ldr	r3, [r7]
	ldr	r9, .L16+12
	add	r6, r0, r3
	b	.L6
.L2:
	ldr	r3, [r5]
	ldr	r2, [r9]
	tst	r3, r2
	bne	.L14
	mov	r1, #2000
	mov	r0, #1000
	bl	usleep_range
	mov	r1, r6
	ldr	r0, [r7]
	bl	time_before
	subs	r10, r0, #0
	beq	.L1
.L6:
	ldr	r3, [r4]
	mov	r2, r5
	ldr	r1, [r8]
	ldr	r0, [r4, #8]
	add	r3, r3, #1
	bl	goodix_i2c_read
	subs	r10, r0, #0
	beq	.L2
	mov	r2, r10
	ldr	r0, [r4, #8]
	ldr	r1, .L16+16
	bl	dev_err
.L1:
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r2, [r4, #4]
	and	r10, r3, #15
	cmp	r2, r10
	blt	.L15
	tst	r3, #14
	beq	.L1
	ldr	r3, [r4]
	ldr	r1, [r8]
	sub	ip, r10, #1
	add	r2, r3, #1
	add	r1, r1, #1
	add	r1, r1, r3
	ldr	r0, [r4, #8]
	mul	r3, ip, r3
	add	r2, r5, r2, lsl #2
	bl	goodix_i2c_read
	cmp	r0, #0
	movne	r10, r0
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r10, r0, #0
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	GOODIX_BUFFER_STATUS_TIMEOUT
	.word	jiffies
	.word	GOODIX_READ_COOR_ADDR
	.word	GOODIX_BUFFER_STATUS_READY
	.word	.LC0
	.word	EPROTO
	.size	goodix_ts_read_input_report, .-goodix_ts_read_input_report
	.comm	jiffies,4,4
	.comm	GOODIX_READ_COOR_ADDR,4,4
	.comm	GOODIX_BUFFER_STATUS_TIMEOUT,4,4
	.comm	GOODIX_BUFFER_STATUS_READY,4,4
	.comm	EPROTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
