	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_quant_matrix_ext
_read_quant_matrix_ext:                 ## @read_quant_matrix_ext
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_18
## %bb.2:
	xorl	%ebx, %ebx
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r15), %rcx
	movq	16(%r15), %rdx
	movq	(%r12), %rsi
	movq	(%rsi,%rbx,8), %rsi
	movslq	(%rdx,%rsi,4), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_18
## %bb.6:
	movl	$64, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	decl	%ebx
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_18
## %bb.10:
	xorl	%ebx, %ebx
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	(%r12), %rsi
	movq	(%rsi,%rbx,8), %rsi
	movslq	(%rdx,%rsi,4), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$512, %eax                      ## imm = 0x200
	jge	LBB0_14
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_14:
	movl	$64, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	decl	%ebx
	jne	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_next_start_code_studio
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_read_quant_matrix_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_quant_matrix_ext
_read_quant_matrix_ext:                 ; @read_quant_matrix_ext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_get_bits1
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #512
	b.lt	LBB0_14
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _ff_zigzag_direct@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ff_zigzag_direct@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x22]
	ldr	x8, [x8, x21]
	ldp	x10, x9, [x20, #8]
	ldrsw	x8, [x9, x8, lsl #2]
	lsl	x8, x8, #2
	ldr	x9, [x20]
	str	w0, [x9, x8]
	str	w0, [x10, x8]
	add	x21, x21, #8
	cmp	x21, #512
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #512
	b.lt	LBB0_14
; %bb.6:
	mov	w21, #64
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	subs	w21, w21, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #512
	b.lt	LBB0_14
; %bb.10:
	mov	x21, #0
Lloh2:
	adrp	x22, _ff_zigzag_direct@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ff_zigzag_direct@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x22]
	ldr	x8, [x8, x21]
	ldp	x10, x9, [x20, #8]
	ldrsw	x8, [x9, x8, lsl #2]
	str	w0, [x10, x8, lsl #2]
	add	x21, x21, #8
	cmp	x21, #512
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #512
	b.ge	LBB0_15
LBB0_14:
Lloh4:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_15:
	mov	w20, #64
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	subs	w20, w20, #1
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_next_start_code_studio
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_read_quant_matrix_ext
.subsections_via_symbols
