	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %edx
	movzbl	(%r14), %r9d
	movl	%r9d, %ecx
	andl	$1, %ecx
	movl	%r9d, %r8d
	andl	$2, %r8d
	andl	$4, %r9d
	movq	%rbx, %rsi
	callq	_alps_report_buttons
LBB0_2:
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r14), %edx
	movq	%rbx, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	subb	2(%r14), %al
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_input_report_rel
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w2, [x0]
	ldrb	w8, [x20]
	and	w3, w8, #0x1
	and	w4, w8, #0x2
	and	w5, w8, #0x4
	mov	x1, x19
	bl	_alps_report_buttons
LBB0_2:
Lloh0:
	adrp	x8, _REL_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrb	w2, [x20, #1]
	mov	x0, x19
	bl	_input_report_rel
Lloh3:
	adrp	x8, _REL_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w8, [x20, #2]
	neg	w8, w8
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_input_report_rel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.no_dead_strip	_alps_report_bare_ps2_packet
.subsections_via_symbols
