	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_packet_ss4_v2
_alps_process_packet_ss4_v2:            ## @alps_process_packet_ss4_v2
	.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
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	movq	80(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*24(%r14)
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 72(%r14)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	*24(%r14)
LBB0_4:
	cmpq	$0, 72(%r14)
	je	LBB0_5
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$0, (%r14)
	cmpq	$0, 72(%r14)
	jne	LBB0_12
LBB0_5:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_7:
	movl	$0, (%r14)
	movq	%r12, %rdi
	callq	_alps_get_pkt_id_ss4_v2
	movq	_SS4_PACKET_ID_STICK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_14
## %bb.9:
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_SS4_TS_X_V2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_SS4_TS_Y_V2
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_input_report_rel
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_SS4_TS_Z_V2
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	60(%r14), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r14), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	52(%r14), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	%rbx, %rdi
	jmp	LBB0_11
LBB0_10:
	movl	32(%r14), %eax
	cmpl	$4, %eax
	movl	$4, %esi
	cmovll	%eax, %esi
	movq	%r13, %rdi
	callq	_alps_report_mt_data
	movl	32(%r14), %esi
	movq	%r15, %rdi
	callq	_input_mt_report_finger_count
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	%r15, %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_6:
	cmpq	$0, 64(%r14)
	je	LBB0_7
## %bb.13:
	movl	$1, (%r14)
	movq	8(%r14), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psmouse_warn                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SS4_PACKET_ID_STICK,8,3        ## @SS4_PACKET_ID_STICK
	.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
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.no_dead_strip	_alps_process_packet_ss4_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_process_packet_ss4_v2
_alps_process_packet_ss4_v2:            ; @alps_process_packet_ss4_v2
	.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
	mov	x22, x0
	ldp	x20, x24, [x0, #8]
	ldr	x21, [x0]
	ldr	x19, [x24, #80]
	add	x23, x24, #32
	mov	x0, x23
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x24, #24]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	blr	x8
	ldr	w8, [x24]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x24, #72]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x24, #24]
	ldr	x1, [x24, #8]
	mov	x0, x23
	mov	x2, x22
	blr	x8
LBB0_3:
	ldr	x8, [x24, #72]
	cbz	x8, LBB0_6
LBB0_4:
	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
LBB0_5:
	str	wzr, [x24]
	ldr	x8, [x24, #72]
	cbnz	x8, LBB0_4
LBB0_6:
	ldr	w8, [x24]
	cbz	w8, LBB0_12
LBB0_7:
	str	wzr, [x24]
	mov	x0, x21
	bl	_alps_get_pkt_id_ss4_v2
Lloh0:
	adrp	x8, _SS4_PACKET_ID_STICK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS4_PACKET_ID_STICK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x24, #16]
Lloh3:
	adrp	x9, _ALPS_DUALPOINT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
Lloh6:
	adrp	x8, _REL_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_SS4_TS_X_V2
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_rel
Lloh9:
	adrp	x8, _REL_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_SS4_TS_Y_V2
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_rel
Lloh12:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_SS4_TS_Z_V2
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_abs
Lloh15:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x24, #60]
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x24, #56]
	mov	x0, x19
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x24, #52]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	b	LBB0_11
LBB0_10:
	ldr	w8, [x24, #32]
	mov	w9, #4
	cmp	w8, #4
	csel	w1, w8, w9, lt
	mov	x0, x22
	bl	_alps_report_mt_data
	ldr	w1, [x24, #32]
	mov	x0, x20
	bl	_input_mt_report_finger_count
Lloh24:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x24, #48]
	mov	x0, x20
	bl	_input_report_key
Lloh27:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x24, #44]
	mov	x0, x20
	bl	_input_report_key
Lloh30:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x24, #40]
	mov	x0, x20
	bl	_input_report_key
Lloh33:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x24, #36]
	mov	x0, x20
	bl	_input_report_abs
	mov	x0, x20
LBB0_11:
	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
	b	_input_sync
LBB0_12:
	ldr	x8, [x24, #64]
	cbz	x8, LBB0_7
; %bb.13:
	mov	w8, #1
	str	w8, [x24]
	ldr	x0, [x24, #8]
	mov	x1, x21
	mov	w2, #8
	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
	b	_memcpy
LBB0_14:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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
	b	_psmouse_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SS4_PACKET_ID_STICK,8,3        ; @SS4_PACKET_ID_STICK
	.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
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.no_dead_strip	_alps_process_packet_ss4_v2
.subsections_via_symbols
