	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_huffman_codes_lengths      ## -- Begin function get_huffman_codes_lengths
	.p2align	4, 0x90
_get_huffman_codes_lengths:             ## @get_huffman_codes_lengths
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$2, %edx
	setge	%dil
	callq	_assert
	leal	(,%rbx,4), %edi
	callq	_zmalloc0
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_dyn_mark
	movl	%ebx, %edi
	shll	$4, %edi
	callq	_zmalloc
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, %ecx
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	testb	$1, %cl
	je	LBB0_13
## %bb.11:
	movl	(%r13,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	movslq	%r14d, %r14
	movq	%r14, %rdx
	shlq	$4, %rdx
	movl	%ecx, (%r12,%rdx)
	movl	%eax, 4(%r12,%rdx)
	incl	%r14d
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movl	%r14d, (%rbx)
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_assert
	movq	_cmp_ccp_list_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_qsort
	cmpl	$1, %r14d
	jne	LBB0_15
## %bb.14:
	movslq	4(%r12), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, (%r12,%rax,4)
	jmp	LBB0_23
LBB0_15:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_zmalloc_ccp_list
	movq	%rax, %rbx
	cmpl	$2, %r15d
	jl	LBB0_18
## %bb.16:
	incl	%r15d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_zmalloc_ccp_list
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_package_merge
	movq	%rax, %rbx
	decl	%r15d
	cmpl	$2, %r15d
	ja	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_package_merge
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_23
## %bb.19:
	movq	%rax, %r15
	movl	$1, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	8(%r15), %r15
	incl	%ebx
	testq	%r15, %r15
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %ebx
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_llhuf_incr_code_lengths
	jmp	LBB0_22
LBB0_23:
	callq	_dyn_release
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rax,4), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %r14
	movq	%r14, %rdi
	shlq	$4, %rdi
	movl	%esi, (%r12,%rdi)
	movl	%eax, 4(%r12,%rdi)
	incl	%r14d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r13,%rax,4), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %r14
	movq	%r14, %rdi
	shlq	$4, %rdi
	movl	%esi, (%r12,%rdi)
	leal	1(%rax), %esi
	movl	%esi, 4(%r12,%rdi)
	incl	%r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_cmp_ccp_list_entries,4,2       ## @cmp_ccp_list_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_huffman_codes_lengths      ; -- Begin function get_huffman_codes_lengths
	.p2align	2
_get_huffman_codes_lengths:             ; @get_huffman_codes_lengths
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x25, x1
	mov	x24, x0
	cmp	w2, #1
	cset	w0, gt
	bl	_assert
	lsl	w0, w25, #2
	bl	_zmalloc0
	mov	x19, x0
	bl	_dyn_mark
	lsl	w0, w25, #4
	bl	_zmalloc
	mov	x21, x0
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	mov	w20, #0
	mov	w9, w25
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x24, x8, lsl #2]
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x21, w20, sxtw #4
	stp	w10, w8, [x11]
	add	w20, w20, #1
	b	LBB0_2
LBB0_5:
	mov	w20, #0
LBB0_6:
	str	w20, [x23]
	cmp	w20, #0
	cset	w0, gt
	bl	_assert
Lloh0:
	adrp	x8, _cmp_ccp_list_entries@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmp_ccp_list_entries@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #16
	bl	_qsort
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.7:
	ldrsw	x8, [x21, #4]
	str	w22, [x19, x8, lsl #2]
	b	LBB0_16
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_zmalloc_ccp_list
	mov	x23, x0
	cmp	w22, #2
	b.lt	LBB0_11
; %bb.9:
	add	w22, w22, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_zmalloc_ccp_list
	mov	x1, x0
	mov	x0, x23
	bl	_package_merge
	mov	x23, x0
	sub	w22, w22, #1
	cmp	w22, #2
	b.hi	LBB0_10
LBB0_11:
	mov	x0, x23
	mov	x1, #0
	bl	_package_merge
	cbz	x0, LBB0_16
; %bb.12:
	mov	x21, x0
	mov	w22, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x21, [x21, #8]
	add	w22, w22, #1
	cbz	x21, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w20
	b.ge	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_llhuf_incr_code_lengths
	b	LBB0_13
LBB0_16:
	bl	_dyn_release
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cmp_ccp_list_entries,4,2       ; @cmp_ccp_list_entries
.subsections_via_symbols
