	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_bits
_assign_bits:                           ## @assign_bits
	.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
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	$1, %r14d
	movl	$1, %edx
	callq	_init_quantization_noise
	movl	(%r15), %r13d
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	movb	$1, %bl
	movl	$1, %r14d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	cmpq	%rcx, %rax
	jle	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_USED_1ABITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	sete	%al
	testb	%al, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_snr_fudge@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_init_quantization_noise
	movl	%eax, %r12d
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jg	LBB0_3
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_init_quantization_noise
	movl	(%r15), %r13d
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	$0, %ebx
	cmpq	%rcx, %rax
	jg	LBB0_2
LBB0_6:
	cmpq	%rcx, %rax
	jle	LBB0_8
LBB0_11:
	movl	%r14d, %ecx
LBB0_12:
	movq	_snr_fudge@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$2, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jb	LBB0_15
## %bb.13:
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	sarl	%r12d
	movl	%r13d, %ebx
	subl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_init_quantization_noise
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	cmovlel	%ebx, %r13d
	cmpl	$3, %r14d
	movl	%r12d, %r14d
	ja	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_init_quantization_noise
	movl	%r13d, %ebx
LBB0_16:
	movl	%ebx, (%r15)
	cmpl	24(%r15), %ebx
	jle	LBB0_18
## %bb.17:
	movl	%ebx, 24(%r15)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ebx
	movq	_USED_26ABITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r13d
	movq	_snr_fudge@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_init_quantization_noise
	movl	%eax, %r12d
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jle	LBB0_8
## %bb.10:
	movl	%r14d, %ecx
	movl	%ebx, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_USED_1ABITS,4,2                ## @USED_1ABITS
	.comm	_snr_fudge,4,2                  ## @snr_fudge
	.comm	_USED_26ABITS,4,2               ## @USED_26ABITS
	.no_dead_strip	_assign_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_bits
_assign_bits:                           ; @assign_bits
	.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	x19, x0
	ldr	w1, [x0]
	mov	w23, #1
	mov	w2, #1
	bl	_init_quantization_noise
	ldr	w20, [x19]
	ldp	x8, x9, [x19, #8]
Lloh0:
	adrp	x24, _snr_fudge@GOTPAGE
Lloh1:
	ldr	x24, [x24, _snr_fudge@GOTPAGEOFF]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.1:
	mov	w22, #0
	mov	w21, #1
Lloh2:
	adrp	x25, _USED_1ABITS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _USED_1ABITS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.le	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	cset	w8, eq
	and	w8, w21, w8
	tbnz	w8, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	add	w20, w8, w20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_init_quantization_noise
	mov	x22, x0
	ldp	x8, x9, [x19, #8]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_init_quantization_noise
	mov	w21, #0
	mov	w23, #0
	ldr	w20, [x19]
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.gt	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
	cmp	x8, x9
	b.le	LBB0_9
; %bb.8:
	mov	x21, x23
	b	LBB0_13
LBB0_9:
Lloh4:
	adrp	x21, _USED_26ABITS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _USED_26ABITS@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x25, x20
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x24]
	sub	w20, w25, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_init_quantization_noise
	mov	x22, x0
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.12:
	mov	x21, x23
	mov	x20, x25
LBB0_13:
	ldr	w23, [x24]
	cmp	w23, #2
	b.lo	LBB0_15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	asr	w24, w23, #1
	sub	w22, w20, w24
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_init_quantization_noise
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	csel	w20, w20, w22, gt
	cmp	w23, #3
	mov	x23, x24
	b.hi	LBB0_14
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_init_quantization_noise
	mov	x25, x20
LBB0_16:
	str	w25, [x19]
	ldr	w8, [x19, #24]
	cmp	w25, w8
	b.le	LBB0_18
; %bb.17:
	str	w25, [x19, #24]
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USED_1ABITS,4,2                ; @USED_1ABITS
	.comm	_snr_fudge,4,2                  ; @snr_fudge
	.comm	_USED_26ABITS,4,2               ; @USED_26ABITS
	.no_dead_strip	_assign_bits
.subsections_via_symbols
