	.file	"extr_scpr.c_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode, @function
decode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, ecx
	mov	ecx, DWORD PTR 4[rsi]
	imul	edx, ecx
	sub	DWORD PTR [rsi], edx
	imul	ecx, r8d
	cmp	ecx, DWORD PTR TOP[rip]
	mov	DWORD PTR 4[rsi], ecx
	jge	.L12
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	bytestream2_get_byteu@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR [rbx]
	sal	eax, 8
	or	eax, r8d
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 4[rbx]
	sal	eax, 8
	cmp	eax, DWORD PTR TOP[rip]
	mov	DWORD PTR 4[rbx], eax
	jge	.L5
.L2:
	mov	rdi, rbp
	call	bytestream2_get_bytes_left@PLT
	test	rax, rax
	jg	.L4
.L5:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	decode, .-decode
	.comm	TOP,4,4
	.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_scpr.c_decode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode, %function
decode:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r1, #4]
	ldr	r6, .L10
	mul	ip, r2, r1
	mul	r1, r3, r1
	ldr	r2, [r4]
	ldr	r3, [r6]
	sub	r2, r2, ip
	cmp	r1, r3
	movlt	r5, r0
	str	r2, [r4]
	str	r1, [r4, #4]
	blt	.L2
	b	.L5
.L4:
	mov	r0, r5
	bl	bytestream2_get_byteu
	ldm	r4, {r1, r3}
	ldr	r2, [r6]
	lsl	r3, r3, #8
	orr	r0, r0, r1, lsl #8
	cmp	r3, r2
	stm	r4, {r0, r3}
	bge	.L5
.L2:
	mov	r0, r5
	bl	bytestream2_get_bytes_left
	cmp	r0, #0
	bgt	.L4
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	TOP
	.size	decode, .-decode
	.comm	TOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
