	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_channel_sf_idx
_decode_channel_sf_idx:                 ## @decode_channel_sf_idx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rsi), %rbx
	movl	$2, %esi
	callq	_get_bits
	xorl	%edi, %edi
	cmpl	$3, %eax
	ja	LBB0_59
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rcx,8), %r15
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_2:
	cmpl	$0, (%r12)
	jle	LBB0_59
## %bb.3:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.7:
	movq	_sf_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$0, (%r12)
	movl	$0, %edi
	jle	LBB0_59
## %bb.8:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r12
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12,8), %edx
	movl	4(%r15,%r12,8), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13), %rcx
	addl	(%rcx,%rbx,4), %eax
	andl	$63, %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_5
LBB0_11:
	movq	_sf_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.12:
	movslq	%ebx, %rbx
	movl	(%r15,%rbx,8), %edx
	movl	4(%r15,%rbx,8), %esi
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addl	(%rcx), %eax
	andl	$63, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	%eax, (%rdx)
	cmpl	$2, (%r12)
	jl	LBB0_5
## %bb.13:
	movq	%r13, %r14
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rcx,%r12,4), %r13d
	subl	-8(%rcx,%r12,4), %r13d
	movl	(%r15,%rbx,8), %edx
	movl	4(%r15,%rbx,8), %esi
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addl	%r13d, %eax
	addl	-8(%rcx,%r12,4), %eax
	andl	$63, %eax
	movl	%eax, -4(%rcx,%r12,4)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	incq	%r12
	jmp	LBB0_14
LBB0_16:
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.17:
	cmpl	$0, (%r12)
	jle	LBB0_59
## %bb.18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r12), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_19
	jmp	LBB0_59
LBB0_20:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$3, %eax
	jne	LBB0_39
## %bb.21:
	movq	(%r15), %rsi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_UNPACK_SF_VQ_SHAPE
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.22:
	movl	%r14d, %r12d
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %r15d
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %ecx
	addl	$57, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	andl	$63, %ecx
	movq	(%r15), %rax
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_23
LBB0_24:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpl	(%r12), %r14d
	jge	LBB0_5
## %bb.25:
	addl	$57, -56(%rbp)                  ## 4-byte Folded Spill
	movslq	%r14d, %rbx
	movq	(%r15), %rcx
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %r15d
	addl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_bitsz
	addl	%r15d, %eax
	andl	$63, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
	jmp	LBB0_5
LBB0_28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_UNPACK_SF_VQ_SHAPE
	cmpl	$0, (%r12)
	movl	$0, %edi
	jle	LBB0_59
## %bb.29:
	addl	$4, %ebx
	movslq	%ebx, %r14
	xorl	%ebx, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %edx
	movl	4(%r15,%r14,8), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %r12d
	movl	%eax, %edi
	movl	$4, %esi
	callq	_sign_extend
	addl	%r12d, %eax
	andl	$63, %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_30
	jmp	LBB0_5
LBB0_32:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	_sf_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	$3, %ebx
	jne	LBB0_48
## %bb.33:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_UNPACK_SF_VQ_SHAPE
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	addl	$56, %ebx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	addl	%ebx, %ecx
	andl	$63, %ecx
	movl	%ecx, (%rax)
	cmpl	$2, (%r12)
	jl	LBB0_5
## %bb.34:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addl	$4, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r15
	movl	$1, %r14d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	andl	$63, %ebx
	movl	(%r13,%r15,8), %edx
	movl	4(%r13,%r15,8), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	movl	$4, %esi
	callq	_sign_extend
	addl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %ecx
	addl	%ebx, %ecx
	andl	$63, %ecx
	movl	%ecx, (%rax,%r14,4)
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_35
LBB0_5:
	xorl	%edi, %edi
LBB0_59:
	movl	%edi, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	(%r12), %ecx
	cmpl	%ecx, %edx
	jg	LBB0_54
## %bb.40:
	cmpl	$7, %r14d
	je	LBB0_54
## %bb.41:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	movl	$0, %edi
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	jle	LBB0_45
## %bb.42:
	movq	%r13, %r14
	movq	%r15, %r13
	movl	%edx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_43
## %bb.44:
	movl	(%r12), %ecx
	movq	%r13, %r15
	movq	%r14, %r13
	xorl	%edi, %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
