	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_identify
_alps_identify:                         ## @alps_identify
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_PSMOUSE_CMD_SETRES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PSMOUSE_CMD_SETSCALE11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_alps_rpt_cmd
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_2:
	cmpb	$7, -36(%rbp)
	ja	LBB0_27
## %bb.3:
	cmpb	$0, -35(%rbp)
	jne	LBB0_27
## %bb.4:
	movb	-34(%rbp), %al
	cmpb	$10, %al
	je	LBB0_6
## %bb.5:
	cmpb	$100, %al
	jne	LBB0_27
LBB0_6:
	movl	(%rbx), %esi
	movq	_PSMOUSE_CMD_SETSCALE21@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	callq	_alps_rpt_cmd
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movl	(%rbx), %esi
	movq	_PSMOUSE_CMD_RESET_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	callq	_alps_rpt_cmd
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	callq	_alps_exit_command_mode
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_alps_match_table
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_29
## %bb.10:
	movb	-32(%rbp), %dl
	movb	-31(%rbp), %cl
	movb	-30(%rbp), %dil
	movb	-28(%rbp), %al
	movb	-27(%rbp), %r9b
	cmpb	$115, %dl
	jne	LBB0_17
## %bb.11:
	cmpb	$3, %cl
	jne	LBB0_17
## %bb.12:
	cmpb	$80, %dil
	jne	LBB0_17
## %bb.13:
	cmpb	$115, %al
	jne	LBB0_17
## %bb.14:
	cmpb	$1, %r9b
	jne	LBB0_17
## %bb.15:
	movq	_ALPS_PROTO_V5@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	cmpb	$-120, %al
	jne	LBB0_21
## %bb.18:
	cmpb	$8, %r9b
	jne	LBB0_21
## %bb.19:
	movq	_ALPS_PROTO_V3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_alps_set_defaults
	movq	_alps_hw_init_rushmore_v3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_alps_decode_rushmore@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r14, (%r15)
	movq	_ALPS_REG_BASE_RUSHMORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_alps_probe_trackstick_v3
	testq	%rax, %rax
	je	LBB0_29
## %bb.20:
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	jmp	LBB0_29
LBB0_21:
	movb	-26(%rbp), %sil
	cmpb	$-120, %al
	jne	LBB0_26
## %bb.22:
	cmpb	$7, %r9b
	jne	LBB0_26
## %bb.23:
	cmpb	$-112, %sil
	jb	LBB0_26
## %bb.24:
	cmpb	$-99, %sil
	ja	LBB0_26
## %bb.25:
	movq	_ALPS_PROTO_V3@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_alps_set_defaults
	jmp	LBB0_29
LBB0_26:
	movzbl	%sil, %esi
	movl	%esi, (%rsp)
	movzbl	%dl, %esi
	movzbl	%cl, %edx
	movzbl	%dil, %ecx
	movzbl	%al, %r8d
	movzbl	%r9b, %r9d
	leaq	L_.str(%rip), %rdi
	callq	_dbg
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_28:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_SETRES,4,2         ## @PSMOUSE_CMD_SETRES
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ## @PSMOUSE_CMD_SETSCALE11
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PSMOUSE_CMD_SETSCALE21,4,2     ## @PSMOUSE_CMD_SETSCALE21
	.comm	_PSMOUSE_CMD_RESET_WRAP,4,2     ## @PSMOUSE_CMD_RESET_WRAP
	.comm	_ALPS_PROTO_V5,8,3              ## @ALPS_PROTO_V5
	.comm	_ALPS_PROTO_V3,8,3              ## @ALPS_PROTO_V3
	.comm	_alps_hw_init_rushmore_v3,4,2   ## @alps_hw_init_rushmore_v3
	.comm	_alps_decode_rushmore,4,2       ## @alps_decode_rushmore
	.comm	_ALPS_REG_BASE_RUSHMORE,4,2     ## @ALPS_REG_BASE_RUSHMORE
	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown ALPS touchpad: E7=%2.2x %2.2x %2.2x, EC=%2.2x %2.2x %2.2x\n"

	.no_dead_strip	_alps_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_identify
_alps_identify:                         ; @alps_identify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _PSMOUSE_CMD_SETRES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PSMOUSE_CMD_SETRES@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _PSMOUSE_CMD_SETSCALE11@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_CMD_SETSCALE11@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_alps_rpt_cmd
	cbz	x0, LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_27
