	.file	"extr_cypress_ps2.c_cypress_set_input_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cypress_set_input_params, @function
cypress_set_input_params:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR 16[rsi]
	test	edx, edx
	je	.L6
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR 12[rsi]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rbx, rdi
	mov	esi, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR EV_ABS[rip]
	call	__set_bit@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ABS_X[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR ABS_Y[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 20[rbp]
	xor	r9d, r9d
	mov	esi, DWORD PTR ABS_PRESSURE[rip]
	xor	r8d, r8d
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	esi, DWORD PTR ABS_TOOL_WIDTH[rip]
	xor	r9d, r9d
	xor	edx, edx
	xor	r8d, r8d
	mov	ecx, 255
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ABS_MT_POSITION_X[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR ABS_MT_POSITION_Y[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbx
	call	input_set_abs_params@PLT
	mov	esi, DWORD PTR ABS_MT_PRESSURE[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbx
	mov	ecx, 255
	call	input_set_abs_params@PLT
	mov	esi, DWORD PTR CYTP_MAX_MT_SLOTS[rip]
	mov	edx, DWORD PTR INPUT_MT_DROP_UNUSED[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR INPUT_MT_TRACK[rip]
	call	input_mt_init_slots@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR INPUT_PROP_SEMI_MT[rip]
	call	__set_bit@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR ABS_X[rip]
	mov	rdi, rbx
	call	input_abs_set_res@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR ABS_Y[rip]
	mov	rdi, rbx
	call	input_abs_set_res@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR ABS_MT_POSITION_X[rip]
	mov	rdi, rbx
	call	input_abs_set_res@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR ABS_MT_POSITION_Y[rip]
	mov	rdi, rbx
	call	input_abs_set_res@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOUCH[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOOL_FINGER[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOOL_DOUBLETAP[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOOL_TRIPLETAP[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOOL_QUADTAP[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_TOOL_QUINTTAP[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR EV_REL[rip]
	call	__clear_bit@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR REL_X[rip]
	call	__clear_bit@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR REL_Y[rip]
	call	__clear_bit@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR EV_KEY[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_LEFT[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_RIGHT[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR BTN_MIDDLE[rip]
	call	__set_bit@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	cypress_set_input_params, .-cypress_set_input_params
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	INPUT_PROP_SEMI_MT,4,4
	.comm	INPUT_MT_TRACK,4,4
	.comm	INPUT_MT_DROP_UNUSED,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EV_ABS,4,4
	.comm	EINVAL,4,4
	.comm	CYTP_MAX_MT_SLOTS,4,4
	.comm	BTN_TOUCH,4,4
	.comm	BTN_TOOL_TRIPLETAP,4,4
	.comm	BTN_TOOL_QUINTTAP,4,4
	.comm	BTN_TOOL_QUADTAP,4,4
	.comm	BTN_TOOL_FINGER,4,4
	.comm	BTN_TOOL_DOUBLETAP,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.comm	ABS_TOOL_WIDTH,4,4
	.comm	ABS_PRESSURE,4,4
	.comm	ABS_MT_PRESSURE,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_cypress_ps2.c_cypress_set_input_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cypress_set_input_params, %function
cypress_set_input_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #16]
	cmp	r3, #0
	beq	.L9
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r1, #12]
	mov	r5, r1
	cmp	r3, #0
	sub	sp, sp, #8
	bne	.L3
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r4, r0
	mov	r6, #0
	ldr	r3, .L13+4
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	ldr	r10, .L13+8
	bl	__set_bit
	str	r6, [sp, #4]
	str	r6, [sp]
	mov	r2, r6
	ldr	r1, [r10]
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r9, .L13+12
	bl	input_set_abs_params
	str	r6, [sp, #4]
	str	r6, [sp]
	mov	r2, r6
	ldr	r1, [r9]
	ldr	r3, [r5, #4]
	mov	r0, r4
	bl	input_set_abs_params
	ldr	r3, .L13+16
	str	r6, [sp, #4]
	str	r6, [sp]
	ldr	r1, [r3]
	ldr	r2, [r5, #20]
	ldr	r3, [r5, #8]
	mov	r0, r4
	bl	input_set_abs_params
	ldr	r3, .L13+20
	str	r6, [sp, #4]
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r2, r6
	mov	r3, #255
	mov	r0, r4
	ldr	r8, .L13+24
	bl	input_set_abs_params
	str	r6, [sp, #4]
	str	r6, [sp]
	mov	r2, r6
	ldr	r1, [r8]
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r7, .L13+28
	bl	input_set_abs_params
	str	r6, [sp, #4]
	str	r6, [sp]
	mov	r2, r6
	ldr	r1, [r7]
	ldr	r3, [r5, #4]
	mov	r0, r4
	bl	input_set_abs_params
	ldr	r3, .L13+32
	str	r6, [sp, #4]
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r2, r6
	mov	r3, #255
	mov	r0, r4
	bl	input_set_abs_params
	ldr	r2, .L13+36
	ldr	r3, .L13+40
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L13+44
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	input_mt_init_slots
	cmp	r0, #0
	blt	.L1
	ldr	r3, .L13+48
	ldr	r1, [r4, #12]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r1, [r10]
	ldr	r2, [r5, #16]
	mov	r0, r4
	bl	input_abs_set_res
	ldr	r1, [r9]
	ldr	r2, [r5, #12]
	mov	r0, r4
	bl	input_abs_set_res
	ldr	r1, [r8]
	ldr	r2, [r5, #16]
	mov	r0, r4
	bl	input_abs_set_res
	ldr	r2, [r5, #12]
	ldr	r1, [r7]
	mov	r0, r4
	bl	input_abs_set_res
	ldr	r3, .L13+52
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+56
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+60
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+64
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+68
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+72
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+76
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	__clear_bit
	ldr	r3, .L13+80
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	__clear_bit
	ldr	r3, .L13+84
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	__clear_bit
	ldr	r3, .L13+88
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+92
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+96
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L13+100
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__set_bit
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L14:
	.align	2
.L13:
	.word	EINVAL
	.word	EV_ABS
	.word	ABS_X
	.word	ABS_Y
	.word	ABS_PRESSURE
	.word	ABS_TOOL_WIDTH
	.word	ABS_MT_POSITION_X
	.word	ABS_MT_POSITION_Y
	.word	ABS_MT_PRESSURE
	.word	INPUT_MT_DROP_UNUSED
	.word	INPUT_MT_TRACK
	.word	CYTP_MAX_MT_SLOTS
	.word	INPUT_PROP_SEMI_MT
	.word	BTN_TOUCH
	.word	BTN_TOOL_FINGER
	.word	BTN_TOOL_DOUBLETAP
	.word	BTN_TOOL_TRIPLETAP
	.word	BTN_TOOL_QUADTAP
	.word	BTN_TOOL_QUINTTAP
	.word	EV_REL
	.word	REL_X
	.word	REL_Y
	.word	EV_KEY
	.word	BTN_LEFT
	.word	BTN_RIGHT
	.word	BTN_MIDDLE
	.size	cypress_set_input_params, .-cypress_set_input_params
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	INPUT_PROP_SEMI_MT,4,4
	.comm	INPUT_MT_TRACK,4,4
	.comm	INPUT_MT_DROP_UNUSED,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EV_ABS,4,4
	.comm	EINVAL,4,4
	.comm	CYTP_MAX_MT_SLOTS,4,4
	.comm	BTN_TOUCH,4,4
	.comm	BTN_TOOL_TRIPLETAP,4,4
	.comm	BTN_TOOL_QUINTTAP,4,4
	.comm	BTN_TOOL_QUADTAP,4,4
	.comm	BTN_TOOL_FINGER,4,4
	.comm	BTN_TOOL_DOUBLETAP,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.comm	ABS_TOOL_WIDTH,4,4
	.comm	ABS_PRESSURE,4,4
	.comm	ABS_MT_PRESSURE,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
