	.file	"extr_prores_metadata_bsf.c_prores_metadata.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"not enough data in prores frame\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"icpf"
.LC2:
	.string	"invalid frame header\n"
.LC3:
	.string	"invalid frame header size\n"
	.text
	.p2align 4
	.type	prores_metadata, @function
prores_metadata:
.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
	mov	r13, rdi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	call	ff_bsf_get_packet_ref@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	av_packet_make_writable@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	cmp	DWORD PTR 8[rbp], 27
	jle	.L21
	mov	r15, QWORD PTR 0[rbp]
	lea	rdi, 4[r15]
	call	AV_RL32@PLT
	lea	rdi, .LC1[rip]
	mov	r14, rax
	call	AV_RL32@PLT
	cmp	r14, rax
	jne	.L22
	lea	rdi, 8[r15]
	call	AV_RB16@PLT
	cmp	eax, 27
	jle	.L23
	mov	eax, DWORD PTR [rbx]
	cmp	eax, -1
	je	.L8
	mov	BYTE PTR 22[r15], al
.L8:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, -1
	je	.L9
	mov	BYTE PTR 23[r15], al
.L9:
	mov	eax, DWORD PTR 8[rbx]
	cmp	eax, -1
	je	.L1
	mov	BYTE PTR 24[r15], al
.L1:
	add	rsp, 8
	.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
.L22:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, r13
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
.L5:
	test	r12d, r12d
	jns	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	av_packet_unref@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, r13
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	prores_metadata, .-prores_metadata
	.comm	AV_LOG_ERROR,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
	.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_prores_metadata_bsf.c_prores_metadata.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not enough data in prores frame\012\000"
	.align	2
.LC1:
	.ascii	"icpf\000"
	.align	2
.LC2:
	.ascii	"invalid frame header\012\000"
	.align	2
.LC3:
	.ascii	"invalid frame header size\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prores_metadata, %function
prores_metadata:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r5, r1
	ldr	r7, [r0]
	bl	ff_bsf_get_packet_ref
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r5
	bl	av_packet_make_writable
	subs	r4, r0, #0
	blt	.L3
	ldr	r3, [r5, #4]
	cmp	r3, #27
	ble	.L21
	ldr	r9, [r5]
	add	r0, r9, #4
	bl	AV_RL32
	mov	r8, r0
	ldr	r0, .L23
	bl	AV_RL32
	cmp	r8, r0
	beq	.L6
	ldr	r3, .L23+4
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L23+8
	bl	av_log
	ldr	r3, .L23+12
	ldr	r4, [r3]
.L5:
	cmp	r4, #0
	blt	.L3
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r5
	bl	av_packet_unref
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	add	r0, r9, #8
	bl	AV_RB16
	cmp	r0, #27
	ble	.L22
	ldr	r3, [r7]
	mov	r0, r4
	cmn	r3, #1
	strbne	r3, [r9, #22]
	ldr	r3, [r7, #4]
	cmn	r3, #1
	strbne	r3, [r9, #23]
	ldr	r3, [r7, #8]
	cmn	r3, #1
	strbne	r3, [r9, #24]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, .L23+4
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L23+16
	bl	av_log
	ldr	r3, .L23+12
	ldr	r4, [r3]
	b	.L5
.L22:
	ldr	r3, .L23+4
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L23+20
	bl	av_log
	ldr	r3, .L23+12
	ldr	r4, [r3]
	b	.L5
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	AV_LOG_ERROR
	.word	.LC2
	.word	AVERROR_INVALIDDATA
	.word	.LC0
	.word	.LC3
	.size	prores_metadata, .-prores_metadata
	.comm	AV_LOG_ERROR,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