LBB0_45:
	cmpl	%ecx, %edx
	jge	LBB0_56
## %bb.46:
	movslq	%edx, %rbx
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bitsz
	addl	%r14d, %eax
	andl	$63, %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_47
	jmp	LBB0_51
LBB0_48:
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	cmpl	$2, (%r12)
	jl	LBB0_55
## %bb.49:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movslq	%r14d, %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %edx
	movl	4(%r15,%r14,8), %esi
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addl	-4(%rcx,%rbx,4), %eax
	andl	$63, %eax
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_50
LBB0_51:
	xorl	%edi, %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_56
LBB0_54:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_59
LBB0_55:
	xorl	%edi, %edi
LBB0_56:
	testl	%ebx, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_59
## %bb.57:
	cmpl	$2, %ebx
	jg	LBB0_59
## %bb.58:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_subtract_sf_weights            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_sf_vlc_tabs,8,3                ## @sf_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SF mode 1: invalid parameters!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_channel_sf_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_channel_sf_idx
_decode_channel_sf_idx:                 ; @decode_channel_sf_idx
	.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	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x24, [x1, #8]
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #3
	b.hi	LBB0_32
; %bb.1:
	add	x20, x24, w23, sxtw #3
	mov	w8, w0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	ldr	x8, [x20]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_32
LBB0_5:
	cbz	w23, LBB0_18
; %bb.6:
Lloh2:
	adrp	x8, _sf_vlc_tabs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sf_vlc_tabs@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.7:
	mov	x22, #0
	add	x23, x23, w0, sxtw #3
	add	x25, x23, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x24]
	lsl	x9, x22, #2
	ldr	w8, [x8, x9]
	add	w8, w8, w0
	and	w8, w8, #0x3f
	ldr	x10, [x20]
	str	w8, [x10, x9]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_8
	b	LBB0_32
LBB0_9:
Lloh5:
	adrp	x8, _sf_vlc_tabs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sf_vlc_tabs@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x8]
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	mov	x22, x0
	cbz	w23, LBB0_25
; %bb.10:
	add	x22, x25, w22, sxtw #3
	mov	x23, x22
	ldr	w1, [x23, #4]!
	ldr	w2, [x22]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x24]
	ldr	w9, [x8]
	add	w9, w9, w0
	and	w9, w9, #0x3f
	ldr	x10, [x20]
	str	w9, [x10]
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_32
; %bb.11:
	mov	x25, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x26, x25, #2
	add	x8, x8, x26
	ldp	w8, w9, [x8]
	sub	w27, w9, w8
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x20]
	add	x8, x8, x26
	ldr	w9, [x8]
	add	w10, w27, w0
	add	w9, w10, w9
	and	w9, w9, #0x3f
	str	w9, [x8, #4]
	add	x8, x25, #2
	ldrsw	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	add	x25, x25, #1
	b	LBB0_12
LBB0_14:
	cbz	w23, LBB0_28
; %bb.15:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.16:
	mov	x8, #0
	ldr	x9, [x24]
	ldr	x10, [x20]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x19]
	cmp	x8, x11
	b.lt	LBB0_17
	b	LBB0_32
LBB0_18:
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #3
	b.ne	LBB0_34
; %bb.19:
	ldr	x1, [x20]
	ldr	w2, [x19]
	mov	x0, x21
	bl	_UNPACK_SF_VQ_SHAPE
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
	mov	x23, x0
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	mov	x22, x0
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	mov	x24, x0
	cmp	w23, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x25, #0
	mov	w9, w23
	ldr	x8, [x20]
	lsl	x26, x9, #2
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x8, x25]
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	add	w8, w27, w0
	add	w8, w8, #57
	and	w9, w8, #0x3f
	ldr	x8, [x20]
	str	w9, [x8, x25]
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_21
LBB0_22:
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_32
; %bb.23:
	add	w24, w24, #57
	sxtw	x23, w23
	ldr	x8, [x20]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	lsl	x25, x23, #2
	ldr	w8, [x8, x25]
	add	w26, w24, w8
	mov	x0, x21
	mov	x1, x22
	bl	_get_bitsz
	mov	x8, x0
	mov	w0, #0
	add	w8, w26, w8
	and	w9, w8, #0x3f
	ldr	x8, [x20]
	str	w9, [x8, x25]
	add	x23, x23, #1
	ldrsw	x9, [x19]
	cmp	x23, x9
	b.lt	LBB0_24
	b	LBB0_33
