	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_huffman_build               ## -- Begin function pm_huffman_build
	.p2align	4, 0x90
_pm_huffman_build:                      ## @pm_huffman_build
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	-2(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$134217726, %eax                ## imm = 0x7FFFFFE
	setb	%dil
	callq	_assert
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rbx
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r12,%rax,8), %r13
	movq	$0, 16(%r12,%rax,8)
	leal	(%rbx,%rbx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%r12,%rax,8)
	movq	_FREQ_INFTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PB@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	784(%rcx), %rdx
	movl	%eax, 4(%rdx)
	movl	%eax, (%rdx)
	negl	%ebx
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(,%rdx,8), %r14
	addq	%r13, %r14
	leaq	744(%rcx), %rsi
	movq	744(%rcx), %rdi
	movl	%eax, (%rdi)
	movq	8(%r13,%rdx,8), %rax
	movl	(%rax), %eax
	movq	760(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_pm_tree_advb
	movl	$720, %r15d                     ## imm = 0x2D0
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%r15), %rsi
	movq	(%rax,%r15), %rcx
	movl	%ebx, (%rcx)
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	movq	16(%rax,%r15), %rax
	movl	%ecx, (%rax)
	movq	%r13, %rdi
	callq	_pm_tree_advb
	addq	$-24, %r15
	cmpq	$-24, %r15
	jne	LBB0_1
## %bb.2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpl	$2, %r15d
	jl	LBB0_5
## %bb.3:
	leal	(%r15,%r15), %ebx
	decl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx,%rax,4), %r14d
	movl	%r14d, %edi
	callq	_assert
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pm_tree_free
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_pm_tree_advance
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_4
LBB0_5:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %ecx
	subl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r15d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREQ_INFTY,4,2                 ## @FREQ_INFTY
	.comm	_PB,8,3                         ## @PB
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"package-merge: maximal memory usage is %d+%d 8-byte cells out of %d+%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_huffman_build               ; -- Begin function pm_huffman_build
	.p2align	2
_pm_huffman_build:                      ; @pm_huffman_build
	.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	x19, x1
	mov	x20, x0
	sub	w8, w1, #2
	mov	w9, #134217726
	cmp	w8, w9
	cset	w0, lo
	bl	_assert
	sxtw	x8, w19
	mov	w9, #24
	smaddl	x21, w19, w9, x20
	str	xzr, [x21, #16]
	lsl	w10, w19, #4
	sub	w20, w10, w19
Lloh0:
	adrp	x10, _FREQ_INFTY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FREQ_INFTY@GOTPAGEOFF]
	str	w20, [x21]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x23, _PB@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PB@GOTPAGEOFF]
	ldr	x11, [x23]
	ldr	x12, [x11, #784]
	stp	w10, w10, [x12]
	neg	x22, x8
	mneg	x8, x8, x9
	add	x24, x21, x8
	add	x1, x11, #744
	ldr	x8, [x11, #744]
	str	w22, [x8]
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
	ldr	x9, [x11, #760]
	str	w8, [x9]
	mov	x0, x21
	bl	_pm_tree_advb
	mov	w25, #720
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x25
	ldr	x8, [x1]
	str	w22, [x8]
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
	ldr	x9, [x1, #16]
	str	w8, [x9]
	mov	x0, x21
	bl	_pm_tree_advb
	sub	x25, x25, #24
	cmn	x25, #24
	b.ne	LBB0_1
; %bb.2:
	cmp	w19, #2
	b.lt	LBB0_5
; %bb.3:
	lsl	w8, w19, #1
	sub	w24, w8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldp	x9, x8, [x8]
	ldr	w22, [x9, x8, lsl #2]
	mov	x0, x22
	bl	_assert
	mov	x0, x21
	mov	x1, x22
	bl	_pm_tree_free
	ldr	x1, [x23]
	mov	x0, x21
	bl	_pm_tree_advance
	sub	w24, w24, #1
	cmp	w24, #1
	b.gt	LBB0_4
LBB0_5:
Lloh5:
	adrp	x8, _verbosity@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x21]
	sub	w3, w20, w8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x4, x19
	mov	x5, x20
	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
	b	_fprintf
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FREQ_INFTY,4,2                 ; @FREQ_INFTY
	.comm	_PB,8,3                         ; @PB
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"package-merge: maximal memory usage is %d+%d 8-byte cells out of %d+%d\n"

.subsections_via_symbols
