	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_codec_attr
_write_codec_attr:                      ## @write_codec_attr
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rsi), %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	(%rbx), %rdx
	movq	(%rdx), %rax
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.1:
	movq	8(%r15), %rcx
	movq	_CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_22
## %bb.2:
	movq	8(%rdx), %rcx
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.3:
	movq	16(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.4:
	movl	4(%rdx), %ecx
	orl	(%rdx), %ecx
	orl	8(%rdx), %ecx
	jne	LBB0_21
## %bb.5:
	cmpl	$1, 12(%rdx)
	jne	LBB0_21
## %bb.6:
	movl	16(%rdx), %ecx
	andl	$31, %ecx
	cmpl	$7, %ecx
	jne	LBB0_21
## %bb.7:
	movl	20(%rdx), %ecx
	movl	24(%rdx), %r8d
	movl	28(%rdx), %r9d
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$32, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_19
LBB0_8:
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_18
LBB0_10:
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_18
LBB0_12:
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_18
LBB0_14:
	movq	_AV_CODEC_ID_AC3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_18
LBB0_16:
	movq	_AV_CODEC_ID_EAC3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_21
## %bb.17:
	leaq	L_.str.5(%rip), %rdx
LBB0_18:
	leaq	-64(%rbp), %rdi
	movl	$32, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_19:
	movq	(%r15), %rdi
	leaq	-64(%rbp), %rsi
	callq	_av_stristr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movslq	%r14d, %rax
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movl	$8, %esi
	subl	%eax, %esi
	testl	%eax, %eax
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.6(%rip), %rdx
	leaq	-64(%rbp), %r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_22
LBB0_21:
	movq	(%r15), %rcx
	movb	$0, (%rcx)
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN,8,3 ## @CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avc1.%02x%02x%02x"

	.comm	_AV_CODEC_ID_MP2,8,3            ## @AV_CODEC_ID_MP2
L_.str.1:                               ## @.str.1
	.asciz	"mp4a.40.33"

	.comm	_AV_CODEC_ID_MP3,8,3            ## @AV_CODEC_ID_MP3
L_.str.2:                               ## @.str.2
	.asciz	"mp4a.40.34"

	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
L_.str.3:                               ## @.str.3
	.asciz	"mp4a.40.2"

	.comm	_AV_CODEC_ID_AC3,8,3            ## @AV_CODEC_ID_AC3
L_.str.4:                               ## @.str.4
	.asciz	"ac-3"

	.comm	_AV_CODEC_ID_EAC3,8,3           ## @AV_CODEC_ID_EAC3
L_.str.5:                               ## @.str.5
	.asciz	"ec-3"

L_.str.6:                               ## @.str.6
	.asciz	"%s%s"

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

L_.str.8:                               ## @.str.8
	.space	1

	.no_dead_strip	_write_codec_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_codec_attr
_write_codec_attr:                      ; @write_codec_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x0, [x1]
	bl	_strlen
	ldr	x10, [x21]
	ldr	x8, [x10]
Lloh3:
	adrp	x9, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.1:
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x8, _CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN@GOTPAGEOFF]
	ldr	x11, [x8]
	cmp	x9, x11
	b.eq	LBB0_21
; %bb.2:
	mov	x20, x0
	ldr	x9, [x10, #8]
Lloh8:
	adrp	x11, _AV_CODEC_ID_H264@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_8
; %bb.3:
	ldr	x9, [x10, #16]
	cbz	x9, LBB0_20
; %bb.4:
	ldp	w10, w11, [x9]
	orr	w10, w11, w10
	ldr	w11, [x9, #8]
	orr	w10, w10, w11
	cbnz	w10, LBB0_20
; %bb.5:
	ldr	w10, [x9, #12]
	cmp	w10, #1
	b.ne	LBB0_20
; %bb.6:
	ldr	w10, [x9, #16]
	and	w10, w10, #0x1f
	cmp	w10, #7
	b.ne	LBB0_20
; %bb.7:
	ldp	w8, w10, [x9, #20]
	ldr	w9, [x9, #28]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_18
LBB0_8:
Lloh13:
	adrp	x10, _AV_CODEC_ID_MP2@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AV_CODEC_ID_MP2@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_10:
Lloh18:
	adrp	x10, _AV_CODEC_ID_MP3@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AV_CODEC_ID_MP3@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_12:
Lloh23:
	adrp	x10, _AV_CODEC_ID_AAC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_14:
Lloh28:
	adrp	x10, _AV_CODEC_ID_AC3@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AV_CODEC_ID_AC3@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.15:
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh33:
	adrp	x10, _AV_CODEC_ID_EAC3@GOTPAGE
Lloh34:
	ldr	x10, [x10, _AV_CODEC_ID_EAC3@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.17:
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_18:
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	x0, [x19]
	add	x21, sp, #24
	add	x1, sp, #24
	bl	_av_stristr
	cbnz	w0, LBB0_21
; %bb.19:
	ldr	x8, [x19]
	add	x0, x8, w20, sxtw
	mov	w8, #8
	sub	w1, w8, w20
Lloh38:
	adrp	x8, l_.str.7@PAGE
Lloh39:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh40:
	adrp	x9, l_.str.8@PAGE
Lloh41:
	add	x9, x9, l_.str.8@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
	stp	x8, x21, [sp]
Lloh42:
	adrp	x2, l_.str.6@PAGE
Lloh43:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_snprintf
	b	LBB0_21
LBB0_20:
	ldr	x9, [x19]
	strb	wzr, [x9]
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_21:
	ldur	x8, [x29, #-40]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	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
	add	sp, sp, #112
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN,8,3 ; @CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avc1.%02x%02x%02x"

	.comm	_AV_CODEC_ID_MP2,8,3            ; @AV_CODEC_ID_MP2
l_.str.1:                               ; @.str.1
	.asciz	"mp4a.40.33"

	.comm	_AV_CODEC_ID_MP3,8,3            ; @AV_CODEC_ID_MP3
l_.str.2:                               ; @.str.2
	.asciz	"mp4a.40.34"

	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
l_.str.3:                               ; @.str.3
	.asciz	"mp4a.40.2"

	.comm	_AV_CODEC_ID_AC3,8,3            ; @AV_CODEC_ID_AC3
l_.str.4:                               ; @.str.4
	.asciz	"ac-3"

	.comm	_AV_CODEC_ID_EAC3,8,3           ; @AV_CODEC_ID_EAC3
l_.str.5:                               ; @.str.5
	.asciz	"ec-3"

l_.str.6:                               ; @.str.6
	.asciz	"%s%s"

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

l_.str.8:                               ; @.str.8
	.space	1

	.no_dead_strip	_write_codec_attr
.subsections_via_symbols
