	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alps_detect                    ## -- Begin function alps_detect
	.p2align	4, 0x90
_alps_detect:                           ## @alps_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	callq	_alps_identify
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rbx)
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-24(%rbp), %ecx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, 8(%rbx)
	movl	-20(%rbp), %ecx
	shll	$8, %ecx
	movl	%ecx, 16(%rbx)
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALPS"

	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
L_.str.1:                               ## @.str.1
	.asciz	"DualPoint TouchPad"

L_.str.2:                               ## @.str.2
	.asciz	"GlidePoint"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alps_detect                    ; -- Begin function alps_detect
	.p2align	2
_alps_detect:                           ; @alps_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_alps_identify
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	w0, #0
	cbz	w20, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, _ALPS_DUALPOINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh7:
	adrp	x11, l_.str.2@PAGE
Lloh8:
	add	x11, x11, l_.str.2@PAGEOFF
	ldp	w12, w13, [sp, #8]
	tst	w9, w12
	csel	x9, x11, x10, eq
	stp	x8, x9, [x19]
	lsl	w8, w13, #8
	str	w8, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALPS"

	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
l_.str.1:                               ; @.str.1
	.asciz	"DualPoint TouchPad"

l_.str.2:                               ; @.str.2
	.asciz	"GlidePoint"

.subsections_via_symbols
