	.file	"extr_on2avc.c_on2avc_decode_band_scales.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid scale value %d\n"
	.text
	.p2align 4
	.type	on2avc_decode_band_scales, @function
on2avc_decode_band_scales:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L28
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r9d, 1
	mov	r15d, r14d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR 40[rbx]
	mov	QWORD PTR 8[rsp], 0
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 1
	cmp	QWORD PTR [rax+rdi], 0
	je	.L4
.L34:
	movsx	r14, r12d
	lea	eax, 1[r12]
	xor	ebp, ebp
	mov	DWORD PTR [rsp], eax
	sal	r14, 3
	test	ecx, ecx
	jg	.L13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, 7
	mov	rdi, r13
	call	get_bits@PLT
	mov	r15d, eax
	cmp	r15d, 127
	ja	.L29
.L12:
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rax, r15d
	mov	ecx, DWORD PTR 4[rbx]
	add	rbp, 1
	add	r12d, DWORD PTR [rsp]
	xor	r9d, r9d
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rax+r14], rdx
	add	r14, 8
	cmp	ecx, ebp
	jle	.L6
.L13:
	mov	r10, QWORD PTR 32[rbx]
	mov	r12d, ebp
	cmp	QWORD PTR [r10+r14], 0
	je	.L30
.L7:
	test	r9d, r9d
	jne	.L31
	mov	esi, DWORD PTR 28[rbx]
	mov	ecx, 3
	mov	edx, 9
	mov	rdi, r13
	call	get_vlc2@PLT
	lea	r15d, -60[r15+rax]
	cmp	r15d, 127
	jbe	.L12
.L29:
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	ecx, r15d
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 4[rsp]
	cmp	r8d, esi
	jge	.L8
	mov	r11d, r8d
	movsx	rdx, ecx
	mov	rdi, QWORD PTR 40[rbx]
	movsx	rax, r8d
	imul	r11d, ecx
	sal	rdx, 3
	movsx	r11, r11d
	add	r11, rbp
	lea	r10, [r10+r11*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	cmp	QWORD PTR [r10], 0
	jne	.L7
	add	rax, 1
	add	r10, rdx
	cmp	esi, eax
	jle	.L8
.L9:
	cmp	QWORD PTR [rdi+rax*8], 0
	je	.L32
.L8:
	mov	rax, QWORD PTR 16[rbx]
	add	rbp, 1
	add	r12d, DWORD PTR [rsp]
	mov	QWORD PTR [rax+r14], 0
	add	r14, 8
	cmp	ecx, ebp
	jg	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[rsp]
	add	QWORD PTR 8[rsp], 8
	lea	eax, 1[rdi]
	cmp	DWORD PTR [rbx], edi
	jle	.L33
	mov	DWORD PTR 4[rsp], eax
	mov	rdi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 40[rbx]
	cmp	QWORD PTR [rax+rdi], 0
	jne	.L34
.L4:
	movsx	rsi, r12d
	mov	rax, QWORD PTR 16[rbx]
	movsx	rdi, ecx
	mov	DWORD PTR [rsp], r9d
	lea	edx, 0[0+rcx*8]
	mov	rcx, rsi
	sub	rcx, rdi
	lea	rdi, [rax+rsi*8]
	lea	r10, [rax+rcx*8]
	mov	rsi, r10
	call	memcpy@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR [rsp]
	add	r12d, ecx
	jmp	.L6
.L33:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L28:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	on2avc_decode_band_scales, .-on2avc_decode_band_scales
	.comm	AV_LOG_ERROR,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_on2avc.c_on2avc_decode_band_scales.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid scale value %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	on2avc_decode_band_scales, %function
on2avc_decode_band_scales:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L26
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, #0
	mov	r10, #1
	mov	r5, r0
	ldr	r2, [r0, #4]
	mov	r9, r1
	mov	r0, r3
	sub	sp, sp, #12
	str	fp, [sp]
	str	r10, [sp, #4]
.L2:
	ldr	r1, [r5, #28]
	ldr	r3, [sp]
	ldr	r1, [r1, r3]
	cmp	r1, #0
	beq	.L4
	cmp	r2, #0
	movgt	r4, fp
	movgt	r7, #0
	bgt	.L13
	b	.L6
.L30:
	mov	r1, #7
	mov	r0, r9
	bl	get_bits
	mov	r6, r0
	cmp	r6, #127
	bhi	.L27
.L12:
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #12]
	ldr	r1, [r2, r6, lsl #2]
	ldr	r2, [r5, #4]
	add	r7, r7, #1
	add	r4, r4, #1
	cmp	r2, r7
	mov	fp, r4
	mov	r10, #0
	str	r1, [r3, r8]
	ble	.L28
.L13:
	ldr	ip, [r5, #24]
	lsl	r8, r4, #2
	ldr	r3, [ip, r4, lsl #2]
	cmp	r3, #0
	beq	.L29
.L7:
	cmp	r10, #0
	bne	.L30
	mov	r3, #3
	mov	r2, #9
	mov	r0, r9
	ldr	r1, [r5, #20]
	bl	get_vlc2
	sub	r0, r0, #60
	add	r6, r6, r0
	cmp	r6, #127
	bls	.L12
.L27:
	ldr	r2, .L33
	mov	r3, r6
	ldr	r1, [r2]
	ldr	r0, [r5, #16]
	ldr	r2, .L33+4
	bl	av_log
	ldr	r3, .L33+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r3, [sp, #4]
	ldr	lr, [r5]
	mov	r1, r3
	cmp	r3, lr
	bge	.L8
	mla	r3, r2, r3, r7
	ldr	r0, [r5, #28]
	add	r3, ip, r3, lsl #2
	ldr	ip, [sp]
	lsl	fp, r2, #2
	add	r0, r0, ip
	b	.L9
.L31:
	ldr	ip, [r3]
	add	r3, r3, fp
	cmp	ip, #0
	bne	.L7
	cmp	r1, lr
	beq	.L8
.L9:
	ldr	ip, [r0, #4]!
	add	r1, r1, #1
	cmp	ip, #0
	beq	.L31
.L8:
	mov	r1, #0
	ldr	r3, [r5, #12]
	add	r7, r7, #1
	add	r4, r4, #1
	cmp	r2, r7
	mov	fp, r4
	str	r1, [r3, r8]
	bgt	.L13
.L28:
	ldr	r3, [r5]
	mov	r0, r3
.L6:
	ldr	r3, [sp, #4]
	cmp	r0, r3
	add	r1, r3, #1
	ldr	r3, [sp]
	add	r3, r3, #4
	str	r3, [sp]
	ble	.L32
	str	r1, [sp, #4]
	b	.L2
.L4:
	ldr	r0, [r5, #12]
	sub	r1, fp, r2
	add	r1, r0, r1, lsl #2
	lsl	r2, r2, #2
	add	r0, r0, fp, lsl #2
	bl	memcpy
	ldr	r2, [r5, #4]
	ldr	r3, [r5]
	add	fp, fp, r2
	mov	r0, r3
	b	.L6
.L32:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, #0
	bx	lr
.L34:
	.align	2
.L33:
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.size	on2avc_decode_band_scales, .-on2avc_decode_band_scales
	.comm	AV_LOG_ERROR,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
