	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pixcir_ts_report
_pixcir_ts_report:                      ## @pixcir_ts_report
	.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, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PIXCIR_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	cmpl	%r12d, %r15d
	cmovgel	%r12d, %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	8(%r14), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_input_mt_assign_slots
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.3:
	movl	%r15d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_input_mt_slot
	movl	(%rbx), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movl	(%rbx), %edi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movl	4(%rax,%r15,8), %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movl	(%rax,%r15,8), %edx
	callq	_input_report_abs
	movq	8(%r14), %rax
	movl	(%rax,%r15,8), %r9d
	movl	4(%rax,%r15,8), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %esi
	callq	_input_mt_get_slot_by_key
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_10:
	movl	(%rbx), %edi
	callq	_input_mt_sync_frame
	movl	(%rbx), %edi
	callq	_input_sync
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXCIR_MAX_SLOTS,4,2           ## @PIXCIR_MAX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no free slot for id 0x%x\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
L_.str.1:                               ## @.str.1
	.asciz	"%d: slot %d, x %d, y %d\n"

	.no_dead_strip	_pixcir_ts_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pixcir_ts_report
_pixcir_ts_report:                      ; @pixcir_ts_report
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PIXCIR_MAX_SLOTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIXCIR_MAX_SLOTS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x8
	ldp	x28, x22, [x0, #8]
	ldr	w8, [x1]
	cmp	w8, w12
	csel	w23, w8, w12, lt
	ldr	x8, [x28]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	x2, [x20, #8]
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x3, x23
	mov	w4, #0
	bl	_input_mt_assign_slots
LBB0_2:
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x24, #0
	mov	w26, #4
Lloh8:
	adrp	x21, _ABS_MT_POSITION_Y@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh10:
	adrp	x25, l_.str.1@PAGE
Lloh11:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w27, [x8, x24, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19]
	mov	x1, x27
	bl	_input_mt_slot
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_mt_report_slot_state
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x26]
	bl	_input_report_abs
	ldr	w0, [x19]
	ldr	w1, [x21]
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	ldur	w2, [x8, #-4]
	bl	_input_report_abs
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	ldp	w8, w9, [x8, #-4]
	sub	sp, sp, #32
	stp	x9, x8, [sp, #8]
	str	x27, [sp]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_dev_dbg
	add	sp, sp, #32
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	add	x26, x26, #8
	cmp	x23, x24
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19]
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x24, lsl #2]
	bl	_input_mt_get_slot_by_key
	mov	x27, x0
	tbz	w0, #31, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x22
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_6
LBB0_10:
	ldr	w0, [x19]
	bl	_input_mt_sync_frame
	ldr	w0, [x19]
	bl	_input_sync
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXCIR_MAX_SLOTS,4,2           ; @PIXCIR_MAX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no free slot for id 0x%x\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
l_.str.1:                               ; @.str.1
	.asciz	"%d: slot %d, x %d, y %d\n"

	.no_dead_strip	_pixcir_ts_report
.subsections_via_symbols
