	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_text_decode_frame
_mov_text_decode_frame:                 ## @mov_text_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r13
	movl	8(%rcx), %r12d
	cmpl	$1, %r12d
	jle	LBB0_2
## %bb.3:
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	%rbx, %rdi
	callq	_AV_RB16
	movl	%eax, %r14d
	cmpl	$2, %r12d
	jne	LBB0_5
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_28
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addl	$2, %r14d
	movl	8(%r13), %esi
	movl	%r14d, %edi
	callq	_FFMIN
	movslq	%eax, %r12
	addq	%rbx, %r12
	leaq	2(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mov_text_cleanup
	movl	%r14d, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	$0, 32(%r15)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	8(%r13), %ecx
	cmpl	%ecx, %r14d
	jne	LBB0_6
## %bb.25:
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_text_to_ass
	jmp	LBB0_26
LBB0_6:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	leal	8(%rax), %edx
	cmpl	%ecx, %edx
	movq	%rbx, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_7
LBB0_24:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_text_to_ass
	movq	%r15, %rdi
	callq	_mov_text_cleanup
LBB0_26:
	movl	-48(%rbp), %esi
	movl	8(%r15), %edx
	leal	1(%rdx), %eax
	movl	%eax, 8(%r15)
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_ass_add_rect
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	testl	%r14d, %r14d
	js	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setg	%al
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	8(%r13), %r14d
	jmp	LBB0_28
LBB0_7:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edx
	movl	8(%r13), %ecx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leal	(%rdx,%rsi), %eax
	movl	%eax, (%r15)
	addl	%esi, %edx
	addl	$8, %edx
	cmpl	%ecx, %edx
	jg	LBB0_24
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movslq	%eax, %rbx
	leaq	(%r14,%rbx), %rdi
	callq	_AV_RB32
	movl	%eax, %r12d
	leaq	(%r14,%rbx), %rdi
	addq	$4, %rdi
	callq	_AV_RB32
	movq	%r12, %rcx
	movl	%eax, %r12d
	leaq	(%r14,%rbx), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %eax
	addl	$16, %eax
	cmpl	8(%r13), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_AV_RB64
	movl	%eax, %ecx
	addq	$8, %r14
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	$16, %eax
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	$8, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, 4(%r15)
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rsi
	movl	8(%r13), %ecx
	movl	(%r15), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	cmpl	%eax, %esi
	jg	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_box_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	_box_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%r14
	addq	$16, %rbx
	cmpq	%rax, %r14
	jae	LBB0_22
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_box_types@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	-8(%rcx,%rbx), %r12d
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	4(%r15), %eax
	addl	(%r15), %eax
	addl	-4(%rcx,%rbx), %eax
	cmpl	8(%r13), %eax
	jg	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	*(%rcx,%rbx)
	cmpl	$-1, %eax
	jne	LBB0_20
	jmp	LBB0_22
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tsmb_size is 0\n"

	.comm	_box_count,8,3                  ## @box_count
	.comm	_box_types,8,3                  ## @box_types
	.no_dead_strip	_mov_text_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_text_decode_frame
_mov_text_decode_frame:                 ; @mov_text_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x24, [x3]
	cbz	x24, LBB0_2
; %bb.1:
	mov	x19, x3
	ldr	w20, [x3, #8]
	cmp	w20, #1
	b.gt	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x21, x2
	mov	x26, x1
	mov	x22, x0
	ldr	x23, [x0]
	mov	x0, x24
	bl	_AV_RB16
	cmp	w20, #2
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, wzr, w8, eq
	b	LBB0_3
LBB0_6:
	add	w25, w0, #2
	ldr	w1, [x19, #8]
	mov	x0, x25
	bl	_FFMIN
	add	x20, x24, w0, sxtw
	add	x27, x24, #2
	mov	x0, x23
	bl	_mov_text_cleanup
	str	w25, [x23]
	stp	xzr, xzr, [x23, #24]
	str	xzr, [x23, #16]
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	w9, [x19, #8]
	cmp	w25, w9
	b.ne	LBB0_8
; %bb.7:
	add	x0, sp, #40
	mov	x1, x27
	mov	x2, x20
	mov	x3, x22
	bl	_text_to_ass
	b	LBB0_10
LBB0_8:
	stp	x27, x20, [sp]                  ; 16-byte Folded Spill
	stp	x21, x22, [sp, #24]             ; 16-byte Folded Spill
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w8, [x23]
	add	w10, w8, #8
	cmp	w10, w9
	b.le	LBB0_12
LBB0_9:
	add	x0, sp, #40
	ldp	x1, x2, [sp]                    ; 16-byte Folded Reload
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
	bl	_text_to_ass
	mov	x0, x23
	bl	_mov_text_cleanup
	ldp	x26, x21, [sp, #16]             ; 16-byte Folded Reload
LBB0_10:
	ldr	w1, [sp, #40]
	ldr	w2, [x23, #8]
	add	w8, w2, #1
	str	w8, [x23, #8]
	mov	x0, x26
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ff_ass_add_rect
	mov	x22, x0
	add	x0, sp, #40
	mov	x1, #0
	bl	_av_bprint_finalize
	tbnz	w22, #31, LBB0_3
; %bb.11:
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w8, gt
	str	w8, [x21]
	ldr	w22, [x19, #8]
	b	LBB0_3
LBB0_12:
Lloh9:
	adrp	x26, _box_count@GOTPAGE
Lloh10:
	ldr	x26, [x26, _box_count@GOTPAGEOFF]
Lloh11:
	adrp	x20, _box_types@GOTPAGE
Lloh12:
	ldr	x20, [x20, _box_types@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w10, [x23]
	ldr	w9, [x19, #8]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w8, w10, w27
	str	w8, [x23]
	add	w10, w8, #8
	cmp	w10, w9
	b.gt	LBB0_9
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	add	x25, x24, w8, sxtw
	mov	x0, x25
	bl	_AV_RB32
	mov	x27, x0
	add	x0, x25, #4
	bl	_AV_RB32
	mov	x28, x0
	add	x25, x25, #8
	cmp	w27, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #16
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.gt	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x25
	bl	_AV_RB64
	mov	x27, x0
	add	x25, x25, #8
	mov	w8, #16
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w8, #8
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	str	w8, [x23, #4]
	cbz	w27, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x19, #8]
	ldr	w10, [x23]
	sub	w8, w9, w10
	cmp	w27, w8
	b.gt	LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, #0
	mov	x22, #0
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=2
	ldr	x8, [x26]
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, x8
	b.hs	LBB0_13
LBB0_25:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20]
	ldr	w10, [x9, x21]
	cmp	w28, w10
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldp	w10, w11, [x23]
	add	x8, x9, x21
	ldr	w9, [x8, #4]
	add	w10, w11, w10
	add	w9, w10, w9
	ldr	w10, [x19, #8]
	cmp	w9, w10
	b.gt	LBB0_13
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	x8, [x8, #8]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x19
	blr	x8
	cmn	w0, #1
	b.ne	LBB0_23
	b	LBB0_13
LBB0_28:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_av_log
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tsmb_size is 0\n"

	.comm	_box_count,8,3                  ; @box_count
	.comm	_box_types,8,3                  ; @box_types
	.no_dead_strip	_mov_text_decode_frame
.subsections_via_symbols
