	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huf_canonical_code_table
_huf_canonical_code_table:              ## @huf_canonical_code_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$488, %rsp                      ## imm = 0x1E8
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-496(%rbp), %rdi
	movl	$472, %esi                      ## imm = 0x1D8
	callq	___bzero
	movq	_HUF_ENCSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	leaq	-1(%rax), %rdx
	movl	%eax, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_15
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_15:
	movl	%eax, %esi
	andl	$-4, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	incq	-496(%rbp,%rdi,8)
	movq	8(%rbx,%rdx,8), %rdi
	incq	-496(%rbp,%rdi,8)
	movq	16(%rbx,%rdx,8), %rdi
	incq	-496(%rbp,%rdi,8)
	movq	24(%rbx,%rdx,8), %rdi
	incq	-496(%rbp,%rdi,8)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_16
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	leaq	(%rbx,%rdx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	incq	-496(%rbp,%rdi,8)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_5
LBB0_6:
	movl	$58, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-496(%rbp,%rcx,8), %rsi
	addq	%rdx, %rsi
	shrq	%rsi
	movq	%rdx, -496(%rbp,%rcx,8)
	movq	-504(%rbp,%rcx,8), %rdx
	addq	%rsi, %rdx
	shrq	%rdx
	movq	%rsi, -504(%rbp,%rcx,8)
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rdx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%edx, %rdx
	movq	-496(%rbp,%rdx,8), %rsi
	leaq	1(%rsi), %rdi
	movq	%rdi, -496(%rbp,%rdx,8)
	shlq	$6, %rsi
	orq	%rdx, %rsi
	movq	%rsi, (%rbx,%rcx,8)
	jmp	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_17
## %bb.14:
	addq	$488, %rsp                      ## imm = 0x1E8
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HUF_ENCSIZE,4,2                ## @HUF_ENCSIZE
	.no_dead_strip	_huf_canonical_code_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huf_canonical_code_table
_huf_canonical_code_table:              ; @huf_canonical_code_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
	sub	sp, sp, #480
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	xzr, [sp, #464]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #432]
	stp	q0, q0, [sp, #400]
	stp	q0, q0, [sp, #368]
	stp	q0, q0, [sp, #336]
	stp	q0, q0, [sp, #304]
	stp	q0, q0, [sp, #272]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
Lloh3:
	adrp	x8, _HUF_ENCSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HUF_ENCSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x9, sp
	mov	x10, x8
	mov	x11, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	lsl	x12, x12, #3
	ldr	x13, [x9, x12]
	add	x13, x13, #1
	str	x13, [x9, x12]
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x10, #0
	mov	w9, #58
	mov	x11, sp
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #3
	ldr	x13, [x11, x12]
	add	x13, x13, x10
	str	x10, [x11, x12]
	lsr	x10, x13, #1
	subs	x9, x9, #1
	b.hi	LBB0_4
; %bb.5:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x9, sp
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x0, #8
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sbfiz	x11, x10, #3, #32
	ldr	x12, [x9, x11]
	sxtw	x10, w10
	add	x13, x12, #1
	str	x13, [x9, x11]
	orr	x10, x10, x12, lsl #6
	str	x10, [x0]
	b	LBB0_7
LBB0_10:
	ldur	x8, [x29, #-24]
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_12
; %bb.11:
	add	sp, sp, #480
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HUF_ENCSIZE,4,2                ; @HUF_ENCSIZE
	.no_dead_strip	_huf_canonical_code_table
.subsections_via_symbols
