	.file	"extr_hevcdec.c_hevc_decode_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"hardware accelerator failed to decode picture\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Decoded frame with POC %d.\n"
	.text
	.p2align 4
	.type	hevc_decode_frame, @function
hevc_decode_frame:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rcx]
	test	eax, eax
	jne	.L2
	mov	edx, 1
	mov	rdi, r15
	call	ff_hevc_output_frame@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	DWORD PTR [rbx], eax
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_PKT_DATA_NEW_EXTRADATA[rip]
	mov	r14, rdi
	lea	rdx, 4[rsp]
	mov	rdi, rcx
	mov	r13, rcx
	call	av_packet_get_side_data@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	jg	.L29
.L6:
	mov	QWORD PTR 32[r15], 0
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r15
	mov	edx, DWORD PTR 0[r13]
	call	decode_nal_units@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	je	.L7
	cmp	QWORD PTR 32[r15], 0
	je	.L8
	mov	rdi, r14
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L9
.L8:
	mov	rax, QWORD PTR 8[r15]
.L10:
	mov	QWORD PTR 24[r15], 0
	test	rax, rax
	jne	.L17
.L15:
	mov	rsi, QWORD PTR [r15]
	mov	rax, QWORD PTR [rsi]
	cmp	QWORD PTR [rax], 0
	jne	.L30
.L16:
	mov	r12d, DWORD PTR 0[r13]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	mov	ecx, DWORD PTR 16[r15]
	xor	eax, eax
	mov	rdi, r14
	lea	rdx, .LC1[rip]
	call	av_log@PLT
	mov	rsi, QWORD PTR [r15]
	mov	QWORD PTR 8[r15], 0
	mov	rax, QWORD PTR [rsi]
	cmp	QWORD PTR [rax], 0
	je	.L16
.L30:
	mov	rdi, rbp
	call	av_frame_move_ref@PLT
	mov	DWORD PTR [rbx], 1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	xor	ecx, ecx
	mov	rsi, rax
	mov	rdi, r15
	call	hevc_decode_extradata@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR [r14]
	test	DWORD PTR AV_EF_CRCCHECK[rip], edx
	je	.L10
	test	rax, rax
	je	.L11
	cmp	QWORD PTR 24[r15], 0
	je	.L17
	mov	rax, QWORD PTR 32[r15]
	mov	rdi, r15
	mov	esi, DWORD PTR [rax]
	call	verify_md5@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L8
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR AV_EF_EXPLODE[rip], eax
	je	.L8
	mov	rsi, QWORD PTR 32[r15]
	or	edx, -1
	mov	rdi, r15
	call	ff_hevc_unref_frame@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 24[r15], 0
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, r14
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	rsi, QWORD PTR 32[r15]
	mov	edx, -1
	mov	rdi, r15
	call	ff_hevc_unref_frame@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hevc_decode_frame, .-hevc_decode_frame
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AV_EF_EXPLODE,4,4
	.comm	AV_EF_CRCCHECK,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_hevcdec.c_hevc_decode_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hardware accelerator failed to decode picture\012\000"
	.align	2
.LC1:
	.ascii	"Decoded frame with POC %d.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hevc_decode_frame, %function
hevc_decode_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r3]
	mov	r5, r3
	ldr	r3, .L36
	sub	sp, sp, #8
	cmp	r10, #0
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r0, #8]
	bne	.L2
	mov	r0, r7
	mov	r2, #1
	bl	ff_hevc_output_frame
	subs	r4, r0, #0
	strge	r4, [r8]
	movge	r4, r10
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L36+4
	mov	r6, r0
	mov	r9, r1
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	av_packet_get_side_data
	subs	r1, r0, #0
	beq	.L6
	ldr	r2, [sp]
	cmp	r2, #0
	bgt	.L34
.L6:
	mov	r3, #0
	ldr	r2, [r5]
	mov	r0, r7
	ldr	r1, [r5, #4]
	str	r3, [r7, #16]
	bl	decode_nal_units
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [r7, #16]
	cmp	r2, #0
	beq	.L8
	mov	r0, r6
	ldr	r3, [r3]
	blx	r3
	subs	r4, r0, #0
	blt	.L9
.L8:
	ldr	r3, [r7, #4]
.L10:
	mov	r2, #0
	cmp	r3, r2
	str	r2, [r7, #12]
	bne	.L17
.L15:
	ldr	r1, [r7]
	ldr	r3, [r1]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
.L16:
	ldr	r4, [r5]
	b	.L1
.L17:
	ldr	r3, .L36+8
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L36+12
	ldr	r3, [r7, #8]
	bl	av_log
	mov	r3, #0
	str	r3, [r7, #4]
	b	.L15
.L34:
	mov	r3, #0
	mov	r0, r7
	bl	hevc_decode_extradata
	subs	r4, r0, #0
	bge	.L6
	b	.L1
.L35:
	mov	r0, r9
	bl	av_frame_move_ref
	mov	r3, #1
	str	r3, [r8]
	b	.L16
.L7:
	ldr	r3, .L36+16
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, [r7, #4]
	tst	r1, r2
	beq	.L10
	cmp	r3, #0
	beq	.L11
	ldr	r3, [r7, #12]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [r7, #16]
	mov	r0, r7
	ldr	r1, [r3]
	bl	verify_md5
	subs	r4, r0, #0
	bge	.L8
	ldr	r3, .L36+20
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L8
	mvn	r2, #0
	mov	r0, r7
	ldr	r1, [r7, #16]
	bl	ff_hevc_unref_frame
	b	.L1
.L11:
	str	r3, [r7, #12]
	b	.L15
.L9:
	ldr	r3, .L36+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L36+28
	bl	av_log
	mvn	r2, #0
	mov	r0, r7
	ldr	r1, [r7, #16]
	bl	ff_hevc_unref_frame
	b	.L1
.L33:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	AV_PKT_DATA_NEW_EXTRADATA
	.word	AV_LOG_DEBUG
	.word	.LC1
	.word	AV_EF_CRCCHECK
	.word	AV_EF_EXPLODE
	.word	AV_LOG_ERROR
	.word	.LC0
	.size	hevc_decode_frame, .-hevc_decode_frame
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AV_EF_EXPLODE,4,4
	.comm	AV_EF_CRCCHECK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
