	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_stream_extradata
_update_stream_extradata:               ## @update_stream_extradata
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	je	LBB0_1
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_AV_PKT_DATA_NEW_EXTRADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rax
	movq	%rdx, %rdi
	movq	%rax, %rdx
	callq	_av_packet_get_side_data
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ff_alloc_extradata
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movl	-44(%rbp), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$4, %r8d
	callq	_set_codec_str
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ## @AV_PKT_DATA_NEW_EXTRADATA
	.no_dead_strip	_update_stream_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_stream_extradata
_update_stream_extradata:               ; @update_stream_extradata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x9, [x1, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x22, [x9]
	ldr	x9, [x22, #8]
	cbnz	x9, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x8, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x8
	bl	_av_packet_get_side_data
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_4
; %bb.2:
	mov	x23, x0
	mov	x0, x22
	bl	_ff_alloc_extradata
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	ldr	w2, [sp, #12]
	mov	x1, x23
	bl	_memcpy
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	w4, #4
	bl	_set_codec_str
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ; @AV_PKT_DATA_NEW_EXTRADATA
	.no_dead_strip	_update_stream_extradata
.subsections_via_symbols
