	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lrc_write_header
_lrc_write_header:                      ## @lrc_write_header
	.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, %r15
	cmpl	$1, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.4:
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_SUBRIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_AV_CODEC_ID_TEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_avcodec_get_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	movl	$64, %esi
	movl	$1, %edx
	movl	$100, %ecx
	callq	_avpriv_set_pts_info
	movq	%r15, %rdi
	callq	_ff_standardize_creation_time
	movq	_ff_lrc_metadata_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_metadata_conv_ctx
	movq	_AVFMT_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%r15), %r14
	testl	%eax, 4(%r15)
	jne	LBB0_9
## %bb.8:
	movq	_LIBAVFORMAT_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AV_STRINGIFY
	movq	%rax, %rbx
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movl	(%r14), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %edi
	movl	(%r13), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%rbx), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movb	$32, (%rax)
	movq	(%rbx), %rdi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movb	$32, (%rax)
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	movl	$13, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r15), %edi
	movl	8(%rbx), %edx
	movq	(%rbx), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	jmp	LBB0_17
LBB0_18:
	movl	8(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LRC supports only a single subtitle stream.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_CODEC_ID_SUBRIP,8,3         ## @AV_CODEC_ID_SUBRIP
	.comm	_AV_CODEC_ID_TEXT,8,3           ## @AV_CODEC_ID_TEXT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported subtitle codec: %s\n"

	.comm	_ff_lrc_metadata_conv,4,2       ## @ff_lrc_metadata_conv
	.comm	_AVFMT_FLAG_BITEXACT,4,2        ## @AVFMT_FLAG_BITEXACT
L_.str.2:                               ## @.str.2
	.asciz	"ve"

	.comm	_LIBAVFORMAT_VERSION,4,2        ## @LIBAVFORMAT_VERSION
L_.str.3:                               ## @.str.3
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.4:                               ## @.str.4
	.asciz	"[%s:%s]\n"

L_.str.5:                               ## @.str.5
	.asciz	"\n"

	.no_dead_strip	_lrc_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lrc_write_header
_lrc_write_header:                      ; @lrc_write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.2:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_SUBRIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_SUBRIP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_CODEC_ID_TEXT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_TEXT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.3:
	mov	w1, #64
	mov	w2, #1
	mov	w3, #100
	bl	_avpriv_set_pts_info
	mov	x0, x19
	bl	_ff_standardize_creation_time
Lloh9:
	adrp	x8, _ff_lrc_metadata_conv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ff_lrc_metadata_conv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ff_metadata_conv_ctx
	mov	x2, #0
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _AVFMT_FLAG_BITEXACT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVFMT_FLAG_BITEXACT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	x20, x19, #12
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _LIBAVFORMAT_VERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBAVFORMAT_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AV_STRINGIFY
	mov	x2, x0
LBB0_5:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_av_dict_set
	ldr	w0, [x20]
Lloh20:
	adrp	x24, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh21:
	ldr	x24, [x24, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_17
; %bb.6:
	mov	x21, x0
Lloh24:
	adrp	x22, l_.str.3@PAGE
Lloh25:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w25, #32
Lloh26:
	adrp	x23, l_.str.4@PAGE
Lloh27:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20]
	ldr	w3, [x24]
	mov	x1, x22
	mov	x2, x21
	bl	_av_dict_get
	mov	x21, x0
	cbz	x0, LBB0_17
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x0, [x21]
	ldr	w8, [x0]
	cbz	w8, LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	strb	w25, [x0]
	ldr	x0, [x21]
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	strb	w25, [x0]
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x21]
	mov	w1, #13
	bl	_strchr
	cbnz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	stp	x9, x8, [sp]
	mov	x1, x23
	bl	_avio_printf
	b	LBB0_7
LBB0_14:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str@PAGE
Lloh32:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
LBB0_15:
	bl	_av_log
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_16:
Lloh36:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w20, [x9]
	mov	x0, x8
	bl	_avcodec_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh39:
	adrp	x2, l_.str.1@PAGE
Lloh40:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	b	LBB0_15
LBB0_17:
	ldr	w0, [x19, #8]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_avio_printf
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LRC supports only a single subtitle stream.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_CODEC_ID_SUBRIP,8,3         ; @AV_CODEC_ID_SUBRIP
	.comm	_AV_CODEC_ID_TEXT,8,3           ; @AV_CODEC_ID_TEXT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported subtitle codec: %s\n"

	.comm	_ff_lrc_metadata_conv,4,2       ; @ff_lrc_metadata_conv
	.comm	_AVFMT_FLAG_BITEXACT,4,2        ; @AVFMT_FLAG_BITEXACT
l_.str.2:                               ; @.str.2
	.asciz	"ve"

	.comm	_LIBAVFORMAT_VERSION,4,2        ; @LIBAVFORMAT_VERSION
l_.str.3:                               ; @.str.3
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.4:                               ; @.str.4
	.asciz	"[%s:%s]\n"

l_.str.5:                               ; @.str.5
	.asciz	"\n"

	.no_dead_strip	_lrc_write_header
.subsections_via_symbols
