	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_sub_ass
_gen_sub_ass:                           ## @gen_sub_ass
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdx), %r12d
	movl	4(%rdx), %eax
	movq	(%rdi), %rcx
	andl	$2047, %eax                     ## imm = 0x7FF
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_VBI_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	_VBI_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movq	%rbx, %rdi
	movl	8(%rbx), %eax
	movb	$1, %r9b
	cmpl	%r14d, %eax
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_1
## %bb.3:
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, %ebx
	movl	%r14d, %r13d
	movl	$-1, %r15d
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
	movl	$1, -76(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %r14d
	movl	-44(%rbp), %r12d
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r15d
	movl	%r12d, %ebx
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	8(%rdi), %eax
	cmpl	%eax, %r13d
	jge	LBB0_20
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi), %rax
	movslq	%r13d, %rsi
	imulq	%rax, %rsi
	shlq	$3, %rsi
	addq	16(%rdi), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_get_trim_info
	cmpl	$0, -52(%rbp)
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	cmpl	$-1, %r15d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %r15d
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r14d
	cmpl	$5, %eax
	jle	LBB0_11
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$6, %eax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	jl	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %r12d
	cmpl	$-1, %ebx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r12d
	movl	$0, %eax
	cmovgel	%eax, %ecx
	cmpl	%r12d, %ebx
	cmovnel	%eax, %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	addl	%r12d, %r15d
	addl	%ebx, %r14d
	subl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_FFABS
	cmpl	$2, %eax
	jge	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %r12d
	movl	-48(%rbp), %r14d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r12d
	movl	$0, %eax
	cmovgel	%eax, %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	subl	%r14d, %eax
	cmpl	$5, %eax
	jge	LBB0_17
	jmp	LBB0_18
LBB0_1:
	movb	$1, %r8b
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movb	$1, %bl
LBB0_2:
	movl	8(%r15), %esi
	testb	%bl, %bl
	movl	$2, %edx
	cmovnel	%esi, %edx
	movl	$2, %ebx
	cmpl	$3, %esi
	cmovnel	%ebx, %edx
	testb	%r9b, %r9b
	movl	%edx, %ebx
	cmovnel	%esi, %ebx
	cmpl	$2, %esi
	cmovnel	%edx, %ebx
	testb	%r8b, %r8b
	movl	%ebx, %edx
	cmovnel	%esi, %edx
	cmpl	$1, %esi
	cmovnel	%ebx, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_32
LBB0_20:
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	setne	%r8b
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	setne	%r9b
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	jne	LBB0_24
## %bb.21:
	testl	%edx, %edx
	je	LBB0_24
## %bb.22:
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.23:
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	$1, 8(%r15)
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%r9d, %r9d
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_32
LBB0_24:
	testl	%esi, %esi
	setne	%bl
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_28
## %bb.25:
	testl	%edx, %edx
	jne	LBB0_28
