	.file	"extr_h264_slice.c_ff_h264_update_thread_context.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"h264_slice_header_init() failed"
	.text
	.p2align 4
	.globl	ff_h264_update_thread_context
	.type	ff_h264_update_thread_context, @function
ff_h264_update_thread_context:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	rdi, rsi
	je	.L61
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	mov	r12, QWORD PTR [rsi]
	mov	r13d, DWORD PTR [rbx]
	test	r13d, r13d
	jne	.L62
.L4:
	mov	rdi, QWORD PTR 240[rbx]
	mov	rsi, QWORD PTR 240[r12]
	mov	edx, 8
	xor	ebp, ebp
	call	memcpy@PLT
	mov	rdi, QWORD PTR 304[rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L64:
	add	r15, QWORD PTR 304[rbx]
	call	av_buffer_ref@PLT
	mov	rdi, QWORD PTR 304[rbx]
	mov	QWORD PTR [r15], rax
	cmp	QWORD PTR [rdi+rbp*8], 0
	je	.L59
.L7:
	add	rbp, 1
.L5:
	call	FF_ARRAY_ELEMS@PLT
	cmp	eax, ebp
	jle	.L63
	mov	rdi, QWORD PTR 304[rbx]
	lea	r15, 0[0+rbp*8]
	add	rdi, r15
	call	av_buffer_unref@PLT
	mov	rax, QWORD PTR 304[r12]
	mov	rdi, QWORD PTR [rax+rbp*8]
	test	rdi, rdi
	jne	.L64
	mov	rdi, QWORD PTR 304[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L63:
	mov	rdi, QWORD PTR 296[rbx]
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L66:
	add	r15, QWORD PTR 296[rbx]
	call	av_buffer_ref@PLT
	mov	rdi, QWORD PTR 296[rbx]
	mov	QWORD PTR [r15], rax
	cmp	QWORD PTR [rdi+rbp*8], 0
	je	.L59
.L11:
	add	rbp, 1
.L9:
	call	FF_ARRAY_ELEMS@PLT
	cmp	eax, ebp
	jle	.L65
	mov	rdi, QWORD PTR 296[rbx]
	lea	r15, 0[0+rbp*8]
	add	rdi, r15
	call	av_buffer_unref@PLT
	mov	rax, QWORD PTR 296[r12]
	mov	rdi, QWORD PTR [rax+rbp*8]
	test	rdi, rdi
	jne	.L66
	mov	rdi, QWORD PTR 296[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L59:
	mov	edi, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	r14d, 1
	cmp	QWORD PTR 8[rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 16[r12]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 24[r12]
	cmp	QWORD PTR 24[rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 32[r12]
	cmp	QWORD PTR 32[rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 272[rbx]
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR 272[r12]
	mov	rcx, QWORD PTR [rdx]
	cmp	QWORD PTR [rax], rcx
	jne	.L4
	mov	rcx, QWORD PTR 8[rdx]
	cmp	QWORD PTR 8[rax], rcx
	jne	.L4
	xor	r14d, r14d
	mov	rcx, QWORD PTR 16[rdx]
	cmp	QWORD PTR 16[rax], rcx
	setne	r14b
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L65:
	lea	rdi, 280[rbx]
	call	av_buffer_unref@PLT
	lea	rdi, 264[rbx]
	call	av_buffer_unref@PLT
	mov	rdi, QWORD PTR 280[r12]
	mov	QWORD PTR 288[rbx], 0
	mov	QWORD PTR 272[rbx], 0
	test	rdi, rdi
	je	.L13
	call	av_buffer_ref@PLT
	mov	QWORD PTR 280[rbx], rax
	test	rax, rax
	je	.L59
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 288[rbx], rax
.L13:
	mov	rdi, QWORD PTR 264[r12]
	test	rdi, rdi
	je	.L15
	call	av_buffer_ref@PLT
	mov	QWORD PTR 264[rbx], rax
	test	rax, rax
	je	.L59
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 272[rbx], rax
.L15:
	test	r13d, r13d
	je	.L41
	xor	r15d, r15d
	test	r14d, r14d
	jne	.L41
.L17:
	mov	rdx, QWORD PTR 232[r12]
	mov	rax, QWORD PTR 232[rbx]
	xor	ebp, ebp
	mov	ecx, DWORD PTR 12[rdx]
	mov	DWORD PTR 12[rax], ecx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	ecx, DWORD PTR 4[rdx]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 4[rax], ecx
	mov	ecx, DWORD PTR H264_MAX_PICTURE_COUNT[rip]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR 228[r12]
	mov	DWORD PTR 228[rbx], eax
	mov	eax, DWORD PTR 224[r12]
	mov	DWORD PTR 224[rbx], eax
	mov	eax, DWORD PTR 220[r12]
	mov	DWORD PTR 220[rbx], eax
	mov	eax, DWORD PTR 216[r12]
	mov	DWORD PTR 216[rbx], eax
	mov	eax, DWORD PTR 212[r12]
	mov	DWORD PTR 212[rbx], eax
	mov	eax, DWORD PTR 208[r12]
	mov	DWORD PTR 208[rbx], eax
	mov	eax, DWORD PTR 76[r12]
	mov	DWORD PTR 76[rbx], eax
	test	ecx, ecx
	jg	.L21
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L26:
	add	rbp, 1
	cmp	DWORD PTR H264_MAX_PICTURE_COUNT[rip], ebp
	jle	.L25
.L21:
	mov	rsi, QWORD PTR 200[rbx]
	lea	r13, 0[0+rbp*8]
	mov	rdi, rbx
	add	rsi, r13
	call	ff_h264_unref_picture@PLT
	mov	rdx, QWORD PTR 200[r12]
	add	rdx, r13
	mov	rax, QWORD PTR [rdx]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L26
	mov	rsi, QWORD PTR 200[rbx]
	mov	rdi, rbx
	add	rsi, r13
	call	ff_h264_ref_picture@PLT
	test	eax, eax
	jns	.L26
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L25:
	.cfi_restore_state
	mov	edi, DWORD PTR 80[r12]
	mov	rdx, r12
	mov	rsi, rbx
	lea	rbp, 192[rbx]
	call	REBASE_PICTURE@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 80[rbx], eax
	call	ff_h264_unref_picture@PLT
	mov	rax, QWORD PTR 192[r12]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L23
	lea	rdx, 192[r12]
	mov	rsi, rbp
	mov	rdi, rbx
	call	ff_h264_ref_picture@PLT
	test	eax, eax
	js	.L1
.L23:
	lea	rsi, 44[r12]
	lea	rdi, 44[rbx]
	mov	edx, 32
	mov	eax, DWORD PTR 188[r12]
	mov	DWORD PTR 188[rbx], eax
	mov	eax, DWORD PTR 184[r12]
	mov	DWORD PTR 184[rbx], eax
	mov	eax, DWORD PTR 76[r12]
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR 180[r12]
	mov	DWORD PTR 180[rbx], eax
	mov	eax, DWORD PTR 176[r12]
	mov	DWORD PTR 176[rbx], eax
	call	memcpy@PLT
	mov	rsi, QWORD PTR 120[r12]
	mov	rdi, QWORD PTR 120[rbx]
	mov	edx, 8
	call	memcpy@PLT
	mov	rsi, QWORD PTR 112[r12]
	mov	rdi, QWORD PTR 112[rbx]
	mov	edx, 8
	call	memcpy@PLT
	mov	rsi, QWORD PTR 104[r12]
	mov	rdi, QWORD PTR 104[rbx]
	mov	edx, 8
	call	memcpy@PLT
	mov	rsi, QWORD PTR 168[r12]
	mov	edx, 8
	mov	rdi, QWORD PTR 168[rbx]
	call	memcpy@PLT
	mov	eax, DWORD PTR 164[r12]
	mov	edx, 8
	mov	rsi, QWORD PTR 152[r12]
	mov	rdi, QWORD PTR 152[rbx]
	mov	DWORD PTR 164[rbx], eax
	mov	eax, DWORD PTR 160[r12]
	mov	DWORD PTR 160[rbx], eax
	call	memcpy@PLT
	mov	rsi, QWORD PTR 120[r12]
	mov	r8, r12
	mov	rcx, rbx
	mov	eax, DWORD PTR 144[r12]
	mov	rdi, QWORD PTR 120[rbx]
	mov	edx, 32
	mov	DWORD PTR 144[rbx], eax
	mov	eax, DWORD PTR 140[r12]
	mov	DWORD PTR 140[rbx], eax
	mov	eax, DWORD PTR 136[r12]
	mov	DWORD PTR 136[rbx], eax
	mov	eax, DWORD PTR 132[r12]
	mov	DWORD PTR 132[rbx], eax
	mov	eax, DWORD PTR 128[r12]
	mov	DWORD PTR 128[rbx], eax
	call	copy_picture_range@PLT
	mov	rsi, QWORD PTR 112[r12]
	mov	r8, r12
	mov	rcx, rbx
	mov	rdi, QWORD PTR 112[rbx]
	mov	edx, 32
	call	copy_picture_range@PLT
	mov	rsi, QWORD PTR 104[r12]
	mov	r8, r12
	mov	rcx, rbx
	mov	eax, DWORD PTR MAX_DELAYED_PIC_COUNT[rip]
	mov	rdi, QWORD PTR 104[rbx]
	lea	edx, 2[rax]
	call	copy_picture_range@PLT
	mov	eax, DWORD PTR 96[r12]
	lea	rdi, 88[rbx]
	mov	DWORD PTR 96[rbx], eax
	call	av_buffer_unref@PLT
	mov	rdi, QWORD PTR 88[r12]
	test	rdi, rdi
	je	.L28
	call	av_buffer_ref@PLT
	mov	QWORD PTR 88[rbx], rax
	test	rax, rax
	je	.L59
.L28:
	mov	edx, DWORD PTR 80[rbx]
	xor	eax, eax
	test	edx, edx
	je	.L1
	mov	eax, DWORD PTR 76[rbx]
	test	eax, eax
	je	.L67
.L30:
	mov	eax, DWORD PTR 52[rbx]
	mov	DWORD PTR 56[rbx], eax
	mov	eax, DWORD PTR 44[rbx]
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR 40[r12]
	mov	DWORD PTR 40[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L41:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 32[r12]
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 24[r12]
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR 260[r12]
	mov	DWORD PTR 260[rbx], eax
	mov	eax, DWORD PTR 256[r12]
	mov	DWORD PTR 256[rbx], eax
	mov	eax, DWORD PTR 252[r12]
	mov	DWORD PTR 252[rbx], eax
	mov	eax, DWORD PTR 248[r12]
	mov	DWORD PTR 248[rbx], eax
	test	esi, esi
	jne	.L19
	mov	r15d, DWORD PTR [r12]
	test	r15d, r15d
	je	.L20
.L19:
	mov	rdi, rbx
	call	h264_slice_header_init@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L68
.L20:
	mov	rsi, QWORD PTR 240[r12]
	mov	rdi, QWORD PTR 240[rbx]
	mov	edx, 8
	call	memcpy@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L61:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
.L67:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	rdi, rbx
	call	ff_h264_execute_ref_pic_marking@PLT
	mov	r15d, eax
	mov	eax, DWORD PTR 68[rbx]
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR 60[rbx]
	mov	DWORD PTR 64[rbx], eax
	jmp	.L30
.L68:
	mov	rdi, QWORD PTR 232[rbx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	eax, r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ff_h264_update_thread_context, .-ff_h264_update_thread_context
	.comm	MAX_DELAYED_PIC_COUNT,4,4
	.comm	H264_MAX_PICTURE_COUNT,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,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_h264_slice.c_ff_h264_update_thread_context.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"h264_slice_header_init() failed\000"
	.text
	.align	2
	.global	ff_h264_update_thread_context
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_h264_update_thread_context, %function
ff_h264_update_thread_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, r1
	beq	.L58
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r0]
	ldr	r6, [r1]
	ldr	r8, [r4]
	sub	sp, sp, #12
	cmp	r8, #0
	moveq	r7, r8
	bne	.L59
.L4:
	mov	r2, #4
	ldr	r1, [r6, #172]
	ldr	r0, [r4, #172]
	bl	memcpy
	mov	r5, #0
	ldr	r0, [r4, #212]
	b	.L5
.L61:
	ldr	r9, [r4, #212]
	bl	av_buffer_ref
	mov	r3, r0
	ldr	r0, [r4, #212]
	str	r3, [r9, r5, lsl #2]
	ldr	r3, [r0, r5, lsl #2]
	cmp	r3, #0
	beq	.L56
.L7:
	add	r5, r5, #1
.L5:
	bl	FF_ARRAY_ELEMS
	cmp	r0, r5
	ble	.L60
	ldr	r0, [r4, #212]
	add	r0, r0, r5, lsl #2
	bl	av_buffer_unref
	ldr	r3, [r6, #212]
	ldr	r0, [r3, r5, lsl #2]
	cmp	r0, #0
	bne	.L61
	ldr	r0, [r4, #212]
	b	.L7
.L60:
	mov	r5, #0
	ldr	r0, [r4, #208]
	b	.L9
.L63:
	ldr	r9, [r4, #208]
	bl	av_buffer_ref
	mov	r3, r0
	ldr	r0, [r4, #208]
	str	r3, [r9, r5, lsl #2]
	ldr	r3, [r0, r5, lsl #2]
	cmp	r3, #0
	beq	.L56
.L11:
	add	r5, r5, #1
.L9:
	bl	FF_ARRAY_ELEMS
	cmp	r0, r5
	ble	.L62
	ldr	r0, [r4, #208]
	add	r0, r0, r5, lsl #2
	bl	av_buffer_unref
	ldr	r3, [r6, #208]
	ldr	r0, [r3, r5, lsl #2]
	cmp	r0, #0
	bne	.L63
	ldr	r0, [r4, #208]
	b	.L11
.L62:
	add	r0, r4, #200
	bl	av_buffer_unref
	add	r0, r4, #192
	bl	av_buffer_unref
	mov	r3, #0
	ldr	r0, [r6, #200]
	str	r3, [r4, #204]
	cmp	r0, r3
	str	r3, [r4, #196]
	beq	.L13
	bl	av_buffer_ref
	cmp	r0, #0
	ldrne	r3, [r0]
	str	r0, [r4, #200]
	strne	r3, [r4, #204]
	bne	.L13
.L56:
	ldr	r3, .L67
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	AVERROR
.L59:
	ldr	r2, [r4, #4]
	ldr	r3, [r6, #4]
	cmp	r2, r3
	beq	.L64
.L37:
	mov	r7, #1
	b	.L4
.L13:
	ldr	r0, [r6, #192]
	cmp	r0, #0
	beq	.L15
	bl	av_buffer_ref
	cmp	r0, #0
	ldrne	r3, [r0]
	str	r0, [r4, #192]
	strne	r3, [r4, #196]
	beq	.L56
.L15:
	cmp	r8, #0
	moveq	r7, #1
	cmp	r7, #0
	beq	.L17
	ldmib	r6, {r0, r1}
	ldr	r3, [r4]
	ldr	r2, [r6, #16]
	cmp	r3, #0
	ldr	r3, [r6, #12]
	str	r0, [r4, #4]
	ldr	r0, [r6, #188]
	str	r1, [r4, #8]
	ldr	r1, [r6, #184]
	str	r2, [r4, #16]
	ldr	r2, [r6, #180]
	str	r3, [r4, #12]
	ldr	r3, [r6, #176]
	str	r0, [r4, #188]
	str	r1, [r4, #184]
	str	r2, [r4, #180]
	str	r3, [r4, #176]
	bne	.L18
	ldr	r7, [r6]
	cmp	r7, #0
	beq	.L19
.L18:
	mov	r0, r4
	bl	h264_slice_header_init
	subs	r7, r0, #0
	blt	.L65
.L19:
	mov	r2, #4
	ldr	r1, [r6, #172]
	ldr	r0, [r4, #172]
	bl	memcpy
.L17:
	ldr	r2, [r6, #168]
	ldr	r3, [r4, #168]
	ldr	r1, [r2, #12]
	ldr	r9, .L67+4
	str	r1, [r3, #12]
	ldr	r1, [r2, #8]
	ldr	r0, [r9]
	str	r1, [r3, #8]
	ldr	r1, [r2, #4]
	ldr	r2, [r2]
	cmp	r0, #0
	str	r1, [r3, #4]
	ldr	r0, [r6, #164]
	ldr	r1, [r6, #160]
	str	r2, [r3]
	ldr	r2, [r6, #156]
	ldr	r3, [r6, #152]
	str	r1, [r4, #160]
	ldr	r1, [r6, #148]
	str	r2, [r4, #156]
	ldr	r2, [r6, #144]
	str	r3, [r4, #152]
	ldr	r3, [r6, #56]
	movgt	r5, #0
	str	r0, [r4, #164]
	str	r1, [r4, #148]
	str	r2, [r4, #144]
	str	r3, [r4, #56]
	bgt	.L20
	b	.L24
.L25:
	ldr	r3, [r9]
	cmp	r3, r5
	ble	.L24
.L20:
	ldr	r1, [r4, #140]
	mov	r0, r4
	add	r1, r1, r5, lsl #2
	bl	ff_h264_unref_picture
	ldr	r2, [r6, #140]
	lsl	r3, r5, #2
	ldr	r1, [r2, r5, lsl #2]
	add	r5, r5, #1
	ldr	r1, [r1]
	add	r2, r2, r3
	ldr	r1, [r1]
	cmp	r1, #0
	beq	.L25
	ldr	r1, [r4, #140]
	mov	r0, r4
	add	r1, r1, r3
	bl	ff_h264_ref_picture
	cmp	r0, #0
	bge	.L25
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L24:
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r6, #60]
	bl	REBASE_PICTURE
	add	r5, r4, #136
	str	r0, [r4, #60]
	mov	r1, r5
	mov	r0, r4
	bl	ff_h264_unref_picture
	ldr	r3, [r6, #136]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	mov	r1, r5
	mov	r0, r4
	add	r2, r6, #136
	bl	ff_h264_ref_picture
	cmp	r0, #0
	blt	.L1
.L22:
	ldr	ip, [r6, #132]
	ldr	r3, [r6, #120]
	ldr	r0, [r6, #128]
	ldr	r1, [r6, #56]
	ldr	r2, [r6, #124]
	str	ip, [r4, #132]
	str	r3, [r4, #120]
	str	r0, [r4, #128]
	str	r1, [r4, #56]
	str	r2, [r4, #124]
	add	r1, r6, #24
	mov	r2, #32
	add	r0, r4, #24
	bl	memcpy
	mov	r2, #4
	ldr	r1, [r6, #80]
	ldr	r0, [r4, #80]
	bl	memcpy
	mov	r2, #4
	ldr	r1, [r6, #76]
	ldr	r0, [r4, #76]
	bl	memcpy
	mov	r2, #4
	ldr	r1, [r6, #72]
	ldr	r0, [r4, #72]
	bl	memcpy
	mov	r2, #4
	ldr	r1, [r6, #116]
	ldr	r0, [r4, #116]
	bl	memcpy
	ldr	r2, [r6, #112]
	ldr	r3, [r6, #108]
	ldr	r1, [r6, #104]
	str	r2, [r4, #112]
	str	r3, [r4, #108]
	mov	r2, #4
	ldr	r0, [r4, #104]
	bl	memcpy
	ldr	ip, [r6, #92]
	ldr	r1, [r6, #100]
	ldr	r0, [r6, #96]
	ldr	r2, [r6, #88]
	ldr	r3, [r6, #84]
	str	r1, [r4, #100]
	ldr	r1, [r6, #80]
	str	ip, [r4, #92]
	str	r0, [r4, #96]
	str	r2, [r4, #88]
	str	r3, [r4, #84]
	mov	r2, #32
	mov	r3, r4
	ldr	r0, [r4, #80]
	str	r6, [sp]
	bl	copy_picture_range
	ldr	r1, [r6, #76]
	mov	r3, r4
	mov	r2, #32
	ldr	r0, [r4, #76]
	str	r6, [sp]
	bl	copy_picture_range
	ldr	r3, .L67+8
	ldr	r1, [r6, #72]
	ldr	r2, [r3]
	ldr	r0, [r4, #72]
	mov	r3, r4
	add	r2, r2, #2
	str	r6, [sp]
	bl	copy_picture_range
	ldr	r3, [r6, #68]
	add	r0, r4, #64
	str	r3, [r4, #68]
	bl	av_buffer_unref
	ldr	r0, [r6, #64]
	cmp	r0, #0
	beq	.L27
	bl	av_buffer_ref
	cmp	r0, #0
	str	r0, [r4, #64]
	beq	.L56
.L27:
	ldr	r3, [r4, #60]
	cmp	r3, #0
	moveq	r0, #0
	beq	.L1
	ldr	r3, [r4, #56]
	cmp	r3, #0
	beq	.L66
.L29:
	mov	r0, r7
	ldr	r1, [r6, #20]
	ldr	r2, [r4, #32]
	ldr	r3, [r4, #24]
	str	r1, [r4, #20]
	str	r2, [r4, #36]
	str	r3, [r4, #28]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L64:
	ldr	r2, [r4, #8]
	ldr	r3, [r6, #8]
	cmp	r2, r3
	bne	.L37
	ldr	r2, [r4, #12]
	ldr	r3, [r6, #12]
	cmp	r2, r3
	bne	.L37
	ldr	r2, [r4, #16]
	ldr	r3, [r6, #16]
	cmp	r2, r3
	bne	.L37
	ldr	r3, [r4, #196]
	cmp	r3, #0
	beq	.L37
	ldr	r2, [r6, #196]
	ldr	r0, [r3]
	ldr	r1, [r2]
	cmp	r0, r1
	bne	.L37
	ldr	r0, [r3, #4]
	ldr	r1, [r2, #4]
	cmp	r0, r1
	bne	.L37
	ldr	r7, [r3, #8]
	ldr	r3, [r2, #8]
	subs	r7, r7, r3
	movne	r7, #1
	b	.L4
.L58:
	mov	r0, #0
	bx	lr
.L66:
	mov	r0, r4
	bl	ff_h264_execute_ref_pic_marking
	ldr	r2, [r4, #48]
	ldr	r3, [r4, #40]
	mov	r7, r0
	str	r2, [r4, #52]
	str	r3, [r4, #44]
	b	.L29
.L65:
	ldr	r3, .L67+12
	ldr	r0, [r4, #168]
	ldr	r1, [r3]
	ldr	r2, .L67+16
	bl	av_log
	mov	r0, r7
	b	.L1
.L68:
	.align	2
.L67:
	.word	ENOMEM
	.word	H264_MAX_PICTURE_COUNT
	.word	MAX_DELAYED_PIC_COUNT
	.word	AV_LOG_ERROR
	.word	.LC0
	.size	ff_h264_update_thread_context, .-ff_h264_update_thread_context
	.comm	MAX_DELAYED_PIC_COUNT,4,4
	.comm	H264_MAX_PICTURE_COUNT,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
