	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_decode_pinnacle
_alps_decode_pinnacle:                  ## @alps_decode_pinnacle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movzbl	4(%rsi), %eax
	shrl	$6, %eax
	andl	$1, %eax
	movl	%eax, (%rdi)
	movzbl	(%rsi), %eax
	andl	$64, %eax
	movl	%eax, %ecx
	shrl	$6, %ecx
	movl	%ecx, 4(%rdi)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movb	5(%rsi), %al
	andb	$3, %al
	incb	%al
	movb	%al, 8(%rdi)
	movb	(%rsi), %al
	movb	1(%rsi), %cl
	shlb	$2, %cl
	shrb	$4, %al
	andb	$3, %al
	orb	%cl, %al
	movb	%al, 9(%rdi)
	movb	2(%rsi), %al
	movb	4(%rsi), %cl
	addb	%al, %al
	andb	$1, %cl
	orb	%al, %cl
	movb	%cl, 10(%rdi)
	jmp	LBB0_3
LBB0_2:
	movb	(%rsi), %al
	movb	1(%rsi), %cl
	shlb	$4, %cl
	movb	4(%rsi), %dl
	shrb	$2, %dl
	andb	$12, %dl
	orb	%cl, %dl
	shrb	$4, %al
	andb	$3, %al
	orb	%dl, %al
	movb	%al, 12(%rdi)
	movb	2(%rsi), %al
	movb	4(%rsi), %cl
	shlb	$4, %al
	andb	$15, %cl
	orb	%al, %cl
	movb	%cl, 13(%rdi)
	movb	5(%rsi), %al
	andb	$127, %al
	movb	%al, 11(%rdi)
	callq	_alps_decode_buttons_v3
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_decode_pinnacle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_decode_pinnacle
_alps_decode_pinnacle:                  ; @alps_decode_pinnacle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldrb	w8, [x1, #4]
	ubfx	w8, w8, #6, #1
	str	w8, [x0]
	ldrb	w8, [x1]
	ubfx	w9, w8, #6, #1
	str	w9, [x0, #4]
	tbnz	w8, #6, LBB0_2
; %bb.1:
	ldrb	w8, [x1, #1]
	lsl	w8, w8, #4
	ldrb	w9, [x1, #4]
	bfxil	w8, w9, #2, #4
	ldrb	w9, [x1]
	bfxil	w8, w9, #4, #2
	strb	w8, [x0, #12]
	ldrb	w8, [x1, #2]
	ldrb	w9, [x1, #4]
	bfi	w9, w8, #4, #28
	strb	w9, [x0, #13]
	ldrb	w8, [x1, #5]
	and	w8, w8, #0x7f
	strb	w8, [x0, #11]
	bl	_alps_decode_buttons_v3
	b	LBB0_3
LBB0_2:
	ldrb	w8, [x1, #5]
	and	w8, w8, #0x3
	add	w8, w8, #1
	strb	w8, [x0, #8]
	ldrb	w8, [x1, #1]
	lsl	w8, w8, #2
	ldrb	w9, [x1]
	bfxil	w8, w9, #4, #2
	strb	w8, [x0, #9]
	ldrb	w8, [x1, #2]
	ldrb	w9, [x1, #4]
	bfi	w9, w8, #1, #31
	strb	w9, [x0, #10]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_decode_pinnacle
.subsections_via_symbols
