	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_parse_apic            ## -- Begin function ff_id3v2_parse_apic
	.p2align	4, 0x90
_ff_id3v2_parse_apic:                   ## @ff_id3v2_parse_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	addq	$36, %rdi
	movq	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	%rbx, %rdi
	callq	_av_init_packet
	movq	(%r15), %rax
	movq	%rax, 24(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	(%rax), %rax
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	$0, (%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	_AV_DISPOSITION_ATTACHED_PIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	40(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	24(%r15), %eax
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	movl	8(%rax), %edi
	callq	_AV_RB64
	movq	_PNGSIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_CODEC_ID_PNG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	36(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"APIC"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ## @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_PNGSIG,8,3                     ## @PNGSIG
	.comm	_AV_CODEC_ID_PNG,4,2            ## @AV_CODEC_ID_PNG
L_.str.1:                               ## @.str.1
	.asciz	"title"

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

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_parse_apic            ; -- Begin function ff_id3v2_parse_apic
	.p2align	2
_ff_id3v2_parse_apic:                   ; @ff_id3v2_parse_apic
	.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
	ldr	x24, [x1]
	cbz	x24, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x26, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PNGSIG@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PNGSIG@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x28, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x22, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x23, #36
	ldr	x2, [x25, #8]
	mov	x1, x21
	mov	w3, #0
	bl	_av_dict_set
	mov	x0, x23
	bl	_av_init_packet
	ldr	x8, [x25]
	str	x8, [x23, #24]
	ldr	w9, [x8, #8]
	str	w9, [x23, #16]
	ldr	x8, [x8]
	ldr	x9, [x28]
	sub	x8, x8, x9
	str	x8, [x23, #8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x23, #32]
	stp	w8, w9, [x23]
	str	xzr, [x25]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, #8]
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x24]
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
Lloh12:
	adrp	x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x0, #48]
	orr	w8, w9, w8
	str	w8, [x0, #48]
	ldr	w8, [x26]
	ldr	x9, [x0, #40]
	ldr	w10, [x25, #24]
	stp	w10, w8, [x9]
	ldr	x8, [x25]
	ldr	w0, [x8, #8]
	bl	_AV_RB64
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _AV_CODEC_ID_PNG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CODEC_ID_PNG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x23, #40]
	str	w8, [x9]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x25, #16]
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x23, #36
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #0
	bl	_av_dict_set
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	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_11:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"APIC"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ; @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_PNGSIG,8,3                     ; @PNGSIG
	.comm	_AV_CODEC_ID_PNG,4,2            ; @AV_CODEC_ID_PNG
l_.str.1:                               ; @.str.1
	.asciz	"title"

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

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
.subsections_via_symbols
