	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function metasound_read_bitstream
_metasound_read_bitstream:              ## @metasound_read_bitstream
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	32(%rsi), %rax
	movq	40(%rsi), %r13
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_init_get_bits8
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_47
## %bb.1:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	$0, (%r12)
	cmpq	$0, 8(%r12)
	jle	LBB0_46
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	(%r12), %rbx
	incq	%rbx
	movq	%rbx, (%r12)
	cmpq	8(%r12), %rbx
	jge	LBB0_46
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_15 Depth 4
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
                                        ##     Child Loop BB0_26 Depth 2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
                                        ##       Child Loop BB0_37 Depth 3
                                        ##     Child Loop BB0_42 Depth 2
	movq	24(%r12), %r14
	movq	_TWINVQ_WINDOW_TYPE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_get_bits
	imulq	$104, %rbx, %rbx
	movl	%eax, (%r14,%rbx)
	cmpl	$9, %eax
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ff_twinvq_wtype_to_ftype_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r12), %rcx
	imulq	$104, (%r12), %rdx
	movslq	(%rcx,%rdx), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	(%r14,%rbx), %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, 8(%r14,%rbx)
	movq	24(%r13), %rax
	leaq	(%rcx,%rcx,2), %rdx
	movslq	(%rax,%rdx,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_TWINVQ_FT_SHORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %r15
	cmpl	$0, 16(%r12)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %r12d                ## 4-byte Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	96(%r14,%rbx), %edx
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_read_cb_data
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	jle	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$88, %r15
	xorl	%r13d, %r13d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r13
	je	LBB0_18
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_15 Depth 4
	testl	%edi, %edi
	jle	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rsi), %rcx
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=3
	incq	%r12
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	cmpq	%rdi, %r12
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_15 Depth 4
	leaq	(%rcx,%rcx,2), %rdx
	cmpl	$0, 4(%rax,%rdx,4)
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ##       Parent Loop BB0_13 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	leaq	-44(%rbp), %rdi
	callq	_get_bits
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	24(%r14), %rax
	movq	(%rsi), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movslq	4(%rax,%rdx,4), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$80, %r15
	xorl	%r12d, %r12d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r12
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r12
	je	LBB0_23
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
	testl	%edi, %edi
	leaq	-44(%rbp), %r14
	jle	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	callq	_get_bits1
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rdi
	jne	LBB0_21
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	jle	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$72, %r15
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_39
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$56, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=2
	incq	%r12
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r12
	je	LBB0_39
