	.file	"788706.c"
	.intel_syntax noprefix
	.text
	.globl	_decodestate
	.type	_decodestate, @function
_decodestate:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	cmp	BYTE PTR -28[rbp], 0
	jns	.L2
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	eax, edx
	add	eax, 7
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
.L2:
	movsx	eax, BYTE PTR -28[rbp]
	and	eax, 2
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	eax, edx
	add	eax, eax
	add	eax, 7
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
.L3:
	movsx	eax, BYTE PTR -28[rbp]
	and	eax, 16
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, 7
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -4[rbp], eax
.L4:
	cmp	BYTE PTR -28[rbp], 0
	jns	.L5
	or	DWORD PTR -4[rbp], 1
.L5:
	movsx	eax, BYTE PTR -28[rbp]
	and	eax, 2
	test	eax, eax
	je	.L6
	or	DWORD PTR -4[rbp], 2
.L6:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_decodestate, .-_decodestate
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"788706.c"
	.text
	.align	2
	.global	_decodestate
	.syntax unified
	.arm
	.fpu softvfp
	.type	_decodestate, %function
_decodestate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrsb	r3, [fp, #-21]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r3, r2, r3
	add	r3, r3, #7
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
.L2:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r3, r2, r3
	lsl	r3, r3, #1
	add	r3, r3, #7
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
.L3:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #7
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
.L4:
	ldrsb	r3, [fp, #-21]
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-8]
	orr	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_decodestate, .-_decodestate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
