	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_huff_tree
_build_huff_tree:                       ## @build_huff_tree
	.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	$3096, %rsp                     ## imm = 0xC18
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%edx, %r8d
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -48(%rbp)
	movq	_FF_HUFFMAN_FLAG_ZERO_COUNT@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	andl	(%rdx), %ecx
	sete	%bl
	movl	$0, -3124(%rbp)
	subq	$8, %rsp
	leaq	-3124(%rbp), %r10
	leaq	-1072(%rbp), %rdi
	leaq	-2096(%rbp), %r12
	leaq	-3120(%rbp), %r13
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	$0
	callq	_get_tree_codes
	addq	$32, %rsp
	movl	-3124(%rbp), %edx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rcx
	movl	$2, %r8d
	movl	$2, %r9d
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	%r13
	pushq	$4
	pushq	$4
	leaq	-1072(%rbp), %rax
	pushq	%rax
	callq	_ff_init_vlc_sparse
	addq	$64, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$3096, %rsp                     ## imm = 0xC18
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_HUFFMAN_FLAG_ZERO_COUNT,4,2 ## @FF_HUFFMAN_FLAG_ZERO_COUNT
	.no_dead_strip	_build_huff_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_huff_tree
_build_huff_tree:                       ; @build_huff_tree
	.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
	sub	sp, sp, #3120
	mov	x19, x4
	mov	x4, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x9, _FF_HUFFMAN_FLAG_ZERO_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_HUFFMAN_FLAG_ZERO_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w3
	cset	w9, eq
	str	wzr, [sp, #36]
	str	w9, [sp]
	add	x21, sp, #40
	add	x0, sp, #2088
	add	x1, sp, #1064
	add	x2, sp, #40
	add	x7, sp, #36
	mov	x3, x8
	mov	w5, #0
	mov	w6, #0
	bl	_get_tree_codes
	ldr	w2, [sp, #36]
	str	wzr, [sp, #24]
	mov	x8, #4294967297
	stp	x21, x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp]
	add	x3, sp, #1064
	add	x6, sp, #2088
	mov	x0, x20
	mov	x1, x19
	mov	w4, #2
	mov	w5, #2
	mov	w7, #4
	bl	_ff_init_vlc_sparse
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #3120
	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_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_HUFFMAN_FLAG_ZERO_COUNT,4,2 ; @FF_HUFFMAN_FLAG_ZERO_COUNT
	.no_dead_strip	_build_huff_tree
.subsections_via_symbols
