	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_block
_decode_block:                          ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movl	(%r15), %esi
	movq	_HQX_DC_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
	movb	$12, %cl
	subb	%r13b, %cl
	shll	%cl, %eax
	movl	%eax, %edi
	movl	$12, %esi
	callq	_sign_extend
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
	movq	%r12, %r13
	movq	%r14, %r15
	cmpl	$127, %ebx
	jle	LBB0_4
## %bb.3:
	movq	_HQX_AC_Q128@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	cmpl	$63, %ebx
	jle	LBB0_6
## %bb.5:
	movq	_HQX_AC_Q64@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	cmpl	$31, %ebx
	jle	LBB0_8
## %bb.7:
	movq	_HQX_AC_Q32@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	cmpl	$15, %ebx
	jle	LBB0_10
## %bb.9:
	movq	_HQX_AC_Q16@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	cmpl	$8, %ebx
	jl	LBB0_11
## %bb.12:
	movq	_HQX_AC_Q8@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_HQX_AC_Q0@GOTPCREL(%rip), %rax
LBB0_13:
	movslq	(%rax), %r14
	movl	$1, %r12d
	shlq	$2, %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_ff_hqx_ac@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_hqx_get_ac
	movslq	-48(%rbp), %rax
	movslq	%r12d, %rcx
	addq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$63, %ecx
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %edx
	imull	%ebx, %edx
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	leal	1(%rcx), %r12d
	movq	(%rsi,%rcx,8), %rsi
	movl	%edx, (%r15,%rsi,4)
	cmpl	$63, %ecx
	jne	LBB0_14
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HQX_DC_VLC_BITS,4,2            ## @HQX_DC_VLC_BITS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_HQX_AC_Q128,4,2                ## @HQX_AC_Q128
	.comm	_HQX_AC_Q64,4,2                 ## @HQX_AC_Q64
	.comm	_HQX_AC_Q32,4,2                 ## @HQX_AC_Q32
	.comm	_HQX_AC_Q16,4,2                 ## @HQX_AC_Q16
	.comm	_HQX_AC_Q8,4,2                  ## @HQX_AC_Q8
	.comm	_HQX_AC_Q0,4,2                  ## @HQX_AC_Q0
	.comm	_ff_hqx_ac,8,3                  ## @ff_hqx_ac
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_block
_decode_block:                          ; @decode_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x5
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	mov	x0, x4
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	w1, [x24]
Lloh0:
	adrp	x8, _HQX_DC_VLC_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HQX_DC_VLC_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [x23]
	add	w8, w8, w0
	str	w8, [x23]
	mov	w9, #12
	sub	w9, w9, w22
	lsl	w0, w8, w9
	mov	w1, #12
	bl	_sign_extend
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	ldr	w21, [x21, x0, lsl #2]
Lloh3:
	adrp	x8, _HQX_AC_Q128@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HQX_AC_Q128@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HQX_AC_Q64@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HQX_AC_Q64@GOTPAGEOFF]
Lloh7:
	adrp	x10, _HQX_AC_Q32@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HQX_AC_Q32@GOTPAGEOFF]
Lloh9:
	adrp	x11, _HQX_AC_Q16@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HQX_AC_Q16@GOTPAGEOFF]
Lloh11:
	adrp	x12, _HQX_AC_Q0@GOTPAGE
Lloh12:
	ldr	x12, [x12, _HQX_AC_Q0@GOTPAGEOFF]
Lloh13:
	adrp	x13, _HQX_AC_Q8@GOTPAGE
Lloh14:
	ldr	x13, [x13, _HQX_AC_Q8@GOTPAGEOFF]
	cmp	w21, #7
	csel	x12, x13, x12, gt
	cmp	w21, #15
	csel	x11, x11, x12, gt
	cmp	w21, #31
	csel	x10, x10, x11, gt
	cmp	w21, #63
	csel	x9, x9, x10, gt
	cmp	w21, #127
	csel	x8, x8, x9, gt
	ldrsw	x22, [x8]
	mov	w25, #1
Lloh15:
	adrp	x23, _ff_hqx_ac@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ff_hqx_ac@GOTPAGEOFF]
Lloh17:
	adrp	x24, _ff_zigzag_direct@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ff_zigzag_direct@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x22, lsl #2
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	bl	_hqx_get_ac
	ldr	w8, [sp, #12]
	add	w8, w8, w25
	cmp	w8, #63
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #8]
	mul	w9, w9, w21
	ldr	x10, [x24]
	add	w25, w8, #1
	ldr	x10, [x10, w8, sxtw #3]
	str	w9, [x19, x10, lsl #2]
	cmp	w8, #63
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HQX_DC_VLC_BITS,4,2            ; @HQX_DC_VLC_BITS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_HQX_AC_Q128,4,2                ; @HQX_AC_Q128
	.comm	_HQX_AC_Q64,4,2                 ; @HQX_AC_Q64
	.comm	_HQX_AC_Q32,4,2                 ; @HQX_AC_Q32
	.comm	_HQX_AC_Q16,4,2                 ; @HQX_AC_Q16
	.comm	_HQX_AC_Q8,4,2                  ; @HQX_AC_Q8
	.comm	_HQX_AC_Q0,4,2                  ; @HQX_AC_Q0
	.comm	_ff_hqx_ac,8,3                  ; @ff_hqx_ac
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_decode_block
.subsections_via_symbols
