	.file	"extr_scpr.c_decode_unit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_unit, @function
decode_unit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	add	rdi, 20
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ebx, DWORD PTR [rsi]
	mov	DWORD PTR 20[rsp], edx
	lea	rdx, 36[rsp]
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rsi
	mov	esi, ebx
	mov	QWORD PTR [rsp], rdi
	call	[QWORD PTR [r15]]
	test	eax, eax
	js	.L1
	mov	r10, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 36[rsp]
	xor	edx, edx
	xor	r8d, r8d
	mov	rdi, QWORD PTR [rsp]
	mov	rbp, QWORD PTR 8[r10]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR 0[rbp+rdx*4]
	mov	ecx, r8d
	mov	eax, edx
	lea	r9, 0[0+rdx*4]
	add	r8d, r12d
	cmp	r8d, esi
	jg	.L3
	add	rdx, 1
	cmp	rdx, 16
	jne	.L4
.L5:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	sal	eax, 4
	mov	r8, QWORD PTR 16[r10]
	cdqe
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	add	rax, 1
	cmp	eax, 255
	jg	.L5
.L7:
	mov	ebp, DWORD PTR [r8+rax*4]
	mov	edx, ecx
	mov	r13d, eax
	lea	r14, 0[0+rax*4]
	add	ecx, ebp
	cmp	esi, ecx
	jge	.L22
	cmp	eax, 255
	jg	.L5
	lea	r11, 24[r15]
	mov	rsi, rdi
	mov	QWORD PTR 8[rsp], r10
	mov	r8d, ebx
	mov	QWORD PTR [rsp], r9
	mov	ecx, ebp
	mov	rdi, r11
	call	[QWORD PTR 8[r15]]
	test	eax, eax
	js	.L1
	mov	r10, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 20[rsp]
	mov	r9, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 16[r10]
	mov	rsi, QWORD PTR 8[r10]
	add	ebp, eax
	add	r12d, eax
	add	ebx, eax
	mov	DWORD PTR [rcx+r14], ebp
	mov	DWORD PTR [rsi+r9], r12d
	cmp	DWORD PTR BOT[rip], ebx
	jge	.L9
	lea	rdi, 1024[rcx]
	mov	rdx, rcx
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR [rdx]
	add	rdx, 4
	sar	eax
	add	eax, 1
	mov	DWORD PTR -4[rdx], eax
	add	ebx, eax
	cmp	rdx, rdi
	jne	.L10
	add	rcx, 64
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rax, -64[rcx]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L11:
	add	edx, DWORD PTR [rax]
	add	rax, 4
	cmp	rcx, rax
	jne	.L11
	mov	DWORD PTR [rsi+rdi*4], edx
	add	rdi, 1
	add	rcx, 64
	cmp	rdi, 16
	jne	.L12
.L9:
	mov	rax, QWORD PTR 24[rsp]
	and	r13d, DWORD PTR 16[r15]
	mov	DWORD PTR [r10], ebx
	mov	DWORD PTR [rax], r13d
	xor	eax, eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	decode_unit, .-decode_unit
	.comm	BOT,4,4
	.comm	AVERROR_INVALIDDATA,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_unit.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_unit, %function
decode_unit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	mov	ip, r2
	sub	sp, sp, #36
	ldr	r4, [fp], #12
	ldr	r5, [r1]
	str	r3, [sp, #16]
	ldr	r3, .L23
	str	ip, [sp, #12]
	mov	r10, r0
	mov	r9, r1
	mov	r0, fp
	mov	r1, r5
	add	r2, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	blx	r4
	cmp	r0, #0
	blt	.L1
	mov	r3, #0
	mov	r4, r3
	ldr	r2, [r9, #4]
	ldr	ip, [sp, #24]
	sub	r2, r2, #4
.L4:
	ldr	r6, [r2, #4]!
	mov	r1, r3
	add	r3, r3, r6
	cmp	r3, ip
	lsl	r8, r4, #2
	bgt	.L3
	add	r4, r4, #1
	cmp	r4, #16
	bne	.L4
.L5:
	ldr	r3, .L23+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r0, [r9, #8]
	lsl	r4, r4, #4
	sub	r3, r4, #-1073741823
	add	r0, r0, r3, lsl #2
	b	.L7
.L22:
	add	r4, r4, #1
	cmp	r4, #256
	beq	.L5
.L7:
	ldr	r3, [r0, #4]!
	mov	r2, r1
	add	r1, r1, r3
	cmp	ip, r1
	lsl	r7, r4, #2
	bge	.L22
	cmp	r4, #255
	bgt	.L5
	str	r5, [sp]
	mov	r1, fp
	add	r0, r10, #16
	ldr	fp, [r10, #4]
	str	r3, [sp, #20]
	blx	fp
	cmp	r0, #0
	blt	.L1
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #20]
	ldr	r0, [r9, #8]
	add	r3, r3, r2
	ldr	r1, [r9, #4]
	str	r3, [r0, r7]
	add	r6, r6, r2
	ldr	r3, .L23+8
	str	r6, [r1, r8]
	ldr	r3, [r3]
	add	r5, r5, r2
	cmp	r3, r5
	bge	.L9
	mov	r5, #0
	sub	r2, r0, #4
	add	ip, r0, #1020
.L10:
	ldr	r3, [r2, #4]!
	asr	r3, r3, #1
	add	r3, r3, #1
	cmp	ip, r2
	str	r3, [r2]
	add	r5, r5, r3
	bne	.L10
	add	lr, r0, #1072
	sub	ip, r1, #4
	add	lr, lr, #12
	add	r0, r0, #60
.L12:
	mov	r2, #0
	sub	r3, r0, #64
.L11:
	ldr	r1, [r3, #4]!
	cmp	r0, r3
	add	r2, r2, r1
	bne	.L11
	add	r0, r0, #64
	cmp	r0, lr
	str	r2, [ip, #4]!
	bne	.L12
.L9:
	ldr	r3, [r10, #8]
	mov	r0, #0
	and	r4, r4, r3
	ldr	r3, [sp, #16]
	str	r5, [r9]
	str	r4, [r3]
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.word	BOT
	.size	decode_unit, .-decode_unit
	.comm	BOT,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
