	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hqx_decode_444
_hqx_decode_444:                        ## @hqx_decode_444
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movslq	%esi, %rbx
	shlq	$4, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r15
	addq	$8, %r15
	movq	%rdi, %r13
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_hqx_quants@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r15, %r12
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	(%r14,%rax,8), %r14
	addq	%rbx, -56(%rbp)                 ## 8-byte Folded Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rcx
	leaq	-9(%rcx), %rsi
	cmpq	$8, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	andl	$2147483643, %eax               ## imm = 0x7FFFFFFB
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -72(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r8d
	movq	%r12, %rdi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	leaq	-72(%rbp), %r9
	callq	_decode_block
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	$12, %r15
	jne	LBB0_5
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r9d
	movl	8(%rax), %r10d
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	leal	8(%r14), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	4(%rax), %r9d
	movl	12(%rax), %r10d
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movl	16(%rax), %r9d
	movl	24(%rax), %r10d
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	movl	$2, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movl	20(%rax), %r9d
	movl	28(%rax), %r10d
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	movl	$2, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movl	32(%rax), %r9d
	movl	40(%rax), %r10d
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	movl	$1, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movl	36(%rax), %r9d
	movl	44(%rax), %r10d
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hqx_quants,8,3                 ## @hqx_quants
	.comm	_hqx_quant_luma,4,2             ## @hqx_quant_luma
	.comm	_hqx_quant_chroma,4,2           ## @hqx_quant_chroma
	.no_dead_strip	_hqx_decode_444
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hqx_decode_444
_hqx_decode_444:                        ; @hqx_decode_444
	.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	x19, x3
	mov	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	sxtw	x25, w1
	ldp	x8, x27, [x0, #16]
	add	x9, x27, w1, sxtw #4
	add	x23, x9, #8
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_get_bits1
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh0:
	adrp	x8, _hqx_quants@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hqx_quants@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	mov	x26, #0
	ldr	x24, [x24, x0, lsl #3]
	add	x25, x27, x25, lsl #4
	mov	w27, #65531
	movk	w27, #32767, lsl #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20]
	sub	w8, w3, #9
	cmp	x26, #8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x9, x26, x27
	cbnz	x9, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #8]
	add	x1, x9, w8, sxtw #2
	ldr	x8, [x25]
	ldr	w4, [x8, x26, lsl #2]
	add	x5, sp, #12
	mov	x0, x23
	mov	x2, x24
	bl	_decode_block
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x26, #12
	b.ne	LBB0_4
; %bb.9:
	ldr	x8, [x25]
	ldr	w5, [x8]
	ldr	w6, [x8, #8]
Lloh3:
	adrp	x24, _hqx_quant_luma@GOTPAGE
Lloh4:
	ldr	x24, [x24, _hqx_quant_luma@GOTPAGEOFF]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	add	w23, w21, #8
	ldr	x8, [x25]
	ldr	w5, [x8, #4]
	ldr	w6, [x8, #12]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	ldr	x8, [x25]
	ldr	w5, [x8, #16]
	ldr	w6, [x8, #24]
Lloh5:
	adrp	x24, _hqx_quant_chroma@GOTPAGE
Lloh6:
	ldr	x24, [x24, _hqx_quant_chroma@GOTPAGEOFF]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #2
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	ldr	x8, [x25]
	ldr	w5, [x8, #20]
	ldr	w6, [x8, #28]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #2
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	ldr	x8, [x25]
	ldr	w5, [x8, #32]
	ldr	w6, [x8, #40]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	ldr	x8, [x25]
	ldr	w5, [x8, #36]
	ldr	w6, [x8, #44]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	bl	_put_blocks
	mov	w0, #0
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_hqx_quants,8,3                 ; @hqx_quants
	.comm	_hqx_quant_luma,4,2             ; @hqx_quant_luma
	.comm	_hqx_quant_chroma,4,2           ; @hqx_quant_chroma
	.no_dead_strip	_hqx_decode_444
.subsections_via_symbols
