	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_huff
_build_huff:                            ## @build_huff
	.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	%rbx
	pushq	%rax
	movl	$4104, %eax                     ## imm = 0x1008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-1056(%rbp), %rsi
	callq	_make_new_tree
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	$256, %rax                      ## imm = 0x100
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rbx
	movl	%ecx, -2080(%rbp,%rbx,4)
	movl	-1056(%rbp,%rax,4), %ecx
	movl	%ecx, -4128(%rbp,%rbx,4)
	movl	%eax, -3104(%rbp,%rbx,4)
	incl	%ebx
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_ff_free_vlc
	movq	_INIT_VLC_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-3104(%rbp), %r10
	leaq	-4128(%rbp), %r11
	leaq	-2080(%rbp), %rcx
	movq	%r14, %rdi
	movl	$13, %esi
	movl	%ebx, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	$1
	pushq	$1
	pushq	%r10
	pushq	$4
	pushq	$4
	pushq	%r11
	callq	_ff_init_vlc_sparse
	addq	$64, %rsp
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$4104, %rsp                     ## imm = 0x1008
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INIT_VLC_LE,4,2                ## @INIT_VLC_LE
	.no_dead_strip	_build_huff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_huff
_build_huff:                            ; @build_huff
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4144
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #48
	mov	x19, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x22, sp, #3112
	add	x1, sp, #3112
	bl	_make_new_tree
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x8, #0
	mov	w20, #0
	add	x9, sp, #2088
	add	x10, sp, #40
	add	x11, sp, #1064
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, #256
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x21, x8, lsl #2]
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x13, x20, #2, #32
	str	w12, [x9, x13]
	ldr	w12, [x22, x8, lsl #2]
	str	w12, [x10, x13]
	str	w8, [x11, x13]
	add	w20, w20, #1
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_ff_free_vlc
Lloh5:
	adrp	x8, _INIT_VLC_LE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INIT_VLC_LE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x8, #4294967297
	add	x9, sp, #1064
	stp	x9, x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp]
	add	x3, sp, #2088
	add	x6, sp, #40
	mov	x0, x19
	mov	w1, #13
	mov	x2, x20
	mov	w4, #1
	mov	w5, #1
	mov	w7, #4
	bl	_ff_init_vlc_sparse
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INIT_VLC_LE,4,2                ; @INIT_VLC_LE
	.no_dead_strip	_build_huff
.subsections_via_symbols
