	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_quantized_coeffs_elem0
_init_quantized_coeffs_elem0:           ## @init_quantized_coeffs_elem0
	.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	$24, %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, %r14
	movq	%rsi, %rdi
	callq	_get_bits_left
	movl	$-1, %ecx
	cmpl	$16, %eax
	jl	LBB0_16
## %bb.1:
	movq	_vlc_tab_level@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_qdm2_get_vlc
	movl	%eax, %r12d
	movl	%eax, (%r14)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r9d, %r12d
	cmpl	$7, %r13d
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%r13d, %r15d
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$16, %eax
	jl	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	_vlc_tab_run@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_qdm2_get_vlc
	movl	%eax, %r14d
	leal	(%r14,%r15), %r13d
	incl	%r13d
	cmpl	$7, %r13d
	jg	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$16, %eax
	jl	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_vlc_tab_diff@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_qdm2_get_se_vlc
	movl	%eax, %r9d
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movslq	%r15d, %r8
	movl	$1, %r10d
	movl	$1, %ecx
	cmpl	$2, %r14d
	cmovgel	%r14d, %r10d
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r9,%r9), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r8,4), %r11
	movl	%r10d, %r15d
	andl	$-2, %r15d
	negq	%r15
	movl	$1, %ecx
	movl	%ebx, %esi
	movl	%r9d, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edi, %eax
	cltd
	idivl	%r14d
	addl	%r12d, %eax
	movl	%eax, -4(%r11,%rcx,4)
	movl	%esi, %eax
	cltd
	idivl	%r14d
	addl	%r12d, %eax
	movl	%eax, (%r11,%rcx,4)
	addl	%ebx, %edi
	addl	%ebx, %esi
	leaq	(%r15,%rcx), %rax
	addq	$2, %rax
	addq	$2, %rcx
	cmpq	$1, %rax
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r10b
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, %eax
	imull	%ecx, %eax
	cltd
	idivl	%r14d
	addl	%r12d, %eax
	addq	%rcx, %r8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r8,4)
	jmp	LBB0_2
LBB0_15:
	movl	$-1, %ecx
	jmp	LBB0_16
LBB0_12:
	xorl	%ecx, %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vlc_tab_level,4,2              ## @vlc_tab_level
	.comm	_vlc_tab_run,4,2                ## @vlc_tab_run
	.comm	_vlc_tab_diff,4,2               ## @vlc_tab_diff
	.no_dead_strip	_init_quantized_coeffs_elem0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_quantized_coeffs_elem0
_init_quantized_coeffs_elem0:           ; @init_quantized_coeffs_elem0
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_get_bits_left
	cmp	w0, #16
	b.ge	LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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_3:
Lloh0:
	adrp	x1, _vlc_tab_level@GOTPAGE
Lloh1:
	ldr	x1, [x1, _vlc_tab_level@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #2
	bl	_qdm2_get_vlc
	mov	x21, x0
	mov	w28, #0
	mov	x25, x20
	str	w0, [x25], #8
Lloh2:
	adrp	x22, _vlc_tab_run@GOTPAGE
Lloh3:
	ldr	x22, [x22, _vlc_tab_run@GOTPAGEOFF]
Lloh4:
	adrp	x23, _vlc_tab_diff@GOTPAGE
Lloh5:
	ldr	x23, [x23, _vlc_tab_diff@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w0, w21
	mov	x28, x26
	cmp	w26, #7
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #16
	b.lt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #1
	bl	_qdm2_get_vlc
	add	w27, w0, #1
	add	w26, w27, w28
	cmp	w26, #7
	b.gt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #16
	b.lt	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	w2, #2
	bl	_qdm2_get_se_vlc
	tbnz	w24, #31, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x9, w28
	cmp	w27, #1
	csinc	w8, w27, wzr, gt
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w10, #1
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #0
	and	x11, x8, #0x7ffffffc
	orr	x10, x11, #0x1
	lsl	w13, w0, #2
	lsl	w14, w0, #1
	add	w15, w14, w0
	mov	x16, x11
	add	x17, x25, x9, lsl #2
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w1, w0, w12
	add	w2, w14, w12
	add	w3, w15, w12
	add	w12, w13, w12
	sdiv	w1, w1, w27
	sdiv	w2, w2, w27
	sdiv	w3, w3, w27
	add	w1, w1, w21
	add	w2, w2, w21
	add	w3, w3, w21
	stp	w1, w2, [x17, #-4]
	sdiv	w1, w12, w27
	add	w1, w1, w21
	stp	w3, w1, [x17, #4]
	add	x17, x17, #16
	subs	x16, x16, #4
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x11, x8
	b.eq	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	w11, w0, w10
	add	x9, x10, x9
	add	x9, x20, x9, lsl #2
	sub	x8, x8, x10
	add	x8, x8, #1
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	w10, w11, w27
	add	w10, w10, w21
	str	w10, [x9], #4
	add	w11, w11, w0
	subs	x8, x8, #1
	b.ne	LBB0_15
	b	LBB0_4
LBB0_16:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vlc_tab_level,4,2              ; @vlc_tab_level
	.comm	_vlc_tab_run,4,2                ; @vlc_tab_run
	.comm	_vlc_tab_diff,4,2               ; @vlc_tab_diff
	.no_dead_strip	_init_quantized_coeffs_elem0
.subsections_via_symbols
