	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_decode_dolphin
_alps_decode_dolphin:                   ## @alps_decode_dolphin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdx), %rbx
	movzbl	(%rsi), %eax
	shrl	%eax
	andl	$1, %eax
	movl	%eax, (%rdi)
	movzbl	(%rsi), %eax
	andl	$32, %eax
	shrl	$5, %eax
	movl	%eax, 4(%rdi)
	je	LBB0_1
## %bb.5:
	movb	(%rsi), %al
	movl	%eax, %ecx
	shrb	%cl
	andb	$3, %cl
	shrb	$2, %al
	andb	$4, %al
	orb	%cl, %al
	movb	%al, 9(%rdi)
	movl	(%rbx), %edi
	callq	_BIT
	movl	4(%rbx), %edi
	callq	_BIT
	jmp	LBB0_6
LBB0_1:
	movb	1(%rsi), %al
	movb	4(%rsi), %cl
	andb	$127, %al
	shlb	$7, %cl
	orb	%al, %cl
	movb	%cl, 20(%rdi)
	movb	2(%rsi), %al
	movb	4(%rsi), %cl
	andb	$127, %al
	shlb	$3, %cl
	andb	$-128, %cl
	orb	%al, %cl
	movb	%cl, 21(%rdi)
	testb	$4, (%rsi)
	jne	LBB0_2
## %bb.3:
	movb	5(%rsi), %al
	andb	$127, %al
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movb	%al, 8(%rdi)
	callq	_alps_decode_buttons_v3
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_decode_dolphin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_decode_dolphin
_alps_decode_dolphin:                   ; @alps_decode_dolphin
	.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
	ldr	x19, [x2]
	ldrb	w8, [x1]
	ubfx	w8, w8, #1, #1
	str	w8, [x0]
	ldrb	w8, [x1]
	ubfx	w9, w8, #5, #1
	str	w9, [x0, #4]
	tbnz	w8, #5, LBB0_3
; %bb.1:
	ldrb	w8, [x1, #1]
	ldrb	w9, [x1, #4]
	bfi	w8, w9, #7, #25
	strb	w8, [x0, #20]
	ldrb	w8, [x1, #2]
	ldrb	w9, [x1, #4]
	lsr	w9, w9, #4
	bfi	w8, w9, #7, #1
	strb	w8, [x0, #21]
	ldrb	w8, [x1]
	tbnz	w8, #2, LBB0_4
; %bb.2:
	ldrb	w8, [x1, #5]
	and	w8, w8, #0x7f
	b	LBB0_5
LBB0_3:
	ldrb	w8, [x1]
	lsr	w9, w8, #2
	and	w9, w9, #0x4
	bfxil	w9, w8, #1, #2
	strb	w9, [x0, #9]
	ldr	w0, [x19]
	bl	_BIT
	ldr	w0, [x19, #4]
	bl	_BIT
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
	strb	w8, [x0, #8]
	bl	_alps_decode_buttons_v3
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_decode_dolphin
.subsections_via_symbols
