	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_get_mt_count
_alps_get_mt_count:                     ## @alps_get_mt_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_TOUCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_12:
	testb	$1, %r8b
	je	LBB0_16
## %bb.13:
	shlq	$4, %rdx
	cmpq	$0, (%rdi,%rdx)
	jne	LBB0_15
## %bb.14:
	cmpq	$0, 8(%rdi,%rdx)
	je	LBB0_16
LBB0_15:
	incl	%eax
LBB0_16:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %esi
	andl	$-2, %esi
	leaq	24(%rdi), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rdx
	addq	$32, %rcx
	cmpq	%rdx, %rsi
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -24(%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -16(%rcx)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -8(%rcx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rcx)
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOUCHES,4,2                ## @MAX_TOUCHES
	.no_dead_strip	_alps_get_mt_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_get_mt_count
_alps_get_mt_count:                     ; @alps_get_mt_count
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _MAX_TOUCHES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_TOUCHES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #16
	subs	x9, x9, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-8]
	cbnz	x10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_2
	b	LBB0_3
LBB0_6:
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOUCHES,4,2                ; @MAX_TOUCHES
	.no_dead_strip	_alps_get_mt_count
.subsections_via_symbols
