	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_frame
_encode_frame:                          ## @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	$72, %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	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testb	$15, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testb	$15, 4(%rax)
	je	LBB0_28
LBB0_2:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %r13
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	(%r15), %edi
	movl	$16, %esi
	callq	_FFALIGN
	movl	%eax, (%rbx)
	movl	4(%r15), %edi
	movl	$16, %esi
	callq	_FFALIGN
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_av_frame_copy
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	cmpq	$3, %r13
	je	LBB0_27
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_22 Depth 3
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	testq	%r13, %r13
	setne	%bl
	movl	%ebx, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r15d
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r12d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	movl	%ebx, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leal	-1(%r15), %r10d
	movl	%r14d, %eax
	subl	%r15d, %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	leal	1(%r15), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r11d
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	incl	%edi
	cmpl	%r12d, %edi
	je	LBB0_17
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	cmpl	%r15d, %r14d
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	16(%rax), %rsi
	movq	(%rsi,%r13,8), %rsi
	movl	%r15d, %ebx
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	(%rcx,%r13,4), %ebx
	imull	%edi, %ebx
	leal	(%r10,%rbx), %eax
	cltq
	movl	(%rsi,%rax,4), %eax
	addl	%r15d, %ebx
	movslq	%ebx, %rbx
	movl	%eax, (%rsi,%rbx,4)
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpl	-72(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	%ebx, %rbx
	leal	1(%rbx), %eax
	movslq	%eax, %r8
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx,%r13,4), %eax
	imull	%edi, %eax
	leal	(%r10,%rax), %r9d
	movslq	%r9d, %rdx
	movl	(%rsi,%rdx,4), %edx
	cltq
	addq	%rbx, %rax
	movl	%edx, (%rsi,%rax,4)
	movl	(%rcx,%r13,4), %eax
	imull	%edi, %eax
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rsi,%rdx,4), %edx
	cltq
	addq	%r8, %rax
	movl	%edx, (%rsi,%rax,4)
	addq	$2, %rbx
	addq	$2, %r8
	cmpl	%ebx, %r11d
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-92(%rbp), %r10d                ## 4-byte Reload
	cmpl	%r10d, %r12d
	jge	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %ecx
	movq	-48(%rbp), %r8
	decl	%r12d
	movl	%r14d, %r9d
	andl	$-2, %r9d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	incl	%ecx
	cmpl	%r10d, %ecx
	je	LBB0_26
LBB0_19:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_22 Depth 3
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	xorl	%edx, %edx
	movq	8(%r8), %rsi
	movq	16(%r8), %rax
	movq	(%rax,%r13,8), %rdi
	cmpl	$1, %r14d
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rsi,%r13,4), %ebx
	movl	%ebx, %eax
	imull	%r12d, %eax
	cltq
	addq	%rdx, %rax
	movl	(%rdi,%rax,4), %eax
	imull	%ecx, %ebx
	movslq	%ebx, %rbx
	addq	%rdx, %rbx
	movl	%eax, (%rdi,%rbx,4)
	movl	(%rsi,%r13,4), %ebx
	movl	%ebx, %eax
	imull	%r12d, %eax
	cltq
	addq	%rdx, %rax
	movl	4(%rdi,%rax,4), %eax
	imull	%ecx, %ebx
	movslq	%ebx, %rbx
	addq	%rdx, %rbx
	movl	%eax, 4(%rdi,%rbx,4)
	addq	$2, %rdx
	cmpl	%edx, %r9d
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	testb	$1, %r14b
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	(%rsi,%r13,4), %eax
	movl	%eax, %esi
	imull	%r12d, %esi
	addl	%edx, %esi
	movslq	%esi, %rsi
	movl	(%rdi,%rsi,4), %esi
	imull	%ecx, %eax
	addl	%edx, %eax
	cltq
	movl	%esi, (%rdi,%rax,4)
	jmp	LBB0_25
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_61
LBB0_27:
	movq	-48(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_encode_frame
LBB0_5:
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
LBB0_61:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movslq	(%r15), %rax
	movslq	4(%r15), %rcx
	imulq	%rax, %rcx
	movq	_MAX_MB_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	imulq	%rcx, %rdx
	movq	_AV_INPUT_BUFFER_MIN_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_29
## %bb.30:
	leaq	24(%r15), %rbx
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_init_put_bits
	movl	8(%r15), %r13d
	testl	%r13d, %r13d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_31
## %bb.32:
	movl	12(%r15), %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_33 Depth=1
	incl	%r14d
	cmpl	%r13d, %r14d
	jge	LBB0_38
LBB0_33:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_33 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_dct_get
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_encode_mb
	incl	%ebx
	movl	12(%r15), %r12d
	cmpl	%r12d, %ebx
	jl	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	8(%r15), %r13d
	jmp	LBB0_37
LBB0_29:
	movl	%eax, %r14d
	jmp	LBB0_61
LBB0_31:
	movl	12(%r15), %r12d
LBB0_38:
	cmpl	4(%r15), %r12d
	je	LBB0_39
## %bb.40:
	testl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_43
## %bb.41:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_dct_get
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_encode_mb
	incl	%r14d
	movl	8(%r15), %r13d
	cmpl	%r13d, %r14d
	jl	LBB0_42
LBB0_43:
	cmpl	(%r15), %r13d
	je	LBB0_47
LBB0_44:
	cmpl	$0, 4(%r15)
	jle	LBB0_47
## %bb.45:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_dct_get
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_encode_mb
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_46
	jmp	LBB0_47
LBB0_39:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%r15), %r13d
	jne	LBB0_44