LBB0_25:
	ldr	x1, [x20]
	ldr	w2, [x19]
	mov	x0, x21
	bl	_UNPACK_SF_VQ_SHAPE
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.26:
	mov	x23, #0
	add	x8, x25, w22, sxtw #3
	add	x22, x8, #36
	add	x24, x8, #32
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w2, [x24]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x20]
	lsl	x25, x23, #2
	ldr	w26, [x8, x25]
	mov	w1, #4
	bl	_sign_extend
	add	w8, w0, w26
	and	w8, w8, #0x3f
	ldr	x9, [x20]
	str	w8, [x9, x25]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_27
	b	LBB0_32
LBB0_28:
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	mov	x23, x0
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
Lloh8:
	adrp	x8, _sf_vlc_tabs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sf_vlc_tabs@GOTPAGEOFF]
Lloh10:
	ldr	x24, [x8]
	sxtw	x25, w0
	cmp	w23, #3
	b.ne	LBB0_43
; %bb.29:
	ldr	x1, [x20]
	ldr	w2, [x19]
	mov	x0, x21
	bl	_UNPACK_SF_VQ_SHAPE
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	add	w8, w0, #56
	ldr	x9, [x20]
	ldr	w10, [x9]
	add	w10, w10, w8
	and	w10, w10, #0x3f
	str	w10, [x9]
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_32
; %bb.30:
	add	x9, x24, x25, lsl #3
	add	x22, x9, #36
	add	x23, x9, #32
	mov	w24, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	and	w25, w8, #0x3f
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	mov	w1, #4
	bl	_sign_extend
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	lsl	x10, x24, #2
	ldr	w11, [x9, x10]
	add	w8, w8, w25
	add	w11, w11, w8
	and	w11, w11, #0x3f
	str	w11, [x9, x10]
	add	x24, x24, #1
	ldrsw	x9, [x19]
	cmp	x24, x9
	b.lt	LBB0_31
	b	LBB0_33
LBB0_32:
	mov	w0, #0
LBB0_33:
	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_34:
	mov	x23, x0
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
	mov	x26, x0
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
	mov	x24, x0
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	ldr	w8, [x19]
	cmp	w26, w8
	b.gt	LBB0_49
; %bb.35:
	cmp	w24, #7
	b.eq	LBB0_49
; %bb.36:
	mov	x25, x0
	cmp	w26, #1
	b.lt	LBB0_40
; %bb.37:
	mov	x27, #0
	mov	w8, w26
	lsl	x28, x8, #2
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	ldr	x8, [x20]
	str	w0, [x8, x27]
	add	x27, x27, #4
	cmp	x28, x27
	b.ne	LBB0_38
; %bb.39:
	ldr	w8, [x19]
LBB0_40:
	cmp	w26, w8
	b.ge	LBB0_46
; %bb.41:
	sxtw	x26, w26
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_get_bitsz
	add	w8, w0, w25
	and	w8, w8, #0x3f
	ldr	x9, [x20]
	str	w8, [x9, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.lt	LBB0_42
	b	LBB0_46
LBB0_43:
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_46
; %bb.44:
	mov	x26, #0
	add	x24, x24, x25, lsl #3
	add	x25, x24, #4
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w2, [x24]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x20]
	add	x8, x8, x26, lsl #2
	ldr	w9, [x8]
	add	w9, w9, w0
	and	w9, w9, #0x3f
	str	w9, [x8, #4]
	ldrsw	x8, [x19]
	add	x9, x26, #2
	add	x26, x26, #1
	cmp	x9, x8
	b.lt	LBB0_45
LBB0_46:
	mov	w0, #0
	cbz	w23, LBB0_33
; %bb.47:
	cmp	w23, #2
	b.gt	LBB0_33
; %bb.48:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	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
	b	_subtract_sf_weights
LBB0_49:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_33
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_sf_vlc_tabs,8,3                ; @sf_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SF mode 1: invalid parameters!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_channel_sf_idx
.subsections_via_symbols
