	.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	%rsi, %r12
	movq	(%rdi), %r15
	testb	$1, 1(%r15)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.3:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wacom_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wacom_mt_report_slot_state
	testb	$2, 1(%r15)
	je	LBB0_7
	jmp	LBB0_5
LBB0_1:
	movq	8(%rdi), %rax
	movl	4(%rax), %r14d
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	sete	%bl
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wacom_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wacom_mt_report_slot_state
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.4:
	testb	$2, 1(%r15)
	jne	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wacom_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wacom_mt_report_slot_state
	jmp	LBB0_8
LBB0_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, %r13d
	andl	$32767, %r13d                   ## imm = 0x7FFF
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wacom_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_wacom_report_abs
	movl	$1, %r13d
	testb	$2, 1(%r15)
	je	LBB0_7
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %r14d
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	sete	%bl
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wacom_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wacom_mt_report_slot_state
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.6:
	leaq	4(%r15), %rdi
	callq	_le16_to_cpup
	movl	%eax, %r13d
	andl	$32767, %r13d                   ## 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	%r12, %rdi
	movl	%r13d, %edx
	callq	_wacom_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wacom_report_abs
	movl	$1, %r13d
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r13d, (%rax)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wacom_mt_report_pointer_emulation
	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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldrb	w8, [x23, #1]
Lloh0:
	adrp	x24, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MT_TOOL_FINGER@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_wacom_mt_slot
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_mt_report_slot_state
	mov	w22, #0
	ldrb	w8, [x23, #1]
	tbz	w8, #1, LBB0_4
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w25, [x8, #4]
	cmp	w25, #0
	cset	w21, eq
	mov	x0, x19
	mov	w1, #0
	bl	_wacom_mt_slot
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_wacom_mt_report_slot_state
	mov	w22, #0
	cbz	w25, LBB0_5
; %bb.3:
	ldrb	w8, [x23, #1]
	tbnz	w8, #1, LBB0_6
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_wacom_mt_slot
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_mt_report_slot_state
	b	LBB0_8
LBB0_5:
	add	x0, x23, #2
	bl	_le16_to_cpup
	and	w21, w0, #0x7fff
	add	x0, x23, #6
	bl	_le16_to_cpup
	and	w22, w0, #0x7fff
Lloh2:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_wacom_report_abs
Lloh5:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_wacom_report_abs
	mov	w22, #1
	ldrb	w8, [x23, #1]
	tbz	w8, #1, LBB0_4
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	w25, [x8, #4]
	cmp	w25, #0
	cset	w21, eq
	mov	x0, x19
	mov	w1, #1
	bl	_wacom_mt_slot
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_wacom_mt_report_slot_state
	cbnz	w25, 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
Lloh8:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_wacom_report_abs
Lloh11:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_wacom_report_abs
	mov	w22, #1
LBB0_8:
	ldr	x8, [x20, #8]
	str	w22, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_wacom_mt_report_pointer_emulation
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
