	.file	"extr_h264dec.c_h264_decode_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no frame!\n"
.LC1:
	.string	"Q264"
	.text
	.p2align 4
	.type	h264_decode_frame, @function
h264_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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	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, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 24[rdi]
	mov	r15, QWORD PTR [rcx]
	mov	QWORD PTR 8[rsp], rsi
	mov	r12d, DWORD PTR 8[rcx]
	mov	QWORD PTR 16[rsp], rdx
	lea	rbx, 24[rbp]
	mov	rsi, rbx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 20[rdi]
	mov	QWORD PTR 88[rbp], 0
	mov	rdi, rbp
	mov	QWORD PTR 80[rbp], 0
	mov	DWORD PTR 96[rbp], eax
	call	ff_h264_unref_picture@PLT
	xor	ecx, ecx
	test	r12d, r12d
	je	.L53
	cmp	QWORD PTR 64[rbp], 0
	jne	.L57
.L4:
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbp
	call	decode_nal_units@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L55
	mov	ecx, DWORD PTR 52[rbp]
	test	ecx, ecx
	jne	.L8
	mov	rax, QWORD PTR H264_NAL_END_SEQUENCE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L58
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR AV_CODEC_FLAG2_CHUNKS[rip], eax
	jne	.L18
.L19:
	mov	rax, QWORD PTR AVDISCARD_NONREF[rip]
	cmp	QWORD PTR 8[r14], rax
	jge	.L1
	cmp	r12d, 3
	jle	.L12
	mov	edx, 4
	mov	rsi, r15
	lea	rdi, .LC1[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L1
.L12:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r14
	call	av_log@PLT
.L55:
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR AV_CODEC_FLAG2_CHUNKS[rip], eax
	je	.L59
.L18:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbp], rax
	jl	.L16
	test	rax, rax
	je	.L16
.L10:
	mov	rsi, QWORD PTR 40[rbp]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 24[rsp], r8d
	call	ff_h264_field_end@PLT
	test	eax, eax
	js	.L54
	mov	rdx, QWORD PTR 32[rbp]
	mov	r8d, DWORD PTR 24[rsp]
	test	rdx, rdx
	jne	.L60
.L16:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, 1
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L61
.L14:
	mov	DWORD PTR 8[rsp], r8d
	call	av_assert0@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	ff_h264_unref_picture@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	esi, r12d
	mov	edi, r8d
	call	get_consumed_bytes@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L62
	add	rsp, 56
	.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
.L57:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_PKT_DATA_NEW_EXTRADATA[rip]
	xor	edx, edx
	mov	rdi, r13
	call	av_packet_get_side_data@PLT
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR AV_PKT_DATA_NEW_EXTRADATA[rip]
	lea	rdx, 36[rsp]
	mov	rdi, r13
	call	av_packet_get_side_data@PLT
	mov	esi, DWORD PTR 36[rsp]
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	is_extra@PLT
	mov	rdi, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L63
.L5:
	cmp	QWORD PTR 64[rbp], 0
	je	.L4
	cmp	r12d, 8
	jle	.L4
	cmp	DWORD PTR [r15], 1
	jne	.L4
	mov	r8d, DWORD PTR 8[r15]
	test	r8d, r8d
	jne	.L4
	mov	eax, DWORD PTR 16[r15]
	and	eax, 252
	cmp	eax, 252
	jne	.L4
	mov	esi, r12d
	mov	rdi, r15
	call	is_extra@PLT
	test	rax, rax
	je	.L4
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR 16[r14]
	mov	esi, r12d
	mov	rdi, r15
	push	r14
	.cfi_def_cfa_offset 128
	lea	rcx, 64[rbp]
	lea	rdx, 72[rbp]
	lea	r8, 56[rbp]
	call	ff_h264_decode_extradata@PLT
	pop	rsi
	.cfi_def_cfa_offset 120
	pop	rdi
	.cfi_def_cfa_offset 112
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L58:
	cmp	r12d, r8d
	mov	DWORD PTR 24[rsp], r8d
	setge	dil
	movzx	edi, dil
	call	av_assert0@PLT
	mov	r8d, DWORD PTR 24[rsp]
	mov	ecx, r8d
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	send_next_delayed_frame@PLT
.L54:
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rax, QWORD PTR 16[rsp]
	xor	edi, edi
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	dil
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L59:
	mov	edx, DWORD PTR 48[rbp]
	test	edx, edx
	jne	.L10
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L63:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR 16[r14]
	lea	rcx, 64[rbp]
	lea	rdx, 72[rbp]
	push	r14
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR 52[rsp]
	lea	r8, 56[rbp]
	call	ff_h264_decode_extradata@PLT
	pop	r9
	.cfi_def_cfa_offset 120
	pop	r10
	.cfi_def_cfa_offset 112
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L60:
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	finalize_frame@PLT
	mov	r8d, DWORD PTR 24[rsp]
	test	eax, eax
	jns	.L16
	jmp	.L54
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	h264_decode_frame, .-h264_decode_frame
	.comm	H264_NAL_END_SEQUENCE,8,8
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_FLAG2_CHUNKS,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.comm	AVDISCARD_NONREF,8,8
	.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_h264dec.c_h264_decode_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Q264\000"
	.align	2
