	.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, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	24(%rdi), %r14
	callq	_report_touch_events
	xorl	%ecx, %ecx
	cmpl	$1, 16(%r13)
	jg	LBB0_20
## %bb.1:
	movq	_WACOM_PKGLEN_TPC2FG@GOTPCREL(%rip), %rdx
	cmpq	%rbx, (%rdx)
	jb	LBB0_20
## %bb.2:
	movq	_WACOM_PKGLEN_TPC1FG@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_8
## %bb.3:
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movzbl	(%r12), %r15d
	andl	$1, %r15d
	jmp	LBB0_6
LBB0_8:
	movq	_WACOM_PKGLEN_TPC1FG_B@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_13
## %bb.9:
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movzbl	2(%r12), %r15d
	andl	$1, %r15d
	jmp	LBB0_12
LBB0_13:
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movzbl	1(%r12), %r15d
	andl	$1, %r15d
	jmp	LBB0_16
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	leaq	1(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ebx
	addq	$3, %r12
	jmp	LBB0_7
LBB0_10:
	xorl	%r15d, %r15d
LBB0_12:
	leaq	3(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ebx
	addq	$5, %r12
LBB0_7:
	movq	%r12, %rdi
	callq	_get_unaligned_le16
	jmp	LBB0_17
LBB0_14:
	xorl	%r15d, %r15d
LBB0_16:
	leaq	2(%r12), %rdi
	callq	_le16_to_cpup
	movl	%eax, %ebx
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_le16_to_cpup
LBB0_17:
	movl	%eax, %r12d
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.18:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
LBB0_19:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_key
	movq	8(%r13), %rax
	movl	%r15d, (%rax)
	movl	$1, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_PKGLEN_TPC2FG,8,3        ## @WACOM_PKGLEN_TPC2FG
	.comm	_WACOM_PKGLEN_TPC1FG,8,3        ## @WACOM_PKGLEN_TPC1FG
	.comm	_WACOM_PKGLEN_TPC1FG_B,8,3      ## @WACOM_PKGLEN_TPC1FG_B
	.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	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	ldr	x20, [x0, #24]
	bl	_report_touch_events
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _WACOM_PKGLEN_TPC2FG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WACOM_PKGLEN_TPC2FG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #1
	ccmp	x9, x21, #0, le
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_17
LBB0_2:
Lloh3:
	adrp	x8, _WACOM_PKGLEN_TPC1FG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WACOM_PKGLEN_TPC1FG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.3:
	cbz	w0, LBB0_10
; %bb.4:
	ldrb	w8, [x23]
	and	w21, w8, #0x1
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _WACOM_PKGLEN_TPC1FG_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WACOM_PKGLEN_TPC1FG_B@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.6:
	cbz	w0, LBB0_12
; %bb.7:
	ldrb	w8, [x23, #2]
	and	w21, w8, #0x1
	b	LBB0_13
LBB0_8:
	cbz	w0, LBB0_18
; %bb.9:
	ldrb	w8, [x23, #1]
	and	w21, w8, #0x1
	b	LBB0_19
LBB0_10:
	mov	w21, #0
LBB0_11:
	add	x0, x23, #1
	bl	_get_unaligned_le16
	mov	x22, x0
	add	x0, x23, #3
	b	LBB0_14
LBB0_12:
	mov	w21, #0
LBB0_13:
	add	x0, x23, #3
	bl	_get_unaligned_le16
	mov	x22, x0
	add	x0, x23, #5
LBB0_14:
	bl	_get_unaligned_le16
	mov	x23, x0
	cbz	w21, LBB0_16
LBB0_15:
Lloh9:
	adrp	x8, _ABS_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_report_abs
Lloh12:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_input_report_abs
LBB0_16:
Lloh15:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_input_report_key
	ldr	x8, [x19, #8]
	str	w21, [x8]
	mov	w0, #1
LBB0_17:
	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
LBB0_18:
	mov	w21, #0
LBB0_19:
	add	x0, x23, #2
	bl	_le16_to_cpup
	mov	x22, x0
	add	x0, x23, #4
	bl	_le16_to_cpup
	mov	x23, x0
	cbnz	w21, LBB0_15
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_PKGLEN_TPC2FG,8,3        ; @WACOM_PKGLEN_TPC2FG
	.comm	_WACOM_PKGLEN_TPC1FG,8,3        ; @WACOM_PKGLEN_TPC1FG
	.comm	_WACOM_PKGLEN_TPC1FG_B,8,3      ; @WACOM_PKGLEN_TPC1FG_B
	.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
