	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_gainc_npoints
_decode_gainc_npoints:                  ## @decode_gainc_npoints
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	(%rsi), %r13
	movl	$2, %esi
	callq	_get_bits
	xorl	%edi, %edi
	cmpl	$3, %eax
	ja	LBB0_41
## %bb.1:
	movslq	%ebx, %r14
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.3:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	(%r13,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
	jmp	LBB0_9
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.7:
	movl	%r15d, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_gain_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13,%r14,8), %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.11:
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.12:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_gain_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13), %rcx
	addl	(%rcx,%rbx,4), %eax
	andl	$7, %eax
	movq	(%r13,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_13
	jmp	LBB0_9
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.16:
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.17:
	movq	(%r13), %rax
	movq	(%r13,%r14,8), %rcx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	cmpl	$8, %r15d
	jb	LBB0_37
## %bb.18:
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_37
## %bb.19:
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rdx
	jae	LBB0_31
## %bb.20:
	xorl	%edx, %edx
	jmp	LBB0_33
LBB0_21:
	movq	_gain_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13,%r14,8), %rcx
	movl	%eax, (%rcx)
	cmpl	$2, %r15d
	jl	LBB0_9
## %bb.22:
	movl	%r15d, %r15d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	_gain_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movq	(%r13,%r14,8), %rcx
	addl	-4(%rcx,%rbx,4), %eax
	andl	$7, %eax
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_23
LBB0_9:
	xorl	%edi, %edi
LBB0_41:
	movl	%edi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
	xorl	%edi, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.26:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bitsz
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	(%r13,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	cmpl	$8, %eax
	jge	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	incq	%rbx
	xorl	%edi, %edi
	cmpq	%rbx, %r15
	jne	LBB0_27
	jmp	LBB0_41
LBB0_30:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_41
LBB0_31:
	andq	$-4, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rdx,4), %xmm0
	movups	16(%rax,%rdx,4), %xmm1
	movups	%xmm0, (%rcx,%rdx,4)
	movups	%xmm1, 16(%rcx,%rdx,4)
	movups	32(%rax,%rdx,4), %xmm0
	movups	48(%rax,%rdx,4), %xmm1
	movups	%xmm0, 32(%rcx,%rdx,4)
	movups	%xmm1, 48(%rcx,%rdx,4)
	movups	64(%rax,%rdx,4), %xmm0
	movups	80(%rax,%rdx,4), %xmm1
	movups	%xmm0, 64(%rcx,%rdx,4)
	movups	%xmm1, 80(%rcx,%rdx,4)
	movups	96(%rax,%rdx,4), %xmm0
	movups	112(%rax,%rdx,4), %xmm1
	movups	%xmm0, 96(%rcx,%rdx,4)
	movups	%xmm1, 112(%rcx,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rdi
	jne	LBB0_32
LBB0_33:
	testq	%r9, %r9
	je	LBB0_36
## %bb.34:
	leaq	(%rcx,%rdx,4), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rbx), %xmm0
	movups	(%rdx,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_35
LBB0_36:
	xorl	%edi, %edi
	cmpq	%r8, %rsi
	je	LBB0_41
LBB0_37:
	movq	%rsi, %rdx
	notq	%rdx
	addq	%r8, %rdx
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_38
LBB0_39:
	xorl	%edi, %edi
	cmpq	$3, %rdx
	jb	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rsi,4)
	movl	4(%rax,%rsi,4), %edx
	movl	%edx, 4(%rcx,%rsi,4)
	movl	8(%rax,%rsi,4), %edx
	movl	%edx, 8(%rcx,%rsi,4)
	movl	12(%rax,%rsi,4), %edx
	movl	%edx, 12(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_40
	jmp	LBB0_41
	.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_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_gain_vlc_tabs,8,3              ## @gain_vlc_tabs
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_gainc_npoints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_gainc_npoints
_decode_gainc_npoints:                  ; @decode_gainc_npoints
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x23, [x1]
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #3
	b.hi	LBB0_28
; %bb.1:
	sxtw	x24, w21
	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:
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.3:
	mov	x21, #0
	mov	w8, w20
	lsl	x20, x8, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	ldr	x8, [x23, x24, lsl #3]
	str	w0, [x8, x21]
	add	x21, x21, #4
	cmp	x20, x21
	b.ne	LBB0_4
	b	LBB0_28
LBB0_5:
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.6:
	mov	x21, #0
	mov	w8, w20
	lsl	x20, x8, #2
Lloh2:
	adrp	x22, _gain_vlc_tabs@GOTPAGE
Lloh3:
	ldr	x22, [x22, _gain_vlc_tabs@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x23, x24, lsl #3]
	str	w0, [x8, x21]
	add	x21, x21, #4
	cmp	x20, x21
	b.ne	LBB0_7
	b	LBB0_28
LBB0_8:
	cbz	w21, LBB0_21
; %bb.9:
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.10:
	mov	x21, #0
	mov	w8, w20
	lsl	x20, x8, #2
Lloh4:
	adrp	x22, _gain_vlc_tabs@GOTPAGE
Lloh5:
	ldr	x22, [x22, _gain_vlc_tabs@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x23]
	ldr	w8, [x8, x21]
	add	w8, w8, w0
	and	w8, w8, #0x7
	ldr	x9, [x23, x24, lsl #3]
	str	w8, [x9, x21]
	add	x21, x21, #4
	cmp	x20, x21
	b.ne	LBB0_11
	b	LBB0_28
LBB0_12:
	cbz	w21, LBB0_24
; %bb.13:
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.14:
	mov	x8, #0
	ldr	x11, [x23]
	ldr	x10, [x23, x24, lsl #3]
	mov	w9, w20
	cmp	w20, #16
	b.lo	LBB0_19
; %bb.15:
	sub	x12, x10, x11
	cmp	x12, #64
	b.lo	LBB0_19
; %bb.16:
	and	x8, x9, #0xfffffff0
	add	x12, x10, #32
	add	x13, x11, #32
	mov	x14, x8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_17
; %bb.18:
	cmp	x8, x9
	b.eq	LBB0_28
LBB0_19:
	lsl	x12, x8, #2
	add	x11, x11, x12
	add	x10, x10, x12
	sub	x8, x9, x8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11], #4
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_20
	b	LBB0_28
LBB0_21:
Lloh6:
	adrp	x21, _gain_vlc_tabs@GOTPAGE
Lloh7:
	ldr	x21, [x21, _gain_vlc_tabs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x23, x24, lsl #3]
	str	w0, [x8]
	cmp	w20, #2
	b.lt	LBB0_28
; %bb.22:
	mov	x22, #0
	mov	w8, w20
	lsl	x8, x8, #2
	sub	x20, x8, #4
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_get_vlc2
	ldr	x8, [x23, x24, lsl #3]
	add	x8, x8, x22
	ldr	w9, [x8]
	add	w9, w9, w0
	and	w9, w9, #0x7
	str	w9, [x8, #4]
	add	x22, x22, #4
	cmp	x20, x22
	b.ne	LBB0_23
	b	LBB0_28
LBB0_24:
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	mov	x21, x0
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x22, x0
	mov	x25, #0
	mov	w8, w20
	lsl	x20, x8, #2
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_bitsz
	add	w8, w0, w22
	ldr	x9, [x23, x24, lsl #3]
	str	w8, [x9, x25]
	cmp	w8, #8
	b.ge	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #0
	add	x25, x25, #4
	cmp	x20, x25
	b.ne	LBB0_26
	b	LBB0_29
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_30:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_gain_vlc_tabs,8,3              ; @gain_vlc_tabs
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_gainc_npoints
.subsections_via_symbols
