	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_ass_text
_create_ass_text:                       ## @create_ass_text
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movq	%rbx, %rdi
	callq	_strlen
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_ff_ass_bprint_text_event
	movq	%r12, %rdi
	callq	_av_bprint_is_complete
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r14)
	movl	-40(%rbp), %r8d
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ff_ass_get_dialog
	movq	%rax, %r15
LBB0_2:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_create_ass_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_ass_text
_create_ass_text:                       ; @create_ass_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_av_bprint_init
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	mov	w4, #0
	bl	_ff_ass_bprint_text_event
	add	x0, sp, #8
	bl	_av_bprint_is_complete
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	add	w8, w0, #1
	str	w8, [x19]
	ldr	w4, [sp, #8]
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_ff_ass_get_dialog
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	add	x0, sp, #8
	mov	x1, #0
	bl	_av_bprint_finalize
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_create_ass_text
.subsections_via_symbols
