	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twinvq_read_bitstream
_twinvq_read_bitstream:                 ## @twinvq_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r15
	movq	8(%rsi), %rax
	movq	16(%rsi), %r13
	movl	(%rax), %eax
	movq	%rax, -56(%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_38
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_skip_bits
	movq	_TWINVQ_WINDOW_TYPE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movl	%eax, (%r15)
	cmpl	$9, %eax
	jl	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_38
LBB0_3:
	movq	_ff_twinvq_wtype_to_ftype_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rcx
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 8(%r15)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	leaq	(%rcx,%rcx,2), %rdx
	movslq	(%rax,%rdx,4), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	96(%r15), %edx
	leaq	-44(%rbp), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_read_cb_data
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_17
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rbx
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	leaq	(%rcx,%rcx,2), %rdx
	cmpl	$0, 4(%rax,%rdx,4)
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_get_bits
	movq	88(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	8(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movslq	4(%rax,%rdx,4), %rdx
	cmpq	%rdx, %r13
	jl	LBB0_9
	jmp	LBB0_10
LBB0_12:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r14
	je	LBB0_17
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_get_bits1
	movq	80(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movq	8(%r15), %rax
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_18
## %bb.24:
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.25:
	xorl	%r14d, %r14d
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	72(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%r14
	cmpq	%r14, %rax
	jne	LBB0_26
LBB0_27:
	testl	%eax, %eax
	jle	LBB0_33
## %bb.28:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_33
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_get_bits
	movq	56(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_get_bits
	movq	48(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	cmpl	$0, 8(%r13)
	jle	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r13), %esi
	movq	%r12, %rdi
	callq	_get_bits
	movq	40(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_31
	jmp	LBB0_32
LBB0_18:
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.19:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	-104(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rbx
	je	LBB0_27
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	72(%r15), %rcx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rax, (%rcx,%rbx,8)
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movq	_TWINVQ_SUB_GAIN_BITS@GOTPCREL(%rip), %rbx
	jle	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	64(%r15), %rcx
	movq	%rax, (%rcx,%r12)
	addq	$8, %r12
	decq	%r13
	jne	LBB0_22
	jmp	LBB0_23
LBB0_33:
	movq	8(%r15), %rax
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_37
## %bb.34:
	movl	32(%r15), %edx
	leaq	-44(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %ecx
	callq	_read_cb_data
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_37
## %bb.35:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	20(%r12), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_36
LBB0_37:
	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
LBB0_38:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$72, %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_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	_twinvq_read_bitstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twinvq_read_bitstream
_twinvq_read_bitstream:                 ; @twinvq_read_bitstream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x28, x1
	mov	x20, x0
	ldp	x8, x21, [x1, #8]
	ldr	x22, [x1]
	ldr	w23, [x8]
	add	x0, sp, #28
	mov	x1, x2
	mov	x2, x3
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_38
; %bb.1:
	add	x0, sp, #28
	mov	w1, #8
	bl	_get_bits
	mov	x1, x0
	add	x0, sp, #28
	bl	_skip_bits
Lloh0:
	adrp	x8, _TWINVQ_WINDOW_TYPE_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWINVQ_WINDOW_TYPE_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #28
	bl	_get_bits
	str	w0, [x22]
	cmp	w0, #9
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_38
LBB0_3:
Lloh11:
	adrp	x8, _ff_twinvq_wtype_to_ftype_table@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ff_twinvq_wtype_to_ftype_table@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x28]
	ldrsw	x9, [x9]
	ldr	x3, [x8, x9, lsl #3]
	str	x3, [x22, #8]
	ldr	x8, [x21, #24]
	mov	w9, #12
	mul	x9, x3, x9
	ldrsw	x8, [x8, x9]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	and	x20, x8, #0xffffffff
	ldr	w2, [x22, #96]
	add	x1, sp, #28
	mov	x0, x28
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_read_cb_data
	cmp	w23, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x25, #0
	mov	w26, #12
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	cmp	x25, x23
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, #0
	ldr	x8, [x21, #24]
	ldr	x9, [x22, #8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x27, x27, #1
	cmp	x27, x20
	b.eq	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	madd	x10, x9, x26, x8
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x19, #0
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	madd	x8, x9, x26, x8
	ldr	w1, [x8, #8]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #88]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x8, [x8, x27, lsl #3]
	str	x0, [x8, x19, lsl #3]
	add	x19, x19, #1
	ldr	x8, [x21, #24]
	ldr	x9, [x22, #8]
	madd	x10, x9, x26, x8
	ldrsw	x10, [x10, #4]
	cmp	x19, x10
	b.lt	LBB0_11
	b	LBB0_8
LBB0_12:
	mov	x19, #0
	lsl	x25, x20, #2
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x19, x19, #1
	cmp	x19, x23
	b.eq	LBB0_17
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x24, #0
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #28
	bl	_get_bits1
	ldr	x8, [x22, #80]
	ldr	x8, [x8, x19, lsl #3]
	str	w0, [x8, x24]
	add	x24, x24, #4
	cmp	x25, x24
	b.ne	LBB0_16
	b	LBB0_13
LBB0_17:
	ldr	x8, [x22, #8]
Lloh14:
	adrp	x24, _TWINVQ_FT_LONG@GOTPAGE
Lloh15:
	ldr	x24, [x24, _TWINVQ_FT_LONG@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.18:
	cmp	w23, #1
	b.lt	LBB0_33
; %bb.19:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	lsl	x20, x23, #3
Lloh16:
	adrp	x24, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh17:
	ldr	x24, [x24, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #72]
	str	x0, [x8, x19]
	add	x19, x19, #8
	cmp	x20, x19
	b.ne	LBB0_20
LBB0_21:
	cmp	w23, #1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
Lloh18:
	adrp	x24, _TWINVQ_FT_LONG@GOTPAGE
Lloh19:
	ldr	x24, [x24, _TWINVQ_FT_LONG@GOTPAGEOFF]
	b.lt	LBB0_33
; %bb.22:
	mov	x20, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x20, x20, #1
	cmp	x20, x23
	b.eq	LBB0_33
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	w1, [x21]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #56]
	lsl	x19, x20, #3
	str	x0, [x8, x19]
	ldr	w1, [x21, #4]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #48]
	str	x0, [x8, x19]
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x19, #0
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21, #12]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #40]
	ldr	x8, [x8, x20, lsl #3]
	str	x0, [x8, x19, lsl #3]
	add	x19, x19, #1
	ldrsw	x8, [x21, #8]
	cmp	x19, x8
	b.lt	LBB0_26
	b	LBB0_23
LBB0_27:
	cmp	w23, #1
	b.lt	LBB0_33
; %bb.28:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	x25, #0
	mov	x27, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x28, x8, #3
Lloh20:
	adrp	x19, _TWINVQ_SUB_GAIN_BITS@GOTPAGE
Lloh21:
	ldr	x19, [x19, _TWINVQ_SUB_GAIN_BITS@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x27, x27, #1
	add	x25, x25, x28
	cmp	x27, x23
	b.eq	LBB0_21
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
Lloh22:
	adrp	x8, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #72]
	str	x0, [x8, x27, lsl #3]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x24, x20
	mov	x26, x25
LBB0_32:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x19]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #64]
	str	x0, [x8, x26]
	add	x26, x26, #8
	subs	x24, x24, #1
	b.ne	LBB0_32
	b	LBB0_29
LBB0_33:
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_37
; %bb.34:
	ldr	w2, [x22, #32]
	add	x1, sp, #28
	mov	x0, x28
	mov	w3, #3
	bl	_read_cb_data
	cmp	w23, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x19, #0
	lsl	x20, x23, #3
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #16]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #24]
	str	x0, [x8, x19]
	ldr	w1, [x21, #20]
	add	x0, sp, #28
	bl	_get_bits
	ldr	x8, [x22, #16]
	str	x0, [x8, x19]
	add	x19, x19, #8
	cmp	x20, x19
	b.ne	LBB0_36
LBB0_37:
	add	x0, sp, #28
	bl	_get_bits_count
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
LBB0_38:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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_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	_twinvq_read_bitstream
.subsections_via_symbols
