	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r12d
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %eax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movl	%eax, %edi
	callq	_av_log2
	movq	%rbx, %rdi
	movl	%eax, %r9d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	$1, (%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 16(%rax)
	sete	%cl
	xorl	4(%rdi), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_2:
	movl	16(%rbp), %r10d
	cmpq	$0, 80(%rdi)
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_5
## %bb.3:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_MAX_STORED_Q@GOTPCREL(%rip), %rax
	cmpl	%r10d, (%rax)
	jle	LBB0_7
## %bb.6:
	movslq	%r10d, %rax
	shlq	$3, %rax
	movq	8(%rdi), %rcx
	addq	%rax, %rcx
	addq	16(%rdi), %rax
LBB0_4:
	movq	(%rcx), %rbx
	movq	(%rax), %rax
LBB0_14:
	cmpl	$0, 56(%rdi)
	jle	LBB0_15
## %bb.16:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	leal	2(%r9), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	decl	%r9d
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	leal	(,%r12,8), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	shll	$4, %r12d
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	shll	$4, %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	leal	-1(%r12), %r10d
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	cmpl	$2, %r10d
	setb	%r8b
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	60(%rdi), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	leal	(%rcx,%rax), %edx
	movq	_CFACTOR_Y444@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r11), %r9d
	movl	$4, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ecx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r11), %r9d
	sarl	%r9d
	movl	$2, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	movl	(%rax,%r12,4), %eax
	movl	(%rdi), %esi
	movl	%esi, %r15d
	imull	%eax, %r15d
	movl	%r15d, %ebx
	imull	%r14d, %ebx
	movslq	%ebx, %rbx
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	addq	(%rdx,%r12,8), %rax
	addq	%rbx, %rax
	movslq	%ecx, %rdx
	leaq	(%rax,%rdx,4), %r13
	movl	4(%r11), %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movq	64(%rdi), %rdx
	movl	(%rdx), %r11d
	cmpq	$2, %r12
	ja	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ebx, %ebx
	movb	%r8b, %bl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r10d, -88(%rbp)                ## 4-byte Spill
	movl	76(%rdx), %r10d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	pushq	%rbx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	movl	24(%rbp), %r14d
	pushq	%r14
	pushq	%r10
	pushq	%r11
	pushq	%rax
	callq	_get_slice_data
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$48, %rsp
	movq	64(%rdi), %rax
	movl	(%rax), %r9d
	cmpl	$2, -88(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	subq	$8, %rsp
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movq	%rsi, %r15
	movl	%r14d, %r8d
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	72(%rdi), %r10d
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	pushq	%r10
	movl	24(%rbp), %r13d
	pushq	%r13
	pushq	%r11
	pushq	%rax
	movq	%rdi, %rbx
	callq	_get_alpha_data
	addq	$32, %rsp
	movq	64(%rbx), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	16(%rbp), %r8d
	callq	_encode_alpha_plane
	movl	%eax, %ebx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	subq	$8, %rsp
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movq	%rsi, %r15
	movl	%r14d, %r8d
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	callq	_encode_slice_plane
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, (%rax,%r12,4)
	movq	%r15, %rdi
	callq	_put_bits_left
	testq	%rax, %rax
	js	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	addl	%ebx, %eax
	incq	%r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movslq	56(%rdi), %rcx
	cmpq	%rcx, %r12
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	jl	LBB0_17
	jmp	LBB0_30
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_30:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	24(%rdi), %rbx
	movq	32(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	48(%rdi), %r8
	movq	%rax, %rdx
	subq	%rbx, %rdx
	cmpq	$16, %rdx
	jb	LBB0_12
## %bb.8:
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	cmpq	$16, %rdx
	jb	LBB0_12
## %bb.9:
	movq	%r8, %rdx
	subq	%rbx, %rdx
	cmpq	$16, %rdx
	jb	LBB0_12
## %bb.10:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	$16, %rdx
	jb	LBB0_12
## %bb.11:
	movq	%rax, %rdx
	subq	%r8, %rdx
	cmpq	$15, %rdx
	jbe	LBB0_12
## %bb.31:
	movd	%r10d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, (%rbx)
	movdqu	(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, (%rax)
	movdqu	16(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rbx)
	movdqu	16(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rax)
	movdqu	32(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 32(%rbx)
	movdqu	32(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 32(%rax)
	movdqu	48(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 48(%rbx)
	movdqu	48(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 48(%rax)
	movdqu	64(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 64(%rbx)
	movdqu	64(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 64(%rax)
	movdqu	80(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 80(%rbx)
	movdqu	80(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 80(%rax)
	movdqu	96(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 96(%rbx)
	movdqu	96(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 96(%rax)
	movdqu	112(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 112(%rbx)
	movdqu	112(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 112(%rax)
	movdqu	128(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 128(%rbx)
	movdqu	128(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 128(%rax)
	movdqu	144(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 144(%rbx)
	movdqu	144(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 144(%rax)
	movdqu	160(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 160(%rbx)
	movdqu	160(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 160(%rax)
	movdqu	176(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 176(%rbx)
	movdqu	176(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 176(%rax)
	movdqu	192(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 192(%rbx)
	movdqu	192(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 192(%rax)
	movdqu	208(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 208(%rbx)
	movdqu	208(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 208(%rax)
	movdqu	224(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 224(%rbx)
	movdqu	224(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 224(%rax)
	movdqu	240(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 240(%rbx)
	movdqu	240(%r8), %xmm1
	pmulld	%xmm0, %xmm1
	movdqu	%xmm1, 240(%rax)
	jmp	LBB0_14
LBB0_12:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx), %esi
	imull	%r10d, %esi
	movl	%esi, (%rbx,%rdx)
	movl	(%r8,%rdx), %esi
	imull	%r10d, %esi
	movl	%esi, (%rax,%rdx)
	movl	4(%rcx,%rdx), %esi
	imull	%r10d, %esi
	movl	%esi, 4(%rbx,%rdx)
	movl	4(%r8,%rdx), %esi
	imull	%r10d, %esi
	movl	%esi, 4(%rax,%rdx)
	addq	$8, %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STORED_Q,4,2               ## @MAX_STORED_Q
	.comm	_CFACTOR_Y444,4,2               ## @CFACTOR_Y444
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Underestimated required buffer size.\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.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, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x7
	mov	x20, x6
	mov	x26, x5
	mov	x27, x4
	stp	x3, x0, [sp, #80]               ; 16-byte Folded Spill
	mov	x21, x2
	mov	x23, x1
	ldr	x25, [x0, #8]
	mov	x0, x7
	bl	_av_log2
	ldr	w8, [x25]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	ldr	x8, [x25, #80]
	cbz	x8, LBB0_4
LBB0_2:
	ldp	x8, x9, [x25, #8]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x25, #4]
	ldr	w9, [x23, #16]
	cmp	w9, #0
	cset	w9, eq
	eor	w8, w8, w9
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldr	x8, [x25, #80]
	cbnz	x8, LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _MAX_STORED_Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_STORED_Q@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_24
; %bb.5:
	sbfiz	x9, x20, #3, #32
	ldp	x8, x10, [x25, #8]
	add	x8, x8, x9
	add	x9, x10, x9
LBB0_6:
	ldr	x15, [x8]
	ldr	x16, [x9]
LBB0_7:
	ldr	w8, [x25, #56]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.8:
	stp	x16, x15, [sp, #24]             ; 16-byte Folded Spill
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	mov	x24, #0
	mov	w28, #0
	add	w8, w0, #2
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	sub	w8, w0, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	lsl	w8, w27, #3
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	lsl	w8, w27, #4
	lsl	w4, w26, #4
	stp	w8, w4, [sp, #56]               ; 8-byte Folded Spill
	str	x23, [sp, #64]                  ; 8-byte Folded Spill
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x21
	mov	x21, x19
	sub	w19, w24, #1
	cmp	w19, #2
	cset	w8, lo
	ldr	w27, [sp, #72]                  ; 4-byte Folded Reload
	cmp	w19, #1
	ldr	x13, [sp, #88]                  ; 8-byte Folded Reload
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x25, #60]
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	add	w27, w10, w9
Lloh3:
	adrp	x10, _CFACTOR_Y444@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CFACTOR_Y444@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w5, [x13]
	mov	w22, #4
	ldr	w3, [sp, #56]                   ; 4-byte Folded Reload
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x13]
	asr	w5, w9, #1
	mov	w22, #2
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x10, [x23]
	ldr	w9, [x9, x24, lsl #2]
	ldr	w11, [x25]
	mul	w20, w11, w9
	ldr	x10, [x10, x24, lsl #3]
	mul	w12, w20, w4
	ldr	w14, [sp, #76]                  ; 4-byte Folded Reload
	mul	w9, w9, w14
	add	x9, x10, w9, sxtw
	add	x9, x9, w12, sxtw
	add	x23, x9, w3, sxtw #2
	ldr	w9, [x13, #4]
	sdiv	w6, w9, w11
	ldr	x9, [x25, #64]
	ldr	w7, [x9]
	cmp	x24, #2
	b.hi	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x25, #76]
	stp	w22, w8, [sp, #8]
	stp	w9, w21, [sp]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	bl	_get_slice_data
	ldr	x8, [x25, #64]
	ldr	w5, [x8]
	cmp	w19, #2
	b.hs	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25, #72]
	stp	w21, w8, [sp]
	mov	x19, x21
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	bl	_get_alpha_data
	ldr	x8, [x25, #64]
	ldr	w3, [x8]
	mov	x0, x25
	mov	x21, x26
	mov	x1, x26
	mov	x2, x19
	ldr	x4, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_encode_alpha_plane
	mov	x20, x0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	mov	x3, x20
	mov	x4, x21
	mov	x6, x22
	mov	x7, x27
	bl	_encode_slice_plane
	mov	x20, x0
	mov	x19, x21
	mov	x21, x26
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	w20, [x8, x24, lsl #2]
	mov	x0, x21
	bl	_put_bits_left
	tbnz	x0, #63, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w28, w20, w28
	add	x24, x24, #1
	ldrsw	x8, [x25, #56]
	cmp	x24, x8
	ldr	w4, [sp, #60]                   ; 4-byte Folded Reload
	b.lt	LBB0_9
	b	LBB0_23
LBB0_21:
	mov	w28, #0
	b	LBB0_23
LBB0_22:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh13:
	ldr	w28, [x8]
LBB0_23:
	mov	x0, x28
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_24:
	ldp	x15, x16, [x25, #24]
	ldp	x9, x8, [x25, #40]
	sub	x10, x16, x15
	sub	x11, x15, x9
	sub	x12, x8, x15
	sub	x13, x16, x9
	sub	x14, x16, x8
	cmp	x10, #16
	ccmp	x11, #16, #0, hs
	ccmp	x12, #16, #0, hs
	ccmp	x13, #16, #0, hs
	ccmp	x14, #15, #0, hs
	b.hi	LBB0_27
; %bb.25:
	mov	x10, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x10]
	mul	w11, w11, w20
	str	w11, [x15, x10]
	ldr	w11, [x8, x10]
	mul	w11, w11, w20
	str	w11, [x16, x10]
	add	x10, x10, #4
	cmp	x10, #256
	b.ne	LBB0_26
	b	LBB0_7
LBB0_27:
	dup.4s	v0, w20
	ldr	q1, [x9]
	mul.4s	v1, v1, v0
	str	q1, [x15]
	ldr	q1, [x8]
	mul.4s	v1, v1, v0
	str	q1, [x16]
	ldr	q1, [x9, #16]
	mul.4s	v1, v1, v0
	str	q1, [x15, #16]
	ldr	q1, [x8, #16]
	mul.4s	v1, v1, v0
	str	q1, [x16, #16]
	ldr	q1, [x9, #32]
	mul.4s	v1, v1, v0
	str	q1, [x15, #32]
	ldr	q1, [x8, #32]
	mul.4s	v1, v1, v0
	str	q1, [x16, #32]
	ldr	q1, [x9, #48]
	mul.4s	v1, v1, v0
	str	q1, [x15, #48]
	ldr	q1, [x8, #48]
	mul.4s	v1, v1, v0
	str	q1, [x16, #48]
	ldr	q1, [x9, #64]
	mul.4s	v1, v1, v0
	str	q1, [x15, #64]
	ldr	q1, [x8, #64]
	mul.4s	v1, v1, v0
	str	q1, [x16, #64]
	ldr	q1, [x9, #80]
	mul.4s	v1, v1, v0
	str	q1, [x15, #80]
	ldr	q1, [x8, #80]
	mul.4s	v1, v1, v0
	str	q1, [x16, #80]
	ldr	q1, [x9, #96]
	mul.4s	v1, v1, v0
	str	q1, [x15, #96]
	ldr	q1, [x8, #96]
	mul.4s	v1, v1, v0
	str	q1, [x16, #96]
	ldr	q1, [x9, #112]
	mul.4s	v1, v1, v0
	str	q1, [x15, #112]
	ldr	q1, [x8, #112]
	mul.4s	v1, v1, v0
	str	q1, [x16, #112]
	ldr	q1, [x9, #128]
	mul.4s	v1, v1, v0
	str	q1, [x15, #128]
	ldr	q1, [x8, #128]
	mul.4s	v1, v1, v0
	str	q1, [x16, #128]
	ldr	q1, [x9, #144]
	mul.4s	v1, v1, v0
	str	q1, [x15, #144]
	ldr	q1, [x8, #144]
	mul.4s	v1, v1, v0
	str	q1, [x16, #144]
	ldr	q1, [x9, #160]
	mul.4s	v1, v1, v0
	str	q1, [x15, #160]
	ldr	q1, [x8, #160]
	mul.4s	v1, v1, v0
	str	q1, [x16, #160]
	ldr	q1, [x9, #176]
	mul.4s	v1, v1, v0
	str	q1, [x15, #176]
	ldr	q1, [x8, #176]
	mul.4s	v1, v1, v0
	str	q1, [x16, #176]
	ldr	q1, [x9, #192]
	mul.4s	v1, v1, v0
	str	q1, [x15, #192]
	ldr	q1, [x8, #192]
	mul.4s	v1, v1, v0
	str	q1, [x16, #192]
	ldr	q1, [x9, #208]
	mul.4s	v1, v1, v0
	str	q1, [x15, #208]
	ldr	q1, [x8, #208]
	mul.4s	v1, v1, v0
	str	q1, [x16, #208]
	ldr	q1, [x9, #224]
	mul.4s	v1, v1, v0
	str	q1, [x15, #224]
	ldr	q1, [x8, #224]
	mul.4s	v1, v1, v0
	str	q1, [x16, #224]
	ldr	q1, [x9, #240]
	mul.4s	v1, v1, v0
	str	q1, [x15, #240]
	ldr	q1, [x8, #240]
	mul.4s	v0, v1, v0
	str	q0, [x16, #240]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STORED_Q,4,2               ; @MAX_STORED_Q
	.comm	_CFACTOR_Y444,4,2               ; @CFACTOR_Y444
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Underestimated required buffer size.\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_encode_slice
.subsections_via_symbols
