	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_tp_state
_report_tp_state:                       ## @report_tp_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	addq	$24, %rdi
	callq	_smp_load_acquire
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$12, %r14
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rax,%r14), %edi
	callq	_le16_to_int
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r14), %edi
	callq	_le16_to_int
	movq	(%r13), %rcx
	movslq	%ebx, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	shlq	$4, %r12
	movq	%rax, 8(%rcx,%r12)
	movq	%r13, %rbx
	movq	40(%r13), %r13
	addq	32(%rbx), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14), %edi
	callq	_le16_to_int
	subq	%rax, %r13
	movq	(%rbx), %rax
	movq	%r13, (%rax,%r12)
	movq	%rbx, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	cmpq	$0, 16(%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_applespi_debug_update_dimensions
	jmp	LBB0_7
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_input_mt_assign_slots
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.10:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%rbx, %rdx
	shlq	$4, %rdx
	addq	(%r13), %rdx
	leaq	(%rbx,%rbx,2), %rcx
	shlq	$2, %rcx
	addq	8(%r12), %rcx
	movq	%r15, %rdi
	callq	_report_finger_data
	incq	%rbx
	cmpq	%r14, %rbx
	jne	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_input_mt_sync_frame
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.no_dead_strip	_report_tp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_tp_state
_report_tp_state:                       ; @report_tp_state
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	add	x0, x0, #24
	bl	_smp_load_acquire
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	w22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x20]
	add	x24, x24, #12
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x23, x8, x24
	ldr	w0, [x23, #8]
	bl	_le16_to_int
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #4]
	bl	_le16_to_int
	ldr	x8, [x21]
	sbfiz	x26, x22, #4, #32
	add	x8, x8, x26
	str	x0, [x8, #8]
	ldp	x8, x9, [x21, #32]
	add	x27, x9, x8
	ldr	w0, [x23]
	bl	_le16_to_int
	sub	x8, x27, x0
	ldr	x9, [x21]
	str	x8, [x9, x26]
	add	w22, w22, #1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_applespi_debug_update_dimensions
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldp	x2, x1, [x21]
	mov	x0, x19
	mov	x3, x22
	mov	w4, #0
	bl	_input_mt_assign_slots
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x23, #0
	mov	w22, w22
	mov	w24, #12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x21]
	ldr	w1, [x8, x23, lsl #2]
	add	x2, x9, x23, lsl #4
	ldr	x8, [x20, #8]
	madd	x3, x23, x24, x8
	mov	x0, x19
	bl	_report_finger_data
	add	x23, x23, #1
	cmp	x23, x22
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_input_mt_sync_frame
Lloh0:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.no_dead_strip	_report_tp_state
.subsections_via_symbols
