	.file	"extr_aic.c_aic_decode_coeffs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aic_decode_coeffs, @function
aic_decode_coeffs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR aic_num_band_coeffs[rip]
	mov	DWORD PTR 32[rsp], ecx
	movsx	rcx, edx
	or	edx, r8d
	mov	eax, DWORD PTR [rax+rcx*4]
	movsx	r8, edx
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR aic_scan[rip]
	mov	rax, QWORD PTR [rax+r8*8]
	mov	QWORD PTR 24[rsp], rax
	call	get_bits_left@PLT
	cmp	eax, 4
	jg	.L2
.L21:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	get_bits1@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	get_bits1@PLT
	mov	esi, 3
	mov	rdi, r13
	mov	ebp, eax
	call	get_bits@PLT
	mov	r12d, eax
	test	r14d, r14d
	jne	.L4
	mov	esi, DWORD PTR 32[rsp]
	test	esi, esi
	jle	.L5
	movsx	r15, DWORD PTR 16[rsp]
	lea	rsi, 0[0+r15*4]
	mov	rax, r15
	mov	QWORD PTR 8[rsp], rsi
	mov	rsi, QWORD PTR 24[rsp]
	sub	eax, 1
	lea	r13, 8[rsi+rax*8]
.L6:
	mov	eax, DWORD PTR 16[rsp]
	mov	r15, QWORD PTR 24[rsp]
	test	eax, eax
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, r12d
	mov	esi, ebp
	xor	edi, edi
	add	r15, 8
	call	GET_CODE@PLT
	mov	rax, QWORD PTR -8[r15]
	mov	DWORD PTR [rbx+rax*4], 0
	cmp	r15, r13
	jne	.L12
.L13:
	add	rbx, QWORD PTR 8[rsp]
	add	r14d, 1
	cmp	DWORD PTR 32[rsp], r14d
	jne	.L6
.L5:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r13
	call	get_bits1@PLT
	mov	esi, 3
	mov	rdi, r13
	mov	r14d, eax
	call	get_bits@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	edx, eax
	test	ecx, ecx
	jle	.L5
	movsx	rax, DWORD PTR 16[rsp]
	mov	DWORD PTR 36[rsp], 0
	mov	QWORD PTR 8[rsp], rbx
	mov	ebx, r15d
	mov	r15d, r12d
	mov	r12d, ebp
	mov	rsi, rax
	sal	rax, 2
	mov	ebp, edx
	mov	QWORD PTR 40[rsp], rax
	lea	eax, -1[rsi]
	mov	DWORD PTR 20[rsp], eax
.L10:
	mov	rcx, QWORD PTR 24[rsp]
	mov	eax, ebx
	lea	r13, [rcx+rax*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, r15d
	mov	esi, r12d
	mov	edi, ebx
	call	GET_CODE@PLT
	lea	eax, 1[rbx]
	cmp	ebx, 65535
	je	.L21
	mov	rdx, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR 8[rsp]
	add	r13, 8
	cmp	DWORD PTR 20[rsp], ebx
	mov	ebx, eax
	mov	DWORD PTR [rcx+rdx*4], eax
	jle	.L7
.L9:
	mov	edx, ebp
	mov	esi, r14d
	mov	edi, ebx
	call	GET_CODE@PLT
	cmp	ebx, DWORD PTR 16[rsp]
	jl	.L23
.L7:
	add	DWORD PTR 36[rsp], 1
	mov	rcx, QWORD PTR 40[rsp]
	mov	eax, DWORD PTR 36[rsp]
	add	QWORD PTR 8[rsp], rcx
	cmp	DWORD PTR 32[rsp], eax
	jne	.L10
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	aic_decode_coeffs, .-aic_decode_coeffs
	.comm	aic_scan,8,8
	.comm	aic_num_band_coeffs,8,8
	.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_aic.c_aic_decode_coeffs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aic_decode_coeffs, %function
aic_decode_coeffs:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L23
	sub	sp, sp, #28
	ldr	ip, [sp, #64]
	ldr	r6, [r5]
	ldr	lr, .L23+4
	orr	ip, r2, ip
	ldr	lr, [lr]
	str	r3, [sp, #8]
	ldr	r3, [r6, ip, lsl #2]
	mov	r5, r1
	mov	r9, r0
	ldr	r6, [lr, r2, lsl #2]
	str	r3, [sp, #12]
	bl	get_bits_left
	cmp	r0, #4
	bgt	.L2
.L20:
	ldr	r3, .L23+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r9
	bl	get_bits1
	mov	r10, r0
	mov	r0, r9
	bl	get_bits1
	mov	r1, #3
	mov	r7, r0
	mov	r0, r9
	bl	get_bits
	cmp	r10, #0
	mov	r8, r0
	bne	.L4
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ble	.L5
	lsl	r3, r6, #2
	str	r3, [sp, #4]
.L6:
	cmp	r6, #0
	ble	.L14
	mov	r4, #0
	ldr	r3, [sp, #12]
	sub	r9, r3, #4
.L12:
	mov	fp, #0
	mov	r2, r8
	mov	r1, r7
	mov	r0, fp
	bl	GET_CODE
	add	r4, r4, #1
	ldr	r3, [r9, #4]!
	cmp	r6, r4
	str	fp, [r5, r3, lsl #2]
	bne	.L12
.L14:
	ldr	r3, [sp, #8]
	add	r10, r10, #1
	cmp	r3, r10
	ldr	r3, [sp, #4]
	add	r5, r5, r3
	bne	.L6
.L5:
	mov	r0, #0
	b	.L1
.L4:
	mov	r0, r9
	bl	get_bits1
	mov	r1, #3
	mov	r10, r0
	mov	r0, r9
	bl	get_bits
	ldr	r3, [sp, #8]
	mov	fp, r0
	cmp	r3, #0
	ble	.L5
	mov	r3, #0
	str	r3, [sp, #16]
	lsl	r3, r6, #2
	str	r3, [sp, #20]
	sub	r3, r6, #1
	str	r3, [sp, #4]
.L10:
	ldr	r3, [sp, #12]
	sub	r9, r4, #-1073741823
	add	r9, r3, r9, lsl #2
	b	.L9
.L22:
	mov	r2, r8
	mov	r1, r7
	mov	r0, r4
	bl	GET_CODE
	add	r2, r4, #1
	cmp	r2, #65536
	beq	.L20
	ldr	r3, [sp, #4]
	ldr	r1, [r9, #4]!
	cmp	r3, r4
	str	r2, [r5, r1, lsl #2]
	mov	r4, r2
	ble	.L7
.L9:
	mov	r2, fp
	mov	r1, r10
	mov	r0, r4
	bl	GET_CODE
	cmp	r4, r6
	blt	.L22
.L7:
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #8]
	add	r3, r3, #1
	str	r3, [sp, #16]
	cmp	r2, r3
	ldr	r3, [sp, #20]
	add	r5, r5, r3
	bne	.L10
	b	.L5
.L24:
	.align	2
.L23:
	.word	aic_scan
	.word	aic_num_band_coeffs
	.word	AVERROR_INVALIDDATA
	.size	aic_decode_coeffs, .-aic_decode_coeffs
	.comm	aic_scan,4,4
	.comm	aic_num_band_coeffs,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
