	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vorbis_update_metadata
_vorbis_update_metadata:                ## @vorbis_update_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	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %r13
	xorl	%r15d, %r15d
	cmpl	$9, (%r12,%r13,8)
	jl	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	leaq	(%r12,%r13,8), %r15
	movq	(%rdi), %rcx
	movq	(%rcx,%rax,8), %r14
	movq	%r14, %rdi
	callq	_av_dict_free
	movq	24(%r12,%r13,8), %rax
	movq	32(%r12,%r13,8), %rcx
	leaq	(%rcx,%rax), %rdx
	addq	$7, %rdx
	movl	(%r15), %ecx
	addl	$-8, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ff_vorbis_stream_comment
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	leaq	(%r12,%r13,8), %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_av_freep
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	leaq	(%r12,%r13,8), %rsi
	addq	$8, %rsi
	callq	_av_packet_pack_dictionary
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	$1, %edi
	callq	_av_malloc
	movl	%eax, (%rbx)
	movq	$0, 8(%r12,%r13,8)
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vorbis_update_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vorbis_update_metadata
_vorbis_update_metadata:                ; @vorbis_update_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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	mov	w8, #40
	smaddl	x21, w1, w8, x22
	ldr	w8, [x21]
	cmp	w8, #9
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	sxtw	x23, w1
	ldr	x8, [x0]
	ldr	x20, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_av_dict_free
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldp	x8, x9, [x8, #24]
	add	x8, x9, x8
	add	x2, x8, #7
	ldr	w8, [x21]
	sub	w3, w8, #8
	mov	x0, x19
	mov	x1, x20
	bl	_ff_vorbis_stream_comment
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w8, #40
	madd	x8, x23, x8, x22
	add	x21, x8, #16
	mov	x0, x21
	bl	_av_freep
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #40
	madd	x8, x23, x8, x22
	add	x1, x8, #8
	bl	_av_packet_pack_dictionary
	str	w0, [x21]
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_av_malloc
	str	w0, [x21]
	mov	w8, #40
	madd	x8, x23, x8, x22
	str	xzr, [x8, #8]
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vorbis_update_metadata
.subsections_via_symbols
