	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function build_huff10
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_3:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_4:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_build_huff10:                          ## @build_huff10
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	movl	$20496, %eax                    ## imm = 0x5010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$-1, (%rdx)
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <0,1,u,u>
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <2,2,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <4,4,u,u>
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = <6,6,u,u>
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = <8,8,u,u>
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movq	(%rdi,%rax,4), %xmm6            ## xmm6 = mem[0],zero
	movq	8(%rdi,%rax,4), %xmm7           ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movdqa	%xmm0, %xmm7
	punpckldq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1]
	movdqa	%xmm7, -8224(%rbp,%rax,8)
	movdqa	%xmm5, -8208(%rbp,%rax,8)
	movdqa	%xmm0, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm3, %xmm6
	movq	16(%rdi,%rax,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movq	24(%rdi,%rax,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm6            ## xmm6 = xmm6[0],xmm7[0],xmm6[1],xmm7[1]
	movdqa	%xmm5, -8192(%rbp,%rax,8)
	movdqa	%xmm6, -8176(%rbp,%rax,8)
	addq	$8, %rax
	paddd	%xmm4, %xmm0
	cmpq	$1024, %rax                     ## imm = 0x400
	jne	LBB0_1
## %bb.2:
	movq	_ff_ut10_huff_cmp_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-8224(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	$8, %edx
	callq	_qsort
	cmpl	$0, -8220(%rbp)
	je	LBB0_14
## %bb.3:
	movl	$1025, %eax                     ## imm = 0x401
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8236(%rbp,%rax,8), %esi
	leaq	-1(%rax), %rdx
	cmpl	$255, %esi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$2, %rax
	movq	%rdx, %rax
	jne	LBB0_4
LBB0_6:
	movl	$-1, %eax
	cmpl	$32, %esi
	jg	LBB0_12
## %bb.7:
	leaq	-1(%rdx), %rdi
	testl	%edi, %edi
	js	LBB0_11
## %bb.8:
	movl	%esi, %ecx
	negb	%cl
	movl	$1, %r8d
	movl	$1, %ebx
	shrl	%cl, %ebx
	movl	%ebx, -12324(%rbp,%rdx,4)
	movl	%esi, -16420(%rbp,%rdx,4)
	movl	-8232(%rbp,%rdx,8), %ecx
	movl	%ecx, -20516(%rbp,%rdx,4)
	testq	%rdi, %rdi
	jle	LBB0_11
## %bb.9:
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	decb	%sil
	movl	$-2147483648, %ebx              ## imm = 0x80000000
	movl	%esi, %ecx
	shrl	%cl, %ebx
	addl	%ebx, %r8d
	movl	-8240(%rbp,%rdi,8), %ebx
	movl	-8236(%rbp,%rdi,8), %esi
	movl	%esi, %ecx
	negb	%cl
	movl	%r8d, %eax
	sarl	%cl, %eax
	movl	%eax, -12328(%rbp,%rdi,4)
	movl	%esi, -16424(%rbp,%rdi,4)
	movl	%ebx, -20520(%rbp,%rdi,4)
	decq	%rdi
	cmpq	$1, %rdi
	jg	LBB0_10
LBB0_11:
	subq	$8, %rsp
	leaq	-20512(%rbp), %rax
	leaq	-12320(%rbp), %rbx
	leaq	-16416(%rbp), %rcx
	movq	%r14, %rdi
	movl	$11, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$4, %r8d
	movl	$4, %r9d
	pushq	$0
	pushq	$4
	pushq	$4
	pushq	%rax
	pushq	$4
	pushq	$4
	pushq	%rbx
	callq	_ff_init_vlc_sparse
	addq	$64, %rsp
	jmp	LBB0_12
LBB0_14:
	movl	-8224(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_15
## %bb.13:
	addq	$20496, %rsp                    ## imm = 0x5010
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_ut10_huff_cmp_len,4,2       ## @ff_ut10_huff_cmp_len
	.comm	_VLC_BITS,4,2                   ## @VLC_BITS
	.no_dead_strip	_build_huff10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function build_huff10
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_build_huff10:                          ; @build_huff10
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #20528
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #5, lsl #12             ; =20480
	sub	sp, sp, #48
	mov	x20, x2
	mov	x19, x1
	mov	x8, #0
Lloh2:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	mov	w9, #-1
	str	w9, [x2]
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	add	x9, sp, #3, lsl #12             ; =12288
	add	x9, x9, #40
	add	x10, x9, #64
	add	x9, x0, #48
	movi.4s	v2, #4
	movi.4s	v3, #8
	movi.4s	v4, #12
	movi.4s	v5, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v2
	add	x11, x9, x8
	ldp	q1, q7, [x11, #-48]
	add.4s	v16, v0, v3
	add.4s	v18, v0, v4
	sub	x12, x10, #64
	st2.4s	{ v0, v1 }, [x12]
	ldp	q17, q19, [x11, #-16]
	sub	x11, x10, #32
	st2.4s	{ v6, v7 }, [x11]
	add	x11, x10, #128
	st2.4s	{ v16, v17 }, [x10], #32
	st2.4s	{ v18, v19 }, [x10]
	add.4s	v0, v0, v5
	add	x8, x8, #64
	mov	x10, x11
	cmp	x8, #1, lsl #12                 ; =4096
	b.ne	LBB0_1
; %bb.2:
Lloh7:
	adrp	x8, _ff_ut10_huff_cmp_len@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ff_ut10_huff_cmp_len@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x21, sp, #3, lsl #12            ; =12288
	add	x21, x21, #40
	add	x0, sp, #3, lsl #12             ; =12288
	add	x0, x0, #40
	mov	w1, #1024
	mov	w2, #8
	bl	_qsort
	ldr	w8, [sp, #12332]
	cbz	w8, LBB0_7
; %bb.3:
	mov	w8, #8188
	add	x8, x21, x8
	mov	w9, #1024
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #-8
	cmp	w10, #255
	ccmp	x9, #1, #4, eq
	sub	x9, x9, #1
	b.ne	LBB0_4
; %bb.5:
	cmp	w10, #32
	b.le	LBB0_8
; %bb.6:
	mov	w0, #-1
	b	LBB0_13
LBB0_7:
	mov	w0, #0
	ldr	w8, [sp, #12328]
	str	w8, [x20]
	b	LBB0_13
LBB0_8:
	tbnz	w9, #31, LBB0_12
; %bb.9:
	neg	w11, w10
	mov	w12, #1
	lsr	w12, w12, w11
	lsl	x14, x9, #2
	add	x11, sp, #2, lsl #12            ; =8192
	add	x11, x11, #40
	str	w12, [x11, x14]
	add	x12, sp, #1, lsl #12            ; =4096
	add	x12, x12, #40
	str	w10, [x12, x14]
	ldr	w15, [x8, #4]
	add	x13, sp, #40
	str	w15, [x13, x14]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.10:
	sub	x15, x9, #1
	mov	w14, #1
	mov	w16, #-2147483648
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w10, #1
	lsr	w10, w16, w10
	add	w14, w10, w14
	ldr	w10, [x8]
	neg	w17, w10
	asr	w17, w14, w17
	lsl	x0, x15, #2
	str	w17, [x11, x0]
	str	w10, [x12, x0]
	ldur	w17, [x8, #-4]
	str	w17, [x13, x0]
	add	x17, x15, #1
	sub	x15, x15, #1
	sub	x8, x8, #8
	cmp	x17, #1
	b.gt	LBB0_11
LBB0_12:
	add	w2, w9, #1
	str	wzr, [sp, #24]
	mov	x8, #17179869188
	add	x9, sp, #40
	stp	x9, x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp]
	add	x3, sp, #1, lsl #12             ; =4096
	add	x3, x3, #40
	add	x6, sp, #2, lsl #12             ; =8192
	add	x6, x6, #40
	mov	x0, x19
	mov	w1, #11
	mov	w4, #4
	mov	w5, #4
	mov	w7, #4
	bl	_ff_init_vlc_sparse
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #5, lsl #12             ; =20480
	add	sp, sp, #48
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_ut10_huff_cmp_len,4,2       ; @ff_ut10_huff_cmp_len
	.comm	_VLC_BITS,4,2                   ; @VLC_BITS
	.no_dead_strip	_build_huff10
.subsections_via_symbols
