	.file	"extr_applespi.c_report_tp_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	report_tp_state, @function
report_tp_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	add	rdi, 24
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	smp_load_acquire@PLT
	test	rax, rax
	je	.L1
	mov	r13, rax
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L3
	mov	DWORD PTR 4[rsp], 0
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L19
.L5:
	mov	rdx, QWORD PTR 8[r12]
	lea	rax, [rbx+rbx*2]
	lea	r14, [rdx+rax*4]
	mov	edi, DWORD PTR 8[r14]
	call	le16_to_int@PLT
	test	rax, rax
	je	.L4
	movsx	rdx, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR 4[r14]
	sal	rdx, 4
	mov	r15, rdx
	mov	QWORD PTR 8[rsp], rdx
	add	r15, QWORD PTR 0[rbp]
	call	le16_to_int@PLT
	mov	edi, DWORD PTR [r14]
	mov	QWORD PTR 8[r15], rax
	mov	r15, QWORD PTR 40[rbp]
	add	r15, QWORD PTR 32[rbp]
	call	le16_to_int@PLT
	mov	rcx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	sub	r15, rax
	add	DWORD PTR 4[rsp], 1
	cmp	QWORD PTR 16[rbp], 0
	mov	QWORD PTR [rcx+rdx], r15
	je	.L4
	mov	rsi, r14
	mov	rdi, rbp
	add	rbx, 1
	call	applespi_debug_update_dimensions@PLT
	cmp	DWORD PTR [r12], ebx
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	ebx, DWORD PTR 4[rsp]
	mov	rsi, QWORD PTR 8[rbp]
	xor	r8d, r8d
	mov	rdi, r13
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, ebx
	call	input_mt_assign_slots@PLT
	mov	eax, ebx
	test	ebx, ebx
	je	.L8
	sub	eax, 1
	xor	ebx, ebx
	lea	r14, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 0[rbp]
	lea	rcx, [rbx+rbx*2]
	mov	rdi, r13
	add	rcx, QWORD PTR 8[r12]
	lea	rdx, [rax+rbx*4]
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR [rax+rbx]
	add	rbx, 4
	call	report_finger_data@PLT
	cmp	r14, rbx
	jne	.L7
.L8:
	mov	rdi, r13
	call	input_mt_sync_frame@PLT
	mov	edx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR BTN_LEFT[rip]
	mov	rdi, r13
	call	input_report_key@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	input_sync@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdi, r13
	call	input_mt_assign_slots@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	report_tp_state, .-report_tp_state
	.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_applespi.c_report_tp_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	report_tp_state, %function
report_tp_state:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #20
	add	r0, r0, #12
	mov	r6, r1
	bl	smp_load_acquire
	subs	r10, r0, #0
	beq	.L1
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L3
	mov	r7, #0
	mov	r4, r7
	b	.L5
.L4:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L22
.L5:
	ldr	fp, [r6, #8]
	add	r8, r4, r4, lsl #1
	add	r9, fp, r8, lsl #2
	ldr	r0, [r9, #8]
	bl	le16_to_int
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L4
	ldr	r2, [r5]
	ldr	r0, [r9, #4]
	add	r2, r2, r7, lsl #3
	str	r2, [sp, #12]
	bl	le16_to_int
	ldr	r2, [sp, #12]
	ldr	r3, [r5, #16]
	ldr	r1, [r5, #20]
	str	r0, [r2, #4]
	ldr	r0, [fp, r8, lsl #2]
	add	r8, r3, r1
	bl	le16_to_int
	ldr	r2, [r5, #8]
	ldr	r3, [r5]
	sub	r8, r8, r0
	cmp	r2, #0
	str	r8, [r3, r7, lsl #3]
	add	r7, r7, #1
	beq	.L4
	mov	r1, r9
	mov	r0, r5
	bl	applespi_debug_update_dimensions
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L5
.L22:
	mov	r4, #0
	str	r4, [sp]
	mov	r3, r7
	mov	r0, r10
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	bl	input_mt_assign_slots
	cmp	r7, r4
	beq	.L8
.L7:
	ldr	r3, [r6, #8]
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	add	r0, r4, r4, lsl #1
	ldr	r1, [r1, r4, lsl #2]
	add	r3, r3, r0, lsl #2
	add	r2, r2, r4, lsl #3
	mov	r0, r10
	add	r4, r4, #1
	bl	report_finger_data
	cmp	r7, r4
	bne	.L7
.L8:
	mov	r0, r10
	bl	input_mt_sync_frame
	ldr	r3, .L23
	mov	r0, r10
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	bl	input_report_key
	mov	r0, r10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	input_sync
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r3, #0
	ldr	r2, [r5]
	str	r3, [sp]
	ldr	r1, [r5, #4]
	bl	input_mt_assign_slots
	b	.L8
.L24:
	.align	2
.L23:
	.word	BTN_LEFT
	.size	report_tp_state, .-report_tp_state
	.comm	BTN_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
