	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_trackstick_packet_v7
_alps_process_trackstick_packet_v7:     ## @alps_process_trackstick_packet_v7
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %r14
	movq	(%rdi), %r15
	movb	2(%r15), %cl
	movb	4(%r15), %dl
	andb	$-65, %cl
	movzbl	3(%r15), %r12d
	leal	(,%r12,4), %eax
	andb	$64, %al
	orb	%cl, %al
	movl	%r12d, %ecx
	andb	$7, %cl
	andb	$-72, %dl
	orb	%cl, %dl
	leal	(%r12,%r12), %ebx
	andb	$64, %bl
	orb	%dl, %bl
	movzbl	5(%r15), %ecx
	andl	$63, %ecx
	shrl	%r12d
	andl	$64, %r12d
	orl	%ecx, %r12d
	movq	_REL_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movsbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	negb	%bl
	movsbl	%bl, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movzbl	1(%r15), %esi
	movq	%r14, %rdi
	callq	_psmouse_report_standard_buttons
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psmouse_warn                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rejected trackstick packet from non DualPoint device"

	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.no_dead_strip	_alps_process_trackstick_packet_v7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_process_trackstick_packet_v7
_alps_process_trackstick_packet_v7:     ; @alps_process_trackstick_packet_v7
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _ALPS_DUALPOINT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x19, [x8, #8]
	ldr	x21, [x0]
	ldrb	w8, [x21, #2]
	and	w8, w8, #0xffffffbf
	ldrb	w9, [x21, #3]
	lsl	w10, w9, #2
	and	w10, w10, #0x40
	orr	w8, w10, w8
	ldrb	w10, [x21, #4]
	mov	w11, #184
	and	w22, w10, w11
	bfxil	w22, w9, #0, #3
	lsr	w10, w9, #5
	bfi	w22, w10, #6, #1
	ldrb	w10, [x21, #5]
	lsr	w9, w9, #1
	and	w20, w9, #0x40
	bfxil	w20, w10, #0, #6
Lloh3:
	adrp	x9, _REL_X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REL_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	sxtb	w2, w8
	mov	x0, x19
	bl	_input_report_rel
Lloh6:
	adrp	x8, _REL_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	neg	w8, w22
	sxtb	w2, w8
	mov	x0, x19
	bl	_input_report_rel
Lloh9:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
	ldrb	w1, [x21, #1]
	mov	x0, x19
	bl	_psmouse_report_standard_buttons
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
LBB0_2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_psmouse_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rejected trackstick packet from non DualPoint device"

	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.no_dead_strip	_alps_process_trackstick_packet_v7
.subsections_via_symbols
