	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id3_read_metadata_entry_ex
_id3_read_metadata_entry_ex:            ## @id3_read_metadata_entry_ex
	.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	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rdi, %r14
	cmpq	$1, %rcx
	sbbl	$0, %edx
	addl	$2, %edx
	callq	_id3_metadata_append
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r12), %r13d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	addl	$-2, %r13d
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_READ_STRING_UTF16
	cmpl	%r15d, %r13d
	jae	LBB0_6
LBB0_5:
	subl	%r13d, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_LOG_DEBUG
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_SKIP_BYTES
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	decl	%r13d
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_READ_STRING
	cmpl	%r15d, %r13d
	jb	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID3v2 data"

L_.str.1:                               ## @.str.1
	.asciz	"metadata value truncated (%d characters lost)"

	.no_dead_strip	_id3_read_metadata_entry_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id3_read_metadata_entry_ex
_id3_read_metadata_entry_ex:            ; @id3_read_metadata_entry_ex
	.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	x22, x3
	mov	x21, x2
	mov	x19, x0
	cmp	x3, #0
	mov	w8, #1
	cinc	w8, w8, ne
	add	w2, w8, w2
	bl	_id3_metadata_append
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cbz	x22, LBB0_5
; %bb.2:
	sub	w22, w8, #2
	ldr	w1, [x20, #4]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_READ_STRING_UTF16
	cmp	w22, w21
	b.hs	LBB0_4
LBB0_3:
	sub	w21, w21, w22
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_LOG_DEBUG
	mov	x0, x19
	mov	x1, x21
	bl	_SKIP_BYTES
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	sub	w22, w8, #1
	ldr	w1, [x20, #4]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_READ_STRING
	cmp	w22, w21
	b.lo	LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID3v2 data"

l_.str.1:                               ; @.str.1
	.asciz	"metadata value truncated (%d characters lost)"

	.no_dead_strip	_id3_read_metadata_entry_ex
.subsections_via_symbols
