	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hqx_decode_422a
_hqx_decode_422a:                       ## @hqx_decode_422a
	.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, -56(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	32(%rdi), %r15
	movslq	%esi, %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	leaq	(%r15,%rbx), %rdi
	addq	$8, %rdi
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %r13d
	movq	(%r15,%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	24(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	32(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	40(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	48(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	56(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	64(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	72(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	80(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rax
	movq	88(%rax), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r15,%rbx), %rcx
	movq	(%rcx), %r9
	movl	$-2048, (%r9)                   ## imm = 0xF800
	movq	8(%rcx), %rax
	movl	$-2048, (%rax)                  ## imm = 0xF800
	movq	16(%rcx), %rax
	movl	$-2048, (%rax)                  ## imm = 0xF800
	movq	24(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	32(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	40(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	48(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	56(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	64(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	72(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	80(%rcx), %rdx
	movl	$-2048, (%rdx)                  ## imm = 0xF800
	movq	88(%rcx), %rcx
	movl	$-2048, (%rcx)                  ## imm = 0xF800
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	$0, %ebx
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.1:
	cmpq	$0, 16(%r12)
	je	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	_hqx_quants@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	(%r15,%rax,8), %r15
	movl	%r13d, %eax
	shll	$4, %eax
	orl	%r13d, %eax
	movl	%eax, %ecx
	orl	$1280, %ecx                     ## imm = 0x500
	testb	$3, %r13b
	cmovel	%eax, %ecx
	movl	%ecx, %ebx
	orl	$2560, %ebx                     ## imm = 0xA00
	testb	$12, %cl
	cmovel	%ecx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	$12, %r13
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	andl	$2147483645, %eax               ## imm = 0x7FFFFFFD
	cmpl	$8, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	andl	$2147483643, %eax               ## imm = 0x7FFFFFFB
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -60(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	btl	%r13d, %ebx
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r12), %rcx
	movq	8(%r12), %rax
	leaq	(%rax,%rcx,4), %rsi
	addq	$-36, %rsi
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	leaq	-60(%rbp), %r9
	callq	_decode_block
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_13
LBB0_11:
	movq	(%r14), %rax
	movq	(%rax), %r9
	movq	16(%rax), %rax
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_12:
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	movl	$3, %esi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	%rax
	callq	_put_blocks
	addq	$16, %rsp
	leal	8(%r13), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	8(%rax), %r9
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	movl	$3, %esi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	24(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movq	32(%rax), %r9
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	48(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movq	40(%rax), %r9
	movq	_hqx_quant_luma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	56(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	sarl	%r13d
	movq	(%r14), %rax
	movq	64(%rax), %r9
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	72(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r14), %rax
	movq	80(%rax), %r9
	movq	_hqx_quant_chroma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	pushq	%r10
	pushq	88(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_13:
	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_422a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hqx_decode_422a
_hqx_decode_422a:                       ; @hqx_decode_422a
	.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
	mov	x20, x0
	ldr	x8, [x0, #32]
	add	x26, x8, w1, sxtw #4
	add	x22, x26, #8
	ldp	w2, w1, [x0, #24]
	mov	x0, x22
	mov	w3, #1
	bl	_get_vlc2
	mov	x24, x0
	ldr	x8, [x26]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #8]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #16]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #24]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #32]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #40]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #48]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #56]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #64]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #72]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #80]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	ldr	x0, [x8, #88]
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x26]
	mov	w9, #-2048
	ldp	x5, x10, [x8]
	str	w9, [x5]
	str	w9, [x10]
	ldp	x6, x10, [x8, #16]
	str	w9, [x6]
	str	w9, [x10]
	ldp	x10, x11, [x8, #32]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x11, [x8, #48]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x11, [x8, #64]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x8, [x8, #80]
	str	w9, [x10]
	str	w9, [x8]
	cbz	w24, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x22
	bl	_get_bits1
	mov	x23, x0
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	b	LBB0_12
LBB0_4:
	mov	w23, #0
LBB0_5:
	mov	w27, #65531
	movk	w27, #32767, lsl #16
Lloh0:
	adrp	x8, _hqx_quants@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hqx_quants@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, x22
	mov	w1, #4
	bl	_get_bits
	mov	x28, #0
	ldr	x25, [x25, x0, lsl #3]
	orr	w8, w24, w24, lsl #4
	mov	w9, #1280
	orr	w9, w8, w9
	tst	w24, #0x3
	csel	w8, w8, w9, eq
	mov	w9, #2560
	orr	w9, w8, w9
	tst	w8, #0xc
	csel	w24, w8, w9, eq
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #1
	cmp	x28, #12
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w28, w27
	add	w9, w27, #2
	and	w9, w28, w9
	cmp	w9, #8
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [sp, #12]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsr	w8, w24, w28
	tbz	w8, #0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [x20]
	sub	w8, w3, #9
	ldr	x9, [x20, #8]
	add	x1, x9, w8, sxtw #2
	ldr	x8, [x26]
	ldr	x4, [x8, x28, lsl #3]
	add	x5, sp, #12
	mov	x0, x22
	mov	x2, x25
	bl	_decode_block
	tbz	w0, #31, LBB0_6
	b	LBB0_13
LBB0_11:
	ldr	x8, [x26]
	ldr	x5, [x8]
	ldr	x6, [x8, #16]
LBB0_12:
Lloh3:
	adrp	x24, _hqx_quant_luma@GOTPAGE
Lloh4:
	ldr	x24, [x24, _hqx_quant_luma@GOTPAGEOFF]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #3
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	add	w22, w21, #8
	ldr	x8, [x26]
	ldr	x5, [x8, #8]
	ldr	x6, [x8, #24]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #3
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	ldr	x8, [x26]
	ldr	x5, [x8, #32]
	ldr	x6, [x8, #48]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	ldr	x8, [x26]
	ldr	x5, [x8, #40]
	ldr	x6, [x8, #56]
	ldr	w7, [x24]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	asr	w21, w21, #1
	ldr	x8, [x26]
	ldp	x5, x6, [x8, #64]
Lloh5:
	adrp	x22, _hqx_quant_chroma@GOTPAGE
Lloh6:
	ldr	x22, [x22, _hqx_quant_chroma@GOTPAGEOFF]
	ldr	w7, [x22]
	mov	x0, x20
	mov	w1, #2
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	ldr	x8, [x26]
	ldp	x5, x6, [x8, #80]
	ldr	w7, [x22]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_put_blocks
	mov	w0, #0
LBB0_13:
	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_422a
.subsections_via_symbols
