	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teletext_close_decoder
_teletext_close_decoder:                ## @teletext_close_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	48(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_ff_dlog
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rcx
	leal	-1(%rax), %edx
	movl	%edx, (%rbx)
	cltq
	leaq	(%rcx,%rax,4), %rdi
	addq	$-4, %rdi
	callq	_subtitle_rect_free
	jmp	LBB0_2
LBB0_3:
	leaq	40(%rbx), %rdi
	callq	_av_freep
	movq	32(%rbx), %rdi
	callq	_vbi_decoder_delete
	movq	$0, 32(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movabsq	$12884901887, %rax              ## imm = 0x2FFFFFFFF
	movq	%rax, 4(%rbx)
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_AV_CODEC_FLAG2_RO_FLUSH_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	$0, 16(%rbx)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lines_total=%u\n"

	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_CODEC_FLAG2_RO_FLUSH_NOOP,4,2 ## @AV_CODEC_FLAG2_RO_FLUSH_NOOP
	.no_dead_strip	_teletext_close_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_close_decoder
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_teletext_close_decoder:                ; @teletext_close_decoder
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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]
	ldr	w2, [x20, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ff_dlog
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #40]
	sxtw	x8, w8
	sub	x8, x8, #1
	str	w8, [x20]
	add	x0, x9, x8, lsl #2
	bl	_subtitle_rect_free
	ldr	w8, [x20]
	cbnz	w8, LBB0_1
LBB0_2:
	add	x0, x20, #40
	bl	_av_freep
	ldr	x0, [x20, #32]
	bl	_vbi_decoder_delete
	str	xzr, [x20, #32]
Lloh2:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #28]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _AV_CODEC_FLAG2_RO_FLUSH_NOOP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_CODEC_FLAG2_RO_FLUSH_NOOP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lines_total=%u\n"

	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_CODEC_FLAG2_RO_FLUSH_NOOP,4,2 ; @AV_CODEC_FLAG2_RO_FLUSH_NOOP
	.no_dead_strip	_teletext_close_decoder
.subsections_via_symbols