## %bb.26:
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.27:
	movl	$2, 8(%r15)
	movl	$2, -60(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r9b
	jmp	LBB0_32
LBB0_28:
	testl	%esi, %esi
	je	LBB0_2
## %bb.29:
	testl	%edx, %edx
	jne	LBB0_2
## %bb.30:
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.31:
	movl	$3, 8(%r15)
	movl	$3, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%r9d, %r9d
LBB0_32:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpl	%ebx, %eax
	jle	LBB0_65
## %bb.33:
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmpl	$1, %edx
	setne	%cl
	cmpl	$2, %edx
	setne	%al
	orb	%r9b, %al
	andb	%al, %cl
	movb	%cl, -80(%rbp)                  ## 1-byte Spill
	cmpl	$3, %edx
	setne	%cl
	andb	%al, %cl
	movb	%cl, -76(%rbp)                  ## 1-byte Spill
	movl	$-1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %r15
	leaq	L_.str.1(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	%r8d, %eax
	movl	%r8d, %ecx
LBB0_58:                                ##   in Loop: Header=BB0_34 Depth=1
	subl	%eax, %r8d
	leaq	-132(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rsi
	movq	%r15, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	leaq	-136(%rbp), %r9
	callq	_decode_string
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	movq	-128(%rbp), %rdi                ## 8-byte Reload
LBB0_60:                                ##   in Loop: Header=BB0_34 Depth=1
	incl	%ebx
	cmpl	8(%rdi), %ebx
	jge	LBB0_61
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_51 Depth 2
	movq	16(%rdi), %rax
	movl	(%rdi), %r8d
	movl	%r8d, %ecx
	imull	%ebx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,8), %r13
	movl	$0, %eax
	testl	%r8d, %r8d
	jle	LBB0_39
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	_VBI_TRANSPARENT_SPACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, (%r13,%rax,8)
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	incq	%rax
	cmpq	%rax, %r8
	jne	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	$0, -52(%rbp)
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	%r8d, %ecx
	cmpl	%r8d, %eax
	movl	$0, %eax
	cmovel	%eax, %ecx
	movl	%ecx, -52(%rbp)
	jne	LBB0_42
LBB0_40:                                ##   in Loop: Header=BB0_34 Depth=1
	xorl	%eax, %eax
	movl	%r8d, -44(%rbp)
	movl	%r8d, -48(%rbp)
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_45
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r13, %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_get_trim_info
	movl	-52(%rbp), %eax
LBB0_45:                                ##   in Loop: Header=BB0_34 Depth=1
	cmpl	$-1, -72(%rbp)                  ## 4-byte Folded Reload
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jne	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_34 Depth=1
	testl	%eax, %eax
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_34 Depth=1
	leal	1(%rbx), %edi
	xorl	%esi, %esi
	movl	$23, %edx
	callq	_av_clip
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovsl	%ebx, %eax
	sarl	$3, %eax
	movl	$2, %r14d
	subl	%eax, %r14d
	leal	(%r14,%r14,2), %edx
	addl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	cmpl	$15, %ebx
	movl	$2, %eax
	cmovbl	%eax, %r14d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r14
	movl	$0, %eax
	cmovael	%eax, %r12d
	movl	-52(%rbp), %eax
LBB0_48:                                ##   in Loop: Header=BB0_34 Depth=1
	testl	%eax, %eax
	je	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpl	$2, %r12d
	jl	LBB0_52
## %bb.50:                              ##   in Loop: Header=BB0_34 Depth=1
	shrl	%r12d
	incl	%r12d
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_51:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_51
LBB0_52:                                ##   in Loop: Header=BB0_34 Depth=1
	cmpb	$0, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)
LBB0_54:                                ##   in Loop: Header=BB0_34 Depth=1
	cmpb	$0, -76(%rbp)                   ## 1-byte Folded Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	jne	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
LBB0_56:                                ##   in Loop: Header=BB0_34 Depth=1
	cmpl	$0, -52(%rbp)
	je	LBB0_59
## %bb.57:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	-48(%rbp), %ecx
	movl	(%rdi), %r8d
	movl	-44(%rbp), %eax
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_34 Depth=1
	incl	%r12d
	jmp	LBB0_60
LBB0_43:                                ##   in Loop: Header=BB0_34 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_58
LBB0_61:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_65
## %bb.62:
	cmpl	$3, %r12d
	jl	LBB0_65
## %bb.63:
	decl	%r12d
	shrl	%r12d
	incl	%r12d
	leaq	L_.str.1(%rip), %r14
	leaq	-104(%rbp), %rbx
	.p2align	4, 0x90
LBB0_64:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_64
LBB0_65:
	leaq	-104(%rbp), %rdi
	callq	_av_bprint_is_complete
	testl	%eax, %eax
	je	LBB0_66
## %bb.67:
	cmpq	$0, -96(%rbp)
	je	LBB0_70
## %bb.68:
	movq	_SUBTITLE_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, (%rbx)
	movl	12(%r15), %edi
	leal	1(%rdi), %eax
	movl	%eax, 12(%r15)
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	-104(%rbp), %r8d
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ff_ass_get_dialog
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_66
## %bb.69:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_av_log
	jmp	LBB0_71
LBB0_66:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_72
LBB0_70:
	movq	_SUBTITLE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_71:
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
LBB0_72:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBI_WHITE,4,2                  ## @VBI_WHITE
	.comm	_VBI_BLACK,4,2                  ## @VBI_BLACK
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.comm	_VBI_TRANSPARENT_SPACE,8,3      ## @VBI_TRANSPARENT_SPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\\an%d}"

L_.str.1:                               ## @.str.1
	.asciz	" \\N"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SUBTITLE_ASS,4,2               ## @SUBTITLE_ASS
L_.str.2:                               ## @.str.2
	.asciz	"Subtitle"

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

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"subtext:%s:txetbus\n"

	.comm	_SUBTITLE_NONE,4,2              ## @SUBTITLE_NONE
	.no_dead_strip	_gen_sub_ass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_sub_ass
_gen_sub_ass:                           ; @gen_sub_ass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x25, x0
	ldr	x8, [x0]
	ldp	w23, w9, [x2]
	and	x9, x9, #0x7ff
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _VBI_WHITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBI_WHITE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _VBI_BLACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VBI_BLACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x9]
	stp	w8, w10, [sp, #60]
Lloh6:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #40
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w8, [x22, #8]
	cmp	w8, w21
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	b.le	LBB0_17
; %bb.1:
	mov	w26, #1
	mov	w28, #-1
	mov	x27, x21
	mov	w19, #-1
	mov	w20, #1
	mov	w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	mov	x24, x23
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w28, w25, [sp, #72]
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_FFMIN
	mov	x23, x0
	ldr	w0, [sp, #72]
	mov	x1, x24
	bl	_FFMIN
	mov	x24, x0
	mov	x19, x25
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #1
	ldr	w8, [x22, #8]
	cmp	w27, w8
	b.ge	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	w9, [x22]
	mul	w9, w9, w27
	add	x1, x8, w9, sxtw #3
	add	x2, sp, #76
	add	x3, sp, #72
	add	x4, sp, #68
	mov	x0, x22
	bl	_get_trim_info
	ldr	w8, [sp, #68]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #76]
	cmn	w19, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, w8
	ccmp	w8, #5, #0, eq
	mov	x25, x19
	b.gt	LBB0_10
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #6
	b.lt	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x8
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #72]
	cmn	w28, #1
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #2
	ccmp	w28, w8, #0, le
	csel	w20, wzr, w20, ne
	add	w8, w19, w8
	add	w9, w28, w25
	sub	w0, w8, w9
	bl	_FFABS
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	w28, w25, [sp, #72]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #2
	csel	w20, wzr, w20, gt
	mov	x28, x8
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w28, w25
	cmp	w8, #5
	b.ge	LBB0_3
	b	LBB0_4
LBB0_17:
	mov	w9, #1
	mov	w10, #1
	mov	x24, x23
	mov	w11, #1
LBB0_18:
	ldr	w12, [x25, #8]
	cmp	w12, #1
	cset	w13, eq
	and	w10, w13, w10
	cmp	w12, #2
	cset	w13, eq
	and	w13, w13, w9
	orr	w10, w10, w13
	cmp	w12, #3
	cset	w13, eq
	and	w11, w13, w11
	orr	w10, w10, w11
	mov	w11, #2
	cmp	w10, #0
	csel	w10, w12, w11, ne
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_32
LBB0_19:
	ldr	w12, [sp, #36]                  ; 4-byte Folded Reload
	cmp	w12, #0
	cset	w10, ne
	cmp	w26, #0
	cset	w9, ne
	cbnz	w20, LBB0_23
; %bb.20:
	cbz	w12, LBB0_23
; %bb.21:
	cbnz	w26, LBB0_23
; %bb.22:
	mov	w9, #0
	mov	w11, #1
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	mov	w10, #1
	b	LBB0_31
LBB0_23:
	cmp	w20, #0
	cset	w11, ne
	cbnz	w20, LBB0_27
; %bb.24:
	cbnz	w12, LBB0_27
; %bb.25:
	cbz	w26, LBB0_27
; %bb.26:
	mov	w10, #2
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	mov	w9, #2
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	str	w10, [x25, #8]
	mov	w9, #1
	b	LBB0_32
LBB0_27:
	cbz	w20, LBB0_75
; %bb.28:
	cbnz	w12, LBB0_75
; %bb.29:
	cbnz	w26, LBB0_75
; %bb.30:
	mov	w9, #0
	mov	w11, #3
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	mov	w10, #3
LBB0_31:
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	str	w11, [x25, #8]
LBB0_32:
	cmp	w8, w21
	b.le	LBB0_67
; %bb.33:
	mov	w28, #0
	ldp	w11, w19, [sp, #28]             ; 8-byte Folded Reload
	cmp	w11, #1
	cset	w8, ne
	cmp	w11, #2
	cset	w10, ne
	orr	w9, w10, w9
	and	w8, w8, w9
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w11, #3
	cset	w8, ne
	and	w26, w8, w9
	mov	w20, #-1
Lloh9:
	adrp	x25, l_.str.1@PAGE
Lloh10:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_37
LBB0_34:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	x9, x8
	mov	x3, x8
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=1
	sub	w4, w8, w9
	add	x2, sp, #40
	add	x5, sp, #64
	add	x6, sp, #60
	mov	x0, x22
	mov	x1, x27
	bl	_decode_string
	add	x0, sp, #40
	mov	x1, x25
	bl	_av_bprintf
	mov	w28, #0
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22, #8]
	cmp	w21, w8
	b.ge	LBB0_63
LBB0_37:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_39 Depth 2
                                        ;     Child Loop BB0_53 Depth 2
	ldr	x9, [x22, #16]
	ldr	w8, [x22]
	mul	w10, w8, w21
	add	x27, x9, w10, sxtw #3
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	x9, #0
Lloh11:
	adrp	x10, _VBI_TRANSPARENT_SPACE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VBI_TRANSPARENT_SPACE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
LBB0_39:                                ;   Parent Loop BB0_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x27, x9, lsl #3]
	cmp	x11, x10
	b.ne	LBB0_43
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=1
	str	wzr, [sp, #68]
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	w9, #0
LBB0_43:                                ;   in Loop: Header=BB0_37 Depth=1
	cmp	w9, w8
	csel	w9, wzr, w8, eq
	str	w9, [sp, #68]
	b.ne	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_37 Depth=1
	stp	w8, w8, [sp, #72]
	cbz	w19, LBB0_34
; %bb.45:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	w8, #0
	cmn	w20, #1
	b.eq	LBB0_48
	b	LBB0_50
LBB0_46:                                ;   in Loop: Header=BB0_37 Depth=1
	str	xzr, [sp, #72]
	cbz	w19, LBB0_62
; %bb.47:                               ;   in Loop: Header=BB0_37 Depth=1
	add	x2, sp, #76
	add	x3, sp, #72
	add	x4, sp, #68
	mov	x0, x22
	mov	x1, x27
	bl	_get_trim_info
	ldr	w8, [sp, #68]
	cmn	w20, #1
	b.ne	LBB0_50
LBB0_48:                                ;   in Loop: Header=BB0_37 Depth=1
	cbz	w8, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_37 Depth=1
	add	w0, w21, #1
	mov	w1, #0
	mov	w2, #23
	bl	_av_clip
	add	w20, w0, #7
	cmp	w0, #0
	csel	w8, w20, w0, lt
	mov	w9, #2
	sub	w19, w9, w8, asr #3
	add	w8, w19, w19, lsl #1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	str	x8, [sp]
	add	x0, sp, #40
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_av_bprintf
	cmp	w20, #15
	mov	w8, #2
	csel	w20, w8, w19, lo
	ldr	w19, [sp, #32]                  ; 4-byte Folded Reload
	csel	w28, w28, wzr, lo
	ldr	w8, [sp, #68]
LBB0_50:                                ;   in Loop: Header=BB0_37 Depth=1
	cbz	w8, LBB0_55
; %bb.51:                               ;   in Loop: Header=BB0_37 Depth=1
	cmp	w28, #2
	b.lt	LBB0_55
; %bb.52:                               ;   in Loop: Header=BB0_37 Depth=1
	lsr	w8, w28, #1
	add	w28, w8, #1
LBB0_53:                                ;   Parent Loop BB0_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #40
	mov	x1, x25
	bl	_av_bprintf
	sub	w28, w28, #1
	cmp	w28, #1
	b.hi	LBB0_53
; %bb.54:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	w28, #0
LBB0_55:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_59
; %bb.56:                               ;   in Loop: Header=BB0_37 Depth=1
	tbz	w26, #0, LBB0_60
LBB0_57:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w8, [sp, #68]
	cbz	w8, LBB0_61
LBB0_58:                                ;   in Loop: Header=BB0_37 Depth=1
	ldp	w9, w3, [sp, #72]
	ldr	w8, [x22]
	b	LBB0_35
LBB0_59:                                ;   in Loop: Header=BB0_37 Depth=1
	str	w23, [sp, #76]
	tbnz	w26, #0, LBB0_57
LBB0_60:                                ;   in Loop: Header=BB0_37 Depth=1
	str	w24, [sp, #72]
	ldr	w8, [sp, #68]
	cbnz	w8, LBB0_58
LBB0_61:                                ;   in Loop: Header=BB0_37 Depth=1
	add	w28, w28, #1
	b	LBB0_36
LBB0_62:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	w9, #0
	mov	w3, #0
	b	LBB0_35
LBB0_63:
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	w20, LBB0_67
; %bb.64:
	cmp	w28, #3
	b.lt	LBB0_67
; %bb.65:
	sub	w8, w28, #1
	lsr	w8, w8, #1
	add	w19, w8, #1
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_66:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	mov	x1, x21
	bl	_av_bprintf
	sub	w19, w19, #1
	cmp	w19, #1
	b.hi	LBB0_66
LBB0_67:
	add	x0, sp, #40
	bl	_av_bprint_is_complete
	cbz	w0, LBB0_71
; %bb.68:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_72
; %bb.69:
Lloh18:
	adrp	x8, _SUBTITLE_ASS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUBTITLE_ASS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [x19]
	ldr	w0, [x25, #12]
	add	w8, w0, #1
Lloh21:
	adrp	x9, l_.str.2@PAGE
Lloh22:
	add	x9, x9, l_.str.2@PAGEOFF
	str	w8, [x25, #12]
Lloh23:
	adrp	x8, l_.str.3@PAGE
Lloh24:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	x2, x8, x9, eq
	ldr	w4, [sp, #40]
	mov	w1, #0
	mov	x3, #0
	bl	_ff_ass_get_dialog
	str	w0, [x19, #4]
	cbz	w0, LBB0_71
; %bb.70:
	mov	x3, x0
Lloh25:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x25
	bl	_av_log
	b	LBB0_73
LBB0_71:
	add	x0, sp, #40
	mov	x1, #0
	bl	_av_bprint_finalize
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_74
LBB0_72:
Lloh33:
	adrp	x8, _SUBTITLE_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SUBTITLE_NONE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_73:
	add	x0, sp, #40
	mov	x1, #0
	bl	_av_bprint_finalize
	mov	w0, #0
LBB0_74:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_75:
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_VBI_WHITE,4,2                  ; @VBI_WHITE
	.comm	_VBI_BLACK,4,2                  ; @VBI_BLACK
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.comm	_VBI_TRANSPARENT_SPACE,8,3      ; @VBI_TRANSPARENT_SPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\\an%d}"

l_.str.1:                               ; @.str.1
	.asciz	" \\N"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SUBTITLE_ASS,4,2               ; @SUBTITLE_ASS
l_.str.2:                               ; @.str.2
	.asciz	"Subtitle"

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

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"subtext:%s:txetbus\n"

	.comm	_SUBTITLE_NONE,4,2              ; @SUBTITLE_NONE
	.no_dead_strip	_gen_sub_ass
.subsections_via_symbols
