	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_scaling_matrices
_decode_scaling_matrices:               ## @decode_scaling_matrices
	.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	%r9, %r15
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
LBB0_3:
	movq	_default_scaling4@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	8(%rcx), %rdx
	movq	_default_scaling8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rsi
	jmp	LBB0_4
LBB0_1:
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	leaq	24(%rcx), %rdx
	leaq	24(%rax), %rsi
LBB0_4:
	movq	(%rcx), %r12
	movq	(%rdx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	_default_scaling4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %r15
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	movq	%r12, %r8
	callq	_decode_scaling_list
	movl	%eax, %r14d
	movq	%rbx, %r12
	leaq	64(%r13), %rbx
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	movq	%r13, %r8
	callq	_decode_scaling_list
	movl	%eax, %r15d
	orl	%r14d, %r15d
	leaq	128(%r13), %rsi
	movq	_default_scaling4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movq	%rbx, %r8
	callq	_decode_scaling_list
	movl	%eax, %r14d
	orl	%r15d, %r14d
	leaq	192(%r13), %r15
	movq	_default_scaling4@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_decode_scaling_list
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	256(%r13), %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movq	%r15, %r8
	callq	_decode_scaling_list
	movl	%eax, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r14d, %ebx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	addq	$320, %r13                      ## imm = 0x140
	movq	_default_scaling4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	callq	_decode_scaling_list
	movl	%eax, %r15d
	orl	%ebx, %r15d
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_10
LBB0_8:
	movq	_default_scaling8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	$64, %edx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_decode_scaling_list
	movl	%eax, %ebx
	orl	%r15d, %ebx
	leaq	768(%r12), %rsi
	movq	_default_scaling8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%r13, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	$64, %edx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_decode_scaling_list
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$3, (%rax)
	jne	LBB0_10
## %bb.9:
	leaq	256(%r12), %rbx
	movq	_default_scaling8@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$64, %edx
	movq	%r12, %r8
	callq	_decode_scaling_list
	orl	%r15d, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	leaq	1024(%r12), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movl	$64, %edx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_decode_scaling_list
	movl	%eax, %r15d
	leaq	512(%r12), %rsi
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movl	$64, %edx
	movq	%rbx, %r8
	callq	_decode_scaling_list
	movl	%eax, %ebx
	orl	%r15d, %ebx
	addq	$1280, %r12                     ## imm = 0x500
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$64, %edx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	callq	_decode_scaling_list
	movl	%eax, %r15d
	orl	%ebx, %r15d
	orl	-80(%rbp), %r15d                ## 4-byte Folded Reload
LBB0_10:
	testl	%r15d, %r15d
	cmovnel	%r15d, %r14d
	jmp	LBB0_11
LBB0_5:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_scaling4,8,3           ## @default_scaling4
	.comm	_default_scaling8,8,3           ## @default_scaling8
	.no_dead_strip	_decode_scaling_matrices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_scaling_matrices
_decode_scaling_matrices:               ; @decode_scaling_matrices
	.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	x20, x5
	mov	x24, x4
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _default_scaling4@GOTPAGE
Lloh1:
	ldr	x25, [x25, _default_scaling4@GOTPAGEOFF]
Lloh2:
	adrp	x10, _default_scaling8@GOTPAGE
Lloh3:
	ldr	x10, [x10, _default_scaling8@GOTPAGEOFF]
	cbz	w3, LBB0_2
LBB0_1:
	ldr	x8, [x25]
	add	x9, x8, #8
	ldr	x10, [x10]
	add	x11, x10, #8
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_1
; %bb.3:
	ldp	x10, x8, [x22, #8]
	add	x9, x8, #24
	add	x11, x10, #24
LBB0_4:
	ldr	x28, [x8]
	ldr	x27, [x9]
	ldr	x26, [x10]
	ldr	x8, [x11]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x21
	bl	_get_bits1
	cbz	x0, LBB0_10
; %bb.5:
	str	x23, [sp]                       ; 8-byte Folded Spill
	ldr	x8, [x25]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w2, #16
	mov	x4, x28
	bl	_decode_scaling_list
	mov	x28, x0
	add	x23, x24, #64
	ldr	x8, [x25]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #16
	mov	x4, x24
	bl	_decode_scaling_list
	orr	w28, w0, w28
	add	x1, x24, #128
	ldr	x8, [x25]
	ldr	x3, [x8]
	mov	x0, x21
	mov	w2, #16
	mov	x4, x23
	bl	_decode_scaling_list
	orr	w28, w28, w0
	add	x23, x24, #192
	ldr	x8, [x25]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #16
	mov	x4, x27
	bl	_decode_scaling_list
	orr	w28, w28, w0
	add	x27, x24, #256
	ldr	x8, [x25]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	x1, x27
	mov	w2, #16
	mov	x4, x23
	bl	_decode_scaling_list
	orr	w23, w28, w0
	add	x1, x24, #320
	ldr	x8, [x25]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	w2, #16
	mov	x4, x27
	bl	_decode_scaling_list
	orr	w24, w23, w0
	cbnz	w19, LBB0_7
; %bb.6:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_7:
Lloh4:
	adrp	x27, _default_scaling8@GOTPAGE
Lloh5:
	ldr	x27, [x27, _default_scaling8@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #64
	mov	x4, x26
	bl	_decode_scaling_list
	orr	w24, w0, w24
	add	x23, x20, #768
	ldr	x8, [x27]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #64
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	bl	_decode_scaling_list
	orr	w24, w24, w0
	ldr	w8, [x22]
	cmp	w8, #3
	b.ne	LBB0_9
; %bb.8:
	add	x22, x20, #256
	ldr	x8, [x27]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #64
	mov	x4, x20
	bl	_decode_scaling_list
	orr	w25, w0, w24
	add	x24, x20, #1024
	ldr	x8, [x27]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	x1, x24
	mov	w2, #64
	mov	x4, x23
	bl	_decode_scaling_list
	orr	w23, w25, w0
	add	x1, x20, #512
	ldr	x8, [x27]
	ldr	x3, [x8]
	mov	x0, x21
	mov	w2, #64
	mov	x4, x22
	bl	_decode_scaling_list
	orr	w22, w23, w0
	add	x1, x20, #1280
	ldr	x8, [x27]
	ldr	x3, [x8, #8]
	mov	x0, x21
	mov	w2, #64
	mov	x4, x24
	bl	_decode_scaling_list
	orr	w24, w22, w0
LBB0_9:
	cmp	w24, #0
	csel	w0, w19, w24, eq
LBB0_10:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_default_scaling4,8,3           ; @default_scaling4
	.comm	_default_scaling8,8,3           ; @default_scaling8
	.no_dead_strip	_decode_scaling_matrices
.subsections_via_symbols
