	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_apic
_read_apic:                             ## @read_apic
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -176(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, -116(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_ff_id3v2_mime_tags@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	$0, -144(%rbp)
	movq	%rsi, %rdi
	callq	_avio_tell
	movq	%rax, %rbx
	cmpl	$5, %r15d
	jl	LBB0_19
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.2:
	cmpl	$7, %r15d
	jb	LBB0_19
LBB0_3:
	movl	$24, %edi
	callq	_av_mallocz
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	%rax, %r15
	movq	%rax, -144(%rbp)
	movl	$24, %edi
	callq	_av_mallocz
	movq	%rax, %rdi
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	testq	%r15, %r15
	movq	-136(%rbp), %r15                ## 8-byte Reload
	je	LBB0_18
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.5:
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	decl	%r15d
	movl	%r15d, -116(%rbp)
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	leaq	-112(%rbp), %rdx
	movq	%r12, %r13
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$64, %ecx
	callq	_avio_get_str
	subl	%eax, %r15d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_avio_read
	testl	%eax, %eax
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	js	LBB0_25
## %bb.8:
	movq	%r12, %r13
	movb	$0, -109(%rbp)
	addl	$-4, %r15d
LBB0_9:
	movl	%r15d, -116(%rbp)
	movq	(%r14), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_15
## %bb.10:
	addq	$16, %r14
	leaq	-112(%rbp), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r14), %edi
	movq	%r15, %rsi
	movl	$64, %edx
	callq	_av_strncasecmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	addq	$16, %r14
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.14:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
LBB0_15:
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_16
LBB0_12:
	movl	-16(%r14), %ecx
	movq	(%r12), %rax
	movq	-128(%rbp), %rdi                ## 8-byte Reload
LBB0_16:
	cmpq	%rax, %rcx
	movq	%r13, %r12
	movq	-184(%rbp), %r14                ## 8-byte Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_20
## %bb.17:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	-128(%rbp), %rdi                ## 8-byte Reload
LBB0_18:
	testq	%rdi, %rdi
	je	LBB0_19
LBB0_25:
	callq	_free_apic
LBB0_19:
	movslq	%r15d, %rax
	addq	%rax, %rbx
	leaq	-144(%rbp), %rdi
	callq	_av_freep
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_avio_seek
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%ecx, (%rdi)
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, %r13d
	decl	-116(%rbp)
	testl	%eax, %eax
	js	LBB0_22
## %bb.21:
	movq	_ff_id3v2_picture_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r13d
	jl	LBB0_23
LBB0_22:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	xorl	%r13d, %r13d
LBB0_23:
	movq	_ff_id3v2_picture_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %eax
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movl	%eax, 16(%r13)
	movq	%r13, %rcx
	addq	$4, %rcx
	leaq	-116(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	-148(%rbp), %edx                ## 4-byte Reload
	callq	_decode_str
	testq	%rax, %rax
	js	LBB0_24
## %bb.26:
	movslq	-116(%rbp), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	callq	_av_buffer_alloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	movq	%r13, %rdi
	je	LBB0_25
## %bb.27:
	movl	-116(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_25
## %bb.28:
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_avio_read
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	cmpl	-116(%rbp), %eax
	jne	LBB0_25
## %bb.29:
	movq	8(%rdi), %rcx
	movq	%rdi, %rbx
	movslq	%eax, %rdi
	addq	(%rcx), %rdi
	movq	(%r14), %rdx
	xorl	%esi, %esi
	callq	_memset
	leaq	L_.str.3(%rip), %rax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-144(%rbp), %rax
	movq	%rbx, 16(%rax)
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%rdx)
	movl	4(%rbx), %edi
	callq	_rstrip_spaces
	jmp	LBB0_30
LBB0_24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	%r13, %rdi
	jmp	LBB0_25
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_id3v2_mime_tags,8,3         ## @ff_id3v2_mime_tags
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown attached picture mimetype: %s, skipping.\n"

	.comm	_ff_id3v2_picture_types,8,3     ## @ff_id3v2_picture_types
L_.str.1:                               ## @.str.1
	.asciz	"Unknown attached picture type %d.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Error decoding attached picture description.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"APIC"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_read_apic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_apic
_read_apic:                             ; @read_apic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x27, x5
	mov	x28, x4
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	w2, [sp, #60]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
Lloh3:
	adrp	x8, _ff_id3v2_mime_tags@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_id3v2_mime_tags@GOTPAGEOFF]
	stp	q0, q0, [sp, #64]
Lloh5:
	ldr	x21, [x8]
Lloh6:
	adrp	x25, _AV_CODEC_ID_NONE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AV_CODEC_ID_NONE@GOTPAGEOFF]
	ldr	w26, [x25]
	str	xzr, [sp, #48]
	mov	x0, x1
	bl	_avio_tell
	mov	x22, x0
	cmp	w20, #5
	b.lt	LBB0_17
; %bb.1:
	cbnz	w27, LBB0_3
; %bb.2:
	cmp	w20, #7
	b.lo	LBB0_17
LBB0_3:
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	mov	w0, #24
	bl	_av_mallocz
	mov	x24, x0
	str	x0, [sp, #48]
	mov	w0, #24
	bl	_av_mallocz
	mov	x23, x0
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x24, LBB0_15
; %bb.4:
	cbz	x23, LBB0_15
; %bb.5:
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	mov	x23, x28
	mov	x0, x19
	bl	_avio_r8
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	sub	w28, w20, #1
	str	w28, [sp, #60]
	cbz	w27, LBB0_7
; %bb.6:
	add	x2, sp, #64
	mov	x0, x19
	mov	x1, x28
	mov	w3, #64
	bl	_avio_get_str
	sub	w8, w28, w0
	mov	x28, x23
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_9
LBB0_7:
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #3
	bl	_avio_read
	mov	x28, x23
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	tbnz	w0, #31, LBB0_16
; %bb.8:
	strb	wzr, [sp, #67]
	sub	w8, w20, #4
LBB0_9:
	str	w8, [sp, #60]
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.10:
	add	x21, x21, #16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x21, #-8]
	add	x1, sp, #64
	mov	w2, #64
	bl	_av_strncasecmp
	cbz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21], #16
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_13:
	cmp	x26, x8
	b.ne	LBB0_21
LBB0_14:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x8, sp, #64
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
LBB0_15:
	cbz	x23, LBB0_17
LBB0_16:
	mov	x0, x23
	bl	_free_apic
LBB0_17:
	add	x20, x22, w20, sxtw
	add	x0, sp, #48
	bl	_av_freep
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_avio_seek
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.19:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_20:
	ldur	w26, [x21, #-16]
	ldr	x8, [x25]
	cmp	x26, x8
	b.eq	LBB0_14
LBB0_21:
	str	w26, [x23]
	mov	x0, x19
	bl	_avio_r8
	mov	x27, x0
	ldr	w8, [sp, #60]
	sub	w8, w8, #1
	str	w8, [sp, #60]
Lloh19:
	adrp	x21, _ff_id3v2_picture_types@GOTPAGE
Lloh20:
	ldr	x21, [x21, _ff_id3v2_picture_types@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_23
; %bb.22:
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w27, w0
	b.lt	LBB0_24
LBB0_23:
Lloh21:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	str	x27, [sp]
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_log
	mov	w27, #0
LBB0_24:
	ldr	x8, [x21]
	ldr	w8, [x8, w27, uxtw #2]
	str	w8, [x23, #16]
	add	x3, x23, #4
	add	x4, sp, #60
	mov	x0, x24
	mov	x1, x19
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_decode_str
	tbnz	x0, #63, LBB0_28
; %bb.25:
	ldrsw	x8, [sp, #60]
Lloh26:
	adrp	x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh27:
	ldr	x21, [x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_av_buffer_alloc
	str	x0, [x23, #8]
	ldr	w2, [sp, #60]
	cmp	x0, #0
	ccmp	w2, #0, #4, ne
	b.eq	LBB0_16
; %bb.26:
	ldr	x1, [x0]
	mov	x0, x19
	bl	_avio_read
	ldr	w8, [sp, #60]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.27:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw
	ldr	x2, [x21]
	mov	w1, #0
	bl	_memset
Lloh28:
	adrp	x8, l_.str.3@PAGE
Lloh29:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
	ldr	x8, [sp, #48]
	str	x23, [x8, #16]
	ldr	x9, [x28]
	str	x9, [x8, #8]
	str	x8, [x28]
	ldr	w0, [x23, #4]
	bl	_rstrip_spaces
	b	LBB0_18
LBB0_28:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_av_log
	b	LBB0_16
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_id3v2_mime_tags,8,3         ; @ff_id3v2_mime_tags
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown attached picture mimetype: %s, skipping.\n"

	.comm	_ff_id3v2_picture_types,8,3     ; @ff_id3v2_picture_types
l_.str.1:                               ; @.str.1
	.asciz	"Unknown attached picture type %d.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Error decoding attached picture description.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"APIC"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_read_apic
.subsections_via_symbols