LBB0_2:
	ldrb	w8, [sp, #12]
	ldrb	w9, [sp, #13]
	cmp	w8, #7
	ccmp	w9, #0, #0, ls
	b.ne	LBB0_26
; %bb.3:
	ldrb	w8, [sp, #14]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #100
	b.ne	LBB0_26
LBB0_5:
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _PSMOUSE_CMD_SETSCALE21@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSMOUSE_CMD_SETSCALE21@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_alps_rpt_cmd
	cbnz	x0, LBB0_1
; %bb.6:
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _PSMOUSE_CMD_RESET_WRAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_WRAP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x0, x20
	bl	_alps_rpt_cmd
	cbnz	x0, LBB0_1
; %bb.7:
	mov	x0, x20
	bl	_alps_exit_command_mode
	cbnz	x0, LBB0_1
; %bb.8:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x19
	bl	_alps_match_table
	cbz	x0, LBB0_28
; %bb.9:
	ldrb	w1, [sp, #8]
	ldrb	w2, [sp, #9]
	ldrb	w3, [sp, #10]
	ldrb	w4, [sp, #4]
	ldrb	w5, [sp, #5]
	cmp	w1, #115
	b.ne	LBB0_15
; %bb.10:
	cmp	w2, #3
	b.ne	LBB0_15
; %bb.11:
	cmp	w3, #80
	b.ne	LBB0_15
; %bb.12:
	cmp	w4, #115
	b.ne	LBB0_15
; %bb.13:
	cmp	w5, #1
	b.ne	LBB0_15
; %bb.14:
Lloh13:
	adrp	x8, _ALPS_PROTO_V5@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ALPS_PROTO_V5@GOTPAGEOFF]
	b	LBB0_24
LBB0_15:
	cmp	w4, #136
	b.ne	LBB0_19
; %bb.16:
	cmp	w5, #8
	b.ne	LBB0_19
; %bb.17:
Lloh15:
	adrp	x8, _ALPS_PROTO_V3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALPS_PROTO_V3@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_alps_set_defaults
Lloh18:
	adrp	x8, _alps_hw_init_rushmore_v3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _alps_hw_init_rushmore_v3@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _alps_decode_rushmore@GOTPAGE
Lloh22:
	ldr	x9, [x9, _alps_decode_rushmore@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	str	x19, [x20]
Lloh24:
	adrp	x8, _ALPS_REG_BASE_RUSHMORE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ALPS_REG_BASE_RUSHMORE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_alps_probe_trackstick_v3
	cbz	x0, LBB0_28
; %bb.18:
	mov	w0, #0
Lloh27:
	adrp	x8, _ALPS_DUALPOINT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_28
LBB0_19:
	ldrb	w6, [sp, #6]
	cmp	w4, #136
	b.ne	LBB0_25
; %bb.20:
	cmp	w5, #7
	b.ne	LBB0_25
; %bb.21:
	cmp	w6, #144
	b.lo	LBB0_25
; %bb.22:
	cmp	w6, #157
	b.hi	LBB0_25
; %bb.23:
Lloh30:
	adrp	x8, _ALPS_PROTO_V3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ALPS_PROTO_V3@GOTPAGEOFF]
LBB0_24:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_alps_set_defaults
	mov	w0, #0
	b	LBB0_28
LBB0_25:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
LBB0_26:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_SETRES,4,2         ; @PSMOUSE_CMD_SETRES
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ; @PSMOUSE_CMD_SETSCALE11
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PSMOUSE_CMD_SETSCALE21,4,2     ; @PSMOUSE_CMD_SETSCALE21
	.comm	_PSMOUSE_CMD_RESET_WRAP,4,2     ; @PSMOUSE_CMD_RESET_WRAP
	.comm	_ALPS_PROTO_V5,8,3              ; @ALPS_PROTO_V5
	.comm	_ALPS_PROTO_V3,8,3              ; @ALPS_PROTO_V3
	.comm	_alps_hw_init_rushmore_v3,4,2   ; @alps_hw_init_rushmore_v3
	.comm	_alps_decode_rushmore,4,2       ; @alps_decode_rushmore
	.comm	_ALPS_REG_BASE_RUSHMORE,4,2     ; @ALPS_REG_BASE_RUSHMORE
	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown ALPS touchpad: E7=%2.2x %2.2x %2.2x, EC=%2.2x %2.2x %2.2x\n"

	.no_dead_strip	_alps_identify
.subsections_via_symbols
