	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_parse_picture          ## -- Begin function ff_flac_parse_picture
	.p2align	4, 0x90
_ff_flac_parse_picture:                 ## @ff_flac_parse_picture
	.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	$616, %rsp                      ## imm = 0x268
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ff_id3v2_mime_tags@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	%rax, -576(%rbp)                ## 8-byte Spill
	movq	$0, -600(%rbp)
	movq	$0, -592(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-564(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ffio_init_context
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %r14
	movq	_ff_id3v2_picture_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%r14d, %eax
	ja	LBB0_4
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURN_ERROR
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	leaq	-564(%rbp), %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	addl	$-64, %eax
	cmpl	$-63, %eax
	jb	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_FFMIN
	leaq	-564(%rbp), %rdi
	leaq	-560(%rbp), %rsi
	movl	%eax, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_6
## %bb.9:
	movl	$1, %edi
	callq	_av_assert0
	movslq	%ebx, %rax
	movq	$0, -560(%rbp,%rax,8)
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_14
## %bb.10:
	addq	$16, %r15
	leaq	-560(%rbp), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r15), %edi
	movq	%rbx, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rax
	addq	$16, %r15
	cmpq	(%r13), %rax
	jne	LBB0_11
LBB0_14:
	movq	-576(%rbp), %r15                ## 8-byte Reload
	cmpq	%rax, %r15
	jne	LBB0_17
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	-560(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_7
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	je	LBB0_25
## %bb.8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_25:
	leaq	-600(%rbp), %rdi
	callq	_av_buffer_unref
	leaq	-592(%rbp), %rdi
	callq	_av_freep
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	movl	%ebx, %eax
	addq	$616, %rsp                      ## imm = 0x268
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-16(%r15), %r15d
	movq	(%r13), %rax
	cmpq	%rax, %r15
	je	LBB0_16
LBB0_17:
	leaq	-564(%rbp), %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.19:
	leal	1(%rbx), %edi
	callq	_av_malloc
	movq	%rax, %r13
	movq	%rax, -592(%rbp)
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %edi
	callq	_RETURN_ERROR
LBB0_21:
	leaq	-564(%rbp), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_22
## %bb.26:
	movslq	%ebx, %rax
	movq	$0, (%r13,%rax,8)
	jmp	LBB0_27
LBB0_18:
	xorl	%r13d, %r13d
LBB0_27:
	leaq	-564(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, -632(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, -624(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %rcx
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.29:
	movq	%r15, -576(%rbp)                ## 8-byte Spill
	movq	%r13, -616(%rbp)                ## 8-byte Spill
	movslq	%ecx, %r13
	movq	%rcx, %r15
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r13, %rdi
	callq	_av_buffer_alloc
	movq	%rax, -600(%rbp)
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:
	movq	%rax, -584(%rbp)                ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %edi
	callq	_RETURN_ERROR
	movq	-584(%rbp), %rax                ## 8-byte Reload
LBB0_31:
	shlq	$3, %r13
	addq	(%rax), %r13
	movq	(%rbx), %rdx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rax, %r13
	callq	_memset
	movq	(%r13), %rsi
	leaq	-564(%rbp), %rdi
	movl	%r15d, %edx
	callq	_avio_read
	movq	%r15, -608(%rbp)                ## 8-byte Spill
	cmpl	%r15d, %eax
	jne	LBB0_32
## %bb.33:
	movq	%r13, -584(%rbp)                ## 8-byte Spill
	movq	(%r13), %rdi
	callq	_AV_RB64
	movq	_PNGSIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.34:
	movq	_AV_CODEC_ID_PNG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -576(%rbp)                ## 8-byte Spill
LBB0_35:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %r12
	testq	%rax, %rax
	movq	-616(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_37
## %bb.36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %edi
	callq	_RETURN_ERROR
LBB0_37:
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_av_init_packet
	movq	-584(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 48(%r12)
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	-608(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 24(%r12)
	movl	56(%r12), %eax
	movl	%eax, 32(%r12)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r12)
	movq	_AV_DISPOSITION_ATTACHED_PIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, 12(%rcx)
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-632(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	-624(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	_ff_id3v2_picture_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	testq	%r15, %r15
	je	LBB0_39
## %bb.38:
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_av_dict_set
	jmp	LBB0_39
LBB0_22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_7
LBB0_32:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_23:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_25
## %bb.24:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_41:
	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	_ff_id3v2_picture_types,8,3     ## @ff_id3v2_picture_types
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid picture type: %d.\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Could not read mimetype from an attached picture.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown attached picture mimetype: %s.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Error reading attached picture description.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"Invalid attached picture size: %d.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"Error reading attached picture data.\n"

	.comm	_PNGSIG,8,3                     ## @PNGSIG
	.comm	_AV_CODEC_ID_PNG,4,2            ## @AV_CODEC_ID_PNG
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ## @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
L_.str.6:                               ## @.str.6
	.asciz	"comment"

L_.str.7:                               ## @.str.7
	.asciz	"title"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_parse_picture          ; -- Begin function ff_flac_parse_picture
	.p2align	2
_ff_flac_parse_picture:                 ; @ff_flac_parse_picture
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #576
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _ff_id3v2_mime_tags@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_id3v2_mime_tags@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
Lloh6:
	adrp	x22, _AV_CODEC_ID_NONE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AV_CODEC_ID_NONE@GOTPAGEOFF]
	ldr	w28, [x22]
	stp	xzr, xzr, [sp, #32]
	add	x0, sp, #28
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ffio_init_context
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x20, x0
	mov	x21, x20
Lloh8:
	adrp	x8, _ff_id3v2_picture_types@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ff_id3v2_picture_types@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	_FF_ARRAY_ELEMS
Lloh11:
	adrp	x23, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	adrp	x27, _AV_EF_EXPLODE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh15:
	adrp	x25, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x25, [x25, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	cmp	w0, w20
	b.hi	LBB0_4
; %bb.1:
	ldr	w1, [x23]
	str	x21, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x25]
	bl	_RETURN_ERROR
LBB0_3:
	mov	x20, #0
LBB0_4:
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x21, x0
	sub	w8, w21, #64
	cmn	w8, #63
	b.lo	LBB0_12
; %bb.5:
	mov	x0, x21
	mov	w1, #511
	bl	_FFMIN
	mov	x2, x0
	add	x26, sp, #48
	add	x0, sp, #28
	add	x1, sp, #48
	bl	_avio_read
	cmp	w0, w21
	b.ne	LBB0_12
; %bb.6:
	mov	w0, #1
	bl	_av_assert0
	sbfiz	x8, x21, #3, #32
	str	xzr, [x26, x8]
	ldr	x8, [x24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
	add	x21, x24, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x21, #-8]
	add	x1, sp, #48
	mov	w2, #512
	bl	_strncmp
	cbz	w0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21], #16
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_10:
	cmp	x28, x8
	b.ne	LBB0_18
LBB0_11:
	ldr	w1, [x23]
	add	x8, sp, #48
	str	x8, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w1, [x23]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
	ldr	w9, [x27]
	ldr	w10, [x25]
	tst	w9, w8
	csel	w19, wzr, w10, eq
LBB0_14:
	add	x0, sp, #40
	bl	_av_buffer_unref
	add	x0, sp, #32
	bl	_av_freep
LBB0_15:
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.16:
	mov	x0, x19
	add	sp, sp, #576
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldur	w28, [x21, #-16]
	ldr	x8, [x22]
	cmp	x28, x8
	b.eq	LBB0_11
LBB0_18:
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x22, x0
	cmp	w22, #1
	b.lt	LBB0_23
; %bb.19:
	add	w0, w22, #1
	bl	_av_malloc
	mov	x21, x0
	str	x0, [sp, #32]
	cbnz	x0, LBB0_21
; %bb.20:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_AVERROR
	bl	_RETURN_ERROR
LBB0_21:
	add	x0, sp, #28
	mov	x1, x21
	mov	x2, x22
	bl	_avio_read
	cmp	w0, w22
	b.ne	LBB0_32
; %bb.22:
	sbfiz	x8, x22, #3, #32
	str	xzr, [x21, x8]
	b	LBB0_24
LBB0_23:
	mov	x21, #0
LBB0_24:
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x26, x0
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x22, x0
	add	x0, sp, #28
	mov	w1, #8
	bl	_avio_skip
	add	x0, sp, #28
	bl	_avio_rb32
	mov	x24, x0
	cmp	w24, #0
	b.le	LBB0_33
; %bb.25:
	stp	x26, x22, [sp, #8]              ; 16-byte Folded Spill
	sxtw	x22, w24
Lloh29:
	adrp	x26, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh30:
	ldr	x26, [x26, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x0, x8, x22
	bl	_av_buffer_alloc
	mov	x25, x0
	str	x0, [sp, #40]
	cbnz	x0, LBB0_27
; %bb.26:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_AVERROR
	bl	_RETURN_ERROR
LBB0_27:
	ldr	x8, [x25]
	add	x0, x8, x22, lsl #3
	ldr	x2, [x26]
	mov	w1, #0
	bl	_memset
	ldr	x1, [x25]
	add	x0, sp, #28
	mov	x2, x24
	bl	_avio_read
	cmp	w0, w24
	b.ne	LBB0_34
; %bb.28:
	ldr	x0, [x25]
	bl	_AV_RB64
Lloh34:
	adrp	x8, _PNGSIG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PNGSIG@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _AV_CODEC_ID_PNG@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AV_CODEC_ID_PNG@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w23, w9, w28, eq
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x19, x0
	cbnz	x0, LBB0_30
; %bb.29:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_AVERROR
	bl	_RETURN_ERROR
LBB0_30:
	add	x0, x19, #24
	bl	_av_init_packet
	str	x25, [x19, #48]
	ldr	x8, [x25]
	str	x8, [x19, #40]
	ldr	w8, [x19, #56]
	str	w8, [x19, #32]
Lloh43:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
	stp	w24, w8, [x19, #24]
Lloh46:
	adrp	x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh49:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x8]
	ldr	x9, [x19, #8]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	stp	w23, w10, [x9]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	stp	w8, w11, [x9, #8]
Lloh52:
	adrp	x8, _ff_id3v2_picture_types@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ff_id3v2_picture_types@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	ldr	x2, [x8, w20, uxtw #3]
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_av_dict_set
	cbz	x21, LBB0_38
; %bb.31:
Lloh57:
	adrp	x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
Lloh60:
	adrp	x1, l_.str.7@PAGE
Lloh61:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_av_dict_set
	mov	w19, #0
	b	LBB0_15
LBB0_32:
	ldr	w1, [x23]
Lloh62:
	adrp	x2, l_.str.3@PAGE
Lloh63:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_35
LBB0_33:
	ldr	w1, [x23]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh64:
	adrp	x2, l_.str.4@PAGE
Lloh65:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_34:
	ldr	w1, [x23]
Lloh66:
	adrp	x2, l_.str.5@PAGE
Lloh67:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_35:
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.36:
Lloh68:
	adrp	x8, _EIO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_14
LBB0_37:
	mov	w19, #0
	b	LBB0_14
LBB0_38:
	mov	w19, #0
	b	LBB0_15
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.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	_ff_id3v2_picture_types,8,3     ; @ff_id3v2_picture_types
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid picture type: %d.\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Could not read mimetype from an attached picture.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown attached picture mimetype: %s.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Error reading attached picture description.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"Invalid attached picture size: %d.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"Error reading attached picture data.\n"

	.comm	_PNGSIG,8,3                     ; @PNGSIG
	.comm	_AV_CODEC_ID_PNG,4,2            ; @AV_CODEC_ID_PNG
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ; @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
l_.str.6:                               ; @.str.6
	.asciz	"comment"

l_.str.7:                               ; @.str.7
	.asciz	"title"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
.subsections_via_symbols