.LC1:
	.ascii	"no frame!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	h264_decode_frame, %function
h264_decode_frame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, #0
	ldr	r4, [r0, #16]
	mov	r6, r0
	ldr	r0, [r0, #12]
	ldr	r5, [r3, #4]
	ldr	r10, [r3]
	sub	sp, sp, #36
	mov	r7, r3
	add	fp, r4, #12
	ldr	r3, .L58
	str	r0, [r4, #52]
	str	r9, [r4, #48]
	str	r9, [r4, #44]
	str	r2, [sp, #20]
	mov	r8, r1
	mov	r0, r4
	mov	r1, fp
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	ff_h264_unref_picture
	cmp	r5, r9
	moveq	r3, r5
	beq	.L48
	ldr	r2, [r4, #36]
	cmp	r2, #0
	bne	.L52
.L4:
	mov	r2, r5
	mov	r1, r10
	mov	r0, r4
	bl	decode_nal_units
	subs	r7, r0, #0
	blt	.L50
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L58+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L53
	ldr	r3, .L58+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L16
.L17:
	ldr	r3, .L58+12
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L1
	cmp	r5, #3
	ble	.L11
	mov	r1, r10
	mov	r2, #4
	ldr	r0, .L58+16
	bl	memcmp
	cmp	r0, #0
	beq	.L1
.L11:
	ldr	r3, .L58+20
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L58+24
	bl	av_log
.L50:
	ldr	r3, .L58+28
	ldr	r5, [r3]
	b	.L1
.L8:
	ldr	r3, .L58+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L54
.L16:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	cmp	r3, r2
	movlt	r3, #0
	movge	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L10
.L14:
	ldr	r3, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r0, #1
	beq	.L55
.L12:
	bl	av_assert0
	mov	r1, fp
	mov	r0, r4
	bl	ff_h264_unref_picture
	mov	r1, r5
	mov	r0, r7
	bl	get_consumed_bytes
	mov	r5, r0
.L1:
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L56
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	mov	r2, r9
	ldr	r9, .L58+32
	mov	r0, r7
	ldr	r1, [r9]
	bl	av_packet_get_side_data
	cmp	r0, #0
	beq	.L5
	mov	r0, r7
	ldr	r1, [r9]
	add	r2, sp, #24
	bl	av_packet_get_side_data
	ldr	r1, [sp, #24]
	mov	r7, r0
	bl	is_extra
	cmp	r0, #0
	bne	.L57
.L5:
	ldr	r3, [r4, #36]
	cmp	r3, #0
	cmpne	r5, #8
	ble	.L4
	ldr	r3, [r10]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [r10, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r10, #16]
	and	r3, r3, #252
	cmp	r3, #252
	bne	.L4
	mov	r1, r5
	mov	r0, r10
	bl	is_extra
	cmp	r0, #0
	beq	.L4
	ldr	r2, [r6, #8]
	add	r3, r4, #32
	mov	r1, r5
	stmib	sp, {r2, r6}
	str	r3, [sp]
	mov	r0, r10
	add	r3, r4, #36
	add	r2, r4, #40
	bl	ff_h264_decode_extradata
	mov	r5, r0
	b	.L1
.L53:
	cmp	r5, r7
	movlt	r0, #0
	movge	r0, #1
	bl	av_assert0
	mov	r3, r7
.L48:
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [sp, #20]
	bl	send_next_delayed_frame
.L49:
	mov	r5, r0
	b	.L1
.L55:
	ldr	r3, [sp, #20]
	ldr	r0, [r3]
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L12
.L54:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L17
.L10:
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r4, #20]
	bl	ff_h264_field_end
	cmp	r0, #0
	blt	.L49
	ldr	r2, [r4, #16]
	cmp	r2, #0
	beq	.L14
	mov	r1, r8
	mov	r0, r4
	ldr	r3, [sp, #20]
	bl	finalize_frame
	cmp	r0, #0
	bge	.L14
	b	.L49
.L57:
	ldr	r2, [r6, #8]
	add	r3, r4, #32
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r0, r7
	ldr	r1, [sp, #24]
	str	r6, [sp, #8]
	add	r3, r4, #36
	add	r2, r4, #40
	bl	ff_h264_decode_extradata
	b	.L5
.L56:
	bl	__stack_chk_fail
.L59:
	.align	2
.L58:
	.word	.LC2
	.word	H264_NAL_END_SEQUENCE
	.word	AV_CODEC_FLAG2_CHUNKS
	.word	AVDISCARD_NONREF
	.word	.LC0
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	AVERROR_INVALIDDATA
	.word	AV_PKT_DATA_NEW_EXTRADATA
	.size	h264_decode_frame, .-h264_decode_frame
	.comm	H264_NAL_END_SEQUENCE,4,4
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_FLAG2_CHUNKS,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.comm	AVDISCARD_NONREF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
