	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmv_decode_frame
_tmv_decode_frame:                      ## @tmv_decode_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rcx), %r13
	movl	(%rdi), %r14d
	movl	4(%rdi), %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movq	%r15, %rcx
	movl	%r14d, %r15d
	sarl	$3, %r15d
	movl	%ebx, %edx
	sarl	$3, %edx
	movl	%r15d, %eax
	imull	%edx, %eax
	addl	%eax, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	%eax, 8(%rcx)
	jae	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 32(%rbx)
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movl	$1, 16(%rbx)
	movq	8(%rax), %rdi
	movq	_ff_cga_palette@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	$64, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	$256, %edi                      ## imm = 0x100
	addq	8(%rax), %rdi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$-64, %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$8, -56(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_4
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rsi
	cmpl	$2, %r15d
	movl	$1, %edx
	cmovbl	%edx, %r15d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	cmovael	%eax, %edx
	shlq	$3, %r15
	movq	_avpriv_cga_font@GOTPCREL(%rip), %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rsi), %rax
	movslq	(%rax), %rax
	shlq	$5, %rax
	addq	%rax, %r12
	incl	%r14d
	cmpl	%edx, %r14d
	je	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$8, %ecx
	jb	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%r14), %r8d
	movl	4(%r13,%r14), %r9d
	movl	%r9d, %eax
	sarl	$4, %eax
	andl	$15, %r9d
	movl	%r14d, %ecx
	andl	$-8, %ecx
	leaq	(%r12,%rcx,4), %rdi
	movq	24(%rsi), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	movl	%eax, (%rsp)
	movl	$8, %ecx
	callq	_ff_draw_pc_font
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %r14
	cmpq	%r14, %r15
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %r13
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input buffer too small, truncated sample?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_ff_cga_palette,4,2             ## @ff_cga_palette
	.comm	_AVPALETTE_SIZE,8,3             ## @AVPALETTE_SIZE
	.comm	_avpriv_cga_font,4,2            ## @avpriv_cga_font
	.no_dead_strip	_tmv_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmv_decode_frame
_tmv_decode_frame:                      ; @tmv_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x3]
	ldp	w24, w26, [x0]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_5
; %bb.1:
	asr	w28, w24, #3
	asr	w27, w26, #3
	ldr	w8, [x20, #8]
	mul	w9, w28, w27
	cmp	w8, w9, lsl #1
	b.hs	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, x22
	bl	_av_log
	str	wzr, [x19]
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	mov	w9, #1
	str	w9, [x21]
	ldr	x8, [x21, #8]
	str	w9, [x21, #16]
	ldp	x25, x0, [x8]
Lloh11:
	adrp	x8, _ff_cga_palette@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ff_cga_palette@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #64
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	add	x0, x8, #256
Lloh14:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	sub	x2, x8, #64
	mov	w1, #0
	bl	_memset
	cmp	w26, #8
	b.hs	LBB0_6
LBB0_4:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mov	w9, #1
	str	w9, [x8]
	ldr	w0, [x20, #8]
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	w26, #0
	cmp	w28, #1
	csinc	w8, w28, wzr, hi
	cmp	w27, #1
	csinc	w27, w27, wzr, hi
	lsl	x28, x8, #3
Lloh17:
	adrp	x22, _avpriv_cga_font@GOTPAGE
Lloh18:
	ldr	x22, [x22, _avpriv_cga_font@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8]
	add	x25, x25, x8, lsl #5
	add	w26, w26, #1
	cmp	w26, w27
	b.eq	LBB0_4
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w24, #8
	b.lo	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x19, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x23, x19
	ldp	w4, w8, [x8]
	asr	w6, w8, #4
	and	w5, w8, #0xf
	and	x8, x19, #0xfffffff8
	add	x0, x25, x8, lsl #2
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	w3, #8
	bl	_ff_draw_pc_font
	add	x19, x19, #8
	cmp	x28, x19
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, x19
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input buffer too small, truncated sample?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_ff_cga_palette,4,2             ; @ff_cga_palette
	.comm	_AVPALETTE_SIZE,8,3             ; @AVPALETTE_SIZE
	.comm	_avpriv_cga_font,4,2            ; @avpriv_cga_font
	.no_dead_strip	_tmv_decode_frame
.subsections_via_symbols
