	.file	"extr_mpeg12dec.c_mpeg1_fast_decode_block_inter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpeg1_fast_decode_block_inter, @function
mpeg1_fast_decode_block_inter:
.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
	lea	r13, 16[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 24[rdi]
	mov	r14d, DWORD PTR [rdi]
	mov	edi, DWORD PTR re[rip]
	mov	QWORD PTR [rsp], rsi
	mov	rsi, r13
	call	OPEN_READER@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	call	UPDATE_CACHE@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	call	GET_CACHE@PLT
	test	eax, eax
	js	.L17
	mov	rax, QWORD PTR ff_rl_mpeg1[rip]
	push	0
	.cfi_def_cfa_offset 88
	xor	r12d, r12d
	mov	rcx, r13
	push	2
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR re[rip]
	xor	esi, esi
	mov	edi, r12d
	mov	r9d, DWORD PTR TEX_VLC_BITS[rip]
	mov	r8d, DWORD PTR [rax]
	call	GET_RL_VLC@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r12d, r12d
	je	.L5
	mov	r12d, -1
	cmp	DWORD PTR MAX_INDEX[rip], r12d
	mov	edi, DWORD PTR re[rip]
	jge	.L18
.L4:
	mov	edx, 2
	mov	rsi, r13
	call	LAST_SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	call	CLOSE_READER@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	check_scantable_index@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax+rbp*4], r12d
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR re[rip]
	mov	edx, 6
	mov	rsi, r13
	call	SHOW_UBITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, 6
	mov	rsi, r13
	mov	r12d, eax
	call	LAST_SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	call	UPDATE_CACHE@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, 8
	mov	rsi, r13
	call	SHOW_SBITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, 8
	mov	rsi, r13
	mov	DWORD PTR 12[rsp], eax
	call	SKIP_BITS@PLT
	mov	ecx, DWORD PTR 12[rsp]
	cmp	ecx, -128
	je	.L19
	test	ecx, ecx
	je	.L20
.L8:
	cmp	r12d, DWORD PTR MAX_INDEX[rip]
	jg	.L15
	movsx	rax, r12d
	movsx	r15, DWORD PTR [r15+rax*4]
	test	ecx, ecx
	js	.L21
	lea	eax, 1[rcx+rcx]
	imul	r14d, eax
	sar	r14d
	sub	r14d, 1
	or	r14d, 1
.L6:
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r13
	mov	DWORD PTR [rax+r15*4], r14d
	mov	edi, DWORD PTR re[rip]
	call	GET_CACHE@PLT
