	.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_v5
_alps_process_touchpad_packet_v3_v5:    ## @alps_process_touchpad_packet_v3_v5
	.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, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	88(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %r14
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	*24(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 80(%rbx)
	je	LBB0_3
## %bb.2:
	movl	32(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_alps_process_bitmap
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmovnel	-44(%rbp), %r13d                ## 4-byte Folded Reload
LBB0_4:
	cmpq	$0, 80(%rbx)
	je	LBB0_5
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$0, (%rbx)
	cmpq	$0, 80(%rbx)
	jne	LBB0_12
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_7:
	movl	$0, (%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 56(%rbx)
	je	LBB0_10
## %bb.9:
	cmpl	$0, 48(%rbx)
	je	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_alps_report_semi_mt_data
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	jne	LBB0_12
## %bb.14:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%rbx), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_6:
	cmpq	$0, 72(%rbx)
	je	LBB0_7
## %bb.13:
	movl	$1, (%rbx)
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
	.comm	_ALPS_QUIRK_TRACKSTICK_BUTTONS,4,2 ## @ALPS_QUIRK_TRACKSTICK_BUTTONS
	.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_touchpad_packet_v3_v5
.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_v5
_alps_process_touchpad_packet_v3_v5:    ; @alps_process_touchpad_packet_v3_v5
	.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	x21, x0
	ldp	x22, x19, [x0]
	ldr	x20, [x19, #88]
	add	x23, x19, #32
	mov	x0, x23
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x8, [x19, #24]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	blr	x8
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w24, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x1, [x19, #8]
	mov	x0, x23
	mov	x2, x21
	blr	x8
	mov	x0, x19
	mov	x1, x23
	bl	_alps_process_bitmap
	cmp	x0, #0
	csel	w1, wzr, w24, eq
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_11
	b	LBB0_5
LBB0_3:
	mov	w1, #0
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_11
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	str	wzr, [x19]
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_11
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
LBB0_6:
	str	wzr, [x19]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_alps_report_semi_mt_data
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _ALPS_DUALPOINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19, #20]
Lloh3:
	adrp	x9, _ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALPS_QUIRK_TRACKSTICK_BUTTONS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
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
	ret
LBB0_12:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_6
; %bb.13:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	mov	x1, x22
	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:
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #44]
	mov	x0, x20
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #40]
	mov	x0, x20
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #36]
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
	.comm	_ALPS_QUIRK_TRACKSTICK_BUTTONS,4,2 ; @ALPS_QUIRK_TRACKSTICK_BUTTONS
	.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_touchpad_packet_v3_v5
.subsections_via_symbols
