	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zforce_touch_event
_zforce_touch_event:                    ## @zforce_touch_event
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movl	(%rsi), %edx
	movq	_ZFORCE_REPORT_POINTS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%ecx, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%r14), %edx
LBB0_2:
	testl	%edx, %edx
	jle	LBB0_3
## %bb.4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$36, %rbx
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	addq	$36, %rbx
	movq	%rdx, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-28(%rbx), %r12d
	movl	-20(%rbx), %r15d
	shll	$8, %r12d
	orl	-32(%rbx), %r12d
	shll	$8, %r15d
	orl	-24(%rbx), %r15d
	cmpl	(%rax), %r12d
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	4(%rax), %r15d
	jle	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_dev_warn
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-16(%rbx), %r13d
	movl	-12(%rbx), %edi
	movl	%r13d, %r14d
	andl	$15, %r14d
	shrl	$4, %r13d
	andl	$15, %r13d
	movl	-8(%rbx), %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-12(%rbx), %edi
	movl	-8(%rbx), %esi
	callq	_min
	movl	%eax, %r10d
	movl	-12(%rbx), %ecx
	movl	-4(%rbx), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	cmpl	-8(%rbx), %ecx
	setg	%al
	movl	(%rbx), %r11d
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	pushq	%rax
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	pushq	%r10
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r12
	pushq	%r11
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_dev_dbg
	addq	$64, %rsp
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	decl	%r13d
	movl	%r13d, %esi
	movq	%rax, %r13
	callq	_input_mt_slot
	movl	(%r13), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	_STATE_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	setne	%dl
	callq	_input_mt_report_slot_state
	movq	_STATE_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_input_report_abs
	movl	(%r13), %edi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	(%r13), %edi
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_abs
	movl	(%r13), %edi
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_abs
	movl	(%r13), %edi
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_abs
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movl	(%r13), %edi
	callq	_input_mt_sync_frame
	movl	(%r13), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_input_mt_report_finger_count
	movl	(%r13), %edi
	callq	_input_sync
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFORCE_REPORT_POINTS,4,2       ## @ZFORCE_REPORT_POINTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many coordinates %d, expected max %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"coordinates (%d,%d) invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"point %d/%d: state %d, id %d, pressure %d, prblty %d, x %d, y %d, amajor %d, aminor %d, ori %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_STATE_UP,4,2                   ## @STATE_UP
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
	.no_dead_strip	_zforce_touch_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zforce_touch_event
_zforce_touch_event:                    ; @zforce_touch_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x1
	ldp	x24, x19, [x0, #8]
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w2, [x1]
Lloh0:
	adrp	x20, _ZFORCE_REPORT_POINTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ZFORCE_REPORT_POINTS@GOTPAGEOFF]
	ldr	w3, [x20]
	cmp	w2, w3
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	ldr	w2, [x20]
LBB0_2:
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.3:
	stp	x19, x24, [sp, #24]             ; 16-byte Folded Spill
	mov	x22, #0
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
	add	x23, x21, #20
	mov	w8, w2
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	add	x22, x22, #1
	add	x23, x23, #36
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x8, x22
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w8, [x23, #-16]
	orr	w27, w9, w8, lsl #8
	ldp	w9, w8, [x23, #-8]
	orr	w26, w9, w8, lsl #8
	ldr	w8, [x24]
	cmp	w27, w8
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, #4]
	cmp	w26, w8
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x19
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x27
	mov	x3, x26
	bl	_dev_warn
	mov	w26, #0
	mov	w27, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w0, [x23]
	and	w21, w8, #0xf
	ubfx	w20, w8, #4, #4
	ldr	w1, [x23, #8]
	bl	_max
	mov	x24, x0
	ldp	w0, w1, [x23, #4]
	bl	_min
	mov	x25, x0
	ldp	w8, w9, [x23, #4]
	cmp	w8, w9
	cset	w28, gt
	ldp	w6, w7, [x23, #12]
	stp	w0, w28, [sp, #12]
	stp	w26, w24, [sp, #4]
	str	w27, [sp]
	mov	x0, x19
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	ldr	x3, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x21
	mov	x5, x20
	bl	_dev_dbg
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w0, [x19]
	sub	w1, w20, #1
	bl	_input_mt_slot
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x20, _STATE_UP@GOTPAGE
Lloh12:
	ldr	x20, [x20, _STATE_UP@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w21, w8
	cset	w2, ne
	bl	_input_mt_report_slot_state
	ldr	w8, [x20]
	cmp	w21, w8
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x27
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x26
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _ABS_MT_ORIENTATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_MT_ORIENTATION@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x2, x28
	bl	_input_report_abs
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_11:
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
LBB0_12:
	ldr	w0, [x19]
	bl	_input_mt_sync_frame
	ldr	w0, [x19]
	ldr	w1, [sp, #52]                   ; 4-byte Folded Reload
	bl	_input_mt_report_finger_count
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFORCE_REPORT_POINTS,4,2       ; @ZFORCE_REPORT_POINTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many coordinates %d, expected max %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"coordinates (%d,%d) invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"point %d/%d: state %d, id %d, pressure %d, prblty %d, x %d, y %d, amajor %d, aminor %d, ori %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_STATE_UP,4,2                   ; @STATE_UP
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
	.no_dead_strip	_zforce_touch_event
.subsections_via_symbols
