	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_quantization_noise
_init_quantization_noise:               ## @init_quantization_noise
	.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
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_USED_26ABITS@GOTPCREL(%rip), %rax
	movq	_USED_1ABITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	imulq	%rax, %rbx
	imulq	$56, %rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
	movl	88(%r15), %ecx
	imull	$333, %eax, %edx                ## imm = 0x14D
	addl	%edx, %ecx
	addl	$132, %ecx
	movl	%ecx, (%r15)
	cmpq	$0, 80(%r15)
	je	LBB0_2
## %bb.1:
	addl	$72, %ecx
	movl	%ecx, (%r15)
LBB0_2:
	testl	%eax, %eax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	leaq	(,%r13,4), %rdx
	addq	72(%r15), %rdx
	movl	$32, %esi
	callq	_set_best_abits_code
	addl	%eax, (%r15)
	incq	%r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%r12d, %r12d
	movq	_USED_1ABITS@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	movl	$26, (%rdi,%r12,4)
	movl	(%rdx), %eax
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=2
	notl	%eax
	andl	%eax, %esi
	incq	%r12
	cmpq	$32, %r12
	je	LBB0_28
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%r12,4), %eax
	movl	(%rcx,%r12,4), %ecx
	addl	%r14d, %ecx
	subl	%ecx, %eax
	cmpl	$1312, %eax                     ## imm = 0x520
	jge	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$222, %eax
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=2
	addl	$-222, %eax
	movl	%eax, %edi
	movl	%esi, %ebx
	movl	$69000000, %esi                 ## imm = 0x41CDB40
	callq	_mul32
	movl	%ebx, %esi
	movq	_USED_1ABITS@GOTPCREL(%rip), %rdx
	addl	$8, %eax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %edi
	movl	%esi, %ebx
	movl	$106000000, %esi                ## imm = 0x6516E80
	callq	_mul32
	movl	%ebx, %esi
	movq	_USED_1ABITS@GOTPCREL(%rip), %rdx
	addl	$2, %eax
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	movl	%eax, (%rdi,%r12,4)
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rdx), %eax
	movq	_USED_26ABITS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$-140, %eax
	jae	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$0, (%rdi,%r12,4)
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, (%rdi,%r12,4)
	movq	_USED_26ABITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_7:
	testl	%eax, %eax
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r13
	jle	LBB0_14
## %bb.8:
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$4, %rbx
	cmpq	$128, %rbx
	je	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r15), %rax
	movq	(%rax,%r12,8), %rax
	cmpl	$-1, (%rax,%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx), %esi
	movq	(%rcx,%r12,8), %rax
	movl	(%rax,%rbx), %edx
	movq	56(%r15), %rax
	movq	(%rax,%r12,8), %rcx
	addq	%rbx, %rcx
	movq	%r15, %rdi
	callq	_calc_one_scale
	movq	64(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx,%rbx)
	jmp	LBB0_12
LBB0_14:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	movq	%r15, %rdi
	callq	_quantize_adpcm
	movq	%r15, %rdi
	callq	_quantize_pcm
	movl	(%r13), %eax
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rbx
	imull	(%rbx), %eax
	imull	$56, %eax, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r13), %edx
	imull	(%rbx), %edx
	shll	$3, %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, 4(%r15)
	jle	LBB0_16
## %bb.29:
	movq	24(%r15), %rax
	xorl	%ebx, %ebx
	movq	_bit_consumption@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_30 Depth=1
	incq	%rbx
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rbx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_34
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movq	%rbx, %rcx
	imulq	%rdx, %rcx
	imulq	$56, %rcx, %rdx
	addq	%r12, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	(%r14), %rcx
	addq	(%rcx,%rdi,8), %rsi
LBB0_40:                                ##   in Loop: Header=BB0_31 Depth=2
	incq	%r12
	cmpq	$32, %r12
	je	LBB0_41
