	.file	"extr_synaptics_i2c.c_synaptics_i2c_get_input.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	synaptics_i2c_get_input, @function
synaptics_i2c_get_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r12, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rdi]
	call	synaptics_i2c_check_error@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L1
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DATA_REG0[rip]
	call	synaptics_i2c_reg_get@PLT
	mov	ecx, DWORD PTR GESTURE[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR REL_X_REG[rip]
	sar	eax, cl
	and	eax, 1
	mov	ebp, eax
	call	synaptics_i2c_word_get@PLT
	mov	ecx, DWORD PTR REGISTER_LENGTH[rip]
	mov	edx, ebp
	mov	rdi, r12
	movzx	r14d, ax
	mov	esi, DWORD PTR BTN_LEFT[rip]
	mov	ebx, eax
	mov	r13d, r14d
	sar	r13d, cl
	call	input_report_key@PLT
	movzx	r13d, r13b
	movzx	edx, bl
	mov	rdi, r12
	mov	esi, DWORD PTR REL_X[rip]
	call	input_report_rel@PLT
	mov	esi, DWORD PTR REL_Y[rip]
	mov	edx, r13d
	mov	rdi, r12
	neg	edx
	call	input_report_rel@PLT
	mov	rdi, r12
	call	input_sync@PLT
	xor	eax, eax
	or	ebp, r14d
	setne	al
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	synaptics_i2c_get_input, .-synaptics_i2c_get_input
	.comm	REL_Y,4,4
	.comm	REL_X_REG,4,4
	.comm	REL_X,4,4
	.comm	REGISTER_LENGTH,4,4
	.comm	GESTURE,4,4
	.comm	DATA_REG0,4,4
	.comm	BTN_LEFT,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_synaptics_i2c.c_synaptics_i2c_get_input.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	synaptics_i2c_get_input, %function
synaptics_i2c_get_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r5, [r4, #4]
	bl	synaptics_i2c_check_error
	cmp	r0, #0
	beq	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	synaptics_i2c_reg_get
	mov	r3, r0
	ldr	r1, .L7+4
	ldr	r2, .L7+8
	ldr	r1, [r1]
	ldr	r0, [r4]
	asr	r4, r3, r1
	ldr	r1, [r2]
	bl	synaptics_i2c_word_get
	mov	r8, r0
	ldr	r3, .L7+12
	and	r4, r4, #1
	ldr	r6, [r3]
	ldr	r3, .L7+16
	mov	r2, r4
	ldr	r1, [r3]
	lsl	r7, r0, #16
	mov	r0, r5
	bl	input_report_key
	ldr	r3, .L7+20
	lsr	r7, r7, #16
	ldr	r1, [r3]
	and	r2, r8, #255
	mov	r0, r5
	bl	input_report_rel
	asr	r6, r7, r6
	ldr	r3, .L7+24
	and	r6, r6, #255
	ldr	r1, [r3]
	rsb	r2, r6, #0
	mov	r0, r5
	bl	input_report_rel
	mov	r0, r5
	bl	input_sync
	orrs	r3, r4, r7
	movne	r0, #1
	moveq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	DATA_REG0
	.word	GESTURE
	.word	REL_X_REG
	.word	REGISTER_LENGTH
	.word	BTN_LEFT
	.word	REL_X
	.word	REL_Y
	.size	synaptics_i2c_get_input, .-synaptics_i2c_get_input
	.comm	REL_Y,4,4
	.comm	REL_X_REG,4,4
	.comm	REL_X,4,4
	.comm	REGISTER_LENGTH,4,4
	.comm	GESTURE,4,4
	.comm	DATA_REG0,4,4
	.comm	BTN_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