LBB0_47:
	xorl	%eax, %eax
	callq	_emms_c
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_avpriv_align_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
	testb	$31, %al
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_49
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
	testb	$31, %al
	jne	LBB0_48
LBB0_49:
	movq	%rbx, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	31(%rax), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$5, %r14d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_AV_CODEC_ID_ASV1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_50
## %bb.54:
	movq	(%r12), %rdi
	movq	%rdi, %rsi
	movl	%r14d, %edx
	callq	*16(%r15)
	shll	$2, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_50:
	shll	$2, %r14d
	cmpl	$32, %eax
	jl	LBB0_51
## %bb.52:
	movq	_ff_reverse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, %r14d
	movl	$1, %esi
	cmovgel	%r14d, %esi
	movq	(%r12), %rdx
	leaq	-1(%rsi), %rdi
	movl	%esi, %r8d
	andl	$1, %r8d
	cmpq	$3, %rdi
	jae	LBB0_55
## %bb.53:
	xorl	%edi, %edi
	jmp	LBB0_57
LBB0_51:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_55:
	andl	$2147483644, %esi               ## imm = 0x7FFFFFFC
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movq	8(%rdx,%rdi,8), %rcx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, (%rdx,%rdi,8)
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 8(%rdx,%rdi,8)
	movq	16(%rdx,%rdi,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 16(%rdx,%rdi,8)
	movq	24(%rdx,%rdi,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 24(%rdx,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_56
LBB0_57:
	testq	%r8, %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_60
## %bb.58:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_59
LBB0_60:
	movl	%r14d, 8(%r12)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r12)
	movl	$1, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_61
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_MB_SIZE,4,2                ## @MAX_MB_SIZE
	.comm	_AV_INPUT_BUFFER_MIN_SIZE,8,3   ## @AV_INPUT_BUFFER_MIN_SIZE
	.comm	_AV_CODEC_ID_ASV1,8,3           ## @AV_CODEC_ID_ASV1
	.comm	_ff_reverse,8,3                 ## @ff_reverse
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_frame
_encode_frame:                          ; @encode_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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldrb	w8, [x2]
	tst	w8, #0xf
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x22, #4]
	tst	w8, #0xf
	b.eq	LBB0_23
LBB0_2:
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.3:
	mov	x23, x0
	ldr	w8, [x22, #24]
	str	w8, [x0, #24]
	ldr	w0, [x22]
	mov	w1, #16
	bl	_FFALIGN
	str	w0, [x23]
	ldr	w0, [x22, #4]
	mov	w1, #16
	bl	_FFALIGN
	str	w0, [x23, #4]
	mov	x0, x23
	mov	w1, #32
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_21
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	bl	_av_frame_copy
	tbnz	w0, #31, LBB0_21
; %bb.5:
	mov	x27, #0
	ldr	x28, [sp, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	cmp	x27, #3
	b.eq	LBB0_20
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	w0, [x22]
	cmp	x27, #0
	cset	w26, ne
	mov	x1, x26
	bl	_AV_CEIL_RSHIFT
	mov	x25, x0
	ldr	w0, [x22, #4]
	mov	x1, x26
	bl	_AV_CEIL_RSHIFT
	mov	x23, x0
	ldr	w0, [x28]
	mov	x1, x26
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	ldr	w0, [x28, #4]
	mov	x1, x26
	bl	_AV_CEIL_RSHIFT
	subs	w8, w23, #1
	b.lt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
	ldr	x10, [sp, #8]
	sub	w11, w25, #1
	sxtw	x12, w25
	mov	w13, w24
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w9, w9, #1
	cmp	w9, w23
	b.eq	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w25, w24
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldp	x14, x15, [x10, #8]
	ldr	x15, [x15, x27, lsl #3]
	mov	x16, x12
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w17, [x14, x27, lsl #2]
	mul	w17, w17, w9
	add	w1, w11, w17
	ldr	w1, [x15, w1, sxtw #2]
	add	x17, x16, w17, sxtw
	str	w1, [x15, x17, lsl #2]
	add	x16, x16, #1
	cmp	w13, w16
	b.ne	LBB0_12
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, w0
	b.ge	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #8]
	mov	w10, w24
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w23, w23, #1
	cmp	w23, w0
	b.eq	LBB0_6
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x11, #0
	ldp	x12, x13, [x9, #8]
	ldr	x13, [x13, x27, lsl #3]
LBB0_18:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w14, [x12, x27, lsl #2]
	mul	w15, w14, w8
	add	x15, x11, w15, sxtw
	ldr	w15, [x13, x15, lsl #2]
	mul	w14, w23, w14
	add	x14, x11, w14, sxtw
	str	w15, [x13, x14, lsl #2]
	add	x11, x11, #1
	cmp	w10, w11
	b.ne	LBB0_18
	b	LBB0_15
LBB0_19:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
	b	LBB0_22
LBB0_20:
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_encode_frame
LBB0_21:
	mov	x24, x0
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_22:
	mov	x0, x24
	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_23:
	ldr	x23, [x21, #8]
	ldpsw	x8, x9, [x23]
Lloh3:
	adrp	x10, _MAX_MB_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_MB_SIZE@GOTPAGEOFF]
	mul	x8, x9, x8
Lloh5:
	ldrsw	x9, [x10]
Lloh6:
	adrp	x10, _AV_INPUT_BUFFER_MIN_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_INPUT_BUFFER_MIN_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	madd	x2, x8, x9, x10
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_31
; %bb.24:
	add	x24, x23, #24
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	mov	x0, x24
	bl	_init_put_bits
	ldr	w25, [x23, #8]
	cmp	w25, #0
	b.le	LBB0_32
; %bb.25:
	mov	w27, #0
	ldr	w26, [x23, #12]
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w27, w27, #1
	cmp	w27, w25
	b.ge	LBB0_33
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	w26, #1
	b.lt	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w25, #0
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x27
	bl	_dct_get
	ldr	w1, [x23, #28]
	mov	x0, x23
	bl	_encode_mb
	add	w25, w25, #1
	ldr	w26, [x23, #12]
	cmp	w25, w26
	b.lt	LBB0_29
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w25, [x23, #8]
	b	LBB0_26
LBB0_31:
	mov	x24, x0
	b	LBB0_22
LBB0_32:
	ldr	w26, [x23, #12]
LBB0_33:
	ldr	w8, [x23, #4]
	cmp	w26, w8
	ccmp	w25, #1, #8, ne
	b.lt	LBB0_36
; %bb.34:
	mov	w27, #0
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	mov	x3, x27
	bl	_dct_get
	ldr	w1, [x23, #28]
	mov	x0, x23
	bl	_encode_mb
	add	w27, w27, #1
	ldr	w25, [x23, #8]
	cmp	w27, w25
	b.lt	LBB0_35
LBB0_36:
	ldr	w8, [x23]
	cmp	w25, w8
	b.eq	LBB0_40
; %bb.37:
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.38:
	mov	w26, #0
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	mov	x3, x25
	bl	_dct_get
	ldr	w1, [x23, #28]
	mov	x0, x23
	bl	_encode_mb
	add	w26, w26, #1
	ldr	w8, [x23, #4]
	cmp	w26, w8
	b.lt	LBB0_39
LBB0_40:
	bl	_emms_c
	mov	x0, x24
	bl	_avpriv_align_put_bits
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_put_bits_count
	tst	w0, #0x1f
	b.eq	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x0, x24
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	b	LBB0_41
LBB0_43:
	mov	x0, x24
	bl	_put_bits_count
	add	w8, w0, #31
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w22, w8, #5
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _AV_CODEC_ID_ASV1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_ID_ASV1@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_45
; %bb.44:
	ldr	x8, [x23, #16]
	ldr	x0, [x20]
	mov	x1, x0
	mov	x2, x22
	blr	x8
	lsl	w8, w22, #2
	b	LBB0_48
LBB0_45:
	lsl	w8, w22, #2
	cmp	w0, #32
	b.lt	LBB0_48
; %bb.46:
Lloh12:
	adrp	x9, _ff_reverse@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ff_reverse@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x10, [x20]
	cmp	w8, #1
	csinc	w11, w8, wzr, gt
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	ldr	x12, [x9, x12, lsl #3]
	str	x12, [x10], #8
	subs	x11, x11, #1
	b.ne	LBB0_47
LBB0_48:
	mov	w24, #0
Lloh15:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x20, #12]
	orr	w9, w10, w9
	stp	w8, w9, [x20, #8]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_MB_SIZE,4,2                ; @MAX_MB_SIZE
	.comm	_AV_INPUT_BUFFER_MIN_SIZE,8,3   ; @AV_INPUT_BUFFER_MIN_SIZE
	.comm	_AV_CODEC_ID_ASV1,8,3           ; @AV_CODEC_ID_ASV1
	.comm	_ff_reverse,8,3                 ; @ff_reverse
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_encode_frame
.subsections_via_symbols
