	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_slice
_encode_slice:                          ## @encode_slice
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r13
	movq	120(%r13), %rax
	movq	(%rax), %rbx
	movl	(%r13), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %r15d
	movslq	12(%r13), %r14
	movq	112(%rbx), %r12
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rdi
	callq	_av_pix_fmt_desc_get
	movq	(%rax), %rax
	movl	(%rax), %eax
	movups	56(%r13), %xmm0
	movaps	%xmm0, -208(%rbp)
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movl	%r15d, -112(%rbp)               ## 4-byte Spill
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	movq	(%rdx), %rsi
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	addq	%rdi, %rsi
	movslq	(%rcx), %rcx
	imulq	%r14, %rcx
	leaq	(%rsi,%rcx,4), %rcx
	movq	%rcx, -80(%rbp)
	movq	8(%rdx), %rcx
	testq	%rcx, %rcx
	movq	%r14, %rdx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	(%rcx,%rax,4), %rcx
	movq	(%r12), %rdx
	movslq	4(%rdx), %rdx
	imulq	%r14, %rdx
	leaq	(%rcx,%rdx,4), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rcx, -72(%rbp)
	movq	8(%r12), %rcx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	leaq	(%rcx,%rax,4), %rcx
	movq	(%r12), %rdx
	movslq	8(%rdx), %rdx
	imulq	-104(%rbp), %rdx                ## 8-byte Folded Reload
	leaq	(%rcx,%rdx,4), %rcx
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	movq	%rcx, -64(%rbp)
	movq	8(%r12), %rcx
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	leaq	(%rcx,%rax,4), %rax
	movq	(%r12), %rcx
	movslq	12(%rcx), %rcx
	imulq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	leaq	(%rax,%rcx,4), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, -56(%rbp)
	movl	$0, 16(%r13)
	cmpl	$4, 20(%rbx)
	jl	LBB0_11
## %bb.10:
	movq	(%r12), %rdx
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	callq	_choose_rct_params
	jmp	LBB0_12
