	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_multi_touch
_parse_multi_touch:                     ## @parse_multi_touch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	16(%rdi), %r12
	movzbl	(%r15), %r13d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	andl	$1, %edx
	movq	%r12, %rdi
	callq	_input_mt_report_slot_state
	andl	$1, %r13d
	je	LBB0_2
## %bb.1:
	movzbl	1(%r15), %eax
	shll	$7, %eax
	movzbl	2(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	3(%r15), %eax
	shll	$7, %eax
	movzbl	4(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_scale_touch_coordinates
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movl	$1, %ebx
LBB0_2:
	movl	%ebx, %r13d
	movzbl	(%r15), %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$2, %edx
	movq	%r12, %rdi
	callq	_input_mt_report_slot_state
	andl	$2, %ebx
	je	LBB0_4
## %bb.3:
	movzbl	7(%r15), %eax
	shll	$7, %eax
	movzbl	8(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	9(%r15), %eax
	shll	$7, %eax
	movzbl	10(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_scale_touch_coordinates
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	incl	%r13d
LBB0_4:
	movq	8(%r14), %rax
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.6:
	cmpl	$1, %r13d
	jne	LBB0_7
## %bb.8:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_input_mt_report_pointer_emulation
LBB0_10:
	movq	%r12, %rdi
	callq	_input_sync
	addq	$8, %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	_BTN_TOOL_PEN,8,3               ## @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,8,3            ## @BTN_TOOL_RUBBER
	.comm	_BTN_TOOL_FINGER,8,3            ## @BTN_TOOL_FINGER
	.comm	_KEY_RESERVED,8,3               ## @KEY_RESERVED
	.no_dead_strip	_parse_multi_touch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_multi_touch
_parse_multi_touch:                     ; @parse_multi_touch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x19, [x0, #16]
	ldr	x22, [x0]
	ldrb	w27, [x22]
	and	w21, w27, #0x1
	mov	x0, x19
	mov	w1, #0
	bl	_input_mt_slot
Lloh0:
	adrp	x26, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MT_TOOL_FINGER@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_input_mt_report_slot_state
	mov	w24, #0
Lloh2:
	adrp	x25, _ABS_MT_POSITION_X@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ABS_MT_POSITION_Y@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	tbz	w27, #0, LBB0_2
; %bb.1:
	ldrb	w8, [x22, #1]
	ldrb	w9, [x22, #2]
	orr	w8, w9, w8, lsl #7
	str	w8, [sp, #12]
	ldrb	w8, [x22, #3]
	ldrb	w9, [x22, #4]
	orr	w8, w9, w8, lsl #7
	str	w8, [sp, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_scale_touch_coordinates
	ldr	w1, [x25]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_input_report_abs
	ldr	w1, [x23]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_input_report_abs
	mov	w24, #1
LBB0_2:
	ldrb	w27, [x22]
	and	w21, w27, #0x2
	mov	x0, x19
	mov	w1, #1
	bl	_input_mt_slot
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_input_mt_report_slot_state
	tbz	w27, #1, LBB0_4
; %bb.3:
	ldrb	w8, [x22, #7]
	ldrb	w9, [x22, #8]
	orr	w10, w9, w8, lsl #7
	ldrb	w8, [x22, #9]
	ldrb	w9, [x22, #10]
	orr	w8, w9, w8, lsl #7
	stp	w8, w10, [sp, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_scale_touch_coordinates
	ldr	w1, [x25]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_input_report_abs
	ldr	w1, [x23]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_input_report_abs
	add	w24, w24, #1
LBB0_4:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _BTN_TOOL_PEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _BTN_TOOL_RUBBER@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh14:
	adrp	x9, _KEY_RESERVED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KEY_RESERVED@GOTPAGEOFF]
	cmp	w24, #1
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_input_mt_report_pointer_emulation
LBB0_6:
	mov	x0, x19
	bl	_input_sync
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	_BTN_TOOL_PEN,8,3               ; @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,8,3            ; @BTN_TOOL_RUBBER
	.comm	_BTN_TOOL_FINGER,8,3            ; @BTN_TOOL_FINGER
	.comm	_KEY_RESERVED,8,3               ; @KEY_RESERVED
	.no_dead_strip	_parse_multi_touch
.subsections_via_symbols