LBB0_31:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx,8), %rcx
	movslq	(%rcx,%r12,4), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jg	LBB0_39
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	48(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rsi, %r13
	movl	(%rax,%r12,4), %esi
	imulq	$56, %rdi, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdx
	addq	$-56, %rdx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_accumulate_huff_bit_consumption
	movq	%r13, %rsi
	movq	(%r14), %rcx
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	movslq	(%rdx,%r12,4), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	addq	%rcx, -8(%rdi,%rdx,8)
	jmp	LBB0_40
LBB0_34:
	testl	%ecx, %ecx
	jle	LBB0_37
## %bb.35:
	imulq	$56, %rdx, %r14
	shlq	$3, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_set_best_code
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	incq	%rbx
	movslq	4(%r15), %rax
	addq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%r14, %r12
	cmpq	%rax, %rbx
	jl	LBB0_36
	jmp	LBB0_37
LBB0_16:
	xorl	%esi, %esi
LBB0_37:
	addl	%esi, (%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.42:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_USED_26ABITS,4,2               ## @USED_26ABITS
	.comm	_USED_1ABITS,4,2                ## @USED_1ABITS
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_DCA_CODE_BOOKS,4,2             ## @DCA_CODE_BOOKS
	.comm	_bit_consumption,8,3            ## @bit_consumption
	.no_dead_strip	_init_quantization_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_quantization_noise
_init_quantization_noise:               ; @init_quantization_noise
	.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
	sub	sp, sp, #32
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _USED_26ABITS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _USED_26ABITS@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh5:
	adrp	x27, _USED_1ABITS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _USED_1ABITS@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w20, w9, w8
Lloh7:
	adrp	x25, _MAX_CHANNELS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh9:
	adrp	x9, _DCA_CODE_BOOKS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DCA_CODE_BOOKS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	mul	x8, x9, x8
	mov	w9, #56
	mul	x9, x8, x9
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x9
	lsl	x9, x8, #3
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x8, x9, x8
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	w8, [x0, #4]
	mov	w9, #333
	ldr	w10, [x0, #88]
	madd	w9, w8, w9, w10
	add	w9, w9, #132
	str	w9, [x0]
	ldr	x10, [x0, #80]
	cbz	x10, LBB0_2
; %bb.1:
	add	w9, w9, #72
	str	w9, [x19]
LBB0_2:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.3:
	mov	x25, #0
	mov	w21, #26
	mov	w26, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #72]
	add	x2, x8, x25, lsl #2
	mov	w1, #32
	bl	_set_best_abits_code
	ldp	w9, w8, [x19]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w9, w9, w0
	str	w9, [x19]
	add	x25, x25, #1
	cmp	x25, x8
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x22, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x25, lsl #3]
	str	w21, [x0, x22]
	ldr	w8, [x27]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	bic	w20, w20, w8
	add	x22, x22, #4
	cmp	x22, #128
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x19, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	w8, [x8, x22]
	ldr	w9, [x9, x22]
	add	w9, w9, w24
	sub	w8, w8, w9
	cmp	w8, #1312
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	subs	w0, w8, #222
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w1, #56128
	movk	w1, #1052, lsl #16
	bl	_mul32
	mov	x8, x0
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x25, lsl #3]
	add	w8, w8, #8
	str	w8, [x0, x22]
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	tbnz	w8, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x8
	mov	w1, #28288
	movk	w1, #1617, lsl #16
	bl	_mul32
	mov	x8, x0
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x25, lsl #3]
	add	w8, w8, #2
	str	w8, [x0, x22]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x25, lsl #3]
	cbnz	w23, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	cmn	w8, #140
	b.hs	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	str	wzr, [x0, x22]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x28]
	ldr	w9, [x27]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w26, [x0, x22]
	ldr	w8, [x28]
	b	LBB0_7
LBB0_18:
	cmp	w8, #1
	ldp	x28, x26, [x29, #-104]          ; 16-byte Folded Reload
Lloh16:
	adrp	x25, _MAX_CHANNELS@GOTPAGE
Lloh17:
	ldr	x25, [x25, _MAX_CHANNELS@GOTPAGEOFF]
	b.lt	LBB0_26
; %bb.19:
	mov	x21, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.ge	LBB0_26
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	mov	x22, #0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x22, x22, #4
	cmp	x22, #128
	b.eq	LBB0_20
LBB0_23:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w8, [x8, x22]
	cmn	w8, #1
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x19, #8]
	lsl	x23, x21, #3
	ldr	x8, [x8, x23]
	ldr	w1, [x8, x22]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, x22]
	ldr	x8, [x19, #56]
	ldr	x8, [x8, x23]
	add	x3, x8, x22
	mov	x0, x19
	bl	_calc_one_scale
	ldr	x8, [x19, #64]
	ldr	x8, [x8, x23]
	str	w0, [x8, x22]
	b	LBB0_22
LBB0_25:
	ldp	x28, x26, [x29, #-104]          ; 16-byte Folded Reload
LBB0_26:
	mov	x0, x19
	bl	_quantize_adpcm
	mov	x0, x19
	bl	_quantize_pcm
	ldr	w8, [x25]
Lloh18:
	adrp	x22, _DCA_CODE_BOOKS@GOTPAGE
Lloh19:
	ldr	x22, [x22, _DCA_CODE_BOOKS@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w8, w8, w9
	mov	w21, #56
	mul	w2, w8, w21
	mov	x0, x26
	mov	w1, #0
	bl	_memset
	ldr	w8, [x25]
	ldr	w9, [x22]
	mul	w8, w8, w9
	lsl	w2, w8, #3
	mov	x0, x28
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.27:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x24, _bit_consumption@GOTPAGE
Lloh21:
	ldr	x24, [x24, _bit_consumption@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x19, #4]
	cmp	x22, x9
	ldp	x28, x26, [x29, #-104]          ; 16-byte Folded Reload
	b.ge	LBB0_34
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	mov	x25, #0
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	mul	x9, x22, x9
	madd	x27, x9, x21, x26
	add	x28, x28, x9, lsl #3
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=2
	ldr	x9, [x24]
	ldr	x9, [x9, x0, lsl #3]
	add	x23, x9, x23
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=2
	add	x25, x25, #4
	cmp	x25, #128
	b.eq	LBB0_28
LBB0_32:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8, x22, lsl #3]
	ldr	w9, [x9, x25]
	sxtw	x0, w9
Lloh22:
	adrp	x10, _DCA_CODE_BOOKS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DCA_CODE_BOOKS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w9, w10, #0, ne
	b.gt	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	ldr	x8, [x19, #48]
	lsl	x26, x22, #3
	ldr	x8, [x8, x26]
	ldr	w1, [x8, x25]
	sub	w8, w0, #1
	smaddl	x2, w8, w21, x27
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_accumulate_huff_bit_consumption
	ldr	x9, [x24]
	ldr	x8, [x19, #24]
	ldr	x10, [x8, x26]
	ldrsw	x10, [x10, x25]
	lsl	x10, x10, #3
	ldr	x9, [x9, x10]
	add	x10, x10, x28
	ldur	x11, [x10, #-8]
	add	x9, x11, x9
	stur	x9, [x10, #-8]
	b	LBB0_31
LBB0_34:
	cmp	w9, #1
	b.lt	LBB0_38
; %bb.35:
	mov	x21, #0
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	lsl	x22, x9, #3
	mov	w8, #56
	mul	x24, x9, x8
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x26
	mov	x1, x28
	bl	_set_best_code
	add	x23, x0, x23
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x28, x28, x22
	add	x26, x26, x24
	cmp	x21, x8
	b.lt	LBB0_36
	b	LBB0_38
LBB0_37:
	mov	x23, #0
LBB0_38:
	ldr	w8, [x19]
	add	w8, w8, w23
	str	w8, [x19]
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.39:
	mov	x0, x20
	sub	sp, x29, #80
	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_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_USED_26ABITS,4,2               ; @USED_26ABITS
	.comm	_USED_1ABITS,4,2                ; @USED_1ABITS
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_DCA_CODE_BOOKS,4,2             ; @DCA_CODE_BOOKS
	.comm	_bit_consumption,8,3            ; @bit_consumption
	.no_dead_strip	_init_quantization_noise
.subsections_via_symbols
