	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_report_bare_ps2_packet
_alps_report_bare_ps2_packet:           ## @alps_report_bare_ps2_packet
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_ALPS_PROTO_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.2:
	addq	$32, %rbx
	movq	(%r12), %rsi
	movq	%rbx, %r13
	jmp	LBB0_3
LBB0_6:
	leaq	16(%rbx), %r13
	movq	16(%rbx), %rdi
	callq	_IS_ERR_OR_NULL
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r13), %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%esi, %esi
LBB0_3:
	movq	(%r13), %rbx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movzbl	(%r14), %r8d
	movl	%r8d, %edx
	andl	$1, %edx
	movl	%r8d, %ecx
	andl	$2, %ecx
	andl	$4, %r8d
	movq	%rbx, %rdi
	callq	_alps_report_buttons
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_psmouse_report_standard_motion
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_10:
	addq	$24, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psmouse_queue_work             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALPS_PROTO_V2,8,3              ## @ALPS_PROTO_V2
	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
	.no_dead_strip	_alps_report_bare_ps2_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_report_bare_ps2_packet
_alps_report_bare_ps2_packet:           ; @alps_report_bare_ps2_packet
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	mov	x22, x23
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _ALPS_PROTO_V2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALPS_PROTO_V2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x22, #8]
Lloh3:
	adrp	x9, _ALPS_DUALPOINT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	add	x22, x23, #32
	ldr	x1, [x21]
	ldr	x21, [x22]
	cbz	w20, LBB0_4
LBB0_3:
	ldrb	w8, [x19]
	and	w2, w8, #0x1
	and	w3, w8, #0x2
	and	w4, w8, #0x4
	mov	x0, x21
	bl	_alps_report_buttons
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_psmouse_report_standard_motion
	mov	x0, x21
	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_5:
	ldr	x0, [x22, #16]!
	bl	_IS_ERR_OR_NULL
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x22]
	bl	_IS_ERR
	cbz	w0, LBB0_9
; %bb.7:
	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_8:
	mov	x1, #0
	ldr	x21, [x22]
	cbnz	w20, LBB0_3
	b	LBB0_4
LBB0_9:
	add	x1, x23, #24
	mov	x0, x21
	mov	w2, #0
	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_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ALPS_PROTO_V2,8,3              ; @ALPS_PROTO_V2
	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
	.no_dead_strip	_alps_report_bare_ps2_packet
.subsections_via_symbols
