	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hq_decode_block
_hq_decode_block:                       ## @hq_decode_block
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	_ff_hq_quants@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	(%rax,%rcx,8), %rbx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	(%rbx,%rax,8), %r12
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_get_sbits
	shll	$6, %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_get_sbits
	shll	$6, %eax
	movl	%eax, (%r14)
	movq	_ff_hq_quants@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	(%rax,%rcx,8), %rbx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	(%rbx,%rax,8), %r12
LBB0_3:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ff_hq_ac_skips@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movslq	%ebx, %rbx
	addq	(%rcx,%rax,8), %rbx
	cmpl	$63, %ebx
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ff_hq_ac_syms@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movslq	%ebx, %rcx
	imull	(%r12,%rcx,8), %eax
	sarl	$12, %eax
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, (%r14,%rcx,4)
	incq	%rbx
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	jns	LBB0_5
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hq_quants,8,3               ## @ff_hq_quants
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_hq_ac_skips,8,3             ## @ff_hq_ac_skips
	.comm	_ff_hq_ac_syms,8,3              ## @ff_hq_ac_syms
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_hq_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hq_decode_block
_hq_decode_block:                       ; @hq_decode_block
	.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
	mov	x24, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	cbz	w24, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ff_hq_quants@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_hq_quants@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w23, sxtw #3]
	ldr	x22, [x8, w22, sxtw #3]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	ldr	x22, [x22, x0, lsl #3]
	mov	x0, x20
	mov	w1, #9
	bl	_get_sbits
	lsl	w8, w0, #6
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	w1, #9
	bl	_get_sbits
	lsl	w8, w0, #6
Lloh3:
	adrp	x9, _ff_hq_quants@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_hq_quants@GOTPAGEOFF]
	str	w8, [x19]
Lloh5:
	ldr	x8, [x9]
	ldr	x8, [x8, w23, sxtw #3]
	ldr	x22, [x8, w22, sxtw #3]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	ldr	x22, [x22, x0, lsl #3]
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w26, #1
Lloh6:
	adrp	x23, _ff_hq_ac_skips@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ff_hq_ac_skips@GOTPAGEOFF]
Lloh8:
	adrp	x24, _ff_hq_ac_syms@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ff_hq_ac_syms@GOTPAGEOFF]
Lloh10:
	adrp	x25, _ff_zigzag_direct@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ff_zigzag_direct@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, w0, uxtw #3]
	add	x8, x8, w26, sxtw
	cmp	w8, #63
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, w0
	ldr	x10, [x24]
	ldr	w9, [x10, x9, lsl #2]
	sbfiz	x10, x8, #3, #32
	ldr	w11, [x22, x10]
	mul	w9, w9, w11
	asr	w9, w9, #12
	ldr	x11, [x25]
	ldr	x10, [x11, x10]
	str	w9, [x19, x10, lsl #2]
	add	x26, x8, #1
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	tbz	w0, #31, LBB0_5
LBB0_7:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hq_quants,8,3               ; @ff_hq_quants
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_hq_ac_skips,8,3             ; @ff_hq_ac_skips
	.comm	_ff_hq_ac_syms,8,3              ; @ff_hq_ac_syms
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_hq_decode_block
.subsections_via_symbols
