	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_ffmpeg_attachment
_add_ffmpeg_attachment:                 ## @add_ffmpeg_attachment
	.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	%rdi, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %r13
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_get_ffmpeg_metadata_value
	movq	%rax, %r12
	movq	_FONT_TTF_ATTACH@GOTPCREL(%rip), %rbx
	cmpl	$128, (%r13)
	jne	LBB0_1
LBB0_7:
	movl	(%rbx), %r15d
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movq	%r12, %rdi
	callq	_strdup
	movl	%eax, 12(%rbx)
	movl	4(%r13), %edi
	callq	_malloc
	movl	%eax, 8(%rbx)
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movl	%eax, %edi
	callq	_memcpy
	movl	4(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_list_add                    ## TAILCALL
LBB0_1:
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.3:
	movl	%eax, %eax
	leaq	(%r12,%rax), %r15
	addq	$-4, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_FONT_OTF_ATTACH@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filename"

	.comm	_FONT_TTF_ATTACH,4,2            ## @FONT_TTF_ATTACH
L_.str.1:                               ## @.str.1
	.asciz	".ttc"

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

L_.str.3:                               ## @.str.3
	.asciz	".otf"

	.comm	_FONT_OTF_ATTACH,4,2            ## @FONT_OTF_ATTACH
	.no_dead_strip	_add_ffmpeg_attachment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_ffmpeg_attachment
_add_ffmpeg_attachment:                 ; @add_ffmpeg_attachment
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x8, [x8, w2, sxtw #3]
	ldr	x22, [x8, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_get_ffmpeg_metadata_value
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, #128
	b.ne	LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _FONT_TTF_ATTACH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FONT_TTF_ATTACH@GOTPAGEOFF]
LBB0_2:
	ldr	w23, [x8]
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x21, x0
	str	w23, [x0]
	mov	x0, x20
	bl	_strdup
	str	w0, [x21, #12]
	ldr	w0, [x22, #4]
	bl	_malloc
	str	w0, [x21, #8]
	ldp	w2, w1, [x22, #4]
	bl	_memcpy
	ldr	w8, [x22, #4]
	str	w8, [x21, #4]
	ldr	w0, [x19]
	mov	x1, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hb_list_add
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #4
	b.lt	LBB0_8
; %bb.5:
	add	x8, x20, w0, uxtw
	sub	x21, x8, #4
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	w0, LBB0_1
; %bb.6:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	w0, LBB0_1
; %bb.7:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	w0, LBB0_9
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh10:
	adrp	x8, _FONT_OTF_ATTACH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FONT_OTF_ATTACH@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filename"

	.comm	_FONT_TTF_ATTACH,4,2            ; @FONT_TTF_ATTACH
l_.str.1:                               ; @.str.1
	.asciz	".ttc"

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

l_.str.3:                               ; @.str.3
	.asciz	".otf"

	.comm	_FONT_OTF_ATTACH,4,2            ; @FONT_OTF_ATTACH
	.no_dead_strip	_add_ffmpeg_attachment
.subsections_via_symbols
