	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id3_read_id3v1_tag
_id3_read_id3v1_tag:                    ## @id3_read_id3v1_tag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	leaq	L_.str(%rip), %rdx
	movl	$3, %esi
	callq	_SKIP_STRING
	movq	_VC_CONTAINER_METADATA_KEY_TITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$30, %edx
	callq	_id3_read_metadata_entry
	movq	_VC_CONTAINER_METADATA_KEY_ARTIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$30, %edx
	callq	_id3_read_metadata_entry
	movq	_VC_CONTAINER_METADATA_KEY_ALBUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$30, %edx
	callq	_id3_read_metadata_entry
	movq	_VC_CONTAINER_METADATA_KEY_YEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_id3_read_metadata_entry
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$28, %esi
	callq	_SKIP_STRING
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U8
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_SKIP_BYTES
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U8
	leaq	L_.str.4(%rip), %rdx
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	$3, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	_VC_CONTAINER_METADATA_KEY_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_id3_add_metadata_entry
LBB0_3:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U8
	movq	%rax, %r14
	movq	_id3_genres@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_countof
	cmpl	%r14d, %eax
	jle	LBB0_5
## %bb.4:
	movq	_VC_CONTAINER_METADATA_KEY_GENRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rbx, %rdi
	callq	_id3_add_metadata_entry
LBB0_5:
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID3v1 identifier"

	.comm	_VC_CONTAINER_METADATA_KEY_TITLE,4,2 ## @VC_CONTAINER_METADATA_KEY_TITLE
	.comm	_VC_CONTAINER_METADATA_KEY_ARTIST,4,2 ## @VC_CONTAINER_METADATA_KEY_ARTIST
	.comm	_VC_CONTAINER_METADATA_KEY_ALBUM,4,2 ## @VC_CONTAINER_METADATA_KEY_ALBUM
	.comm	_VC_CONTAINER_METADATA_KEY_YEAR,4,2 ## @VC_CONTAINER_METADATA_KEY_YEAR
L_.str.1:                               ## @.str.1
	.asciz	"ID3v1 comment"

L_.str.2:                               ## @.str.2
	.asciz	"ID3v1 zero-byte"

L_.str.3:                               ## @.str.3
	.asciz	"ID3v1 track"

L_.str.4:                               ## @.str.4
	.asciz	"%02d"

	.comm	_VC_CONTAINER_METADATA_KEY_TRACK,4,2 ## @VC_CONTAINER_METADATA_KEY_TRACK
L_.str.5:                               ## @.str.5
	.asciz	"ID3v1 genre"

	.comm	_id3_genres,8,3                 ## @id3_genres
	.comm	_VC_CONTAINER_METADATA_KEY_GENRE,4,2 ## @VC_CONTAINER_METADATA_KEY_GENRE
	.no_dead_strip	_id3_read_id3v1_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id3_read_id3v1_tag
_id3_read_id3v1_tag:                    ; @id3_read_id3v1_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #3
	bl	_SKIP_STRING
Lloh2:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_TITLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_TITLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #30
	bl	_id3_read_metadata_entry
Lloh5:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_ARTIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_ARTIST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #30
	bl	_id3_read_metadata_entry
Lloh8:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_ALBUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_ALBUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #30
	bl	_id3_read_metadata_entry
Lloh11:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_YEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_YEAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_id3_read_metadata_entry
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #28
	bl	_SKIP_STRING
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_READ_U8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_SKIP_BYTES
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_READ_U8
	mov	x3, x0
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #12
	mov	w1, #3
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
Lloh22:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_TRACK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_TRACK@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_id3_add_metadata_entry
LBB0_3:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_READ_U8
	mov	x20, x0
Lloh27:
	adrp	x21, _id3_genres@GOTPAGE
Lloh28:
	ldr	x21, [x21, _id3_genres@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_countof
	cmp	w0, w20
	b.le	LBB0_5
; %bb.4:
Lloh29:
	adrp	x8, _VC_CONTAINER_METADATA_KEY_GENRE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VC_CONTAINER_METADATA_KEY_GENRE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	x8, [x21]
	sbfiz	x9, x20, #3, #32
	ldr	x2, [x8, x9]
	mov	x0, x19
	bl	_id3_add_metadata_entry
LBB0_5:
	mov	x0, x19
	bl	_STREAM_STATUS
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID3v1 identifier"

	.comm	_VC_CONTAINER_METADATA_KEY_TITLE,4,2 ; @VC_CONTAINER_METADATA_KEY_TITLE
	.comm	_VC_CONTAINER_METADATA_KEY_ARTIST,4,2 ; @VC_CONTAINER_METADATA_KEY_ARTIST
	.comm	_VC_CONTAINER_METADATA_KEY_ALBUM,4,2 ; @VC_CONTAINER_METADATA_KEY_ALBUM
	.comm	_VC_CONTAINER_METADATA_KEY_YEAR,4,2 ; @VC_CONTAINER_METADATA_KEY_YEAR
l_.str.1:                               ; @.str.1
	.asciz	"ID3v1 comment"

l_.str.2:                               ; @.str.2
	.asciz	"ID3v1 zero-byte"

l_.str.3:                               ; @.str.3
	.asciz	"ID3v1 track"

l_.str.4:                               ; @.str.4
	.asciz	"%02d"

	.comm	_VC_CONTAINER_METADATA_KEY_TRACK,4,2 ; @VC_CONTAINER_METADATA_KEY_TRACK
l_.str.5:                               ; @.str.5
	.asciz	"ID3v1 genre"

	.comm	_id3_genres,8,3                 ; @id3_genres
	.comm	_VC_CONTAINER_METADATA_KEY_GENRE,4,2 ; @VC_CONTAINER_METADATA_KEY_GENRE
	.no_dead_strip	_id3_read_id3v1_tag
.subsections_via_symbols
