	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_speedhq_field
_decode_speedhq_field:                  ## @decode_speedhq_field
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
                                        ## kill: def $r8d killed $r8d def $r8
	movslq	24(%rbp), %r9
	movl	16(%rbp), %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rcx), %rax
	movq	%rdi, -232(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rdi
	movq	_SHQ_NO_ALPHA@GOTPCREL(%rip), %r10
                                        ## implicit-def: $ebx
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	cmpq	(%r10), %rdi
	je	LBB0_2
## %bb.1:
	movl	12(%rax), %edi
	imull	%r9d, %edi
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
LBB0_2:
	cmpl	%edx, %r13d
	jg	LBB0_52
## %bb.3:
	cmpl	%r12d, %r13d
	jl	LBB0_52
## %bb.4:
	movl	%r13d, %edx
	subl	%r12d, %edx
	cmpl	$2, %edx
	jle	LBB0_52
## %bb.5:
	movq	%r9, -240(%rbp)                 ## 8-byte Spill
	movq	%rcx, -248(%rbp)                ## 8-byte Spill
	movq	%r8, -352(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rbx
	movslq	4(%rax), %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movslq	8(%rax), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	%r12d, -80(%rbp)
	movl	%r13d, -64(%rbp)
	movslq	%r12d, %rax
	movq	%rsi, -224(%rbp)                ## 8-byte Spill
	leaq	(%rsi,%rax,4), %rdi
	callq	_AV_RL24
	movl	%eax, %ecx
	leal	(%rcx,%r12), %r14d
	movl	%r14d, -76(%rbp)
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	$3, %ecx
	jl	LBB0_53
## %bb.6:
	addl	$-3, %r13d
	cmpl	%r13d, %r14d
	jg	LBB0_53
## %bb.7:
	movslq	%r14d, %rax
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	callq	_AV_RL24
	movl	%eax, %ecx
	addl	%eax, %r14d
	movl	%r14d, -72(%rbp)
	movl	(%r15), %eax
	cmpl	$3, %ecx
	jl	LBB0_53
## %bb.8:
	cmpl	%r13d, %r14d
	jg	LBB0_53
## %bb.9:
	movslq	%r14d, %rax
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	callq	_AV_RL24
	movl	%eax, %ecx
	addl	%eax, %r14d
	movl	%r14d, -68(%rbp)
	movl	(%r15), %eax
	cmpl	$3, %ecx
	jl	LBB0_53
## %bb.10:
	cmpl	%r13d, %r14d
	jg	LBB0_53
## %bb.11:
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	movq	%rbx, %rdx
	imulq	%rcx, %rdx
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	imulq	%rcx, %rbx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	imulq	%rcx, %rax
	movl	%ecx, %r14d
	shll	$4, %r14d
	movq	%rbx, -200(%rbp)                ## 8-byte Spill
	shlq	$3, %rbx
	movq	%rbx, -312(%rbp)                ## 8-byte Spill
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	shlq	$3, %rax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,8), %eax
	cltq
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	shll	$6, %ecx
	movq	%rcx, -240(%rbp)                ## 8-byte Spill
	addq	$12, -224(%rbp)                 ## 8-byte Folded Spill
	movq	%rdx, -336(%rbp)                ## 8-byte Spill
	movq	%rdx, %rcx
	shlq	$5, %rcx
	movq	%rcx, %rax
	movq	%rcx, -328(%rbp)                ## 8-byte Spill
	leaq	32(%rcx), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-164(%rbp), %rdi
	leaq	-160(%rbp), %r15
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
	movslq	%r12d, %rax
	movl	-76(%rbp,%rbx,4), %r12d
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%r12d, %edx
	subl	%eax, %edx
	addl	$-3, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_53
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r14d, %edx
	imull	%ebx, %edx
	movq	-248(%rbp), %rax                ## 8-byte Reload
	cmpl	8(%rax), %edx
	jge	LBB0_51
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movl	%r14d, -252(%rbp)               ## 4-byte Spill
	movq	%rbx, -288(%rbp)                ## 8-byte Spill
	movq	%r12, -280(%rbp)                ## 8-byte Spill
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
	movq	%rdx, -272(%rbp)                ## 8-byte Spill
	movaps	L___const.decode_speedhq_field.last_dc(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	%r15, %rdi
	movl	$255, %esi
	movl	$64, %edx
	callq	_memset
	movq	-272(%rbp), %rdi                ## 8-byte Reload
	movq	-248(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movslq	(%rax), %r12
	movq	-352(%rbp), %r8                 ## 8-byte Reload
	leal	(%rdi,%r8), %esi
	movslq	%esi, %r9
	imulq	%r9, %r12
	shlq	$2, %r12
	movq	8(%r13), %rdx
	movq	_SHQ_SUBSAMPLING_420@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%edi, %esi
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	addl	%r8d, %esi
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	16(%rcx), %rdi
	addq	(%rdi), %r12
	movq	8(%rdi), %r8
	movslq	%esi, %r10
	movslq	8(%rax), %rdx
	imulq	%r10, %rdx
	shlq	$2, %rdx
	addq	16(%rdi), %rdx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movslq	4(%rax), %rbx
	movq	-232(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	_SHQ_NO_ALPHA@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	-208(%rbp), %r13                ## 8-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movslq	12(%rax), %r13
	imulq	%r9, %r13
	shlq	$2, %r13
	addq	24(%rdi), %r13
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	cmpl	$0, 12(%rcx)
	jle	LBB0_50
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=2
	imulq	%r10, %rbx
	leaq	(%r8,%rbx,4), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	leaq	-164(%rbp), %r14
	leaq	-96(%rbp), %rbx
LBB0_21:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%eax, -256(%rbp)                ## 4-byte Spill
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	movq	-232(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%rbx, %r13
	movq	-336(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=3
	leaq	32(%r12), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movq	%r8, -344(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r9d
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	-328(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movl	%ebx, %r9d
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	-320(%rbp), %r12                ## 8-byte Folded Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	%ebx, %r9d
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	-216(%rbp), %r8                 ## 8-byte Reload
	movq	-200(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r13, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-192(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	8(%r15), %rax
	movq	_SHQ_SUBSAMPLING_420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, %r13
	movq	%r14, %rbx
	movq	-216(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r14, %r8
	movq	-200(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	-304(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax,4), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	movq	%r8, -296(%rbp)                 ## 8-byte Spill
	movq	-192(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	8(%r15), %rax
	movq	_SHQ_SUBSAMPLING_444@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r13, %rbx
	movq	-216(%rbp), %r8                 ## 8-byte Reload
	addq	$32, %r8
	movq	%r15, %rdi
	leaq	-164(%rbp), %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r8, -216(%rbp)                 ## 8-byte Spill
	movq	-200(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	movq	-208(%rbp), %r13                ## 8-byte Reload
	js	LBB0_53
## %bb.33:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	$32, %r12
	movq	%r15, %rdi
	leaq	-164(%rbp), %rsi
	movq	%rbx, %rdx
	movl	$2, %ecx
	movq	%r12, %r8
	movq	-192(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.34:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	$32, %r14
	movq	%r15, %rdi
	leaq	-164(%rbp), %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	movq	%r14, %r8
	movq	-200(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.35:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	-296(%rbp), %r8                 ## 8-byte Reload
	addq	$32, %r8
	movq	%r15, %rdi
	leaq	-164(%rbp), %r14
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$2, %ecx
	movq	-192(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	leaq	-96(%rbp), %rbx
	jns	LBB0_38
	jmp	LBB0_53
LBB0_36:                                ##   in Loop: Header=BB0_21 Depth=3
	leaq	-164(%rbp), %r14
	leaq	-96(%rbp), %rbx
LBB0_37:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	-208(%rbp), %r13                ## 8-byte Reload
LBB0_38:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	(%r15), %rax
	movq	_SHQ_RLE_ALPHA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_decode_alpha_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.40:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	-264(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %r8d
	callq	_decode_alpha_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.41:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	$64, %r13
	leaq	-96(%rbp), %rbx
	jmp	LBB0_48
LBB0_42:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	_SHQ_DCT_ALPHA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_49
## %bb.43:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$3, %ecx
	movq	%r13, %r8
	movq	-176(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.44:                              ##   in Loop: Header=BB0_21 Depth=3
	leaq	32(%r13), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$3, %ecx
	movq	-176(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.45:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movq	-264(%rbp), %rax                ## 8-byte Reload
	movq	%r15, %r12
	leaq	(,%rax,4), %r15
	addq	%r13, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$3, %ecx
	movq	%r15, %r8
	movq	-176(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.46:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	$32, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$3, %ecx
	movq	%r15, %r8
	movq	-176(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_dct_block
	testl	%eax, %eax
	js	LBB0_53
## %bb.47:                              ##   in Loop: Header=BB0_21 Depth=3
	addq	$64, %r13
LBB0_48:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	-184(%rbp), %r12                ## 8-byte Reload
LBB0_49:                                ##   in Loop: Header=BB0_21 Depth=3
	addq	$32, -216(%rbp)                 ## 8-byte Folded Spill
	addq	$32, %r12
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movl	-256(%rbp), %eax                ## 4-byte Reload
	addl	$16, %eax
	movq	-344(%rbp), %r12                ## 8-byte Reload
	addq	$32, %r12
	movq	-248(%rbp), %rcx                ## 8-byte Reload
	cmpl	12(%rcx), %eax
	jl	LBB0_21
LBB0_50:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	movq	-272(%rbp), %rdx                ## 8-byte Reload
	addl	-240(%rbp), %edx                ## 4-byte Folded Reload
	cmpl	8(%rcx), %edx
	movl	-252(%rbp), %r14d               ## 4-byte Reload
	movq	-288(%rbp), %rbx                ## 8-byte Reload
	leaq	-160(%rbp), %r15
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movq	-280(%rbp), %r12                ## 8-byte Reload
	jl	LBB0_15
LBB0_51:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	xorl	%eax, %eax
	cmpq	$4, %rbx
	leaq	-164(%rbp), %rdi
	jne	LBB0_12
	jmp	LBB0_53
LBB0_52:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_53:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_55
## %bb.54:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHQ_NO_ALPHA,8,3               ## @SHQ_NO_ALPHA
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.decode_speedhq_field.last_dc
L___const.decode_speedhq_field.last_dc:
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400

	.comm	_SHQ_SUBSAMPLING_420,8,3        ## @SHQ_SUBSAMPLING_420
	.comm	_SHQ_SUBSAMPLING_444,8,3        ## @SHQ_SUBSAMPLING_444
	.comm	_SHQ_RLE_ALPHA,8,3              ## @SHQ_RLE_ALPHA
	.comm	_SHQ_DCT_ALPHA,8,3              ## @SHQ_DCT_ALPHA
	.no_dead_strip	_decode_speedhq_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_speedhq_field
_decode_speedhq_field:                  ; @decode_speedhq_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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	x26, x7
	mov	x23, x6
	mov	x25, x5
	mov	x27, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x3]
	ldp	w22, w24, [x8]
	ldr	w28, [x8, #8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _SHQ_NO_ALPHA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SHQ_NO_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
                                        ; implicit-def: $w11
                                        ; kill: killed $w11
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x8, #12]
	mul	w8, w8, w26
	str	w8, [sp, #88]                   ; 4-byte Folded Spill
LBB0_2:
	cmp	w23, w2
	b.gt	LBB0_45
; %bb.3:
	cmp	w23, w25
	b.lt	LBB0_45
; %bb.4:
	sub	w8, w23, w25
	cmp	w8, #2
	b.le	LBB0_45
; %bb.5:
	str	x3, [sp, #80]                   ; 8-byte Folded Spill
	str	w4, [sp, #76]                   ; 4-byte Folded Spill
	stur	w25, [x29, #-116]
	stur	w23, [x29, #-100]
	add	x0, x27, w25, sxtw #2
	bl	_AV_RL24
	mov	x8, x0
	add	w20, w0, w25
	stur	w20, [x29, #-112]
Lloh6:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	ldr	w0, [x19]
	cmp	w8, #3
	b.lt	LBB0_46
; %bb.6:
	sub	w23, w23, #3
	cmp	w20, w23
	b.gt	LBB0_46
; %bb.7:
	add	x0, x27, w20, sxtw #2
	bl	_AV_RL24
	mov	x8, x0
	add	w20, w0, w20
	stur	w20, [x29, #-108]
	ldr	w0, [x19]
	cmp	w8, #3
	b.lt	LBB0_46
; %bb.8:
	cmp	w20, w23
	b.gt	LBB0_46
; %bb.9:
	add	x0, x27, w20, sxtw #2
	bl	_AV_RL24
	mov	x8, x0
	add	w9, w0, w20
	stur	w9, [x29, #-104]
	ldr	w0, [x19]
	cmp	w8, #3
	b.lt	LBB0_46
; %bb.10:
	cmp	w9, w23
	b.gt	LBB0_46
; %bb.11:
	mov	x23, #0
	mul	w8, w22, w26
	mul	w19, w24, w26
	mul	w10, w28, w26
	lsl	w24, w26, #4
	stp	w8, w10, [sp, #68]              ; 8-byte Folded Spill
	lsl	w8, w8, #3
	lsl	w9, w19, #3
	sxtw	x11, w9
	lsl	w9, w10, #3
	sxtw	x9, w9
	stp	x9, x11, [sp, #16]              ; 16-byte Folded Spill
	ldr	w9, [sp, #88]                   ; 4-byte Folded Reload
	lsl	w9, w9, #3
	sxtw	x10, w9
	lsl	w9, w26, #6
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	x26, x27, #12
	sbfiz	x8, x8, #2, #32
	stp	x10, x8, [sp, #48]              ; 16-byte Folded Spill
	sub	x27, x29, #116
Lloh8:
	adrp	x28, l___const.decode_speedhq_field.last_dc@PAGE
Lloh9:
	add	x28, x28, l___const.decode_speedhq_field.last_dc@PAGEOFF
                                        ; implicit-def: $x20
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
	add	x22, x23, #1
	ldr	w8, [x27, x22, lsl #2]
	add	x1, x26, w25, sxtw #2
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	sub	w8, w8, w25
	sub	w2, w8, #3
	add	x0, sp, #92
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_46
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	mul	w22, w24, w23
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w8, [x23, #8]
	cmp	w22, w8
	b.ge	LBB0_44
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w25, [sp, #76]                  ; 4-byte Folded Reload
	str	w24, [sp, #8]                   ; 4-byte Folded Spill
	str	x26, [sp]                       ; 8-byte Folded Spill
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
	ldr	q0, [x28]
	stur	q0, [x29, #-144]
	add	x0, sp, #96
	mov	w1, #255
	mov	w2, #64
	bl	_memset
	ldr	x8, [x23, #16]
	ldr	x9, [x23]
	add	w10, w22, w25
Lloh10:
	adrp	x11, _SHQ_SUBSAMPLING_420@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SHQ_SUBSAMPLING_420@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	w22, #0
	cinc	w12, w22, lt
	add	w12, w25, w12, asr #1
	ldp	x14, x13, [x21]
	cmp	x13, x11
	csel	w11, w10, w12, ne
Lloh13:
	adrp	x12, _SHQ_NO_ALPHA@GOTPAGE
Lloh14:
	ldr	x12, [x12, _SHQ_NO_ALPHA@GOTPAGEOFF]
Lloh15:
	ldr	x12, [x12]
	cmp	x14, x12
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x12, [x8, #24]
	ldr	w13, [x9, #12]
	mul	w13, w13, w10
	add	x20, x12, w13, sxtw #2
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w12, [x23, #12]
	cmp	w12, #1
	b.lt	LBB0_43
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w23, #0
	ldp	w12, w13, [x9]
	mul	w10, w12, w10
	ldp	x12, x14, [x8]
	add	x24, x12, w10, sxtw #2
	mul	w10, w13, w11
	add	x27, x14, w10, sxtw #2
	ldr	x8, [x8, #16]
	ldr	w9, [x9, #8]
	mul	w9, w9, w11
	add	x28, x8, w9, sxtw #2
	ldr	w5, [sp, #68]                   ; 4-byte Folded Reload
LBB0_19:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x26, x19
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #0
	mov	x4, x24
	mov	x19, x5
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x25, x24, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #0
	mov	x4, x25
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #0
	mov	x4, x24
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x4, x24, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #0
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #1
	mov	x4, x27
	mov	x19, x26
	mov	x5, x26
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #2
	mov	x4, x28
	ldr	w5, [sp, #72]                   ; 4-byte Folded Reload
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [x21, #8]
Lloh16:
	adrp	x9, _SHQ_SUBSAMPLING_420@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SHQ_SUBSAMPLING_420@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_33
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x24, x27, x8, lsl #2
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #1
	mov	x4, x24
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x28, x8, lsl #2
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #2
	mov	x4, x26
	ldr	w5, [sp, #72]                   ; 4-byte Folded Reload
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [x21, #8]
Lloh19:
	adrp	x9, _SHQ_SUBSAMPLING_444@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SHQ_SUBSAMPLING_444@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x27, x27, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #1
	mov	x4, x27
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x28, x28, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #2
	mov	x4, x28
	ldr	w5, [sp, #72]                   ; 4-byte Folded Reload
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.31:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x4, x24, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #1
	mov	x5, x19
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.32:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x4, x26, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #2
	ldr	w5, [sp, #72]                   ; 4-byte Folded Reload
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
LBB0_33:                                ;   in Loop: Header=BB0_19 Depth=3
	ldr	w24, [sp, #88]                  ; 4-byte Folded Reload
	ldr	x8, [x21]
Lloh22:
	adrp	x9, _SHQ_RLE_ALPHA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SHQ_RLE_ALPHA@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	x26, x20
	str	w24, [sp, #88]                  ; 4-byte Folded Spill
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x1, sp, #92
	add	x2, sp, #96
	mov	x0, x21
	mov	x3, x26
	mov	x4, x24
	bl	_decode_alpha_block
	tbnz	w0, #31, LBB0_46
; %bb.35:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x3, x26, x8, lsl #2
	add	x1, sp, #92
	add	x2, sp, #96
	mov	x0, x21
	mov	x4, x24
	bl	_decode_alpha_block
	tbz	w0, #31, LBB0_41
	b	LBB0_46
LBB0_36:                                ;   in Loop: Header=BB0_19 Depth=3
Lloh25:
	adrp	x9, _SHQ_DCT_ALPHA@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SHQ_DCT_ALPHA@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.37:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #3
	mov	x4, x26
	mov	x5, x24
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.38:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x4, x26, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #3
	mov	x5, x24
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.39:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	mov	x20, x24
	add	x24, x26, x8, lsl #2
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #3
	mov	x4, x24
	mov	x5, x20
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
; %bb.40:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x4, x24, #32
	add	x1, sp, #92
	sub	x2, x29, #144
	mov	x0, x21
	mov	w3, #3
	mov	x5, x20
	bl	_decode_dct_block
	tbnz	w0, #31, LBB0_46
LBB0_41:                                ;   in Loop: Header=BB0_19 Depth=3
	add	x26, x26, #64
LBB0_42:                                ;   in Loop: Header=BB0_19 Depth=3
	mov	x20, x26
	add	x27, x27, #32
	add	x28, x28, #32
	add	w23, w23, #16
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #12]
	add	x24, x25, #32
	cmp	w23, w8
	ldr	w5, [sp, #68]                   ; 4-byte Folded Reload
	b.lt	LBB0_19
LBB0_43:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w8, [x23, #8]
	ldp	w24, w9, [sp, #8]               ; 8-byte Folded Reload
	add	w22, w22, w9
	cmp	w22, w8
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	sub	x27, x29, #116
Lloh28:
	adrp	x28, l___const.decode_speedhq_field.last_dc@PAGE
Lloh29:
	add	x28, x28, l___const.decode_speedhq_field.last_dc@PAGEOFF
	ldr	w25, [sp, #76]                  ; 4-byte Folded Reload
	b.lt	LBB0_15
LBB0_44:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	ldr	w25, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mov	x23, x8
	cmp	x8, #4
	b.ne	LBB0_12
	b	LBB0_46
LBB0_45:
Lloh30:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
LBB0_46:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.47:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_48:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SHQ_NO_ALPHA,8,3               ; @SHQ_NO_ALPHA
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.decode_speedhq_field.last_dc
l___const.decode_speedhq_field.last_dc:
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400

	.comm	_SHQ_SUBSAMPLING_420,8,3        ; @SHQ_SUBSAMPLING_420
	.comm	_SHQ_SUBSAMPLING_444,8,3        ; @SHQ_SUBSAMPLING_444
	.comm	_SHQ_RLE_ALPHA,8,3              ; @SHQ_RLE_ALPHA
	.comm	_SHQ_DCT_ALPHA,8,3              ; @SHQ_DCT_ALPHA
	.no_dead_strip	_decode_speedhq_field
.subsections_via_symbols
