	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_id3
_handle_id3:                            ## @handle_id3
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	8(%rdi), %ebx
	movl	8(%rsi), %edi
	callq	_ff_id3v2_tag_len
	subq	(%r15), %rax
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_av_append_packet
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-60(%rbp), %r12
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ffio_init_context
	movq	_ID3v2_DEFAULT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	leaq	-56(%rbp), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_ff_id3v2_read_dict
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_id3v2_parse_priv_dict
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	leaq	4(%r14), %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	%r15, %rdi
	callq	_av_packet_unref
	leaq	-56(%rbp), %rdi
	callq	_ff_id3v2_free_extra_meta
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ## @ID3v2_DEFAULT_MAGIC
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ## @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.no_dead_strip	_handle_id3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_id3
_handle_id3:                            ; @handle_id3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
	ldr	w21, [x0, #8]
	ldr	w0, [x1, #8]
	bl	_ff_id3v2_tag_len
	ldr	x8, [x19]
	sub	x2, x0, x8
	mov	x0, x21
	mov	x1, x19
	bl	_av_append_packet
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	add	x0, sp, #20
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ffio_init_context
Lloh0:
	adrp	x8, _ID3v2_DEFAULT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID3v2_DEFAULT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #20
	add	x1, sp, #24
	add	x3, sp, #8
	bl	_ff_id3v2_read_dict
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_ff_id3v2_parse_priv_dict
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_5
; %bb.3:
	add	x0, x20, #4
	mov	w2, #0
	bl	_av_dict_copy
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	mov	x0, x19
	bl	_av_packet_unref
	add	x0, sp, #8
	bl	_ff_id3v2_free_extra_meta
	add	x0, sp, #24
	bl	_av_dict_free
	b	LBB0_7
LBB0_6:
	mov	x21, x0
	mov	x0, x19
	bl	_av_packet_unref
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ; @ID3v2_DEFAULT_MAGIC
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ; @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.no_dead_strip	_handle_id3
.subsections_via_symbols