.L15:
	mov	edi, DWORD PTR re[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	lea	r12d, [r14+r14*2]
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	sar	r12d
	call	GET_CACHE@PLT
	sub	r12d, 1
	mov	edx, 2
	mov	rsi, r13
	or	r12d, 1
	mov	r8d, eax
	mov	eax, r12d
	neg	eax
	and	r8d, 1073741824
	cmovne	r12d, eax
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], r12d
	mov	edi, DWORD PTR re[rip]
	xor	r12d, r12d
	call	SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	call	GET_CACHE@PLT
	mov	edi, DWORD PTR re[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	movsx	rax, r12d
	mov	rsi, r13
	sar	r14d
	mov	edx, 1
	movsx	r15, DWORD PTR [r15+rax*4]
	sub	r14d, 1
	call	SHOW_SBITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, r13
	or	r14d, 1
	mov	edx, 1
	xor	r14d, eax
	call	SHOW_SBITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, 1
	mov	rsi, r13
	sub	r14d, eax
	call	SKIP_BITS@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR re[rip]
	mov	edx, 8
	mov	rsi, r13
	call	SHOW_UBITS@PLT
	mov	ecx, eax
.L14:
	mov	edi, DWORD PTR re[rip]
	mov	edx, 8
	mov	rsi, r13
	mov	DWORD PTR 12[rsp], ecx
	call	SKIP_BITS@PLT
	mov	ecx, DWORD PTR 12[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR re[rip]
	mov	edx, 8
	mov	rsi, r13
	call	SHOW_UBITS@PLT
	lea	ecx, -256[rax]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	neg	ecx
	lea	eax, 1[rcx+rcx]
	imul	r14d, eax
	sar	r14d
	sub	r14d, 1
	or	r14d, 1
	neg	r14d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mpeg1_fast_decode_block_inter, .-mpeg1_fast_decode_block_inter
	.comm	re,4,4
	.comm	ff_rl_mpeg1,8,8
	.comm	TEX_VLC_BITS,4,4
	.comm	MAX_INDEX,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_mpeg12dec.c_mpeg1_fast_decode_block_inter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpeg1_fast_decode_block_inter, %function
mpeg1_fast_decode_block_inter:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	ip, r0
	mov	r3, r1
	sub	sp, sp, #44
	ldr	r1, [r5], #8
	ldr	r6, .L26
	str	r3, [sp, #20]
	ldr	r3, [ip, #12]
	str	r0, [sp, #32]
	str	r1, [sp, #24]
	ldr	r0, [r6]
	mov	r1, r5
	str	r2, [sp, #36]
	str	r3, [sp, #28]
	bl	OPEN_READER
	mov	r1, r5
	ldr	r0, [r6]
	bl	UPDATE_CACHE
	mov	r1, r5
	ldr	r0, [r6]
	bl	GET_CACHE
	cmp	r0, #0
	mvnge	r7, #0
	blt	.L21
.L2:
	ldr	fp, .L26+4
	ldr	r10, .L26+8
	ldr	r9, .L26+12
	b	.L13
.L22:
	ldr	r3, [r9]
	add	r7, r7, r8
	cmp	r3, r7
	ldr	r0, [r6]
	blt	.L6
	ldr	r3, [sp, #24]
	lsl	r4, r4, #1
	add	r4, r4, #1
	mul	r3, r4, r3
	asr	r4, r3, #1
	ldr	r3, [sp, #28]
	mov	r2, #1
	ldr	r3, [r3, r7, lsl #2]
	mov	r1, r5
	str	r3, [sp, #16]
	bl	SHOW_SBITS
	mov	ip, r0
	sub	r4, r4, #1
	mov	r2, #1
	mov	r1, r5
	ldr	r0, [r6]
	orr	r4, r4, #1
	eor	r4, r4, ip
	bl	SHOW_SBITS
	mov	ip, r0
	mov	r2, #1
	mov	r1, r5
	ldr	r0, [r6]
	sub	r4, r4, ip
	bl	SKIP_BITS
	ldr	r3, [sp, #16]
.L7:
	ldr	r2, [sp, #20]
	mov	r1, r5
	str	r4, [r2, r3, lsl #2]
	ldr	r0, [r6]
	bl	GET_CACHE
	cmp	r0, #-1073741824
	blt	.L4
	mov	r1, r5
	ldr	r0, [r6]
	bl	UPDATE_CACHE
.L13:
	mov	r1, #0
	str	r1, [sp, #12]
	mov	r1, #2
	ldr	r2, [fp]
	ldr	r3, [r10]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r2, [r3]
	mov	r1, r8
	str	r2, [sp]
	mov	r3, r5
	mov	r0, r4
	ldr	r2, [r6]
	bl	GET_RL_VLC
	cmp	r4, #0
	bne	.L22
	mov	r2, #6
	mov	r1, r5
	ldr	r0, [r6]
	bl	SHOW_UBITS
	mov	r2, #6
	mov	r8, r0
	mov	r1, r5
	ldr	r0, [r6]
	bl	LAST_SKIP_BITS
	mov	r1, r5
	ldr	r0, [r6]
	bl	UPDATE_CACHE
	mov	r2, #8
	mov	r1, r5
	ldr	r0, [r6]
	bl	SHOW_SBITS
	mov	r4, r0
	mov	r2, #8
	mov	r1, r5
	ldr	r0, [r6]
	bl	SKIP_BITS
	cmn	r4, #128
	add	r8, r8, #1
	beq	.L23
	cmp	r4, #0
	beq	.L24
.L9:
	ldr	r3, [r9]
	add	r7, r7, r8
	cmp	r3, r7
	blt	.L4
.L10:
	ldr	r3, [sp, #28]
	cmp	r4, #0
	ldr	r3, [r3, r7, lsl #2]
	blt	.L25
	ldr	r2, [sp, #24]
	lsl	r4, r4, #1
	add	r4, r4, #1
	mul	r2, r4, r2
	asr	r4, r2, #1
	sub	r4, r4, #1
	orr	r4, r4, #1
	b	.L7
.L25:
	rsb	r4, r4, r4, lsl #31
	ldr	r2, [sp, #24]
	lsl	r4, r4, #1
	add	r4, r4, #1
	mul	r2, r4, r2
	asr	r4, r2, #1
	sub	r4, r4, #1
	orr	r4, r4, #1
	rsb	r4, r4, #0
	b	.L7
.L24:
	mov	r2, #8
	mov	r1, r5
	ldr	r0, [r6]
	bl	SHOW_UBITS
	mov	r2, #8
	mov	r4, r0
	mov	r1, r5
	ldr	r0, [r6]
	bl	SKIP_BITS
	ldr	r3, [r9]
	add	r7, r7, r8
	cmp	r3, r7
	bge	.L10
.L4:
	ldr	r0, [r6]
.L6:
	mov	r2, #2
	mov	r1, r5
	bl	LAST_SKIP_BITS
	mov	r1, r5
	ldr	r0, [r6]
	bl	CLOSE_READER
	ldr	r4, [sp, #32]
	mov	r1, r7
	mov	r0, r4
	bl	check_scantable_index
	mov	r0, #0
	ldr	r3, [r4, #4]
	ldr	r2, [sp, #36]
	str	r7, [r3, r2, lsl #2]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r1, r5
	mov	r2, #8
	ldr	r0, [r6]
	bl	SHOW_UBITS
	mov	r4, r0
	mov	r2, #8
	mov	r1, r5
	ldr	r0, [r6]
	sub	r4, r4, #256
	bl	SKIP_BITS
	b	.L9
.L21:
	ldr	r3, [sp, #24]
	mov	r1, r5
	ldr	r0, [r6]
	add	r4, r3, r3, lsl #1
	bl	GET_CACHE
	asr	r4, r4, #1
	sub	r4, r4, #1
	tst	r0, #1073741824
	ldr	r3, [sp, #20]
	orr	r4, r4, #1
	rsbne	r4, r4, #0
	str	r4, [r3]
	mov	r2, #2
	mov	r1, r5
	ldr	r0, [r6]
	bl	SKIP_BITS
	mov	r1, r5
	ldr	r0, [r6]
	bl	GET_CACHE
	cmp	r0, #-1073741824
	mov	r7, #0
	bge	.L2
	b	.L4
.L27:
	.align	2
.L26:
	.word	re
	.word	TEX_VLC_BITS
	.word	ff_rl_mpeg1
	.word	MAX_INDEX
	.size	mpeg1_fast_decode_block_inter, .-mpeg1_fast_decode_block_inter
	.comm	re,4,4
	.comm	ff_rl_mpeg1,4,4
	.comm	TEX_VLC_BITS,4,4
	.comm	MAX_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
