	.file	"extr_trackpoint.c_trackpoint_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	trackpoint_sync, @function
trackpoint_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR TP_TOGGLE_TWOHAND[rip]
	mov	rbx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 7[rsp]
	mov	rdx, r12
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_TWOHAND[rip]
	test	BYTE PTR 7[rsp], dl
	jne	.L20
.L2:
	mov	esi, DWORD PTR TP_TOGGLE_SOURCE_TAG[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_SOURCE_TAG[rip]
	test	BYTE PTR 7[rsp], dl
	jne	.L21
.L3:
	mov	esi, DWORD PTR TP_TOGGLE_MB[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_MB[rip]
	test	BYTE PTR 7[rsp], dl
	jne	.L22
.L4:
	mov	edx, DWORD PTR 48[rbx]
	mov	esi, DWORD PTR TP_SENS[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR TP_INERTIA[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 40[rbx]
	mov	esi, DWORD PTR TP_SPEED[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 36[rbx]
	mov	esi, DWORD PTR TP_REACH[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR TP_DRAGHYS[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR TP_MINDRAG[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR TP_THRESH[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR TP_UP_THRESH[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR TP_Z_TIME[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR TP_JENKS_CURV[rip]
	mov	rdi, rbp
	call	trackpoint_write@PLT
	mov	esi, DWORD PTR TP_TOGGLE_PTSON[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_PTSON[rip]
	movzx	eax, BYTE PTR 7[rsp]
	and	eax, edx
	cmp	al, dl
	sete	al
	movzx	eax, al
	cmp	eax, DWORD PTR [rbx]
	je	.L5
	mov	esi, DWORD PTR TP_TOGGLE_PTSON[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
.L5:
	mov	esi, DWORD PTR TP_TOGGLE_SKIPBACK[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_SKIPBACK[rip]
	movzx	eax, BYTE PTR 7[rsp]
	and	eax, edx
	cmp	al, dl
	sete	al
	movzx	eax, al
	cmp	eax, DWORD PTR 4[rbx]
	je	.L6
	mov	esi, DWORD PTR TP_TOGGLE_SKIPBACK[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
.L6:
	mov	esi, DWORD PTR TP_TOGGLE_EXT_DEV[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	trackpoint_read@PLT
	movzx	edx, BYTE PTR TP_MASK_EXT_DEV[rip]
	movzx	eax, BYTE PTR 7[rsp]
	and	eax, edx
	cmp	al, dl
	sete	al
	movzx	eax, al
	cmp	eax, DWORD PTR 8[rbx]
	je	.L7
	mov	esi, DWORD PTR TP_TOGGLE_EXT_DEV[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
.L7:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	esi, DWORD PTR TP_TOGGLE_MB[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR TP_TOGGLE_SOURCE_TAG[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR TP_TOGGLE_TWOHAND[rip]
	mov	rdi, rbp
	call	trackpoint_toggle_bit@PLT
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	trackpoint_sync, .-trackpoint_sync
	.comm	TP_Z_TIME,4,4
	.comm	TP_UP_THRESH,4,4
	.comm	TP_TOGGLE_TWOHAND,4,4
	.comm	TP_TOGGLE_SOURCE_TAG,4,4
	.comm	TP_TOGGLE_SKIPBACK,4,4
	.comm	TP_TOGGLE_PTSON,4,4
	.comm	TP_TOGGLE_MB,4,4
	.comm	TP_TOGGLE_EXT_DEV,4,4
	.comm	TP_THRESH,4,4
	.comm	TP_SPEED,4,4
	.comm	TP_SENS,4,4
	.comm	TP_REACH,4,4
	.comm	TP_MINDRAG,4,4
	.comm	TP_MASK_TWOHAND,1,1
	.comm	TP_MASK_SOURCE_TAG,1,1
	.comm	TP_MASK_SKIPBACK,1,1
	.comm	TP_MASK_PTSON,1,1
	.comm	TP_MASK_MB,1,1
	.comm	TP_MASK_EXT_DEV,1,1
	.comm	TP_JENKS_CURV,4,4
	.comm	TP_INERTIA,4,4
	.comm	TP_DRAGHYS,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_trackpoint.c_trackpoint_sync.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trackpoint_sync, %function
trackpoint_sync:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L24
	sub	sp, sp, #8
	ldr	r3, .L24+4
	add	r2, sp, #3
	ldr	r1, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	ldr	r5, [r0, #4]
	bl	trackpoint_read
	ldr	r2, .L24+8
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	tst	r2, r3
	bne	.L20
.L2:
	ldr	r6, .L24+12
	add	r2, sp, #3
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_read
	ldr	r2, .L24+16
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	tst	r2, r3
	bne	.L21
.L3:
	ldr	r6, .L24+20
	add	r2, sp, #3
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_read
	ldr	r2, .L24+24
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	tst	r2, r3
	bne	.L22
.L4:
	ldr	r3, .L24+28
	ldr	r2, [r5, #48]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+32
	ldr	r2, [r5, #44]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+36
	ldr	r2, [r5, #40]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+40
	ldr	r2, [r5, #36]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+44
	ldr	r2, [r5, #32]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+48
	ldr	r2, [r5, #28]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+52
	ldr	r2, [r5, #24]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+56
	ldr	r2, [r5, #20]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+60
	ldr	r2, [r5, #16]
	ldr	r1, [r3]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r3, .L24+64
	ldr	r6, .L24+68
	ldr	r1, [r3]
	ldr	r2, [r5, #12]
	mov	r0, r4
	bl	trackpoint_write
	ldr	r1, [r6]
	add	r2, sp, #3
	mov	r0, r4
	bl	trackpoint_read
	ldr	r3, .L24+72
	ldrb	r1, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [r5]
	bics	r1, r2, r1
	moveq	r1, #1
	movne	r1, #0
	cmp	r1, r3
	beq	.L5
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
.L5:
	ldr	r6, .L24+76
	add	r2, sp, #3
	ldr	r1, [r6]
	mov	r0, r4
	bl	trackpoint_read
	ldr	r3, .L24+80
	ldrb	r1, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [r5, #4]
	bics	r1, r2, r1
	moveq	r1, #1
	movne	r1, #0
	cmp	r1, r3
	beq	.L6
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
.L6:
	ldr	r6, .L24+84
	add	r2, sp, #3
	ldr	r1, [r6]
	mov	r0, r4
	bl	trackpoint_read
	ldr	r3, .L24+88
	ldrb	r1, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [r5, #8]
	bics	r1, r2, r1
	moveq	r1, #1
	movne	r1, #0
	cmp	r1, r3
	beq	.L7
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
.L7:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
	b	.L4
.L21:
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
	b	.L3
.L20:
	mov	r0, r4
	ldr	r1, [r6]
	bl	trackpoint_toggle_bit
	b	.L2
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	TP_TOGGLE_TWOHAND
	.word	.LC0
	.word	TP_MASK_TWOHAND
	.word	TP_TOGGLE_SOURCE_TAG
	.word	TP_MASK_SOURCE_TAG
	.word	TP_TOGGLE_MB
	.word	TP_MASK_MB
	.word	TP_SENS
	.word	TP_INERTIA
	.word	TP_SPEED
	.word	TP_REACH
	.word	TP_DRAGHYS
	.word	TP_MINDRAG
	.word	TP_THRESH
	.word	TP_UP_THRESH
	.word	TP_Z_TIME
	.word	TP_JENKS_CURV
	.word	TP_TOGGLE_PTSON
	.word	TP_MASK_PTSON
	.word	TP_TOGGLE_SKIPBACK
	.word	TP_MASK_SKIPBACK
	.word	TP_TOGGLE_EXT_DEV
	.word	TP_MASK_EXT_DEV
	.size	trackpoint_sync, .-trackpoint_sync
	.comm	TP_Z_TIME,4,4
	.comm	TP_UP_THRESH,4,4
	.comm	TP_TOGGLE_TWOHAND,4,4
	.comm	TP_TOGGLE_SOURCE_TAG,4,4
	.comm	TP_TOGGLE_SKIPBACK,4,4
	.comm	TP_TOGGLE_PTSON,4,4
	.comm	TP_TOGGLE_MB,4,4
	.comm	TP_TOGGLE_EXT_DEV,4,4
	.comm	TP_THRESH,4,4
	.comm	TP_SPEED,4,4
	.comm	TP_SENS,4,4
	.comm	TP_REACH,4,4
	.comm	TP_MINDRAG,4,4
	.comm	TP_MASK_TWOHAND,1,1
	.comm	TP_MASK_SOURCE_TAG,1,1
	.comm	TP_MASK_SKIPBACK,1,1
	.comm	TP_MASK_PTSON,1,1
	.comm	TP_MASK_MB,1,1
	.comm	TP_MASK_EXT_DEV,1,1
	.comm	TP_JENKS_CURV,4,4
	.comm	TP_INERTIA,4,4
	.comm	TP_DRAGHYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
