	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prores_metadata
_prores_metadata:                       ## @prores_metadata
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r13
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_av_packet_make_writable
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	cmpl	$28, 8(%r14)
	jge	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movq	(%r14), %r12
	leaq	4(%r12), %rdi
	callq	_AV_RL32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_AV_RL32
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.9:
	leaq	8(%r12), %rdi
	callq	_AV_RB16
	cmpl	$28, %eax
	jge	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_17
LBB0_6:
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.12:
	movb	%al, 22(%r12)
LBB0_13:
	movl	4(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.14:
	movb	%al, 23(%r12)
LBB0_15:
	movl	8(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.16:
	movb	%al, 24(%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enough data in prores frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"icpf"

L_.str.2:                               ## @.str.2
	.asciz	"invalid frame header\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid frame header size\n"

	.no_dead_strip	_prores_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prores_metadata
_prores_metadata:                       ; @prores_metadata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_av_packet_make_writable
	mov	x19, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #28
	b.ge	LBB0_5
; %bb.3:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	x19, x0
	b	LBB0_11
LBB0_5:
	ldr	x24, [x20]
	add	x0, x24, #4
	bl	_AV_RL32
	mov	x22, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AV_RL32
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.6:
	add	x0, x24, #8
	bl	_AV_RB16
	cmp	w0, #28
	b.ge	LBB0_12
; %bb.7:
Lloh4:
	adrp	x2, l_.str.3@PAGE
Lloh5:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	tbz	w19, #31, LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_av_packet_unref
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x23]
	cmn	w8, #1
	b.eq	LBB0_14
; %bb.13:
	strb	w8, [x24, #22]
LBB0_14:
	ldr	w8, [x23, #4]
	cmn	w8, #1
	b.eq	LBB0_16
; %bb.15:
	strb	w8, [x24, #23]
LBB0_16:
	ldr	w8, [x23, #8]
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.17:
	strb	w8, [x24, #24]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enough data in prores frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"icpf"

l_.str.2:                               ; @.str.2
	.asciz	"invalid frame header\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid frame header size\n"

	.no_dead_strip	_prores_metadata
.subsections_via_symbols
