	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_subtitle_stream
_new_subtitle_stream:                   ## @new_subtitle_stream
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_new_output_stream
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	24(%rbx), %r15
	movl	(%r12), %ecx
	movl	%ecx, 8(%rax)
	movq	_copy_initial_nonkeyframes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_i@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_MATCH_PER_STREAM_OPT
	cmpl	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_frame_sizes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_MATCH_PER_STREAM_OPT
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_copy_initial_nonkeyframes,4,2  ## @copy_initial_nonkeyframes
	.comm	_i,4,2                          ## @i
	.comm	_frame_sizes,4,2                ## @frame_sizes
	.comm	_str,4,2                        ## @str
	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
	.no_dead_strip	_new_subtitle_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_subtitle_stream
_new_subtitle_stream:                   ; @new_subtitle_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x3, x2
	mov	x19, x1
Lloh0:
	adrp	x22, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_new_output_stream
	mov	x20, x0
	ldp	x8, x21, [x0, #16]
	ldr	w9, [x22]
Lloh2:
	adrp	x10, _copy_initial_nonkeyframes@GOTPAGE
Lloh3:
	ldr	x10, [x10, _copy_initial_nonkeyframes@GOTPAGEOFF]
	str	w9, [x8, #8]
Lloh4:
	ldr	w0, [x10]
Lloh5:
	adrp	x8, _i@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x3, x19
	mov	x4, x21
	bl	_MATCH_PER_STREAM_OPT
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _frame_sizes@GOTPAGE
Lloh9:
	ldr	x8, [x8, _frame_sizes@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _str@GOTPAGE
Lloh12:
	ldr	x8, [x8, _str@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, #0
	mov	x3, x19
	mov	x4, x21
	bl	_MATCH_PER_STREAM_OPT
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_copy_initial_nonkeyframes,4,2  ; @copy_initial_nonkeyframes
	.comm	_i,4,2                          ; @i
	.comm	_frame_sizes,4,2                ; @frame_sizes
	.comm	_str,4,2                        ; @str
	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
	.no_dead_strip	_new_subtitle_stream
.subsections_via_symbols
