	.file	"extr_alps.c_alps_tap_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alps_tap_mode, @function
alps_tap_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	esi, esi
	je	.L2
	mov	r13d, DWORD PTR PSMOUSE_CMD_SETRATE[rip]
	mov	eax, 10
.L3:
	lea	r12, 4[rsp]
	mov	edx, DWORD PTR PSMOUSE_CMD_GETINFO[rip]
	mov	rdi, rbp
	mov	BYTE PTR 3[rsp], al
	mov	rsi, r12
	call	ps2_command@PLT
	test	rax, rax
	jne	.L6
	mov	edx, DWORD PTR PSMOUSE_CMD_DISABLE[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	ps2_command@PLT
	test	rax, rax
	jne	.L6
	mov	edx, DWORD PTR PSMOUSE_CMD_DISABLE[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	ps2_command@PLT
	test	rax, rax
	jne	.L6
	lea	rsi, 3[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	ps2_command@PLT
	test	rax, rax
	jne	.L6
	mov	rsi, r12
	mov	rdi, rbp
	call	alps_get_status@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	r13d, DWORD PTR PSMOUSE_CMD_SETRES[rip]
	xor	eax, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, -1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alps_tap_mode, .-alps_tap_mode
	.comm	PSMOUSE_CMD_SETRES,4,4
	.comm	PSMOUSE_CMD_SETRATE,4,4
	.comm	PSMOUSE_CMD_GETINFO,4,4
	.comm	PSMOUSE_CMD_DISABLE,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_alps.c_alps_tap_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alps_tap_mode, %function
alps_tap_mode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L11
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	subs	r3, r1, #0
	movne	r3, #10
	ldrne	r2, .L11+4
	ldreq	r2, .L11+8
	add	r1, sp, #8
	ldr	r6, [r2]
	ldr	r2, .L11+12
	mov	r4, r0
	ldr	r2, [r2]
	strb	r3, [sp, #7]
	bl	ps2_command
	subs	r1, r0, #0
	bne	.L6
	ldr	r5, .L11+16
	mov	r0, r4
	ldr	r2, [r5]
	bl	ps2_command
	subs	r1, r0, #0
	bne	.L6
	mov	r0, r4
	ldr	r2, [r5]
	bl	ps2_command
	cmp	r0, #0
	bne	.L6
	mov	r2, r6
	mov	r0, r4
	add	r1, sp, #7
	bl	ps2_command
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	add	r1, sp, #8
	bl	alps_get_status
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	PSMOUSE_CMD_SETRATE
	.word	PSMOUSE_CMD_SETRES
	.word	PSMOUSE_CMD_GETINFO
	.word	PSMOUSE_CMD_DISABLE
	.size	alps_tap_mode, .-alps_tap_mode
	.comm	PSMOUSE_CMD_SETRES,4,4
	.comm	PSMOUSE_CMD_SETRATE,4,4
	.comm	PSMOUSE_CMD_GETINFO,4,4
	.comm	PSMOUSE_CMD_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
