	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_tpc_mt_touch
_wacom_tpc_mt_touch:                    ## @wacom_tpc_mt_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), %r13
	testb	$1, 1(%r15)
	jne	LBB0_1
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_input_mt_report_slot_state
	jmp	LBB0_4
LBB0_1:
	movq	%r14, %rdi
	callq	_report_touch_events
	movq	%rax, %r12
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_input_mt_report_slot_state
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	leaq	2(%r15), %rdi
	callq	_le16_to_cpup
	movl	%eax, %ebx
	andl	$32767, %ebx                    ## imm = 0x7FFF
	leaq	6(%r15), %rdi
	callq	_le16_to_cpup
	movl	%eax, %r12d
	andl	$32767, %r12d                   ## imm = 0x7FFF
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
LBB0_4:
	testb	$2, 1(%r15)
	jne	LBB0_5
## %bb.7:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_input_mt_report_slot_state
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_report_touch_events
	movq	%rax, %r12
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_input_mt_report_slot_state
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:
	leaq	4(%r15), %rdi
	callq	_le16_to_cpup
	movl	%eax, %r12d
	andl	$32767, %r12d                   ## imm = 0x7FFF
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_le16_to_cpup
	movl	%eax, %ebx
	andl	$32767, %ebx                    ## imm = 0x7FFF
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
LBB0_8:
	movq	%r13, %rdi
	callq	_input_mt_sync_frame
	movq	%r14, %rdi
	callq	_wacom_wac_finger_count_touches
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$1, %eax
	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
	.no_dead_strip	_wacom_tpc_mt_touch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_tpc_mt_touch
_wacom_tpc_mt_touch:                    ; @wacom_tpc_mt_touch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x23, [x0]
	ldrb	w8, [x23, #1]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_input_mt_slot
Lloh0:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_mt_report_slot_state
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_report_touch_events
	mov	x21, x0
	cmp	x0, #0
	cset	w22, ne
	mov	x0, x20
	mov	w1, #0
	bl	_input_mt_slot
Lloh3:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_mt_report_slot_state
	cbz	x21, LBB0_4
; %bb.3:
	add	x0, x23, #2
	bl	_le16_to_cpup
	and	w21, w0, #0x7fff
	add	x0, x23, #6
	bl	_le16_to_cpup
	and	w22, w0, #0x7fff
Lloh6:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_input_report_abs
Lloh9:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_report_abs
LBB0_4:
	ldrb	w8, [x23, #1]
	tbnz	w8, #1, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	bl	_input_mt_slot
Lloh12:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_mt_report_slot_state
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_report_touch_events
	mov	x21, x0
	cmp	x0, #0
	cset	w22, ne
	mov	x0, x20
	mov	w1, #1
	bl	_input_mt_slot
Lloh15:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_mt_report_slot_state
	cbz	x21, LBB0_8
; %bb.7:
	add	x0, x23, #4
	bl	_le16_to_cpup
	and	w21, w0, #0x7fff
	add	x0, x23, #8
	bl	_le16_to_cpup
	and	w22, w0, #0x7fff
Lloh18:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_report_abs
LBB0_8:
	mov	x0, x20
	bl	_input_mt_sync_frame
	mov	x0, x19
	bl	_wacom_wac_finger_count_touches
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.no_dead_strip	_wacom_tpc_mt_touch
.subsections_via_symbols
