	.file	"extr_agm.c_decode_inter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_inter, @function
decode_inter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	lea	eax, -100[rax+rax]
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR .LC0[rip]
	cvttsd2si	esi, xmm0
	call	compute_quant_matrix@PLT
	test	BYTE PTR 4[rbp], 2
	je	.L5
	mov	rsi, r12
	mov	rdi, r14
	call	decode_motion_vectors@PLT
	test	eax, eax
	js	.L1
.L5:
	mov	eax, DWORD PTR [r14]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 36[rbp]
	mov	r9, r13
	mov	r8, rbx
	mov	rsi, r12
	mov	rdi, rbp
	sar	eax, 3
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 4[r14]
	sar	eax, 3
	mov	DWORD PTR 12[rbp], eax
	mov	rax, QWORD PTR 24[rbp]
	push	0
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR [rax]
	call	decode_inter_plane@PLT
	pop	r8
	.cfi_def_cfa_offset 72
	pop	r9
	.cfi_def_cfa_offset 64
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 24[rbp]
	lea	r15, 32[rbp]
	mov	rdi, r15
	mov	esi, DWORD PTR [rax]
	call	bytestream2_skip@PLT
	mov	eax, DWORD PTR [r14]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 16[rbp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	r9, r13
	mov	r8, rbx
	sar	eax, 4
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 4[r14]
	sar	eax, 4
	mov	DWORD PTR 12[rbp], eax
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 4[rax]
	push	2
	.cfi_def_cfa_offset 80
	call	decode_inter_plane@PLT
	pop	rsi
	.cfi_def_cfa_offset 72
	pop	rdi
	.cfi_def_cfa_offset 64
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, r15
	mov	esi, DWORD PTR 4[rax]
	call	bytestream2_skip@PLT
	mov	eax, DWORD PTR [r14]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 16[rbp]
	mov	r9, r13
	mov	r8, rbx
	mov	rsi, r12
	mov	rdi, rbp
	sar	eax, 4
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 4[r14]
	sar	eax, 4
	mov	DWORD PTR 12[rbp], eax
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 8[rax]
	push	1
	.cfi_def_cfa_offset 80
	call	decode_inter_plane@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	mov	edx, 0
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	cmovg	eax, edx
.L1:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	decode_inter, .-decode_inter
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.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_agm.c_decode_inter.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_inter, %function
decode_inter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r0, #8]
	mov	r5, r0
	ldr	r0, [r4]
	sub	sp, sp, #20
	sub	r0, r0, #50
	lsl	r0, r0, #1
	mov	r7, r2
	mov	r8, r3
	mov	r6, r1
	bl	__aeabi_i2d
	ldr	r3, .L9
	mov	r2, #0
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	mov	r1, r0
	mov	r0, r4
	bl	compute_quant_matrix
	ldr	r3, [r4, #4]
	tst	r3, #2
	beq	.L5
	mov	r1, r6
	mov	r0, r5
	bl	decode_motion_vectors
	cmp	r0, #0
	blt	.L1
.L5:
	ldm	r5, {r2, r3}
	mov	r1, #0
	ldr	r0, [r4, #20]
	asr	r2, r2, #3
	asr	r3, r3, #3
	str	r3, [r4, #12]
	str	r2, [r4, #8]
	ldr	r2, [r0]
	ldr	r3, [r4, #28]
	mov	r0, r4
	str	r1, [sp, #8]
	stm	sp, {r7, r8}
	mov	r1, r6
	bl	decode_inter_plane
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4, #20]
	add	r9, r4, #24
	ldr	r1, [r3]
	mov	r0, r9
	bl	bytestream2_skip
	ldm	r5, {r2, r3}
	mov	r1, #2
	ldr	r0, [r4, #20]
	asr	r2, r2, #4
	asr	r3, r3, #4
	str	r3, [r4, #12]
	str	r2, [r4, #8]
	ldr	r2, [r0, #4]
	ldr	r3, [r4, #16]
	mov	r0, r4
	str	r1, [sp, #8]
	stm	sp, {r7, r8}
	mov	r1, r6
	bl	decode_inter_plane
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4, #20]
	mov	r0, r9
	ldr	r1, [r3, #4]
	bl	bytestream2_skip
	ldm	r5, {r2, r3}
	mov	r0, #1
	ldr	r1, [r4, #20]
	asr	r2, r2, #4
	asr	r3, r3, #4
	str	r3, [r4, #12]
	str	r2, [r4, #8]
	ldr	r2, [r1, #8]
	ldr	r3, [r4, #16]
	mov	r1, r6
	str	r0, [sp, #8]
	stm	sp, {r7, r8}
	mov	r0, r4
	bl	decode_inter_plane
	and	r0, r0, r0, asr #31
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	1079574528
	.size	decode_inter, .-decode_inter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
