	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_tpc_single_touch
_wacom_tpc_single_touch:                ## @wacom_tpc_single_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, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	xorl	%r12d, %r12d
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rbx
	movq	_WACOM_PKGLEN_TPC1FG@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.2:
	movb	(%rbx), %r13b
	leaq	1(%rbx), %rdi
	callq	_get_unaligned_le16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$3, %rbx
	movq	%rbx, %rdi
	callq	_get_unaligned_le16
	jmp	LBB0_4
LBB0_3:
	movb	1(%rbx), %r13b
	leaq	2(%rbx), %rdi
	callq	_le16_to_cpup
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_le16_to_cpup
LBB0_4:
	movl	%eax, %ebx
	testb	$1, %r13b
	je	LBB0_6
## %bb.5:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_wacom_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wacom_report_abs
	movl	$1, %r12d
LBB0_6:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_wacom_report_key
	movq	8(%r15), %rax
	movl	%r12d, (%rax)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_PKGLEN_TPC1FG,8,3        ## @WACOM_PKGLEN_TPC1FG
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_wacom_tpc_single_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_single_touch
_wacom_tpc_single_touch:                ; @wacom_tpc_single_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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	ldr	x24, [x19]
Lloh0:
	adrp	x8, _WACOM_PKGLEN_TPC1FG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_PKGLEN_TPC1FG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_4
; %bb.3:
	mov	x22, x24
	ldrb	w23, [x22], #3
	add	x0, x24, #1
	bl	_get_unaligned_le16
	mov	x21, x0
	mov	x0, x22
	bl	_get_unaligned_le16
	mov	x22, x0
	tbz	w23, #0, LBB0_1
	b	LBB0_5
LBB0_4:
	ldrb	w23, [x24, #1]
	add	x0, x24, #2
	bl	_le16_to_cpup
	mov	x21, x0
	add	x0, x24, #4
	bl	_le16_to_cpup
	mov	x22, x0
	tbz	w23, #0, LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_wacom_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_wacom_report_abs
	mov	w21, #1
LBB0_6:
Lloh9:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_wacom_report_key
	ldr	x8, [x19, #8]
	str	w21, [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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_PKGLEN_TPC1FG,8,3        ; @WACOM_PKGLEN_TPC1FG
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_wacom_tpc_single_touch
.subsections_via_symbols
