	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_write_metadata        ## -- Begin function ff_id3v2_write_metadata
	.p2align	4, 0x90
_ff_id3v2_write_metadata:               ## @ff_id3v2_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpl	$3, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	_ID3v2_ENCODING_UTF16BOM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ID3v2_ENCODING_UTF8@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_ff_standardize_creation_time
	movl	8(%r12), %edi
	leaq	4(%r12), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_write_metadata
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_write_ctoc
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_write_chapter
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_7
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID3v2_ENCODING_UTF16BOM,4,2    ## @ID3v2_ENCODING_UTF16BOM
	.comm	_ID3v2_ENCODING_UTF8,4,2        ## @ID3v2_ENCODING_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_write_metadata        ; -- Begin function ff_id3v2_write_metadata
	.p2align	2
_ff_id3v2_write_metadata:               ; @ff_id3v2_write_metadata
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ID3v2_ENCODING_UTF16BOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID3v2_ENCODING_UTF16BOM@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	adrp	x10, _ID3v2_ENCODING_UTF8@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ID3v2_ENCODING_UTF8@GOTPAGEOFF]
	cmp	w9, #3
	csel	x8, x8, x10, eq
	ldr	w21, [x8]
	bl	_ff_standardize_creation_time
	ldr	w0, [x20, #8]
	add	x1, x20, #4
	mov	x2, x19
	mov	x3, x21
	bl	_write_metadata
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_write_ctoc
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_write_chapter
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ID3v2_ENCODING_UTF16BOM,4,2    ; @ID3v2_ENCODING_UTF16BOM
	.comm	_ID3v2_ENCODING_UTF8,4,2        ; @ID3v2_ENCODING_UTF8
.subsections_via_symbols
