	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_dct_coeffs
_unpack_dct_coeffs:                     ## @unpack_dct_coeffs
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	72(%rdi), %eax
	movq	80(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%rsi, %rdi
	callq	_get_bits_left
	cmpl	$15, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movslq	%ebx, %rdx
	shlq	$2, %rdx
	addq	64(%r12), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_unpack_vlcs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$7, %eax
	jg	LBB0_4
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_reverse_dc_prediction
	movslq	%r15d, %r15
	shlq	$2, %r15
	movq	64(%r12), %rdx
	addq	%r15, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	%ebx, %r9d
	callq	_unpack_vlcs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:
	addq	64(%r12), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	movl	%ebx, %r9d
	callq	_unpack_vlcs
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movq	56(%r12), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	48(%r12), %rax
	movl	4(%rax), %esi
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	4(%rcx), %edx
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	callq	_reverse_dc_prediction
	movq	48(%r12), %rax
	movl	8(%rax), %esi
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	4(%rcx), %edx
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	callq	_reverse_dc_prediction
LBB0_8:
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$7, %eax
	jle	LBB0_1
## %bb.9:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	24(%r12), %rdx
	movslq	%ebx, %rcx
	leaq	(%rdx,%rcx,4), %rsi
	cltq
	leaq	(%rdx,%rax,4), %rdx
	movq	%rsi, -552(%rbp)
	movq	%rdx, -1064(%rbp)
	movq	%rsi, -544(%rbp)
	movq	%rdx, -1056(%rbp)
	movq	%rsi, -536(%rbp)
	movq	%rdx, -1048(%rbp)
	movq	%rsi, -528(%rbp)
	movq	%rdx, -1040(%rbp)
	movq	%rsi, -520(%rbp)
	movq	%rdx, -1032(%rbp)
	movq	16(%r12), %rdx
	leaq	(%rdx,%rcx,4), %rsi
	leaq	(%rdx,%rax,4), %rdx
	movq	%rsi, -512(%rbp)
	movq	%rdx, -1024(%rbp)
	movq	%rsi, -504(%rbp)
	movq	%rdx, -1016(%rbp)
	movq	%rsi, -496(%rbp)
	movq	%rdx, -1008(%rbp)
	movq	%rsi, -488(%rbp)
	movq	%rdx, -1000(%rbp)
	movq	%rsi, -480(%rbp)
	movq	%rdx, -992(%rbp)
	movq	%rsi, -472(%rbp)
	movq	%rdx, -984(%rbp)
	movq	%rsi, -464(%rbp)
	movq	%rdx, -976(%rbp)
	movq	%rsi, -456(%rbp)
	movq	%rdx, -968(%rbp)
	movq	%rsi, -448(%rbp)
	movq	%rdx, -960(%rbp)
	movq	8(%r12), %rdx
	leaq	(%rdx,%rcx,4), %rsi
	leaq	(%rdx,%rax,4), %rdx
	movq	%rsi, -440(%rbp)
	movq	%rdx, -952(%rbp)
	movq	%rsi, -432(%rbp)
	movq	%rdx, -944(%rbp)
	movq	%rsi, -424(%rbp)
	movq	%rdx, -936(%rbp)
	movq	%rsi, -416(%rbp)
	movq	%rdx, -928(%rbp)
	movq	%rsi, -408(%rbp)
	movq	%rdx, -920(%rbp)
	movq	%rsi, -400(%rbp)
	movq	%rdx, -912(%rbp)
	movq	%rsi, -392(%rbp)
	movq	%rdx, -904(%rbp)
	movq	%rsi, -384(%rbp)
	movq	%rdx, -896(%rbp)
	movq	%rsi, -376(%rbp)
	movq	%rdx, -888(%rbp)
	movq	%rsi, -368(%rbp)
	movq	%rdx, -880(%rbp)
	movq	%rsi, -360(%rbp)
	movq	%rdx, -872(%rbp)
	movq	%rsi, -352(%rbp)
	movq	%rdx, -864(%rbp)
	movq	%rsi, -344(%rbp)
	movq	%rdx, -856(%rbp)
	movq	(%r12), %rdx
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	(%rdx,%rcx,4), %rax
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	movdqa	%xmm1, -336(%rbp)
	movdqa	%xmm0, -848(%rbp)
	movdqa	%xmm1, -320(%rbp)
	movdqa	%xmm0, -832(%rbp)
	movdqa	%xmm1, -304(%rbp)
	movdqa	%xmm0, -816(%rbp)
	movdqa	%xmm1, -288(%rbp)
	movdqa	%xmm0, -800(%rbp)
	movdqa	%xmm1, -272(%rbp)
	movdqa	%xmm0, -784(%rbp)
	movdqa	%xmm1, -256(%rbp)
	movdqa	%xmm0, -768(%rbp)
	movdqa	%xmm1, -240(%rbp)
	movdqa	%xmm0, -752(%rbp)
	movdqa	%xmm1, -224(%rbp)
	movdqa	%xmm0, -736(%rbp)
	movdqa	%xmm1, -208(%rbp)
	movdqa	%xmm0, -720(%rbp)
	movdqa	%xmm1, -192(%rbp)
	movdqa	%xmm0, -704(%rbp)
	movdqa	%xmm1, -176(%rbp)
	movdqa	%xmm0, -688(%rbp)
	movdqa	%xmm1, -160(%rbp)
	movdqa	%xmm0, -672(%rbp)
	movdqa	%xmm1, -144(%rbp)
	movdqa	%xmm0, -656(%rbp)
	movdqa	%xmm1, -128(%rbp)
	movdqa	%xmm0, -640(%rbp)
	movdqa	%xmm1, -112(%rbp)
	movdqa	%xmm0, -624(%rbp)
	movdqa	%xmm1, -96(%rbp)
	movdqa	%xmm0, -608(%rbp)
	movdqa	%xmm1, -80(%rbp)
	movdqa	%xmm0, -592(%rbp)
	movdqa	%xmm1, -64(%rbp)
	movdqa	%xmm0, -576(%rbp)
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-560(%rbp,%r13,8), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_unpack_vlcs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-1072(%rbp,%r13,8), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	$1, %r8d
	movl	%ebx, %r9d
	callq	_unpack_vlcs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	$2, %r8d
	movl	%ebx, %r9d
	callq	_unpack_vlcs
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	xorl	%ebx, %ebx
	cmpq	$64, %r13
	jne	LBB0_11
	jmp	LBB0_15
LBB0_14:
	movl	%r15d, %ebx
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_unpack_dct_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_dct_coeffs
_unpack_dct_coeffs:                     ; @unpack_dct_coeffs
	.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
	sub	sp, sp, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w8, [x0, #72]
	ldr	x9, [x0, #80]
	ldr	x9, [x9]
	str	w8, [x9]
	mov	x0, x1
	bl	_get_bits_left
	cmp	w0, #15
	b.le	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x21, x0
	ldr	x8, [x20, #64]
	add	x2, x8, w22, sxtw #2
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_unpack_vlcs
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #7
	b.gt	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
	mov	x0, x22
	add	sp, sp, #1040
	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
LBB0_6:
	ldp	x9, x8, [x20, #32]
	ldr	w2, [x8]
	ldr	w3, [x9]
	mov	x0, x20
	mov	w1, #0
	bl	_reverse_dc_prediction
	ldr	x8, [x20, #64]
	add	x2, x8, w21, sxtw #2
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1
	mov	x5, x22
	bl	_unpack_vlcs
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.7:
	sxtw	x8, w21
	ldr	x9, [x20, #64]
	add	x2, x9, x8, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #2
	mov	x5, x22
	bl	_unpack_vlcs
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.8:
	ldr	x8, [x20, #56]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #48]
	ldr	w1, [x8, #4]
	ldp	x9, x8, [x20, #32]
	ldr	w2, [x8, #4]
	ldr	w3, [x9, #4]
	mov	x0, x20
	bl	_reverse_dc_prediction
	ldr	x8, [x20, #48]
	ldr	w1, [x8, #8]
	ldp	x9, x8, [x20, #32]
	ldr	w2, [x8, #4]
	ldr	w3, [x9, #4]
	mov	x0, x20
	bl	_reverse_dc_prediction
LBB0_10:
	mov	x0, x19
	bl	_get_bits_left
	cmp	w0, #7
	b.le	LBB0_3
; %bb.11:
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x22, #2, #32
	ldp	x10, x9, [x20, #16]
	add	x11, x9, x8
	sbfiz	x12, x0, #2, #32
	add	x9, x9, x12
	str	x11, [sp, #528]
	str	x11, [sp, #536]
	stp	x9, x9, [sp, #16]
	str	x11, [sp, #544]
	str	x11, [sp, #552]
	stp	x9, x9, [sp, #32]
	add	x13, x10, x8
	add	x10, x10, x12
	str	x11, [sp, #560]
	str	x13, [sp, #568]
	stp	x9, x10, [sp, #48]
	str	x13, [sp, #576]
	str	x13, [sp, #584]
	stp	x10, x10, [sp, #64]
	str	x13, [sp, #592]
	str	x13, [sp, #600]
	stp	x10, x10, [sp, #80]
	str	x13, [sp, #608]
	str	x13, [sp, #616]
	stp	x10, x10, [sp, #96]
	str	x13, [sp, #624]
	str	x13, [sp, #632]
	stp	x10, x10, [sp, #112]
	ldp	x10, x9, [x20]
	add	x11, x9, x8
	add	x13, x9, x12
	add	x9, x10, x8
	add	x8, x10, x12
	str	x11, [sp, #640]
	str	x11, [sp, #648]
	stp	x13, x13, [sp, #128]
	str	x11, [sp, #656]
	str	x11, [sp, #664]
	stp	x13, x13, [sp, #144]
	str	x11, [sp, #672]
	str	x11, [sp, #680]
	stp	x13, x13, [sp, #160]
	str	x11, [sp, #688]
	str	x11, [sp, #696]
	stp	x13, x13, [sp, #176]
	str	x11, [sp, #704]
	str	x11, [sp, #712]
	stp	x13, x13, [sp, #192]
	str	x11, [sp, #720]
	str	x11, [sp, #728]
	stp	x13, x13, [sp, #208]
	str	x11, [sp, #736]
	str	x9, [sp, #744]
	stp	x13, x8, [sp, #224]
	str	x9, [sp, #752]
	str	x9, [sp, #760]
	stp	x8, x8, [sp, #240]
	str	x9, [sp, #768]
	str	x9, [sp, #776]
	stp	x8, x8, [sp, #256]
	str	x9, [sp, #784]
	str	x9, [sp, #792]
	stp	x8, x8, [sp, #272]
	str	x9, [sp, #800]
	str	x9, [sp, #808]
	stp	x8, x8, [sp, #288]
	str	x9, [sp, #816]
	str	x9, [sp, #824]
	stp	x8, x8, [sp, #304]
	str	x9, [sp, #832]
	str	x9, [sp, #840]
	stp	x8, x8, [sp, #320]
	str	x9, [sp, #848]
	str	x9, [sp, #856]
	stp	x8, x8, [sp, #336]
	str	x9, [sp, #864]
	str	x9, [sp, #872]
	stp	x8, x8, [sp, #352]
	str	x9, [sp, #880]
	str	x9, [sp, #888]
	stp	x8, x8, [sp, #368]
	str	x9, [sp, #896]
	str	x9, [sp, #904]
	stp	x8, x8, [sp, #384]
	str	x9, [sp, #912]
	str	x9, [sp, #920]
	stp	x8, x8, [sp, #400]
	str	x9, [sp, #928]
	str	x9, [sp, #936]
	stp	x8, x8, [sp, #416]
	str	x9, [sp, #944]
	str	x9, [sp, #952]
	stp	x8, x8, [sp, #432]
	str	x9, [sp, #960]
	str	x9, [sp, #968]
	stp	x8, x8, [sp, #448]
	str	x9, [sp, #976]
	str	x9, [sp, #984]
	stp	x8, x8, [sp, #464]
	str	x9, [sp, #992]
	str	x9, [sp, #1000]
	stp	x8, x8, [sp, #480]
	str	x9, [sp, #1008]
	str	x9, [sp, #1016]
	stp	x8, x8, [sp, #496]
	str	x9, [sp, #1024]
	mov	w23, #1
	add	x24, sp, #520
	add	x25, sp, #8
	str	x8, [sp, #512]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x24, x23, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	mov	w4, #0
	mov	x5, x21
	bl	_unpack_vlcs
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x21, [x25, x23, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	w4, #1
	mov	x5, x22
	bl	_unpack_vlcs
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	w4, #2
	mov	x5, x22
	bl	_unpack_vlcs
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w22, #0
	add	x23, x23, #1
	cmp	x23, #64
	b.ne	LBB0_12
	b	LBB0_4
LBB0_16:
	mov	x22, x21
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_unpack_dct_coeffs
.subsections_via_symbols
