	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decode_array_0000
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_array_0000:                     ## @decode_array_0000
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	$0, (%rcx)
	movl	%r8d, %edi
	movl	$5, %esi
	callq	_FFMIN
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	leaq	4(%rbx), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_get_rice_ook
	movl	%eax, (%r15,%rbx,4)
	addl	%eax, (%r12)
	incq	%rbx
	movl	%r13d, %edi
	movl	$5, %esi
	callq	_FFMIN
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movslq	(%r12), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_log2
	incl	%eax
	movl	%eax, 4(%r12)
	cmpl	$23, %eax
	jg	LBB0_31
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	shlq	$32, %r14
	leal	(%rbx,%rbx), %r13d
	addl	$2, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$64, %esi
	callq	_FFMIN
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r12), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_rice_ook
	movl	%eax, (%r15,%rbx,4)
	addl	(%r12), %eax
	movl	%eax, (%r12)
	incq	%rbx
	cltd
	idivl	%r13d
	movl	%eax, %edi
	callq	_av_log2
	incl	%eax
	movl	%eax, 4(%r12)
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	addq	%rcx, %r14
	addl	$2, %r13d
	cmpl	$23, %eax
	jle	LBB0_6
	jmp	LBB0_31
LBB0_8:
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_12
## %bb.9:
	movl	4(%r12), %eax
	leal	6(%rax), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	$1, %r13d
	testl	%eax, %eax
	cmovel	%eax, %ebx
	leal	7(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	sarq	$32, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movl	%ecx, %ebx
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_12
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r12), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_rice_ook
	movl	%r14d, %ecx
	movl	%eax, (%r15,%rcx,4)
	subl	-256(%r15,%r14,4), %eax
	addl	(%r12), %eax
	movl	%eax, (%r12)
	cmpl	%ebx, %eax
	jae	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r12), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %ecx
	shrl	%ebx
	cmpl	$1, %edx
	leal	-1(%rcx), %edx
	movl	%ebx, %ecx
	cmovel	%esi, %ecx
	shrl	%r13d
	cmpl	%ecx, %eax
	jb	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%edx, 4(%r12)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %ecx
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$128, %ebx
	cmpl	%r13d, %eax
	jb	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r12), %esi
	cmpl	$25, %esi
	movl	$24, %edx
	cmovgel	%esi, %edx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, %edx
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	incl	%esi
	addl	%r13d, %r13d
	testl	%ecx, %ecx
	leal	(%rcx,%rcx), %ecx
                                        ## kill: def $ecx killed $ecx def $rcx
	cmovel	%ebx, %ecx
	cmpl	%r13d, %eax
	jae	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%esi, 4(%r12)
	jmp	LBB0_27
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_31
## %bb.13:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	cmpl	$8, %ecx
	jae	LBB0_15
## %bb.14:
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_30:
	incl	%edx
	movl	%edx, 4(%r12)
	jmp	LBB0_31
