	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_finger_count_touches
_wacom_wac_finger_count_touches:        ## @wacom_wac_finger_count_touches
	.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
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	cmpl	$1, %r12d
	jne	LBB0_4
## %bb.2:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_report_touch_events
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	jmp	LBB0_9
LBB0_4:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.5:
	xorl	%r13d, %r13d
	movq	_ABS_MT_TRACKING_ID@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	addq	%r13, %rdi
	movl	(%r14), %esi
	callq	_input_mt_get_value
	notl	%eax
	shrl	$31, %eax
	addl	%eax, %r12d
	incq	%rbx
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	addq	$4, %r13
	cmpq	%rcx, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_MT_TRACKING_ID,4,2         ## @ABS_MT_TRACKING_ID
	.no_dead_strip	_wacom_wac_finger_count_touches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_wac_finger_count_touches
_wacom_wac_finger_count_touches:        ; @wacom_wac_finger_count_touches
	.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
	ldr	w19, [x0]
	cbz	w19, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #8]
	cmp	w19, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_report_touch_events
	cmp	x0, #0
	cset	w19, ne
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
	mov	x22, #0
	mov	w19, #0
Lloh3:
	adrp	x23, _ABS_MT_TRACKING_ID@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ABS_MT_TRACKING_ID@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x0, x8, x20
	ldr	w1, [x23]
	bl	_input_mt_get_value
	mvn	w8, w0
	add	w19, w19, w8, lsr #31
	add	x22, x22, #1
	ldr	x8, [x21]
	ldrsw	x9, [x8]
	add	x20, x20, #4
	cmp	x22, x9
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_MT_TRACKING_ID,4,2         ; @ABS_MT_TRACKING_ID
	.no_dead_strip	_wacom_wac_finger_count_touches
.subsections_via_symbols
