	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_packet_v4
_alps_process_packet_v4:                ## @alps_process_packet_v4
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rdx
	movzbl	4(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movzbl	1(%rax), %r15d
	movzbl	3(%rax), %r13d
	movzbl	(%rax), %ebx
	movzbl	2(%rax), %r14d
	movzbl	5(%rax), %r12d
	andl	$127, %r12d
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpb	$64, %r12b
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jb	LBB0_2
## %bb.1:
	movq	%rdx, %r12
	movq	%rdx, %rdi
	movl	$1, %edx
	callq	_input_report_key
	jmp	LBB0_3
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rdx, %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_input_report_key
	testb	%r12b, %r12b
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_4
LBB0_3:
	andl	$127, %r15d
	shll	$4, %r15d
	movl	%r13d, %eax
	shrl	$2, %eax
	andl	$12, %eax
	orl	%r15d, %eax
	shrl	$4, %ebx
	andl	$3, %ebx
	orl	%eax, %ebx
	andl	$127, %r14d
	shll	$4, %r14d
	andl	$15, %r13d
	orl	%r14d, %r13d
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r14d
	andl	$2, %r14d
	andl	$1, %ebx
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_input_report_key
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOOL_FINGER,4,2            ## @BTN_TOOL_FINGER
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.no_dead_strip	_alps_process_packet_v4
.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_v4
_alps_process_packet_v4:                ; @alps_process_packet_v4
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x8, x19, [x0]
	ldrb	w23, [x8, #4]
	ldrb	w25, [x8, #1]
	ldrb	w21, [x8, #3]
	ldrb	w24, [x8]
	ldrb	w22, [x8, #2]
	ldrb	w8, [x8, #5]
	and	w20, w8, #0x7f
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	cmp	w20, #64
	b.lo	LBB0_2
; %bb.1:
	mov	w2, #1
	bl	_input_report_key
	b	LBB0_3
LBB0_2:
	mov	w2, #0
	bl	_input_report_key
	cbz	w20, LBB0_4
LBB0_3:
	and	w8, w25, #0x7f
	lsl	w2, w8, #4
	bfxil	w2, w21, #2, #4
	bfxil	w2, w24, #4, #2
	and	w8, w22, #0x7f
	and	w21, w21, #0xf
	bfi	w21, w8, #4, #7
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
	mov	w21, #1
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	and	w22, w23, #0x2
	and	w23, w23, #0x1
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
Lloh12:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_key
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOOL_FINGER,4,2            ; @BTN_TOOL_FINGER
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.no_dead_strip	_alps_process_packet_v4
.subsections_via_symbols
