	.file	"extr_qsvdec.c_decode_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error during decoding\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error transferring the data to system memory\n"
	.text
	.p2align 4
	.type	decode_packet, @function
decode_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	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, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rsi
	mov	rsi, r8
	mov	QWORD PTR 16[rsp], rdx
	call	avcodec_send_packet@PLT
	test	eax, eax
	js	.L21
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	call	avcodec_receive_frame@PLT
	mov	edi, DWORD PTR EAGAIN[rip]
	mov	r12d, eax
	call	AVERROR@PLT
	cmp	eax, r12d
	je	.L13
	cmp	DWORD PTR AVERROR_EOF[rip], r12d
	je	.L13
	test	r12d, r12d
	js	.L22
	mov	rsi, QWORD PTR 16[rsp]
	xor	edx, edx
	mov	rdi, r15
	call	av_hwframe_transfer_data@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rdi, QWORD PTR 24[r15]
	xor	r14d, r14d
	call	FF_ARRAY_ELEMS@PLT
	cmp	eax, r14d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR 24[r15]
	lea	r12, 0[0+r14*8]
	mov	rax, QWORD PTR [rdi+r14*8]
	test	rax, rax
	je	.L9
	test	r14d, r14d
	mov	edx, DWORD PTR [r15]
	setg	bl
	setg	cl
	xor	ebp, ebp
	movzx	ebx, bl
	sar	edx, cl
	mov	DWORD PTR 12[rsp], ebx
	lea	rbx, 0[0+r14*4]
	test	edx, edx
	jg	.L8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 24[r15]
	mov	rax, QWORD PTR [rax+r12]
.L8:
	mov	rcx, QWORD PTR 8[r15]
	mov	edx, DWORD PTR 16[r15]
	mov	rdi, r13
	mov	esi, DWORD PTR [rcx+rbx]
	imul	esi, ebp
	add	ebp, 1
	movsx	rsi, esi
	add	rsi, rax
	call	avio_write@PLT
	mov	eax, DWORD PTR [r15]
	movzx	ecx, BYTE PTR 12[rsp]
	sar	eax, cl
	cmp	eax, ebp
	jg	.L23
	mov	rdi, QWORD PTR 24[r15]
.L11:
	add	r14, 1
	call	FF_ARRAY_ELEMS@PLT
	cmp	eax, r14d
	jg	.L24
.L9:
	mov	rdi, r15
	call	av_frame_unref@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	av_frame_unref@PLT
	jmp	.L2
.L5:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	rdi, r15
	call	av_frame_unref@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	av_frame_unref@PLT
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
.L21:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	fprintf@PLT
	jmp	.L1
.L22:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	decode_packet, .-decode_packet
	.comm	stderr,4,4
	.comm	EAGAIN,4,4
	.comm	AVERROR_EOF,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_qsvdec.c_decode_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error during decoding\012\000"
	.align	2
.LC1:
	.ascii	"Error transferring the data to system memory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_packet, %function
decode_packet:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r0, r1
	str	r1, [sp, #4]
	ldr	r1, [sp, #48]
	mov	r9, r2
	mov	r4, r3
	ldr	r7, [sp, #52]
	bl	avcodec_send_packet
	subs	r5, r0, #0
	blt	.L20
	ldr	fp, .L24
.L2:
	mov	r1, r9
	ldr	r0, [sp, #4]
	bl	avcodec_receive_frame
	ldr	r3, .L24+4
	mov	r5, r0
	ldr	r0, [r3]
	bl	AVERROR
	cmp	r0, r5
	beq	.L12
	ldr	r3, [fp]
	cmp	r3, r5
	beq	.L12
	cmp	r5, #0
	blt	.L20
	mov	r2, #0
	mov	r1, r9
	mov	r0, r4
	bl	av_hwframe_transfer_data
	subs	r5, r0, #0
	blt	.L5
	ldr	r0, [r4, #12]
	mov	r8, #0
	bl	FF_ARRAY_ELEMS
	cmp	r0, r8
	ble	.L9
.L23:
	ldr	r0, [r4, #12]
	lsl	r10, r8, #2
	ldr	r3, [r0, r8, lsl #2]
	cmp	r3, #0
	beq	.L9
	cmp	r8, #0
	movle	r6, #0
	movgt	r6, #1
	ldr	r2, [r4]
	asr	r2, r2, r6
	cmp	r2, #0
	movgt	r5, #0
	bgt	.L8
	b	.L10
.L22:
	ldr	r3, [r4, #12]
	ldr	r3, [r3, r10]
.L8:
	ldmib	r4, {r0, r2}
	ldr	r1, [r0, r10]
	mov	r0, r7
	mla	r1, r5, r1, r3
	bl	avio_write
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r5, r3, asr r6
	blt	.L22
	ldr	r0, [r4, #12]
.L10:
	bl	FF_ARRAY_ELEMS
	add	r8, r8, #1
	cmp	r0, r8
	bgt	.L23
.L9:
	mov	r0, r4
	bl	av_frame_unref
	mov	r0, r9
	bl	av_frame_unref
	b	.L2
.L5:
	ldr	r3, .L24+8
	ldr	r1, .L24+12
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, r4
	bl	av_frame_unref
	mov	r0, r9
	bl	av_frame_unref
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, .L24+8
	ldr	r1, .L24+16
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	.align	2
.L24:
	.word	AVERROR_EOF
	.word	EAGAIN
	.word	stderr
	.word	.LC1
	.word	.LC0
	.size	decode_packet, .-decode_packet
	.comm	stderr,4,4
	.comm	EAGAIN,4,4
	.comm	AVERROR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
