	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_metadata
_write_metadata:                        ## @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	%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
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ff_id3v2_34_metadata_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_metadata_conv
	movl	(%r13), %eax
	cmpl	$4, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_id3v2_3_metadata_split_date
	jmp	LBB0_4
LBB0_3:
	movq	_ff_id3v2_4_metadata_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_metadata_conv
LBB0_4:
	movq	(%r15), %rdi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	callq	_id3v2_check_write_tag
	testl	%eax, %eax
	jle	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, 4(%r13)
	movq	(%r15), %rdi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ff_id3v2_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	callq	_id3v2_check_write_tag
	testl	%eax, %eax
	jg	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$3, (%r13)
	movq	_ff_id3v2_4_tags@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ff_id3v2_3_tags@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_id3v2_put_priv
	testl	%eax, %eax
	jg	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	js	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$84, %edi
	movl	$88, %esi
	movl	$88, %edx
	movl	$88, %ecx
	callq	_MKBETAG
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	%r14d, %r9d
	callq	_id3v2_put_ttag
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_id3v2_34_metadata_conv,4,2  ## @ff_id3v2_34_metadata_conv
	.comm	_ff_id3v2_4_metadata_conv,4,2   ## @ff_id3v2_4_metadata_conv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
	.comm	_ff_id3v2_tags,4,2              ## @ff_id3v2_tags
	.comm	_ff_id3v2_3_tags,4,2            ## @ff_id3v2_3_tags
	.comm	_ff_id3v2_4_tags,4,2            ## @ff_id3v2_4_tags
	.no_dead_strip	_write_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_metadata
_write_metadata:                        ; @write_metadata
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ff_id3v2_34_metadata_conv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_id3v2_34_metadata_conv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_ff_metadata_conv
	ldr	w8, [x20]
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_id3v2_3_metadata_split_date
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ff_id3v2_4_metadata_conv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_id3v2_4_metadata_conv@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_ff_metadata_conv
LBB0_4:
	ldr	x0, [x21]
Lloh6:
	adrp	x27, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh7:
	ldr	x27, [x27, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x27]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_12
; %bb.5:
	mov	x23, x0
Lloh10:
	adrp	x28, _ff_id3v2_tags@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ff_id3v2_tags@GOTPAGEOFF]
Lloh12:
	adrp	x24, l_.str@PAGE
Lloh13:
	add	x24, x24, l_.str@PAGEOFF
Lloh14:
	adrp	x25, _ff_id3v2_3_tags@GOTPAGE
Lloh15:
	ldr	x25, [x25, _ff_id3v2_3_tags@GOTPAGEOFF]
Lloh16:
	adrp	x26, _ff_id3v2_4_tags@GOTPAGE
Lloh17:
	ldr	x26, [x26, _ff_id3v2_4_tags@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #4]
	add	w8, w8, w0
	str	w8, [x20, #4]
	ldr	x0, [x21]
	ldr	w3, [x27]
	mov	x1, x24
	mov	x2, x23
	bl	_av_dict_get
	mov	x23, x0
	cbz	x0, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x28]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x4, x19
	bl	_id3v2_check_write_tag
	cmp	w0, #1
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cmp	w8, #3
	csel	x8, x25, x26, eq
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x4, x19
	bl	_id3v2_check_write_tag
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w3, w2, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_id3v2_put_priv
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w0, #31, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w26, w25, [x23]
	mov	w0, #84
	mov	w1, #88
	mov	w2, #88
	mov	w3, #88
	bl	_MKBETAG
	mov	x4, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x25
Lloh18:
	adrp	x25, _ff_id3v2_3_tags@GOTPAGE
Lloh19:
	ldr	x25, [x25, _ff_id3v2_3_tags@GOTPAGEOFF]
	mov	x3, x26
Lloh20:
	adrp	x26, _ff_id3v2_4_tags@GOTPAGE
Lloh21:
	ldr	x26, [x26, _ff_id3v2_4_tags@GOTPAGEOFF]
	mov	x5, x19
	bl	_id3v2_put_ttag
	tbz	w0, #31, LBB0_6
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_id3v2_34_metadata_conv,4,2  ; @ff_id3v2_34_metadata_conv
	.comm	_ff_id3v2_4_metadata_conv,4,2   ; @ff_id3v2_4_metadata_conv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
	.comm	_ff_id3v2_tags,4,2              ; @ff_id3v2_tags
	.comm	_ff_id3v2_3_tags,4,2            ; @ff_id3v2_3_tags
	.comm	_ff_id3v2_4_tags,4,2            ; @ff_id3v2_4_tags
	.no_dead_strip	_write_metadata
.subsections_via_symbols
