	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_subpacket_9
_process_subpacket_9:                   ## @process_subpacket_9
	.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
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	shll	$3, %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits
	movq	_coeff_per_sb_for_avg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rbx
	movl	24(%r13), %edi
	callq	_QDM2_SB_USED
	cltq
	movl	-4(%rbx,%rax,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.4:
	incq	%rcx
	movl	8(%r13), %eax
	movl	$1, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_vlc_tab_level@GOTPCREL(%rip), %rsi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	testl	%eax, %eax
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_qdm2_get_vlc
	movl	%eax, %r14d
	movq	16(%r13), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	%r14d, (%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=3
	addl	%r11d, %r14d
	cmpl	$7, %r15d
	jge	LBB0_17
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_13 Depth 4
	movl	%r15d, %ebx
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movq	_vlc_tab_run@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_qdm2_get_vlc
	movl	%eax, %r12d
	movq	_vlc_tab_diff@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_qdm2_get_se_vlc
	leal	(%r12,%rbx), %r15d
	incl	%r15d
	cmpl	$7, %r15d
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%eax, %r11d
	testl	%r12d, %r12d
	js	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	incl	%r12d
	movq	16(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r9
	movl	$1, %r8d
	movl	$1, %ebx
	cmpl	$2, %r12d
	cmovgel	%r12d, %r8d
	jl	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	leal	(%r11,%r11), %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r9,4), %r13
	addq	$4, %r13
	movl	%r8d, %r10d
	andl	$-2, %r10d
	negq	%r10
	movl	$1, %ebx
	movl	%ecx, %esi
	movl	%r11d, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_8 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%edi, %eax
	cltd
	idivl	%r12d
	addl	%r14d, %eax
	movl	%eax, -4(%r13,%rbx,4)
	movl	%esi, %eax
	cltd
	idivl	%r12d
	addl	%r14d, %eax
	movl	%eax, (%r13,%rbx,4)
	addl	%ecx, %edi
	addl	%ecx, %esi
	leaq	(%r10,%rbx), %rax
	addq	$2, %rax
	addq	$2, %rbx
	cmpq	$1, %rax
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=3
	testb	$1, %r8b
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%r11d, %eax
	imull	%ebx, %eax
	cltd
	idivl	%r12d
	addl	%r14d, %eax
	addq	%rbx, %r9
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r9,4)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	movq	_vlc_tab_level@GOTPCREL(%rip), %rsi
	jl	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	%rdi, %rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rdi
	jne	LBB0_5
	jmp	LBB0_2
LBB0_9:
	movl	$-1, %eax
	jmp	LBB0_22
LBB0_1:
	movl	8(%r13), %eax
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_3
## %bb.20:
	movq	16(%r13), %rcx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rsi), %rsi
	movups	%xmm0, 16(%rsi)
	movups	%xmm0, (%rsi)
	incq	%rdx
	movslq	8(%r13), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_21
	jmp	LBB0_22
LBB0_3:
	xorl	%eax, %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coeff_per_sb_for_avg,8,3       ## @coeff_per_sb_for_avg
	.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	_process_subpacket_9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_subpacket_9
_process_subpacket_9:                   ; @process_subpacket_9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x8, [x1]
	ldp	w8, w1, [x8]
	lsl	w2, w8, #3
	add	x0, sp, #12
	bl	_init_get_bits
Lloh0:
	adrp	x8, _coeff_per_sb_for_avg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coeff_per_sb_for_avg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x20, [x8, x9, lsl #3]
	ldr	w0, [x19, #24]
	bl	_QDM2_SB_USED
	sub	w8, w0, #1
	ldr	w8, [x20, w8, sxtw #2]
	cmp	w8, #0
	b.le	LBB0_19
; %bb.1:
	add	x9, x8, #1
	ldr	w8, [x19, #8]
	mov	w26, #1
Lloh3:
	adrp	x1, _vlc_tab_level@GOTPAGE
Lloh4:
	ldr	x1, [x1, _vlc_tab_level@GOTPAGEOFF]
Lloh5:
	adrp	x21, _vlc_tab_run@GOTPAGE
Lloh6:
	ldr	x21, [x21, _vlc_tab_run@GOTPAGEOFF]
Lloh7:
	adrp	x22, _vlc_tab_diff@GOTPAGE
Lloh8:
	ldr	x22, [x22, _vlc_tab_diff@GOTPAGEOFF]
	str	x9, [sp]                        ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	add	x0, sp, #12
	mov	x25, x1
	mov	w2, #0
	mov	w3, #2
	bl	_qdm2_get_vlc
	mov	x23, x0
	mov	w20, #0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x8, [x8, x26, lsl #3]
	str	w0, [x8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=3
	add	w23, w0, w23
	mov	x20, x8
	cmp	w8, #7
	b.ge	LBB0_15
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	add	x0, sp, #12
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	bl	_qdm2_get_vlc
	mov	x24, x0
	add	w28, w0, #1
	add	x1, sp, #12
	mov	x0, x22
	mov	w2, #2
	bl	_qdm2_get_se_vlc
	add	w8, w28, w20
	cmp	w8, #7
	b.gt	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	tbnz	w24, #31, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x27, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	sxtw	x11, w20
	cmp	w28, #1
	csinc	w10, w28, wzr, gt
	cmp	w10, #4
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	w12, #1
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	w14, #0
	and	x13, x10, #0x7ffffffc
	orr	x12, x13, #0x1
	lsl	w15, w0, #2
	lsl	w16, w0, #1
	add	w17, w16, w0
	add	x1, x9, x11, lsl #2
	add	x1, x1, #8
	mov	x2, x13
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_6 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	w3, w0, w14
	add	w4, w16, w14
	add	w5, w17, w14
	add	w14, w15, w14
	sdiv	w3, w3, w28
	sdiv	w4, w4, w28
	sdiv	w5, w5, w28
	add	w3, w3, w23
	add	w4, w4, w23
	add	w5, w5, w23
	stp	w3, w4, [x1, #-4]
	sdiv	w3, w14, w28
	add	w3, w3, w23
	stp	w5, w3, [x1, #4]
	add	x1, x1, #16
	subs	x2, x2, #4
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=3
	cmp	x13, x10
	b.eq	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=3
	mul	w13, w0, w12
	add	x11, x12, x11
	add	x9, x9, x11, lsl #2
	sub	x10, x10, x12
	add	x10, x10, #1
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_6 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w11, w13, w28
	add	w11, w11, w23
	str	w11, [x9], #4
	add	w13, w13, w0
	subs	x10, x10, #1
	b.ne	LBB0_14
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x19, #8]
	cmp	x27, x8
	mov	x1, x25
	b.lt	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	cmp	x26, x9
	b.ne	LBB0_2
	b	LBB0_20
LBB0_18:
	mov	w0, #-1
	b	LBB0_24
LBB0_19:
	ldr	w8, [x19, #8]
LBB0_20:
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.21:
	mov	x8, #0
	ldr	x9, [x19, #16]
	movi.2d	v0, #0000000000000000
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	ldr	x10, [x10]
	stp	q0, q0, [x10]
	add	x8, x8, #1
	ldrsw	x10, [x19, #8]
	cmp	x8, x10
	b.lt	LBB0_22
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_coeff_per_sb_for_avg,8,3       ; @coeff_per_sb_for_avg
	.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	_process_subpacket_9
.subsections_via_symbols
