	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a64multi_encode_frame
_a64multi_encode_frame:                 ## @a64multi_encode_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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %r15
	movq	(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	16(%r15), %rdx
	movq	24(%r15), %r14
	movq	32(%r15), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	40(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_CROP_SCREENS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movq	_C64YRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMIN
	movl	%eax, %r12d
	sarl	$3, %r12d
	movl	8(%rbx), %edi
	movq	_C64XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMIN
	movl	%eax, %esi
	sarl	$3, %esi
	movl	%esi, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	imull	%r12d, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_C64YRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$3, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_C64XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$3, %esi
	movl	$1024, %eax                     ## imm = 0x400
LBB0_3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_4
## %bb.6:
	movslq	48(%r15), %rcx
	movl	44(%r15), %edx
	cmpl	%edx, %ecx
	jge	LBB0_9
## %bb.7:
	imulq	$128000, %rcx, %rax             ## imm = 0x1F400
	addq	%rax, %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_to_meta_with_crop
	incl	48(%r15)
	movq	56(%r15), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_41
## %bb.8:
	movq	(%r13), %rcx
	movq	%rcx, 56(%r15)
	jmp	LBB0_41
LBB0_4:
	cmpl	$0, 44(%r15)
	je	LBB0_40
## %bb.5:
	movl	48(%r15), %edx
	movl	%edx, 44(%r15)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jne	LBB0_41
LBB0_10:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	shll	$11, %r13d
	shlq	$8, -80(%rbp)                   ## 8-byte Folded Spill
	addl	$2048, %r13d                    ## imm = 0x800
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	$0, %ecx
	testl	%edx, %edx
	je	LBB0_39
## %bb.11:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	imull	%eax, %edx
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_41
## %bb.12:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	imull	$1000, 44(%r12), %edx           ## imm = 0x3E8
	movq	(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_CHARSET_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	64(%r12), %r15
	movq	%r14, %r13
	movq	%r14, %rdi
	movl	$32, %esi
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movl	$50, %r9d
	pushq	%r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_avpriv_init_elbg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_41
## %bb.13:
	imull	$1000, 44(%r12), %edx           ## imm = 0x3E8
	movq	_CHARSET_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	$32, %esi
	movq	%r14, %rcx
	movl	$50, %r9d
	pushq	%r15
	pushq	%rbx
	callq	_avpriv_do_elbg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_41
## %bb.14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	callq	_render_charset
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	cmpl	$0, 44(%r12)
	movl	%ebx, %ecx
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	jle	LBB0_39
## %bb.15:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	leaq	(%r14,%rax,4), %rdi
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movslq	%r11d, %r15
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%r15d, %r13d
	shlq	$2, %r15
	movl	%r13d, %eax
	andl	$-8, %eax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r12d
	andl	$3, %r12d
	andq	$-4, %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	%r13d, %eax
	andl	$3, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	leaq	112(%r14), %rdx
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	shlq	$5, %r12
	xorl	%edx, %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leaq	(%rdi,%rax,4), %rdi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	addl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 40(%rax)
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_a64_compress_colram
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movq	%rbx, %rdi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rdi
	addl	%eax, %ecx
LBB0_38:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$4000, %r14                     ## imm = 0xFA0
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	addq	$4000, -160(%rbp)               ## 8-byte Folded Spill
                                        ## imm = 0xFA0
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	cmpl	44(%rax), %edx
	jge	LBB0_39
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_31 Depth 3
                                        ##       Child Loop BB0_33 Depth 3
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_35
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	imulq	$4000, -112(%rbp), %rax         ## 8-byte Folded Reload
                                        ## imm = 0xFA0
	addq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	112(%rdi), %r8
	leaq	16(%rdi), %r9
	movq	%rdi, %rsi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-160(%rbp), %rax                ## 8-byte Reload
	xorl	%r10d, %r10d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%r10
	addq	%r15, %r8
	addq	%r15, %rax
	addq	%r15, %r9
	addq	%r15, %r14
	addq	%r15, %rsi
	cmpq	-136(%rbp), %r10                ## 8-byte Folded Reload
	je	LBB0_35
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_31 Depth 3
                                        ##       Child Loop BB0_33 Depth 3
	testl	%r11d, %r11d
	jle	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpl	$8, %r11d
	jb	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r15, %rcx
	imulq	%r10, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addq	%rcx, %rdx
	addq	%rdi, %rcx
	subq	%rdx, %rcx
	movl	$0, %edx
	cmpq	$32, %rcx
	jb	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$24, -200(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_30
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-112(%rax,%rdx,4), %xmm0
	movups	-96(%rax,%rdx,4), %xmm1
	movups	%xmm0, -112(%r8,%rdx,4)
	movups	%xmm1, -96(%r8,%rdx,4)
	movups	-80(%rax,%rdx,4), %xmm0
	movups	-64(%rax,%rdx,4), %xmm1
	movups	%xmm0, -80(%r8,%rdx,4)
	movups	%xmm1, -64(%r8,%rdx,4)
	movups	-48(%rax,%rdx,4), %xmm0
	movups	-32(%rax,%rdx,4), %xmm1
	movups	%xmm0, -48(%r8,%rdx,4)
	movups	%xmm1, -32(%r8,%rdx,4)
	movups	-16(%rax,%rdx,4), %xmm0
	movups	(%rax,%rdx,4), %xmm1
	movups	%xmm0, -16(%r8,%rdx,4)
	movups	%xmm1, (%r8,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rbx
	jne	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$0, -192(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=2
	leaq	(%r9,%rdx,4), %rbx
	leaq	(%r14,%rdx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	(%rdx,%rcx), %xmm0
	movups	16(%rdx,%rcx), %xmm1
	movups	%xmm0, -16(%rbx,%rcx)
	movups	%xmm1, (%rbx,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rdx
	cmpq	%r13, %rcx
	je	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	%rdx, %r11
	notq	%r11
	addq	%r13, %r11
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14,%rdx,4), %ecx
	movl	%ecx, (%rsi,%rdx,4)
	incq	%rdx
	decq	%rbx
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$3, %r11
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	jb	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14,%rdx,4), %ecx
	movl	%ecx, (%rsi,%rdx,4)
	movl	4(%r14,%rdx,4), %ecx
	movl	%ecx, 4(%rsi,%rdx,4)
	movl	8(%r14,%rdx,4), %ecx
	movl	%ecx, 8(%rsi,%rdx,4)
	movl	12(%r14,%rdx,4), %ecx
	movl	%ecx, 12(%rsi,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r13
	jne	LBB0_33
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_38
LBB0_39:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	48(%r14), %esi
	movl	%ecx, %r15d
	callq	_AV_WB32
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_AV_WB32
	movq	(%rbx), %rdi
	addq	$12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	-80(%rbp), %esi                 ## 4-byte Folded Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_AV_WB32
	movl	$0, 48(%r14)
	movq	56(%r14), %rax
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	xorl	%edi, %edi
	cmpl	%r15d, 24(%rbx)
	setge	%dil
	callq	_av_assert0
	movl	%r15d, 24(%rbx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rbx)
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_40:
	xorl	%eax, %eax
LBB0_41:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERLACED,4,2                 ## @INTERLACED
	.comm	_CROP_SCREENS,8,3               ## @CROP_SCREENS
	.comm	_C64YRES,4,2                    ## @C64YRES
	.comm	_C64XRES,4,2                    ## @C64XRES
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_CHARSET_CHARS,4,2              ## @CHARSET_CHARS
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_a64multi_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a64multi_encode_frame
_a64multi_encode_frame:                 ; @a64multi_encode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x28, x0
	ldr	x16, [x0, #16]
	ldr	x9, [x16]
	ldr	x8, [x16, #8]
	stp	x8, x9, [sp, #80]               ; 16-byte Folded Spill
	ldp	x9, x26, [x16, #16]
Lloh0:
	adrp	x8, _INTERLACED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTERLACED@GOTPAGEOFF]
	ldr	x27, [x16, #32]
Lloh2:
	ldr	w21, [x8]
	ldrsw	x19, [x16, #40]
Lloh3:
	adrp	x8, _CROP_SCREENS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CROP_SCREENS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x16, [x29, #-88]                ; 8-byte Folded Spill
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w0, [x28, #12]
Lloh6:
	adrp	x8, _C64YRES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C64YRES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_FFMIN
	asr	w25, w0, #3
	ldr	w0, [x28, #8]
Lloh9:
	adrp	x8, _C64XRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C64XRES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_FFMIN
	ldur	x16, [x29, #-88]                ; 8-byte Folded Reload
	asr	w20, w0, #3
	stur	w25, [x29, #-92]                ; 4-byte Folded Spill
	mul	w17, w20, w25
	cbz	x24, LBB0_6
LBB0_2:
	ldp	w8, w9, [x16, #44]
	cmp	w9, w8
	b.ge	LBB0_8
; %bb.3:
	mov	w8, #32000
	mul	w8, w9, w8
	add	x2, x26, w8, sxtw #2
	mov	x0, x28
	mov	x1, x24
	bl	_to_meta_with_crop
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	ldr	w8, [x10, #48]
	add	w8, w8, #1
	str	w8, [x10, #48]
	ldr	x8, [x10, #56]
Lloh12:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.4:
	mov	w0, #0
	ldr	x8, [x24]
	str	x8, [x10, #56]
	b	LBB0_32
LBB0_5:
Lloh15:
	adrp	x8, _C64YRES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _C64YRES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	asr	w8, w8, #3
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
Lloh18:
	adrp	x8, _C64XRES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _C64XRES@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	asr	w20, w8, #3
	mov	w17, #1024
	cbnz	x24, LBB0_2
LBB0_6:
	ldr	w8, [x16, #44]
	cbz	w8, LBB0_29
; %bb.7:
	ldr	w8, [x16, #48]
	str	w8, [x16, #44]
	b	LBB0_9
LBB0_8:
	b.ne	LBB0_29
LBB0_9:
	lsl	w9, w21, #11
	add	w21, w9, #2048
	lsl	x25, x19, #8
	cbz	w8, LBB0_30
; %bb.10:
	str	x17, [sp, #48]                  ; 8-byte Folded Spill
	add	w9, w17, w25
	madd	w2, w8, w9, w21
	mov	x0, x28
	mov	x1, x22
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_32
; %bb.11:
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	stp	x22, x28, [sp, #24]             ; 16-byte Folded Spill
	ldr	x8, [x22]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldur	x22, [x29, #-88]                ; 8-byte Folded Reload
	ldr	w8, [x22, #44]
	mov	w19, #1000
	mul	w2, w8, w19
Lloh21:
	adrp	x21, _CHARSET_CHARS@GOTPAGE
Lloh22:
	ldr	x21, [x21, _CHARSET_CHARS@GOTPAGEOFF]
	ldr	w4, [x21]
	add	x28, x22, #64
	mov	x0, x26
	mov	w1, #32
	mov	x3, x27
	mov	w5, #50
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
	mov	x6, x24
	mov	x7, x28
	bl	_avpriv_init_elbg
	tbnz	w0, #31, LBB0_32
; %bb.12:
	ldr	w8, [x22, #44]
	mul	w2, w8, w19
	ldr	w4, [x21]
	mov	x0, x26
	mov	w1, #32
	mov	x3, x27
	mov	w5, #50
	mov	x6, x24
	mov	x7, x28
	bl	_avpriv_do_elbg
	tbnz	w0, #31, LBB0_32
; %bb.13:
	str	x25, [sp, #56]                  ; 8-byte Folded Spill
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	ldp	x19, x2, [sp, #72]              ; 16-byte Folded Reload
	mov	x1, x19
	bl	_render_charset
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x25
	mov	x1, x19
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x22, #44]
	mov	x0, x19
	cmp	w8, #1
	mov	x16, x22
	ldr	x17, [sp, #48]                  ; 8-byte Folded Reload
	b.lt	LBB0_31
; %bb.14:
	mov	x27, #0
	sxtw	x8, w17
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	mov	w24, w20
	sxtw	x23, w20
	sbfiz	x22, x20, #2, #32
	and	x21, x24, #0xfffffff0
	ldr	x26, [sp, #88]                  ; 8-byte Folded Reload
	add	x28, x26, #32
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	add	x25, x25, w8, sxtw #2
	mov	x0, x8
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	mov	w19, w8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #4000
	add	x27, x27, #1
	ldr	w8, [x16, #44]
	add	x28, x28, #4000
	cmp	w27, w8
	b.ge	LBB0_31
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_23 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x8, #0
	mov	x9, #0
	mov	w10, #4000
	mul	x10, x27, x10
	ldr	x11, [sp, #88]                  ; 8-byte Folded Reload
	add	x10, x10, x11
	add	x11, x25, #32
	mov	x12, x28
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x9, x9, #1
	add	x12, x12, x22
	add	x11, x11, x22
	add	x8, x8, x23
	cmp	x9, x19
	b.eq	LBB0_27
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_23 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x13, #0
	cmp	w20, #16
	b.lo	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	mul	x14, x22, x9
	add	x15, x10, x14
	add	x14, x14, x25
	sub	x14, x14, x15
	cmp	x14, #64
	b.lo	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x13, x11
	mov	x14, x12
	mov	x15, x21
LBB0_23:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x13, x21
	cmp	x21, x24
	b.eq	LBB0_18
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x14, x13, x8
	lsl	x14, x14, #2
	sub	x13, x24, x13
LBB0_26:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w15, [x26, x14]
	str	w15, [x25, x14]
	add	x14, x14, #4
	subs	x13, x13, #1
	b.ne	LBB0_26
	b	LBB0_18
LBB0_27:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x25, x25, x8, lsl #2
	add	w0, w0, w17
	ldr	w8, [x16, #40]
	cbz	w8, LBB0_15
; %bb.28:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	mov	x0, x25
	mov	x1, x26
	ldr	x2, [sp, #80]                   ; 8-byte Folded Reload
	bl	_a64_compress_colram
	ldr	w0, [sp, #72]                   ; 4-byte Folded Reload
	ldp	x17, x8, [sp, #48]              ; 16-byte Folded Reload
	ldur	x16, [x29, #-88]                ; 8-byte Folded Reload
	add	x25, x25, x8, lsl #2
	add	w0, w0, w8
	b	LBB0_15
LBB0_29:
	mov	w0, #0
	b	LBB0_32
LBB0_30:
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	str	x25, [sp, #56]                  ; 8-byte Folded Spill
	stp	x22, x28, [sp, #24]             ; 16-byte Folded Spill
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	mov	w0, #0
LBB0_31:
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x8, [x20]
	mov	x22, x0
	add	x0, x8, #4
	ldr	w1, [x16, #48]
	mov	x19, x16
	mov	x21, x17
	bl	_AV_WB32
	ldr	x8, [x20]
	add	x0, x8, #8
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_AV_WB32
	ldr	x8, [x20]
	add	x0, x8, #12
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	w1, w21, w8
	bl	_AV_WB32
	str	wzr, [x19, #48]
	ldr	x8, [x19, #56]
Lloh23:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	stp	x8, x8, [x20, #8]
Lloh25:
	ldr	x8, [x9]
	str	x8, [x19, #56]
	ldr	w8, [x20, #24]
	cmp	w8, w22
	cset	w0, ge
	bl	_av_assert0
	mov	w0, #0
Lloh26:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #28]
	orr	w8, w9, w8
	stp	w22, w8, [x20, #24]
	cmp	w22, #0
	cset	w8, ne
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_32:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERLACED,4,2                 ; @INTERLACED
	.comm	_CROP_SCREENS,8,3               ; @CROP_SCREENS
	.comm	_C64YRES,4,2                    ; @C64YRES
	.comm	_C64XRES,4,2                    ; @C64XRES
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_CHARSET_CHARS,4,2              ; @CHARSET_CHARS
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_a64multi_encode_frame
.subsections_via_symbols
