	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_touchpad_packet_v7
_alps_process_touchpad_packet_v7:       ## @alps_process_touchpad_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	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %r12
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	*(%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	24(%r12), %edi
	callq	_alps_get_mt_count
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_alps_report_mt_data
	movl	20(%r12), %esi
	movq	%r14, %rdi
	callq	_input_mt_report_finger_count
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_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_touchpad_packet_v7
_alps_process_touchpad_packet_v7:       ; @alps_process_touchpad_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
	mov	x20, x0
	ldp	x19, x22, [x0, #8]
	add	x21, x22, #8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	x8, [x22]
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x20
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	ldr	w0, [x22, #24]
	bl	_alps_get_mt_count
	mov	x1, x0
	mov	x0, x20
	bl	_alps_report_mt_data
	ldr	w1, [x22, #20]
	mov	x0, x19
	bl	_input_mt_report_finger_count
Lloh0:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x22, #16]
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x22, #12]
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x22, #8]
	mov	x0, x19
	bl	_input_report_key
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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_v7
.subsections_via_symbols
