	.file	"extr_qsvdec_other.c_qsv_decode_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qsv_decode_frame, @function
qsv_decode_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR [rcx]
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	jne	.L20
.L2:
	lea	rbx, 16[rbp]
.L13:
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L21
.L14:
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L22
.L10:
	mov	r8, rbp
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, r13
	call	ff_qsv_process_data@PLT
	test	eax, eax
	js	.L23
	cmp	QWORD PTR 16[rbp], 0
	jne	.L13
	sub	DWORD PTR 0[rbp], eax
	add	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L14
.L21:
	mov	r8d, DWORD PTR [r15]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbp]
	call	av_fifo_size@PLT
	cmp	eax, 11
	jbe	.L25
	cmp	QWORD PTR 16[rbp], 0
	jne	.L10
	mov	rdi, rbp
	call	av_packet_unref@PLT
	mov	edi, DWORD PTR 24[rbp]
	xor	ecx, ecx
	mov	edx, 12
	mov	rsi, rbp
	call	av_fifo_generic_read@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	av_packet_unref@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR 24[rbp]
	mov	DWORD PTR 36[rsp], 0
	mov	QWORD PTR 28[rsp], 0
	call	av_fifo_space@PLT
	cmp	eax, 11
	ja	.L6
	mov	edi, DWORD PTR 24[rbp]
	call	av_fifo_size@PLT
	mov	edi, DWORD PTR 24[rbp]
	lea	esi, 12[rax]
	call	av_fifo_realloc2@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L1
.L6:
	lea	rbx, 28[rsp]
	mov	rsi, r15
	mov	rdi, rbx
	call	av_packet_ref@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 24[rbp]
	xor	ecx, ecx
	mov	edx, 12
	mov	rsi, rbx
	call	av_fifo_generic_write@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r8d, DWORD PTR [r15]
	test	r8d, r8d
	jne	.L1
	mov	r8, r15
	lea	rsi, 16[rbp]
	mov	rcx, r12
	mov	rdx, r14
	mov	rdi, r13
	call	ff_qsv_process_data@PLT
	mov	r8d, eax
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qsv_decode_frame, .-qsv_decode_frame
	.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_qsvdec_other.c_qsv_decode_frame.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qsv_decode_frame, %function
qsv_decode_frame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r3
	ldr	r3, [r3]
	sub	sp, sp, #24
	cmp	r3, #0
	ldr	r3, .L29
	mov	r7, r0
	mov	r8, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r4, [r0]
	bne	.L23
.L2:
	add	r10, r4, #12
.L13:
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L24
.L14:
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L25
.L10:
	mov	r3, r6
	mov	r2, r8
	mov	r1, r10
	mov	r0, r7
	str	r4, [sp]
	bl	ff_qsv_process_data
	subs	r5, r0, #0
	blt	.L26
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	sub	r3, r3, r5
	add	r0, r0, r5
	str	r3, [r4]
	str	r0, [r4, #4]
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L14
.L24:
	ldr	r5, [r9]
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r0, [r4, #16]
	bl	av_fifo_size
	cmp	r0, #11
	bls	.L28
	ldr	r5, [r4, #12]
	cmp	r5, #0
	bne	.L10
	mov	r0, r4
	bl	av_packet_unref
	mov	r3, r5
	mov	r2, #12
	mov	r1, r4
	ldr	r0, [r4, #16]
	bl	av_fifo_generic_read
	b	.L10
.L26:
	mov	r0, r4
	bl	av_packet_unref
	b	.L1
.L23:
	mov	r3, #0
	ldr	r0, [r4, #16]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	av_fifo_space
	cmp	r0, #11
	bhi	.L6
	ldr	r5, [r4, #16]
	mov	r0, r5
	bl	av_fifo_size
	mov	r1, r0
	mov	r0, r5
	add	r1, r1, #12
	bl	av_fifo_realloc2
	subs	r5, r0, #0
	blt	.L1
.L6:
	mov	r1, r9
	add	r0, sp, #8
	bl	av_packet_ref
	subs	r5, r0, #0
	blt	.L1
	mov	r3, #0
	mov	r2, #12
	ldr	r0, [r4, #16]
	add	r1, sp, #8
	bl	av_fifo_generic_write
	b	.L2
.L28:
	ldr	r5, [r9]
	cmp	r5, #0
	bne	.L1
	mov	r3, r6
	mov	r2, r8
	mov	r0, r7
	str	r9, [sp]
	add	r1, r4, #12
	bl	ff_qsv_process_data
	mov	r5, r0
	b	.L1
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC0
	.size	qsv_decode_frame, .-qsv_decode_frame
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
