	.file	"extr_bink.c_read_dct_coeffs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"quant_index %d out of range\n"
	.text
	.p2align 4
	.type	read_dct_coeffs, @function
read_dct_coeffs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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, 1128
	.cfi_def_cfa_offset 1184
	mov	QWORD PTR 72[rsp], rdi
	mov	rdi, rsi
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	mov	QWORD PTR 64[rsp], r8
	mov	QWORD PTR 48[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1112[rsp], rax
	xor	eax, eax
	call	get_bits_left@PLT
	cmp	eax, 3
	jg	.L2
.L39:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	mov	rcx, QWORD PTR 1112[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L41
	add	rsp, 1128
	.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
	movabs	rax, 103079215108
	mov	rdi, r15
	mov	esi, 4
	mov	QWORD PTR 848[rsp], 0
	mov	QWORD PTR 336[rsp], rax
	movabs	rax, 4294967340
	mov	QWORD PTR 344[rsp], rax
	movabs	rax, 12884901890
	mov	QWORD PTR 352[rsp], rax
	sub	rax, 2
	mov	QWORD PTR 856[rsp], rax
	add	rax, 3
	mov	QWORD PTR 864[rsp], rax
	call	get_bits@PLT
	mov	DWORD PTR 28[rsp], 0
	sub	eax, 1
	mov	DWORD PTR 12[rsp], 70
	mov	DWORD PTR 24[rsp], 64
	mov	ebp, eax
	js	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ebx, DWORD PTR 24[rsp]
	mov	eax, 1
	mov	ecx, ebp
	sal	eax, cl
	mov	DWORD PTR 56[rsp], eax
	mov	r12d, ebx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	call	get_bits1@PLT
	test	eax, eax
	je	.L8
	cmp	r13d, 2
	je	.L9
	jg	.L10
	test	r13d, r13d
	je	.L11
	cmp	r13d, 1
	jne	.L7
	movsx	rax, DWORD PTR 12[rsp]
	lea	edx, 4[rbx]
	mov	DWORD PTR 592[rsp+r14*4], 2
	mov	DWORD PTR 80[rsp+rax*4], edx
	lea	edx, 1[rax]
	mov	rsi, rax
	mov	DWORD PTR 592[rsp+rax*4], 2
	movsx	rdx, edx
	lea	eax, 8[rbx]
	mov	DWORD PTR 80[rsp+rdx*4], eax
	lea	eax, 2[rsi]
	add	esi, 3
	mov	DWORD PTR 592[rsp+rdx*4], 2
	cdqe
	lea	edx, 12[rbx]
	mov	DWORD PTR 80[rsp+rax*4], edx
	mov	DWORD PTR 592[rsp+rax*4], 2
	mov	DWORD PTR 12[rsp], esi
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR 12[rsp], r12d
	jle	.L42
.L21:
	movsx	r14, r12d
	mov	r13d, DWORD PTR 592[rsp+r14*4]
	movsx	rbx, DWORD PTR 80[rsp+r14*4]
	mov	eax, r13d
	or	eax, ebx
	jne	.L6
.L8:
	add	r12d, 1
	cmp	DWORD PTR 12[rsp], r12d
	jg	.L21
.L42:
	sub	ebp, 1
	cmp	ebp, -1
	jne	.L4
.L5:
	cmp	DWORD PTR 1184[rsp], -1
	je	.L43
	cmp	DWORD PTR 1184[rsp], 15
	ja	.L44
.L23:
	mov	rax, QWORD PTR 64[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR 1184[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	r13d, 3
	jne	.L7
	test	ebp, ebp
	je	.L45
	mov	esi, ebp
	mov	rdi, r15
	call	get_bits@PLT
	mov	rdi, r15
	or	eax, DWORD PTR 56[rsp]
	mov	r13d, eax
	call	get_bits1@PLT
	mov	edx, eax
	neg	edx
	xor	r13d, edx
	add	r13d, eax
.L20:
	mov	rdx, QWORD PTR 40[rsp]
	movsx	rax, ebx
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 80[rsp+r14*4], 0
	mov	DWORD PTR 592[rsp+r14*4], 0
	add	r12d, 1
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR [rdx+rax*4], r13d
	movsx	rax, DWORD PTR 28[rsp]
	mov	DWORD PTR [rdi+rax*4], ebx
	lea	eax, 1[rax]
	mov	DWORD PTR 28[rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 592[rsp+r14*4], 1
	lea	eax, 4[rbx]
	mov	DWORD PTR 80[rsp+r14*4], eax
.L24:
	lea	rax, 4[rbx]
	mov	r14d, DWORD PTR 28[rsp]
	mov	DWORD PTR 60[rsp], r12d
	mov	r12, rbx
	mov	QWORD PTR 16[rsp], rax
.L18:
	mov	rdi, r15
	mov	r13d, r12d
	call	get_bits1@PLT
	test	eax, eax
	je	.L14
	sub	DWORD PTR 24[rsp], 1
	movsx	rax, DWORD PTR 24[rsp]
	mov	DWORD PTR 80[rsp+rax*4], r12d
	mov	DWORD PTR 592[rsp+rax*4], 3
.L15:
	add	r12, 1
	cmp	QWORD PTR 16[rsp], r12
	jne	.L18
	mov	DWORD PTR 28[rsp], r14d
	mov	r12d, DWORD PTR 60[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	test	ebp, ebp
	je	.L46
	mov	esi, ebp
	mov	rdi, r15
	call	get_bits@PLT
	mov	rdi, r15
	or	eax, DWORD PTR 56[rsp]
	mov	ebx, eax
	call	get_bits1@PLT
	mov	ecx, eax
	neg	ecx
	xor	ebx, ecx
	add	ebx, eax
.L17:
	mov	rax, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax+r12*8]
	mov	DWORD PTR [rsi+rax*4], ebx
	movsx	rax, r14d
	add	r14d, 1
	mov	DWORD PTR [rcx+rax*4], r13d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, r15
	mov	ebx, 1
	call	get_bits1@PLT
	add	eax, eax
	sub	ebx, eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 80[rsp+r14*4], 0
	add	r12d, 1
	mov	DWORD PTR 592[rsp+r14*4], 0
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, r15
	mov	r13d, 1
	call	get_bits1@PLT
	add	eax, eax
	sub	r13d, eax
	jmp	.L20
.L43:
	mov	esi, 4
	mov	rdi, r15
	call	get_bits@PLT
	mov	DWORD PTR 1184[rsp], eax
	jmp	.L23
.L44:
	mov	rax, QWORD PTR 72[rsp]
	mov	ecx, DWORD PTR 1184[rsp]
	lea	rdx, .LC0[rip]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	edi, DWORD PTR [rax]
	call	av_log@PLT
	jmp	.L39
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_dct_coeffs, .-read_dct_coeffs
	.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_bink.c_read_dct_coeffs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"quant_index %d out of range\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_dct_coeffs, %function
read_dct_coeffs:
	@ args = 12, pretend = 0, frame = 1080
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r1, r0
	sub	sp, sp, #1072
	sub	sp, sp, #12
	str	r3, [sp, #32]
	ldr	r3, .L44
	str	r1, [sp, #44]
	str	r2, [sp, #8]
	ldr	r3, [r3]
	str	r3, [sp, #1076]
	mov	r3,#0
	ldr	r3, [sp, #1120]
	mov	r0, r4
	str	r3, [sp, #40]
	ldr	r3, [sp, #1124]
	str	r3, [sp, #12]
	bl	get_bits_left
	cmp	r0, #3
	bgt	.L2
.L37:
	ldr	r3, .L44+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #1076]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	add	sp, sp, #1072
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #24
	mov	r5, #3
	mov	r6, #0
	mov	r1, #4
	mov	r2, #44
	mov	r3, #2
	mov	r8, #1
	str	r0, [sp, #312]
	mov	r0, r4
	str	r1, [sp, #308]
	str	r6, [sp, #820]
	str	r6, [sp, #824]
	str	r6, [sp, #828]
	str	r2, [sp, #316]
	str	r8, [sp, #320]
	str	r5, [sp, #832]
	str	r5, [sp, #836]
	str	r5, [sp, #328]
	str	r5, [sp, #840]
	str	r3, [sp, #324]
	bl	get_bits
	subs	r7, r0, #1
	bmi	.L5
	mov	r3, #64
	str	r5, [sp, #20]
	mov	r5, #70
	str	r8, [sp, #36]
	str	r3, [sp, #4]
.L4:
	ldr	r3, [sp, #36]
	ldr	r10, [sp, #4]
	lsl	r3, r3, r7
	str	r3, [sp, #16]
.L21:
	add	r3, sp, #1072
	add	r3, r3, #8
	add	r3, r3, r10, lsl #2
	ldr	r8, [r3, #-516]
	ldr	fp, [r3, #-1028]
	lsl	r9, r10, #2
	orrs	r3, r8, fp
	beq	.L8
	mov	r0, r4
	bl	get_bits1
	cmp	r0, #0
	beq	.L8
	cmp	r8, #3
	ldrls	pc, [pc, r8, asl #2]
	b	.L7
.L10:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L9
.L9:
	cmp	r7, #0
	beq	.L40
	mov	r1, r7
	mov	r0, r4
	bl	get_bits
	mov	r1, r0
	ldr	r3, [sp, #16]
	mov	r0, r4
	orr	r8, r1, r3
	bl	get_bits1
	rsb	r1, r0, #0
	eor	r1, r1, r8
	add	r1, r0, r1
.L20:
	ldr	r3, [sp, #32]
	add	r10, r10, #1
	ldr	r0, [r3, fp, lsl #2]
	add	r3, sp, #1072
	add	r3, r3, #8
	add	r9, r3, r9
	mov	r3, #0
	str	r3, [r9, #-1028]
	str	r3, [r9, #-516]
	ldr	r3, [sp, #8]
	str	r1, [r3, r0, lsl #2]
	ldr	r3, [sp, #12]
	str	fp, [r3, r6, lsl #2]
	add	r6, r6, #1
.L7:
	cmp	r5, r10
	bgt	.L21
	subs	r7, r7, #1
	bcs	.L4
.L5:
	ldr	r3, [sp, #1128]
	cmn	r3, #1
	beq	.L41
	ldr	r3, [sp, #1128]
	cmp	r3, #15
	bhi	.L42
.L23:
	ldr	r3, [sp, #40]
	ldr	r0, [sp, #1128]
	str	r6, [r3]
	b	.L1
.L12:
	mov	r0, #2
	add	r3, sp, #1072
	add	r3, r3, #8
	add	r1, r3, r5, lsl r0
	add	r9, r3, r9
	add	lr, fp, #4
	add	r2, sp, #1072
	str	lr, [r1, #-1028]
	str	r0, [r9, #-516]
	add	ip, r5, #1
	str	r0, [r1, #-516]
	add	r2, r2, #8
	add	r1, r5, r0
	add	ip, r3, ip, lsl r0
	add	r1, r2, r1, lsl r0
	add	lr, fp, #8
	add	r3, fp, #12
	str	r0, [ip, #-516]
	str	lr, [ip, #-1028]
	str	r0, [r1, #-516]
	str	r3, [r1, #-1028]
	add	r5, r5, #3
	b	.L7
.L13:
	add	r3, sp, #1072
	add	r3, r3, #8
	add	r1, r3, r9
	ldr	r3, [sp, #36]
	add	r9, fp, #4
	str	r3, [r1, #-516]
	str	r9, [r1, #-1028]
.L36:
	str	r5, [sp, #24]
	ldr	r8, [sp, #4]
	mov	r5, r4
	mov	r4, fp
	ldr	fp, [sp, #32]
	str	r10, [sp, #28]
.L18:
	mov	r0, r5
	bl	get_bits1
	cmp	r0, #0
	beq	.L14
	add	r3, sp, #1072
	add	r3, r3, #8
	sub	r8, r8, #1
	add	r2, r3, r8, lsl #2
	ldr	r3, [sp, #20]
	str	r4, [r2, #-1028]
	str	r3, [r2, #-516]
.L15:
	add	r4, r4, #1
	cmp	r9, r4
	bne	.L18
	mov	r4, r5
	ldr	r10, [sp, #28]
	ldr	r5, [sp, #24]
	str	r8, [sp, #4]
	b	.L7
.L11:
	add	r3, sp, #1072
	add	r3, r3, #8
	add	r9, r3, r9
	mov	r3, #0
	add	r10, r10, #1
	str	r3, [r9, #-1028]
	str	r3, [r9, #-516]
	add	r9, fp, #4
	b	.L36
.L8:
	add	r10, r10, #1
	b	.L7
.L14:
	cmp	r7, #0
	beq	.L43
	mov	r1, r7
	mov	r0, r5
	bl	get_bits
	mov	r10, r0
	ldr	r3, [sp, #16]
	mov	r0, r5
	orr	r10, r10, r3
	bl	get_bits1
	rsb	r1, r0, #0
	eor	r2, r1, r10
	add	r0, r0, r2
.L17:
	ldr	r2, [fp, r4, lsl #2]
	ldr	r3, [sp, #8]
	str	r0, [r3, r2, lsl #2]
	ldr	r3, [sp, #12]
	str	r4, [r3, r6, lsl #2]
	add	r6, r6, #1
	b	.L15
.L43:
	mov	r0, r5
	bl	get_bits1
	lsl	r0, r0, #1
	rsb	r0, r0, #1
	b	.L17
.L40:
	mov	r0, r4
	bl	get_bits1
	lsl	r1, r0, #1
	rsb	r1, r1, #1
	b	.L20
.L41:
	mov	r0, r4
	mov	r1, #4
	bl	get_bits
	str	r0, [sp, #1128]
	b	.L23
.L42:
	ldr	r2, [sp, #44]
	ldr	r3, .L44+8
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, .L44+12
	ldr	r3, [sp, #1128]
	bl	av_log
	b	.L37
.L39:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC1
	.word	AVERROR_INVALIDDATA
	.word	AV_LOG_ERROR
	.word	.LC0
	.size	read_dct_coeffs, .-read_dct_coeffs
	.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
