	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_metadata_init
_h264_metadata_init:                    ## @h264_metadata_init
	.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	%rdi, %r12
	movq	16(%rdi), %r13
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_ff_cbs_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	8(%r13), %r14
	movq	8(%r12), %rdx
	xorl	%ebx, %ebx
	cmpq	$0, (%rdx)
	je	LBB0_15
## %bb.3:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_ff_cbs_read_extradata
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	movq	_H264_NAL_SPS@GOTPCREL(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	-8(%rcx,%rbx), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx,%rbx), %esi
	movq	%r12, %rdi
	callq	_h264_metadata_update_sps
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_12:
	movl	(%r13), %edi
	movl	(%r12), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_ff_cbs_write_extradata
	testl	%eax, %eax
	movl	$0, %ebx
	jns	LBB0_15
## %bb.13:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rdx
LBB0_14:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_av_log
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_ff_cbs_fragment_reset
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H264,4,2           ## @AV_CODEC_ID_H264
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read extradata.\n"

	.comm	_H264_NAL_SPS,8,3               ## @H264_NAL_SPS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write extradata.\n"

	.no_dead_strip	_h264_metadata_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_metadata_init
_h264_metadata_init:                    ; @h264_metadata_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ff_cbs_init
	tbnz	w0, #31, LBB0_9
; %bb.1:
	add	x20, x19, #8
	ldr	x2, [x21, #8]
	ldr	x8, [x2]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ff_cbs_read_extradata
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh3:
	adrp	x25, _H264_NAL_SPS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _H264_NAL_SPS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x10, [x9, x23]
	ldr	x11, [x25]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, x23
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_h264_metadata_update_sps
	tbnz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	b	LBB0_5
LBB0_9:
	mov	x22, x0
	b	LBB0_17
LBB0_10:
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_ff_cbs_write_extradata
	tbnz	w0, #31, LBB0_13
LBB0_11:
	mov	w22, #0
	b	LBB0_16
LBB0_12:
	mov	x22, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x22, x0
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_av_log
	b	LBB0_16
LBB0_15:
	mov	x22, x0
LBB0_16:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,4,2           ; @AV_CODEC_ID_H264
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read extradata.\n"

	.comm	_H264_NAL_SPS,8,3               ; @H264_NAL_SPS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write extradata.\n"

	.no_dead_strip	_h264_metadata_init
.subsections_via_symbols
