	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ttag
_read_ttag:                             ## @read_ttag
	.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
	testl	%edx, %edx
	jle	LBB0_20
## %bb.1:
	movq	%r8, %r12
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_AV_DICT_DONT_OVERWRITE@GOTPCREL(%rip), %rax
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_avio_r8
	movl	%eax, %r14d
	decl	%r15d
	movl	%r15d, -60(%rbp)
	leaq	-48(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_decode_str
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
LBB0_5:
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_7:
	movl	-56(%rbp), %eax
	movq	_ID3v1_GENRE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_8
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	-48(%rbp), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_16
## %bb.15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_av_log
	jmp	LBB0_20
LBB0_11:
	movq	-48(%rbp), %r12
	movq	%r12, -80(%rbp)
	leaq	-48(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_decode_str
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	movq	_AV_DICT_DONT_STRDUP_KEY@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	_ff_id3v1_genre_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-56(%rbp), %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_av_strdup
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testq	%rdx, %rdx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_av_log
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_20
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_17:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
LBB0_19:
	movq	%r12, %rsi
	callq	_av_dict_set
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_DICT_DONT_OVERWRITE,4,2     ## @AV_DICT_DONT_OVERWRITE
	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading frame %s, skipped\n"

L_.str.1:                               ## @.str.1
	.asciz	"TCON"

L_.str.2:                               ## @.str.2
	.asciz	"TCO"

L_.str.3:                               ## @.str.3
	.asciz	"(%d)"

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

	.comm	_ID3v1_GENRE_MAX,4,2            ## @ID3v1_GENRE_MAX
	.comm	_ff_id3v1_genre_str,8,3         ## @ff_id3v1_genre_str
L_.str.5:                               ## @.str.5
	.asciz	"TXXX"

L_.str.6:                               ## @.str.6
	.asciz	"TXX"

	.comm	_AV_DICT_DONT_STRDUP_KEY,4,2    ## @AV_DICT_DONT_STRDUP_KEY
	.no_dead_strip	_read_ttag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ttag
_read_ttag:                             ; @read_ttag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	subs	w26, w2, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AV_DICT_DONT_OVERWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_DICT_DONT_OVERWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x1
	bl	_avio_r8
	mov	x24, x0
	str	w26, [sp, #28]
	add	x3, sp, #8
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_decode_str
	tbnz	x0, #63, LBB0_11
; %bb.2:
	orr	w21, w25, w21
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_7
LBB0_4:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #4
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #4
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
LBB0_6:
	ldr	w8, [sp, #4]
Lloh14:
	adrp	x9, _ID3v1_GENRE_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ID3v1_GENRE_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ls	LBB0_15
LBB0_7:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.8:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x2, [sp, #8]
	ldrb	w8, [x2]
	cbnz	w8, LBB0_16
; %bb.10:
	add	x0, sp, #8
	bl	_av_freep
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_av_log
	b	LBB0_18
LBB0_12:
	ldr	x19, [sp, #8]
	str	x19, [sp, #16]
	add	x3, sp, #8
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_decode_str
	tbnz	x0, #63, LBB0_17
; %bb.13:
Lloh26:
	adrp	x8, _AV_DICT_DONT_STRDUP_KEY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_KEY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_14:
	ldr	x2, [sp, #8]
	cbnz	x2, LBB0_16
	b	LBB0_18
LBB0_15:
	add	x0, sp, #8
	bl	_av_freep
Lloh29:
	adrp	x8, _ff_id3v1_genre_str@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ff_id3v1_genre_str@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w9, [sp, #4]
	ldr	w0, [x8, x9, lsl #2]
	bl	_av_strdup
	mov	x2, x0
	str	x0, [sp, #8]
	cbz	x2, LBB0_18
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_av_dict_set
	b	LBB0_18
LBB0_17:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str@PAGE
Lloh36:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_av_log
	add	x0, sp, #16
	bl	_av_freep
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_DICT_DONT_OVERWRITE,4,2     ; @AV_DICT_DONT_OVERWRITE
	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading frame %s, skipped\n"

l_.str.1:                               ; @.str.1
	.asciz	"TCON"

l_.str.2:                               ; @.str.2
	.asciz	"TCO"

l_.str.3:                               ; @.str.3
	.asciz	"(%d)"

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

	.comm	_ID3v1_GENRE_MAX,4,2            ; @ID3v1_GENRE_MAX
	.comm	_ff_id3v1_genre_str,8,3         ; @ff_id3v1_genre_str
l_.str.5:                               ; @.str.5
	.asciz	"TXXX"

l_.str.6:                               ; @.str.6
	.asciz	"TXX"

	.comm	_AV_DICT_DONT_STRDUP_KEY,4,2    ; @AV_DICT_DONT_STRDUP_KEY
	.no_dead_strip	_read_ttag
.subsections_via_symbols
