	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_touchpad_packet_v3
_alps_process_touchpad_packet_v3:       ## @alps_process_touchpad_packet_v3
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movq	(%rdi), %rsi
	movq	8(%rdi), %r15
	movq	16(%rbx), %r14
	leaq	-96(%rbp), %rdi
	callq	*8(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	$0, (%rbx)
	cmpq	$0, -48(%rbp)
	jne	LBB0_12
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	setne	%al
LBB0_4:
	movl	%eax, (%rbx)
	cmpq	$0, -56(%rbp)
	jne	LBB0_12
## %bb.5:
	cmpl	$0, -96(%rbp)
	movl	-88(%rbp), %eax
	je	LBB0_8
## %bb.6:
	cmpl	$0, -92(%rbp)
	je	LBB0_8
## %bb.7:
	testl	%eax, %eax
	je	LBB0_12
LBB0_8:
	xorl	%edx, %edx
	cmpl	$64, %eax
	setge	%dl
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_input_report_key
	movl	-88(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.9:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-96(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-92(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movl	-88(%rbp), %edx
LBB0_10:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$0, -88(%rbp)
	setg	%dl
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	-80(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	-76(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	movq	_ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movl	(%r13), %esi
	movl	-68(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movl	(%r12), %esi
	movl	-64(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_ALPS_QUIRK_TRACKSTICK_BUTTONS,4,2 ## @ALPS_QUIRK_TRACKSTICK_BUTTONS
	.no_dead_strip	_alps_process_touchpad_packet_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_process_touchpad_packet_v3
_alps_process_touchpad_packet_v3:       ; @alps_process_touchpad_packet_v3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldp	x20, x21, [x0, #8]
	ldr	x1, [x0]
	ldp	x8, x19, [x21, #8]
	add	x0, sp, #8
	blr	x8
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x21]
	ldr	x8, [sp, #56]
	cbnz	x8, LBB0_11
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #56]
	cmp	x8, #0
	cset	w8, ne
LBB0_3:
	str	w8, [x21]
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_11
; %bb.4:
	ldr	w9, [sp, #8]
	ldr	w8, [sp, #16]
	cbz	w9, LBB0_7
; %bb.5:
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_7
; %bb.6:
	cbz	w8, LBB0_11
LBB0_7:
	cmp	w8, #63
	cset	w2, gt
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_input_report_key
	ldr	w2, [sp, #16]
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_input_report_abs
	ldr	w2, [sp, #16]
LBB0_9:
Lloh9:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_input_report_abs
Lloh12:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [sp, #16]
	cmp	w8, #0
	cset	w2, gt
	mov	x0, x20
	bl	_input_report_key
Lloh15:
	adrp	x22, _BTN_LEFT@GOTPAGE
Lloh16:
	ldr	x22, [x22, _BTN_LEFT@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [sp, #20]
	mov	x0, x20
	bl	_input_report_key
Lloh17:
	adrp	x23, _BTN_RIGHT@GOTPAGE
Lloh18:
	ldr	x23, [x23, _BTN_RIGHT@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [sp, #24]
	mov	x0, x20
	bl	_input_report_key
Lloh19:
	adrp	x24, _BTN_MIDDLE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _BTN_MIDDLE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [sp, #28]
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	ldr	w8, [x21, #4]
Lloh21:
	adrp	x9, _ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	w1, [x22]
	ldr	w2, [sp, #32]
	mov	x0, x19
	bl	_input_report_key
	ldr	w1, [x23]
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_input_report_key
	ldr	w1, [x24]
	ldr	w2, [sp, #40]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_ALPS_QUIRK_TRACKSTICK_BUTTONS,4,2 ; @ALPS_QUIRK_TRACKSTICK_BUTTONS
	.no_dead_strip	_alps_process_touchpad_packet_v3
.subsections_via_symbols
