	.file	"extr_aiptek.c_aiptek_program_tablet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aiptek_program_tablet, @function
aiptek_program_tablet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, 4
	mov	esi, 24
	mov	rbx, rdi
	call	aiptek_command@PLT
	test	eax, eax
	js	.L1
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbx
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	and	eax, 255
	xor	edx, edx
	mov	esi, 3
	mov	rdi, rbx
	mov	DWORD PTR 28[rbx], eax
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	mov	DWORD PTR 32[rbx], eax
	xor	edx, edx
	mov	esi, 4
	mov	rdi, rbx
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	mov	DWORD PTR 36[rbx], eax
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbx
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR ABS_X[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	lea	ecx, -1[rax]
	call	input_set_abs_params@PLT
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rbx
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR ABS_Y[rip]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	lea	ecx, -1[rax]
	call	input_set_abs_params@PLT
	xor	edx, edx
	mov	esi, 8
	mov	rdi, rbx
	call	aiptek_query@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR ABS_PRESSURE[rip]
	xor	edx, edx
	lea	ecx, -1[rax]
	xor	r9d, r9d
	xor	r8d, r8d
	call	input_set_abs_params@PLT
	mov	rax, QWORD PTR AIPTEK_COORDINATE_ABSOLUTE_MODE[rip]
	xor	edx, edx
	cmp	QWORD PTR 16[rbx], rax
	jne	.L8
	mov	edx, 1
.L8:
	mov	esi, 16
	mov	rdi, rbx
	call	aiptek_command@PLT
	test	eax, eax
	js	.L1
	mov	edx, 2
	mov	esi, 17
	mov	rdi, rbx
	call	aiptek_command@PLT
	test	eax, eax
	js	.L1
	mov	edx, 255
	mov	esi, 18
	mov	rdi, rbx
	call	aiptek_command@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR AIPTEK_DIAGNOSTIC_NA[rip]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aiptek_program_tablet, .-aiptek_program_tablet
	.comm	AIPTEK_DIAGNOSTIC_NA,4,4
	.comm	AIPTEK_COORDINATE_ABSOLUTE_MODE,8,8
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.comm	ABS_PRESSURE,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_aiptek.c_aiptek_program_tablet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aiptek_program_tablet, %function
aiptek_program_tablet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r2, #4
	mov	r1, #24
	sub	sp, sp, #12
	mov	r4, r0
	bl	aiptek_command
	cmp	r0, #0
	blt	.L1
	mov	r2, #0
	mov	r1, #2
	mov	r0, r4
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	and	r0, r0, #255
	str	r0, [r4, #16]
	mov	r2, #0
	mov	r1, #3
	mov	r0, r4
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	str	r0, [r4, #20]
	mov	r2, #0
	mov	r1, #4
	mov	r0, r4
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	str	r0, [r4, #24]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r4
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	mov	r5, #0
	ldr	r1, .L10
	str	r5, [sp, #4]
	str	r5, [sp]
	sub	r3, r0, #1
	mov	r2, r5
	ldr	r1, [r1]
	ldr	r0, [r4, #12]
	bl	input_set_abs_params
	mov	r2, #1
	mov	r0, r4
	mov	r1, r2
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	ldr	r2, .L10+4
	str	r5, [sp, #4]
	str	r5, [sp]
	ldr	r1, [r2]
	sub	r3, r0, #1
	mov	r2, r5
	ldr	r0, [r4, #12]
	bl	input_set_abs_params
	mov	r2, r5
	mov	r1, #8
	mov	r0, r4
	bl	aiptek_query
	cmp	r0, #0
	blt	.L1
	ldr	r2, .L10+8
	str	r5, [sp, #4]
	str	r5, [sp]
	ldr	r1, [r2]
	sub	r3, r0, #1
	mov	r2, r5
	ldr	r0, [r4, #12]
	bl	input_set_abs_params
	ldr	r3, .L10+12
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	mov	r1, #16
	cmp	r2, r3
	movne	r2, r5
	moveq	r2, #1
	mov	r0, r4
	bl	aiptek_command
	cmp	r0, #0
	blt	.L1
	mov	r2, #2
	mov	r1, #17
	mov	r0, r4
	bl	aiptek_command
	cmp	r0, #0
	blt	.L1
	mov	r2, #255
	mov	r1, #18
	mov	r0, r4
	bl	aiptek_command
	cmp	r0, #0
	blt	.L1
	mov	r3, #0
	mov	r0, r3
	ldr	r2, .L10+16
	ldr	r2, [r2]
	str	r3, [r4]
	str	r2, [r4, #4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	.align	2
.L10:
	.word	ABS_X
	.word	ABS_Y
	.word	ABS_PRESSURE
	.word	AIPTEK_COORDINATE_ABSOLUTE_MODE
	.word	AIPTEK_DIAGNOSTIC_NA
	.size	aiptek_program_tablet, .-aiptek_program_tablet
	.comm	AIPTEK_DIAGNOSTIC_NA,4,4
	.comm	AIPTEK_COORDINATE_ABSOLUTE_MODE,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.comm	ABS_PRESSURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