LBB0_15:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	(,%rax,4), %rdx
	andq	$-32, %rdx
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	pcmpeqd	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rsi), %xmm2
	movdqu	16(%r15,%rsi), %xmm3
	movdqa	%xmm2, %xmm4
	psrad	$1, %xmm4
	movdqa	%xmm3, %xmm5
	psrad	$1, %xmm5
	pand	%xmm0, %xmm2
	pand	%xmm0, %xmm3
	paddd	%xmm1, %xmm2
	pxor	%xmm4, %xmm2
	paddd	%xmm1, %xmm3
	pxor	%xmm5, %xmm3
	psubd	%xmm1, %xmm2
	psubd	%xmm1, %xmm3
	movdqu	%xmm2, (%r15,%rsi)
	movdqu	%xmm3, 16(%r15,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_16
## %bb.17:
	cmpq	%rax, %rcx
	je	LBB0_31
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rcx,4), %edx
	movl	%edx, %esi
	sarl	%esi
	andl	$1, %edx
	decl	%edx
	xorl	%esi, %edx
	incl	%edx
	movl	%edx, (%r15,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_18
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_array_0000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_array_0000
_decode_array_0000:                     ; @decode_array_0000
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x0
	str	wzr, [x3]
	mov	x0, x4
	mov	w1, #5
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	add	x23, x22, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #10
	bl	_get_rice_ook
	str	w0, [x19, x24, lsl #2]
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	add	x24, x24, #1
	mov	x0, x20
	mov	w1, #5
	bl	_FFMIN
	cmp	x24, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x24, #0
LBB0_4:
	ldrsw	x8, [x21]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_av_log2
	add	w8, w0, #1
	str	w8, [x21, #4]
	cmp	w8, #23
	b.gt	LBB0_30
; %bb.5:
	add	x23, x22, #4
	lsl	x25, x24, #32
	lsl	w8, w24, #1
	add	w26, w8, #2
	mov	x27, #4294967296
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #64
	bl	_FFMIN
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_get_rice_ook
	str	w0, [x19, x24, lsl #2]
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	add	x24, x24, #1
	sdiv	w0, w8, w26
	bl	_av_log2
	add	w8, w0, #1
	str	w8, [x21, #4]
	add	x25, x25, x27
	add	w26, w26, #2
	cmp	w8, #23
	b.le	LBB0_6
	b	LBB0_30
LBB0_8:
	cmp	w24, w20
	b.ge	LBB0_21
; %bb.9:
	ldr	w8, [x21, #4]
	add	w9, w8, #6
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w8, #0
	csel	w26, wzr, w9, eq
	add	w8, w8, #7
	lsl	w24, w10, w8
	asr	x25, x25, #32
	mov	w27, #24
	mov	w28, #128
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	cmp	w25, w20
	b.eq	LBB0_21
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x23
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_31
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_get_rice_ook
	str	w0, [x19, w25, uxtw #2]
	add	x8, x19, x25, lsl #2
	ldur	w8, [x8, #-256]
	ldr	w9, [x21]
	sub	w8, w0, w8
	add	w8, w9, w8
	str	w8, [x21]
	cmp	w8, w26
	b.hs	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x21, #4]
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	w9, w9, #1
	lsr	w26, w26, #1
	csel	w10, wzr, w26, eq
	lsr	w24, w24, #1
	cmp	w8, w10
	b.lo	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w9, [x21, #4]
	mov	x26, x10
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w24
	b.lo	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x21, #4]
	cmp	w9, #24
	csel	w10, w9, w27, gt
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, w9
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	w9, w9, #1
	lsl	w24, w24, #1
	lsl	w11, w26, #1
	cmp	w26, #0
	csel	w26, w28, w11, eq
	cmp	w8, w24
	b.hs	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w9, [x21, #4]
	b	LBB0_10
LBB0_21:
	cmp	w20, #1
	b.lt	LBB0_30
; %bb.22:
	mov	w8, w20
	cmp	w20, #16
	b.hs	LBB0_25
; %bb.23:
	mov	x9, #0
	b	LBB0_28
LBB0_24:
	add	w8, w10, #1
	str	w8, [x21, #4]
	b	LBB0_30
LBB0_25:
	and	x9, x8, #0xfffffff0
	add	x10, x19, #32
	movi.4s	v0, #1
	movi.2d	v1, #0xffffffffffffffff
	mov	x11, x9
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	sshr.4s	v6, v2, #1
	sshr.4s	v7, v3, #1
	sshr.4s	v16, v4, #1
	sshr.4s	v17, v5, #1
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	and.16b	v5, v5, v0
	add.4s	v2, v2, v1
	add.4s	v3, v3, v1
	add.4s	v4, v4, v1
	add.4s	v5, v5, v1
	eor.16b	v2, v2, v6
	eor.16b	v3, v3, v7
	eor.16b	v4, v4, v16
	eor.16b	v5, v5, v17
	add.4s	v2, v2, v0
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	stp	q2, q3, [x10, #-32]
	add.4s	v2, v5, v0
	stp	q4, q2, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_26
; %bb.27:
	cmp	x9, x8
	b.eq	LBB0_30
LBB0_28:
	add	x10, x19, x9, lsl #2
	sub	x8, x8, x9
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10]
	and	w11, w9, #0x1
	sub	w11, w11, #1
	eor	w9, w11, w9, asr #1
	add	w9, w9, #1
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_29
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_30
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_array_0000
.subsections_via_symbols