LBB0_35:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_37 Depth 3
	movl	(%r13), %esi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_get_bits
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movl	4(%r13), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	-8(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	cmpl	$0, 8(%r13)
	jle	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	12(%r13), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	-16(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_37
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	jle	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$72, %r15
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	-136(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %rax
	je	LBB0_33
LBB0_26:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_28 Depth 3
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	(%r15), %rcx
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%rax, (%rcx,%rbx,8)
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	movq	_TWINVQ_SUB_GAIN_BITS@GOTPCREL(%rip), %r12
	jle	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_26 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	-8(%r15), %rcx
	movq	%rax, (%rcx,%r13)
	addq	$8, %r13
	decq	%rbx
	jne	LBB0_28
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	-44(%rbp), %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rbx,%rax), %edx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movl	$3, %ecx
	callq	_read_cb_data
	testl	%r12d, %r12d
	jle	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r14
	addq	$24, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	20(%r13), %esi
	movq	%r15, %rdi
	callq	_get_bits
	movq	-8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_42
LBB0_43:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_get_bits_count
	testb	$3, %al
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_get_bits_count
	andl	$3, %eax
	movl	$4, %esi
	subl	%eax, %esi
	movq	%r15, %rdi
	callq	_skip_bits
	jmp	LBB0_45
LBB0_46:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	jmp	LBB0_47
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_47:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWINVQ_WINDOW_TYPE_BITS,4,2    ## @TWINVQ_WINDOW_TYPE_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid window type, broken sample?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_twinvq_wtype_to_ftype_table,8,3 ## @ff_twinvq_wtype_to_ftype_table
	.comm	_TWINVQ_FT_SHORT,8,3            ## @TWINVQ_FT_SHORT
	.comm	_TWINVQ_FT_LONG,8,3             ## @TWINVQ_FT_LONG
	.comm	_TWINVQ_GAIN_BITS,4,2           ## @TWINVQ_GAIN_BITS
	.comm	_TWINVQ_SUB_GAIN_BITS,4,2       ## @TWINVQ_SUB_GAIN_BITS
	.no_dead_strip	_metasound_read_bitstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function metasound_read_bitstream
_metasound_read_bitstream:              ; @metasound_read_bitstream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x1
	mov	x19, x0
	ldp	x8, x21, [x1, #32]
	ldr	w26, [x8]
	add	x0, sp, #76
	mov	x1, x2
	mov	x2, x3
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_46
; %bb.1:
	str	x19, [sp]                       ; 8-byte Folded Spill
	str	xzr, [x24]
	ldr	x8, [x24, #8]
	cmp	x8, #1
	b.lt	LBB0_44
; %bb.2:
	mov	x20, #0
	lsl	x25, x26, #3
	mov	w28, #104
	mov	w19, #12
	str	x26, [sp, #64]                  ; 8-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	str	x25, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x24]
	add	x20, x8, #1
	str	x20, [x24]
	cmp	x20, x9
	b.ge	LBB0_44
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
                                        ;     Child Loop BB0_35 Depth 2
                                        ;       Child Loop BB0_37 Depth 3
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
                                        ;       Child Loop BB0_31 Depth 3
                                        ;     Child Loop BB0_41 Depth 2
	ldr	x22, [x24, #24]
Lloh0:
	adrp	x8, _TWINVQ_WINDOW_TYPE_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWINVQ_WINDOW_TYPE_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #76
	bl	_get_bits
	mul	x8, x20, x28
	str	w0, [x22, x8]
	cmp	w0, #9
	b.ge	LBB0_45
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #24]
	ldr	x9, [x24]
	mul	x9, x9, x28
	ldrsw	x8, [x8, x9]
Lloh3:
	adrp	x9, _ff_twinvq_wtype_to_ftype_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_twinvq_wtype_to_ftype_table@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x3, [x9, x8, lsl #3]
	madd	x25, x20, x28, x22
	str	x3, [x25, #8]!
	ldr	x8, [x21, #24]
	mul	x9, x3, x19
	ldrsw	x8, [x8, x9]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _TWINVQ_FT_SHORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TWINVQ_FT_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x3, x8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #16]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #76
	mov	w1, #2
	bl	_get_bits
	ldr	x3, [x25]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	and	x27, x8, #0xffffffff
	stp	x20, x22, [sp, #16]             ; 16-byte Folded Spill
	madd	x8, x20, x28, x22
	ldr	w2, [x8, #96]
	add	x1, sp, #76
	mov	x0, x24
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_read_cb_data
	cmp	w26, #1
	b.lt	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #104
	mov	x28, #0
	ldp	x22, x9, [sp, #16]              ; 16-byte Folded Reload
	madd	x8, x22, x8, x9
	add	x24, x8, #88
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
	cmp	x28, x26
	b.eq	LBB0_17
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
	cmp	w27, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x23, #0
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x23, x23, #1
	cmp	x23, x27
	b.eq	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_16 Depth 4
	madd	x10, x9, x19, x8
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x20, #0
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ;       Parent Loop BB0_14 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	madd	x8, x9, x19, x8
	ldr	w1, [x8, #8]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x24]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	madd	x10, x9, x19, x8
	ldrsw	x10, [x10, #4]
	cmp	x20, x10
	b.lt	LBB0_16
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	mov	w28, #104
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	madd	x8, x22, x28, x8
	add	x22, x8, #80
	lsl	x23, x27, #2
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x20, x20, #1
	cmp	x20, x26
	b.eq	LBB0_22
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	cmp	w27, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x24, #0
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x0, sp, #76
	bl	_get_bits1
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	str	w0, [x8, x24]
	add	x24, x24, #4
	cmp	x23, x24
	b.ne	LBB0_21
	b	LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
Lloh9:
	adrp	x9, _TWINVQ_FT_LONG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TWINVQ_FT_LONG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	b.lt	LBB0_38
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	madd	x8, x8, x28, x9
	add	x22, x8, #72
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
Lloh12:
	adrp	x24, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
LBB0_25:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x24]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x22]
	str	x0, [x8, x20]
	add	x20, x20, #8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x8, x20
	b.ne	LBB0_25
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	mov	w28, #104
	b.lt	LBB0_38
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	madd	x8, x8, x28, x9
	add	x23, x8, #56
	add	x24, x8, #48
	add	x26, x8, #40
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x20, x20, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x20, x8
	b.eq	LBB0_38
LBB0_29:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_31 Depth 3
	ldr	w1, [x21]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x23]
	lsl	x22, x20, #3
	str	x0, [x8, x22]
	ldr	w1, [x21, #4]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x24]
	str	x0, [x8, x22]
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x22, #0
LBB0_31:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_29 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x21, #12]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x26]
	ldr	x8, [x8, x20, lsl #3]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x21, #8]
	cmp	x22, x8
	b.lt	LBB0_31
	b	LBB0_28
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	b.lt	LBB0_38
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #104
	mov	x28, #0
	mov	x24, #0
	ldp	x9, x10, [sp, #16]              ; 16-byte Folded Reload
	madd	x8, x9, x8, x10
	add	x9, x8, #72
	add	x20, x8, #64
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	lsl	x8, x8, #3
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
Lloh14:
	adrp	x8, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=2
	add	x24, x24, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x28, x28, x8
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	cmp	x24, x23
Lloh16:
	adrp	x8, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
	b.eq	LBB0_26
LBB0_35:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_37 Depth 3
	ldr	w1, [x8]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x0, [x8, x24, lsl #3]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w8, #1
Lloh18:
	adrp	x22, _TWINVQ_SUB_GAIN_BITS@GOTPAGE
Lloh19:
	ldr	x22, [x22, _TWINVQ_SUB_GAIN_BITS@GOTPAGEOFF]
	b.lt	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	mov	x26, x27
	mov	x23, x28
LBB0_37:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_35 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x22]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x20]
	str	x0, [x8, x23]
	add	x23, x23, #8
	subs	x26, x26, #1
	b.ne	LBB0_37
	b	LBB0_34
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
Lloh20:
	adrp	x9, _TWINVQ_FT_LONG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TWINVQ_FT_LONG@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	ldp	x24, x22, [sp, #8]              ; 16-byte Folded Reload
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.ne	LBB0_42
; %bb.39:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x22, x28, x23
	ldr	w2, [x8, #32]
	add	x1, sp, #76
	mov	x0, x24
	mov	w3, #3
	bl	_read_cb_data
	cmp	w26, #1
	b.lt	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	madd	x8, x22, x28, x23
	add	x22, x8, #24
	add	x23, x8, #16
LBB0_41:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21, #16]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x22]
	str	x0, [x8, x20]
	ldr	w1, [x21, #20]
	add	x0, sp, #76
	bl	_get_bits
	ldr	x8, [x23]
	str	x0, [x8, x20]
	add	x20, x20, #8
	cmp	x25, x20
	b.ne	LBB0_41
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #76
	bl	_get_bits_count
	tst	w0, #0x3
	b.eq	LBB0_3
; %bb.43:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #76
	bl	_get_bits_count
	and	w8, w0, #0x3
	mov	w9, #4
	sub	w1, w9, w8
	add	x0, sp, #76
	bl	_skip_bits
	b	LBB0_3
LBB0_44:
	add	x0, sp, #76
	bl	_get_bits_count
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	b	LBB0_46
LBB0_45:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_av_log
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_46:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TWINVQ_WINDOW_TYPE_BITS,4,2    ; @TWINVQ_WINDOW_TYPE_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid window type, broken sample?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_twinvq_wtype_to_ftype_table,8,3 ; @ff_twinvq_wtype_to_ftype_table
	.comm	_TWINVQ_FT_SHORT,8,3            ; @TWINVQ_FT_SHORT
	.comm	_TWINVQ_FT_LONG,8,3             ; @TWINVQ_FT_LONG
	.comm	_TWINVQ_GAIN_BITS,4,2           ; @TWINVQ_GAIN_BITS
	.comm	_TWINVQ_SUB_GAIN_BITS,4,2       ; @TWINVQ_SUB_GAIN_BITS
	.no_dead_strip	_metasound_read_bitstream
.subsections_via_symbols
