	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teletext_init_decoder
_teletext_init_decoder:                 ## @teletext_init_decoder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	-28(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	callq	_vbi_version
	cmpl	$0, -28(%rbp)
	jne	LBB0_5
## %bb.1:
	cmpl	$2, -24(%rbp)
	ja	LBB0_5
## %bb.2:
	jne	LBB0_4
## %bb.3:
	cmpl	$25, -20(%rbp)
	jbe	LBB0_4
LBB0_5:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_BITMAP_CHAR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rcx,8), %eax
	movl	%eax, (%r14)
	movq	_BITMAP_CHAR_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 4(%r14)
LBB0_7:
	movq	$0, 40(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movabsq	$12884901887, %rax              ## imm = 0x2FFFFFFFF
	movq	%rax, 4(%rbx)
	cmpl	$-1, 12(%rbx)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	movl	$255, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 12(%rbx)
LBB0_9:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	cmpl	$2, %eax
	je	LBB0_13
## %bb.11:
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_ff_ass_subtitle_header_default
	jmp	LBB0_16
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	callq	_my_ass_subtitle_header
	jmp	LBB0_16
LBB0_14:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decoder needs zvbi version >= 0.2.26.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_BITMAP_CHAR_WIDTH,4,2          ## @BITMAP_CHAR_WIDTH
	.comm	_BITMAP_CHAR_HEIGHT,4,2         ## @BITMAP_CHAR_HEIGHT
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"page filter: %s\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.no_dead_strip	_teletext_init_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function teletext_init_decoder
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_teletext_init_decoder:                 ; @teletext_init_decoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	sub	x0, x29, #20
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_vbi_version
	ldur	w9, [x29, #-20]
	ldr	w8, [sp, #24]
	cmp	w9, #0
	ccmp	w8, #2, #2, eq
	b.hi	LBB0_3
; %bb.1:
	ldr	w9, [sp, #20]
	cmp	w8, #2
	ccmp	w9, #25, #0, eq
	b.hi	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _BITMAP_CHAR_WIDTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BITMAP_CHAR_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	w9, #41
	mul	w8, w8, w9
	str	w8, [x19]
Lloh10:
	adrp	x8, _BITMAP_CHAR_HEIGHT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BITMAP_CHAR_HEIGHT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #25
	mul	w8, w8, w9
	str	w8, [x19, #4]
LBB0_5:
	str	xzr, [x20, #40]
Lloh13:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	ldr	w8, [x20, #12]
	cmn	w8, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	mov	w8, #255
	csel	w8, w8, wzr, eq
	str	w8, [x20, #12]
LBB0_7:
Lloh18:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x20, #16]
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w0, [x20]
	cbz	w0, LBB0_14
; %bb.8:
	cmp	w0, #2
	b.eq	LBB0_11
; %bb.9:
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_ff_ass_subtitle_header_default
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_my_ass_subtitle_header
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decoder needs zvbi version >= 0.2.26.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_BITMAP_CHAR_WIDTH,4,2          ; @BITMAP_CHAR_WIDTH
	.comm	_BITMAP_CHAR_HEIGHT,4,2         ; @BITMAP_CHAR_HEIGHT
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"page filter: %s\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_teletext_init_decoder
.subsections_via_symbols
