	.file	"extr_alps.c_alps_decode_rushmore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alps_decode_rushmore, @function
alps_decode_rushmore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	eax, BYTE PTR 4[rsi]
	shr	al, 6
	and	eax, 1
	mov	DWORD PTR [rdi], eax
	movzx	eax, BYTE PTR 5[rsi]
	and	eax, 64
	setne	dl
	mov	DWORD PTR 4[rdi], edx
	je	.L2
	movzx	edi, BYTE PTR 5[rsi]
	mov	esi, edi
	and	edi, 3
	shr	sil, 2
	and	esi, 3
	call	max@PLT
	add	rax, 1
	mov	QWORD PTR 16[r12], rax
	movzx	eax, BYTE PTR 0[rbp]
	movzx	edx, BYTE PTR 1[rbp]
	sar	eax, 4
	sal	edx, 2
	and	eax, 3
	or	eax, edx
	mov	BYTE PTR 8[r12], al
	movzx	eax, BYTE PTR 2[rbp]
	lea	edx, [rax+rax]
	movzx	eax, BYTE PTR 4[rbp]
	and	eax, 1
	or	eax, edx
	mov	BYTE PTR 9[r12], al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movzx	eax, BYTE PTR 4[rsi]
	movzx	edx, BYTE PTR [rsi]
	sar	eax, 2
	sar	edx, 4
	and	edx, 3
	and	eax, 12
	or	eax, edx
	movzx	edx, BYTE PTR 1[rsi]
	sal	edx, 4
	or	eax, edx
	mov	BYTE PTR 11[rdi], al
	movzx	eax, BYTE PTR 2[rsi]
	sal	eax, 4
	mov	edx, eax
	movzx	eax, BYTE PTR 4[rsi]
	and	eax, 15
	or	eax, edx
	mov	BYTE PTR 12[rdi], al
	movzx	eax, BYTE PTR 5[rsi]
	and	eax, 127
	mov	BYTE PTR 10[rdi], al
	call	alps_decode_buttons_v3@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	alps_decode_rushmore, .-alps_decode_rushmore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_alps.c_alps_decode_rushmore.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alps_decode_rushmore, %function
alps_decode_rushmore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r3, [r1, #4]	@ zero_extendqisi2
	mov	r4, r1
	lsr	r3, r3, #6
	and	r3, r3, #1
	str	r3, [r0]
	ldrb	r3, [r1, #5]	@ zero_extendqisi2
	mov	r5, r0
	and	r3, r3, #64
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r0, #4]
	beq	.L2
	ldrb	r0, [r1, #5]	@ zero_extendqisi2
	lsr	r1, r0, #2
	and	r1, r1, #3
	and	r0, r0, #3
	bl	max
	add	r0, r0, #1
	str	r0, [r5, #16]
	ldrb	r3, [r4]	@ zero_extendqisi2
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	asr	r3, r3, #4
	and	r3, r3, #3
	orr	r3, r3, r2, lsl #2
	strb	r3, [r5, #8]
	ldrb	r3, [r4, #4]	@ zero_extendqisi2
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	and	r3, r3, #1
	orr	r3, r3, r2, lsl #1
	mov	r0, #0
	strb	r3, [r5, #9]
	pop	{r4, r5, r6, pc}
.L2:
	ldrb	r3, [r1, #4]	@ zero_extendqisi2
	ldrb	r2, [r1]	@ zero_extendqisi2
	asr	r3, r3, #2
	ldrb	ip, [r1, #1]	@ zero_extendqisi2
	lsl	r2, r2, #26
	and	r3, r3, #12
	orr	r3, r3, r2, lsr #30
	orr	r3, r3, ip, lsl #4
	strb	r3, [r0, #11]
	ldrb	r3, [r1, #4]	@ zero_extendqisi2
	ldrb	r2, [r1, #2]	@ zero_extendqisi2
	and	r3, r3, #15
	orr	r3, r3, r2, lsl #4
	strb	r3, [r0, #12]
	ldrb	r3, [r1, #5]	@ zero_extendqisi2
	and	r3, r3, #127
	strb	r3, [r0, #10]
	bl	alps_decode_buttons_v3
	mov	r0, #0
	pop	{r4, r5, r6, pc}
	.size	alps_decode_rushmore, .-alps_decode_rushmore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
