	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_raw_event
_t4_raw_event:                          ## @t4_raw_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.3:
	movl	$16, %r12d
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r15), %edi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_abs
	movl	12(%r15), %edi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_abs
	movl	12(%r15), %edi
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_abs
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movslq	(%r15), %rax
	addq	$20, %r12
	cmpq	%rax, %rsi
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	-16(%rax,%r12), %r13d
	movl	-8(%rax,%r12), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	shll	$8, %r13d
	orl	-12(%rax,%r12), %r13d
	movl	-4(%rax,%r12), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax,%r12), %eax
	decl	%eax
	cmpl	$127, %eax
	setb	%bl
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	movq	%r15, %r14
	setne	%r15b
	movl	12(%r14), %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_input_mt_slot
	movl	12(%r14), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andb	%bl, %r15b
	movzbl	%r15b, %ebx
	movq	%r14, %r15
	movl	%ebx, %edx
	callq	_input_mt_report_slot_state
	cmpb	$1, %bl
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	movl	$0, %ebx
	movl	$0, %edx
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	shll	$8, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	subl	%eax, %ebx
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$62, %r14d
	movl	%r13d, %edx
	jmp	LBB0_7
LBB0_9:
	movl	12(%r15), %edi
	callq	_input_mt_sync_frame
	movl	12(%r15), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_input_report_key
	movl	12(%r15), %edi
	callq	_input_sync
	movl	$1, %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.no_dead_strip	_t4_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_raw_event
_t4_raw_event:                          ; @t4_raw_event
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x24, #0
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x24, x24, #20
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	ldp	w9, w10, [x8]
	orr	w28, w10, w9, lsl #8
	ldp	w27, w25, [x8, #8]
	ldp	w23, w26, [x19, #4]
	ldr	w8, [x8, #16]
	sub	w22, w8, #1
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_input_mt_slot
	mov	w8, #65535
	cmp	w28, w8
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #127
	ccmp	w22, w8, #2, ne
	cset	w22, lo
	mov	x2, x22
	bl	_input_mt_report_slot_state
	cmp	w22, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w25, w27, lsl #8
	mov	w9, #65535
	cmp	w28, w9
	mov	w9, #62
	csel	w22, wzr, w9, eq
	sub	w8, w23, w8
	add	w8, w8, w26
	csel	w23, wzr, w8, eq
	csel	w2, wzr, w28, eq
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_input_report_abs
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_input_report_abs
	b	LBB0_3
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_input_mt_sync_frame
	ldr	w0, [x19, #12]
Lloh12:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_input_report_key
	ldr	w0, [x19, #12]
	bl	_input_sync
	mov	w0, #1
	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_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.no_dead_strip	_t4_raw_event
.subsections_via_symbols
