	.file	"extr_qsvdec.c_qsv_decode_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error decoding stream header"
	.text
	.p2align 4
	.type	qsv_decode_header, @function
qsv_decode_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r9d, ecx
	pxor	xmm0, xmm0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rcx, QWORD PTR 8[rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	test	rcx, rcx
	je	.L1
	mov	eax, DWORD PTR 16[rdx]
	mov	QWORD PTR 8[rsp], rcx
	mov	rbp, rdi
	mov	rbx, rsi
	mov	QWORD PTR 16[rsp], rcx
	mov	r12, r8
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR [rdx]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR AV_FIELD_PROGRESSIVE[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L15
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L7
.L5:
	mov	rcx, r12
	mov	edx, r9d
	mov	rsi, rbx
	mov	rdi, rbp
	call	qsv_decode_preinit@PLT
	test	eax, eax
	js	.L1
.L7:
	mov	edi, DWORD PTR 8[rbp]
	call	ff_qsv_codec_id_to_mfx@PLT
	test	eax, eax
	js	.L1
	mov	DWORD PTR [r12], eax
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rsp
	mov	rdx, r12
	call	MFXVideoDECODE_DecodeHeader@PLT
	cmp	DWORD PTR MFX_ERR_MORE_DATA[rip], eax
	mov	esi, eax
	je	.L16
	xor	eax, eax
	test	esi, esi
	js	.L17
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR MFX_BITSTREAM_COMPLETE_FRAME[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	ff_qsv_print_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR EAGAIN[rip]
	call	AVERROR@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qsv_decode_header, .-qsv_decode_header
	.comm	MFX_ERR_MORE_DATA,4,4
	.comm	MFX_BITSTREAM_COMPLETE_FRAME,4,4
	.comm	EAGAIN,4,4
	.comm	AV_FIELD_PROGRESSIVE,8,8
	.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_qsvdec.c_qsv_decode_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error decoding stream header\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qsv_decode_header, %function
qsv_decode_header:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, lr}
	mov	lr, r2
	ldr	r2, [r2, #4]
	mov	r5, r1
	ldr	r1, .L18
	sub	sp, sp, #32
	cmp	r2, ip
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	ldr	r6, [sp, #48]
	str	ip, [sp, #4]
	str	ip, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	beq	.L2
	ldr	r1, .L18+4
	mov	r4, r0
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r2, [sp, #12]
	cmp	r0, r1
	ldr	r0, [lr, #8]
	ldr	r1, [lr]
	str	r2, [sp, #16]
	str	r0, [sp, #20]
	str	r1, [sp, #8]
	beq	.L14
	ldr	r2, [r5]
	cmp	r2, #0
	bne	.L7
.L5:
	mov	r2, r3
	mov	r1, r5
	mov	r3, r6
	mov	r0, r4
	bl	qsv_decode_preinit
	cmp	r0, #0
	blt	.L1
.L7:
	ldr	r0, [r4, #4]
	bl	ff_qsv_codec_id_to_mfx
	cmp	r0, #0
	blt	.L1
	str	r0, [r6]
	mov	r2, r6
	ldr	r0, [r5]
	add	r1, sp, #4
	bl	MFXVideoDECODE_DecodeHeader
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L15
	cmp	r0, #0
	movge	r0, #0
	blt	.L16
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r2, .L18+12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L5
	b	.L7
.L2:
	ldr	r3, .L18+16
	ldr	r0, [r3]
	b	.L1
.L16:
	mov	r1, r0
	ldr	r2, .L18+20
	mov	r0, r4
	bl	ff_qsv_print_error
	b	.L1
.L15:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	AV_FIELD_PROGRESSIVE
	.word	MFX_ERR_MORE_DATA
	.word	MFX_BITSTREAM_COMPLETE_FRAME
	.word	AVERROR_INVALIDDATA
	.word	.LC0
	.word	EAGAIN
	.size	qsv_decode_header, .-qsv_decode_header
	.comm	MFX_ERR_MORE_DATA,4,4
	.comm	MFX_BITSTREAM_COMPLETE_FRAME,4,4
	.comm	EAGAIN,4,4
	.comm	AV_FIELD_PROGRESSIVE,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