LBB0_11:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 24(%r13)
LBB0_12:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	56(%r13), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movl	-112(%rbp), %eax                ## 4-byte Reload
	orl	%ecx, %eax
	sete	-81(%rbp)                       ## 1-byte Folded Spill
	leaq	100(%r13), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	cmpq	$0, 104(%rbx)
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_ffv1_clear_slice_state
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$3, 20(%rbx)
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_encode_slice_header
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%r13), %rax
	movq	_AC_GOLOMB_RICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	20(%rbx), %ecx
	cmpl	$3, %ecx
	setge	%dl
	orb	-81(%rbp), %dl                  ## 1-byte Folded Reload
	xorl	%eax, %eax
	cmpb	$1, %dl
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%esi, %esi
	cmpl	$3, %ecx
	setge	%sil
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_ff_rac_terminate
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, 96(%r13)
	movslq	%eax, %rsi
	addq	56(%r13), %rsi
	movq	64(%r13), %rdx
	subq	%rsi, %rdx
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	callq	_init_put_bits
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 40(%rbx)
	movq	(%r14), %rax
	movq	_AV_PIX_FMT_YA8@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	je	LBB0_22
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 72(%rbx)
	movq	(%r12), %r8
	movq	%r13, %rdi
	leaq	-80(%rbp), %rsi
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_encode_rgb_frame32
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_23
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movq	-136(%rbp), %r13                ## 8-byte Reload
	addq	%r13, %rcx
	movl	(%rax), %r8d
	movl	%r8d, %eax
	movq	-104(%rbp), %r15                ## 8-byte Reload
	imull	%r15d, %eax
	cltq
	leaq	(%rcx,%rax,4), %rsi
	movl	$2, (%rsp)
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	callq	_encode_plane
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	addq	%r13, %rcx
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movl	(%rax), %r8d
	movl	%r8d, %eax
	imull	%r15d, %eax
	cltq
	leaq	(%rcx,%rax,4), %rsi
	addq	$4, %rsi
	movl	$2, (%rsp)
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	$1, %r9d
	callq	_encode_plane
	movl	%eax, %r12d
	orl	-96(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	48(%rbx), %esi
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	52(%rbx), %esi
	movl	-88(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	48(%rbx), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	52(%rbx), %eax
	movl	%eax, -144(%rbp)                ## 4-byte Spill
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	addq	-136(%rbp), %rcx                ## 8-byte Folded Reload
	movl	(%rax), %r8d
	movl	%r8d, %eax
	imull	-104(%rbp), %eax                ## 4-byte Folded Reload
	cltq
	leaq	(%rcx,%rax,4), %rsi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_encode_plane
	movq	%r12, %r15
	movl	%eax, %r12d
	cmpq	$0, 88(%rbx)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r14d
	movl	-144(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r14d
	movl	-112(%rbp), %eax                ## 4-byte Reload
	movl	-108(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	imull	-140(%rbp), %eax                ## 4-byte Folded Reload
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	8(%rdx), %rax
	addq	%rbx, %rax
	movl	4(%rcx), %r8d
	movl	%r8d, %ecx
	imull	%r14d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	movl	$1, %r9d
	callq	_encode_plane
	orl	%r12d, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	addq	16(%rcx), %rbx
	movl	8(%rax), %r8d
	imull	%r8d, %r14d
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rsi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	movl	$1, %r9d
	callq	_encode_plane
	movl	%eax, %r12d
	orl	-108(%rbp), %r12d               ## 4-byte Folded Reload
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 80(%r13)
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	24(%rcx), %rcx
	addq	-136(%rbp), %rcx                ## 8-byte Folded Reload
	movl	12(%rax), %r8d
	movl	%r8d, %eax
	imull	-104(%rbp), %eax                ## 4-byte Folded Reload
	cltq
	leaq	(%rcx,%rax,4), %rsi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	$2, %r9d
	callq	_encode_plane
	orl	%eax, %r12d
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_34
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_encode_rgb_frame
LBB0_33:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %r12d
LBB0_34:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_emms_c
	testl	%r12d, %r12d
	jns	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edi, %edi
	cmpl	$0, 16(%r13)
	sete	%dil
	callq	_av_assert0
	cmpl	$4, 20(%r13)
	jl	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 32(%r13)
	je	LBB0_37
## %bb.40:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movl	$1, 16(%r13)
	movaps	-208(%rbp), %xmm0
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movq	-160(%rbp), %r12                ## 8-byte Reload
	cmpq	$0, 104(%rbx)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_34
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movl	%r12d, %ebx
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.39:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_GOLOMB_RICE,8,3             ## @AC_GOLOMB_RICE
	.comm	_AV_PIX_FMT_YA8,8,3             ## @AV_PIX_FMT_YA8
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer too small\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Coding slice as PCM\n"

	.no_dead_strip	_encode_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_slice
_encode_slice:                          ; @encode_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x1]
	ldr	x8, [x20, #120]
	ldr	x21, [x8]
	ldp	w22, w8, [x20]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldp	w25, w28, [x20, #8]
	ldr	x24, [x21, #112]
	ldr	x0, [x0]
	bl	_av_pix_fmt_desc_get
	ldr	x8, [x0]
	ldr	w8, [x8]
	ldur	q0, [x20, #56]
	str	q0, [sp, #64]
	str	w25, [sp, #24]                  ; 4-byte Folded Spill
	str	w8, [sp]                        ; 4-byte Folded Spill
	mul	w9, w8, w25
	ldp	x10, x8, [x24]
	ldp	x11, x8, [x8]
	add	x11, x11, w9, sxtw #2
	sxtw	x23, w9
	ldr	w9, [x10]
	mul	w9, w9, w28
	add	x9, x11, w9, sxtw #2
	str	x9, [sp, #88]
	cbz	x8, LBB0_2
; %bb.1:
	add	x8, x8, x23, lsl #2
	ldr	x9, [x24]
	ldr	w9, [x9, #4]
	mul	w9, w9, w28
	add	x8, x8, w9, sxtw #2
LBB0_2:
	str	x8, [sp, #96]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #16]
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_4
; %bb.3:
	add	x8, x8, x23, lsl #2
	ldr	x9, [x24]
	ldr	w9, [x9, #8]
	mul	w9, w9, w28
	add	x8, x8, w9, sxtw #2
LBB0_4:
	str	x8, [sp, #104]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_6
; %bb.5:
	add	x8, x8, x23, lsl #2
	ldr	x9, [x24]
	ldr	w9, [x9, #12]
	mul	w9, w9, w28
	add	x8, x8, w9, sxtw #2
LBB0_6:
	str	x8, [sp, #112]
	str	wzr, [x20, #16]
	ldr	w8, [x21, #20]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.7:
	ldr	x2, [x24]
	add	x1, sp, #88
	mov	x0, x20
	mov	x3, x22
	mov	x4, x25
	bl	_choose_rct_params
	b	LBB0_9
LBB0_8:
	movi.2s	v0, #1
	str	d0, [x20, #24]
LBB0_9:
	add	x8, x20, #56
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	orr	w8, w8, w28
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	add	x9, x20, #100
	lsl	x8, x23, #2
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	str	w22, [sp, #20]                  ; 4-byte Folded Spill
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x21, #104]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_ff_ffv1_clear_slice_state
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #20]
	cmp	w8, #3
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_encode_slice_header
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #32]
Lloh3:
	adrp	x9, _AC_GOLOMB_RICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_GOLOMB_RICE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x21, #20]
	cmp	w8, #2
	cset	w9, gt
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	orr	w9, w9, w10
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #2
	cset	w1, gt
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_ff_rac_terminate
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w0, [x20, #96]
	ldp	x8, x9, [x20, #56]
	add	x1, x8, w0, sxtw
	sub	x2, x9, x1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_init_put_bits
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x10, [x21, #40]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _AV_PIX_FMT_YA8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_PIX_FMT_YA8@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cbz	x10, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #72]
	ldr	x4, [x24]
	add	x1, sp, #88
	mov	x0, x20
	mov	x2, x22
	mov	x3, x25
	cbz	x8, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_encode_rgb_frame32
	b	LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	b.ne	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	x9, x8, [x24]
	ldr	x8, [x8]
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	add	x8, x8, x27
	ldr	w4, [x9]
	mul	w9, w4, w28
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	mov	x2, x22
	mov	x3, x25
	mov	w5, #0
	mov	w6, #2
	bl	_encode_plane
	mov	x26, x0
	ldp	x9, x8, [x24]
	ldr	x8, [x8]
	add	x8, x8, x27
	ldr	w4, [x9]
	mul	w9, w4, w28
	add	x8, x8, w9, sxtw #2
	add	x1, x8, #4
	mov	x0, x20
	mov	x2, x22
	mov	x3, x25
	mov	w5, #1
	mov	w6, #2
	bl	_encode_plane
	orr	w27, w0, w26
	bl	_emms_c
	tbnz	w27, #31, LBB0_30
	b	LBB0_34
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x21, #48]
	mov	x0, x22
	bl	_AV_CEIL_RSHIFT
	mov	x27, x23
	mov	x23, x0
	ldr	w1, [x21, #52]
	mov	x0, x25
	bl	_AV_CEIL_RSHIFT
	mov	x26, x0
	mov	x3, x25
	mov	x2, x22
	ldp	w25, w22, [x21, #48]
	ldp	x9, x8, [x24]
	ldr	x8, [x8]
	add	x8, x8, x27, lsl #2
	ldr	w4, [x9]
	mul	w9, w4, w28
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	mov	w5, #0
	mov	w6, #1
	bl	_encode_plane
	mov	x27, x0
	ldr	x8, [x21, #88]
	cbz	x8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	asr	w22, w28, w22
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	asr	w8, w8, w25
	ldp	x10, x9, [x24]
	ldr	x9, [x9, #8]
	ldr	w11, [sp]                       ; 4-byte Folded Reload
	mul	w8, w8, w11
	sbfiz	x25, x8, #2, #32
	add	x8, x9, x25
	ldr	w4, [x10, #4]
	mul	w9, w4, w22
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	mov	x2, x23
	mov	x3, x26
	mov	w5, #1
	mov	w6, #1
	bl	_encode_plane
	orr	w27, w0, w27
	ldp	x9, x8, [x24]
	ldr	x8, [x8, #16]
	add	x8, x8, x25
	ldr	w4, [x9, #8]
	mul	w9, w4, w22
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	mov	x2, x23
	mov	x3, x26
	mov	w5, #1
	mov	w6, #1
	bl	_encode_plane
	orr	w27, w27, w0
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #80]
	ldr	w22, [sp, #20]                  ; 4-byte Folded Reload
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x9, x8, [x24]
	ldr	x8, [x8, #24]
	add	x8, x8, x23, lsl #2
	ldr	w4, [x9, #12]
	ldr	w28, [sp, #4]                   ; 4-byte Folded Reload
	mul	w9, w4, w28
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	mov	x2, x22
	mov	x3, x25
	mov	w5, #2
	mov	w6, #1
	bl	_encode_plane
	orr	w27, w0, w27
	bl	_emms_c
	tbnz	w27, #31, LBB0_30
	b	LBB0_34
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_encode_rgb_frame
LBB0_29:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x0
	bl	_emms_c
	tbz	w27, #31, LBB0_34
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x20, #20]
	cmp	w8, #4
	b.lt	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh9:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w8, #1
	str	w8, [x20, #16]
	ldr	q0, [sp, #64]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	q0, [x8]
	ldr	x8, [x21, #104]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_33:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w28, [sp, #4]                   ; 4-byte Folded Reload
	bl	_emms_c
	tbnz	w27, #31, LBB0_30
LBB0_34:
	mov	w27, #0
	b	LBB0_36
LBB0_35:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	mov	x0, x27
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_GOLOMB_RICE,8,3             ; @AC_GOLOMB_RICE
	.comm	_AV_PIX_FMT_YA8,8,3             ; @AV_PIX_FMT_YA8
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer too small\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Coding slice as PCM\n"

	.no_dead_strip	_encode_slice
.subsections_via_symbols
