	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_huffman_build_char_dictionary  ## -- Begin function huffman_build_char_dictionary
	.p2align	4, 0x90
_huffman_build_char_dictionary:         ## @huffman_build_char_dictionary
	.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	%rdx, %r13
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+112(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+96(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+80(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+64(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+48(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+32(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt+16(%rip)
	movaps	%xmm0, _huffman_build_char_dictionary.code_cnt(%rip)
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r12,8), %rax
	cmpq	$33, %rax
	jae	LBB0_45
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %r15
	movq	(%r13,%r12,8), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r15,%r12,8), %rax
	movq	(%r13,%r12,8), %rcx
	imulq	%rax, %rcx
	leaq	_huffman_build_char_dictionary.code_cnt(%rip), %rdx
	incl	(%rdx,%rax,4)
	addq	%rcx, %rbx
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	(%r13,%r12,8), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	cmpq	$256, %r12                      ## imm = 0x100
	movq	%r15, %rsi
	jne	LBB0_1
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r12
	xorl	%ebx, %ebx
	movl	$-2147483648, -44(%rbp)         ## 4-byte Folded Spill
                                        ## imm = 0x80000000
	movl	$1, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	shrl	-44(%rbp)                       ## 4-byte Folded Spill
	incq	%r15
	cmpq	$33, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%r14), %rax
	movl	%ebx, -4(%rax,%r15,4)
	movl	%r15d, %ecx
	negb	%cl
	movl	%ebx, %eax
	shrl	%cl, %eax
	shlq	$2, %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	32(%r14), %rax
	movq	%rcx, -8(%rax,%r15,8)
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	cmpq	$256, %r14                      ## imm = 0x100
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, (%rsi,%r14,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, (%r12)
	addq	$4, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movl	%ebx, (%rax,%r14,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %ebx
	cmpl	%eax, %ebx
	setae	%al
	testl	%ebx, %ebx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movq	%rsi, %r13
	callq	_assert
	movq	%r13, %rsi
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_assert
	movq	24(%r14), %rax
	movl	$32, %ecx
	cmpl	$0, 124(%rax)
	jne	LBB0_41
## %bb.10:
	movl	$31, %ecx
	cmpl	$0, 120(%rax)
	jne	LBB0_41
## %bb.11:
	movl	$30, %ecx
	cmpl	$0, 116(%rax)
	jne	LBB0_41
## %bb.12:
	movl	$29, %ecx
	cmpl	$0, 112(%rax)
	jne	LBB0_41
## %bb.13:
	movl	$28, %ecx
	cmpl	$0, 108(%rax)
	jne	LBB0_41
## %bb.14:
	movl	$27, %ecx
	cmpl	$0, 104(%rax)
	jne	LBB0_41
## %bb.15:
	movl	$26, %ecx
	cmpl	$0, 100(%rax)
	jne	LBB0_41
## %bb.16:
	movl	$25, %ecx
	cmpl	$0, 96(%rax)
	jne	LBB0_41
## %bb.17:
	movl	$24, %ecx
	cmpl	$0, 92(%rax)
	jne	LBB0_41
## %bb.18:
	movl	$23, %ecx
	cmpl	$0, 88(%rax)
	jne	LBB0_41
## %bb.19:
	movl	$22, %ecx
	cmpl	$0, 84(%rax)
	jne	LBB0_41
## %bb.20:
	movl	$21, %ecx
	cmpl	$0, 80(%rax)
	jne	LBB0_41
## %bb.21:
	movl	$20, %ecx
	cmpl	$0, 76(%rax)
	jne	LBB0_41
## %bb.22:
	movl	$19, %ecx
	cmpl	$0, 72(%rax)
	jne	LBB0_41
## %bb.23:
	movl	$18, %ecx
	cmpl	$0, 68(%rax)
	jne	LBB0_41
## %bb.24:
	movl	$17, %ecx
	cmpl	$0, 64(%rax)
	jne	LBB0_41
## %bb.25:
	movl	$16, %ecx
	cmpl	$0, 60(%rax)
	jne	LBB0_41
## %bb.26:
	movl	$15, %ecx
	cmpl	$0, 56(%rax)
	jne	LBB0_41
## %bb.27:
	movl	$14, %ecx
	cmpl	$0, 52(%rax)
	jne	LBB0_41
## %bb.28:
	movl	$13, %ecx
	cmpl	$0, 48(%rax)
	jne	LBB0_41
## %bb.29:
	movl	$12, %ecx
	cmpl	$0, 44(%rax)
	jne	LBB0_41
## %bb.30:
	movl	$11, %ecx
	cmpl	$0, 40(%rax)
	jne	LBB0_41
## %bb.31:
	movl	$10, %ecx
	cmpl	$0, 36(%rax)
	jne	LBB0_41
## %bb.32:
	movl	$9, %ecx
	cmpl	$0, 32(%rax)
	jne	LBB0_41
## %bb.33:
	movl	$8, %ecx
	cmpl	$0, 28(%rax)
	jne	LBB0_41
## %bb.34:
	movl	$7, %ecx
	cmpl	$0, 24(%rax)
	jne	LBB0_41
## %bb.35:
	movl	$6, %ecx
	cmpl	$0, 20(%rax)
	jne	LBB0_41
## %bb.36:
	movl	$5, %ecx
	cmpl	$0, 16(%rax)
	jne	LBB0_41
## %bb.37:
	movl	$4, %ecx
	cmpl	$0, 12(%rax)
	jne	LBB0_41
## %bb.38:
	movl	$3, %ecx
	cmpl	$0, 8(%rax)
	jne	LBB0_41
## %bb.39:
	movl	$2, %ecx
	cmpl	$0, 4(%rax)
	jne	LBB0_41
## %bb.40:
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setne	%cl
LBB0_41:
	movl	%ecx, 48(%r14)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_44
## %bb.42:
	movq	%r14, %r13
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	$46, %r15d
	leaq	L_.str.1(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	cmpq	$32, %rbx
	movl	%ebx, %eax
	cmovbl	%r15d, %eax
	movq	(%r13), %rcx
	movq	40(%r13), %rdx
	movl	(%rdx,%rbx,4), %r8d
	movq	(%rcx,%rbx,8), %r9
	movsbl	%al, %ecx
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_43
LBB0_44:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movsbl	%al, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_huffman_build_char_dictionary.code_cnt,128,4 ## @huffman_build_char_dictionary.code_cnt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fatal: character %02x encoded with %lld > 32 bits\n"

	.comm	_verbosity,4,2                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"character %02x ('%c'): %08x:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_huffman_build_char_dictionary  ; -- Begin function huffman_build_char_dictionary
	.p2align	2
_huffman_build_char_dictionary:         ; @huffman_build_char_dictionary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x22, #0
	mov	x19, #0
	movi.2d	v0, #0000000000000000
Lloh0:
	adrp	x24, _huffman_build_char_dictionary.code_cnt@PAGE
Lloh1:
	add	x24, x24, _huffman_build_char_dictionary.code_cnt@PAGEOFF
	stp	q0, q0, [x24, #96]
	stp	q0, q0, [x24, #64]
	stp	q0, q0, [x24, #32]
	stp	q0, q0, [x24]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x22, lsl #3]
	cmp	x8, #33
	b.hs	LBB0_31
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	x25, x22, #3
	ldr	x8, [x23, x25]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x21, x25]
	ldr	x9, [x23, x25]
	madd	x19, x9, x8, x19
	lsl	x9, x8, #2
	ldr	w10, [x24, x9]
	add	w10, w10, #1
	str	w10, [x24, x9]
	ldp	x9, x10, [x20]
	str	x8, [x9, x25]
	ldr	x8, [x23, x25]
	str	x8, [x10, x25]
	add	x22, x22, #1
	cmp	x22, #256
	b.ne	LBB0_1
; %bb.3:
	mov	w22, #0
	ldr	x23, [x20, #16]
	mov	w24, #-2147483648
	mov	w25, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsr	w24, w24, #1
	add	x25, x25, #1
	cmp	x25, #33
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x26, #0
	sub	x8, x25, #1
	ldp	x9, x10, [x20, #24]
	str	w22, [x9, x8, lsl #2]
	neg	w9, w25
	lsr	w9, w22, w9
	sub	x9, x23, w9, uxtw #2
	str	x9, [x10, x8, lsl #3]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	cmp	x26, #256
	b.eq	LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, x26, lsl #3]
	cmp	x8, x25
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	str	w26, [x23], #4
	ldr	x8, [x20, #40]
	str	w22, [x8, x26, lsl #2]
	add	w22, w22, w24
	cmp	w22, w24
	ccmp	w22, #0, #4, lo
	cset	w0, eq
	bl	_assert
	b	LBB0_6
LBB0_9:
	cmp	w22, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #124]
	cbz	w9, LBB0_11
; %bb.10:
	mov	w8, #32
	b	LBB0_73
LBB0_11:
	ldr	w9, [x8, #120]
	cbz	w9, LBB0_13
; %bb.12:
	mov	w8, #31
	b	LBB0_73
LBB0_13:
	ldr	w9, [x8, #116]
	cbz	w9, LBB0_15
; %bb.14:
	mov	w8, #30
	b	LBB0_73
LBB0_15:
	ldr	w9, [x8, #112]
	cbz	w9, LBB0_17
; %bb.16:
	mov	w8, #29
	b	LBB0_73
LBB0_17:
	ldr	w9, [x8, #108]
	cbz	w9, LBB0_19
; %bb.18:
	mov	w8, #28
	b	LBB0_73
LBB0_19:
	ldr	w9, [x8, #104]
	cbz	w9, LBB0_21
; %bb.20:
	mov	w8, #27
	b	LBB0_73
LBB0_21:
	ldr	w9, [x8, #100]
	cbz	w9, LBB0_23
; %bb.22:
	mov	w8, #26
	b	LBB0_73
LBB0_23:
	ldr	w9, [x8, #96]
	cbz	w9, LBB0_25
; %bb.24:
	mov	w8, #25
	b	LBB0_73
LBB0_25:
	ldr	w9, [x8, #92]
	cbz	w9, LBB0_27
; %bb.26:
	mov	w8, #24
	b	LBB0_73
LBB0_27:
	ldr	w9, [x8, #88]
	cbz	w9, LBB0_29
; %bb.28:
	mov	w8, #23
	b	LBB0_73
LBB0_29:
	ldr	w9, [x8, #84]
	cbz	w9, LBB0_32
; %bb.30:
	mov	w8, #22
	b	LBB0_73
LBB0_31:
Lloh2:
	adrp	x9, _stderr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	sxtb	w3, w8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_fprintf
	mov	w0, #3
	bl	_exit
LBB0_32:
	ldr	w9, [x8, #80]
	cbz	w9, LBB0_34
; %bb.33:
	mov	w8, #21
	b	LBB0_73
LBB0_34:
	ldr	w9, [x8, #76]
	cbz	w9, LBB0_36
; %bb.35:
	mov	w8, #20
	b	LBB0_73
LBB0_36:
	ldr	w9, [x8, #72]
	cbz	w9, LBB0_38
; %bb.37:
	mov	w8, #19
	b	LBB0_73
LBB0_38:
	ldr	w9, [x8, #68]
	cbz	w9, LBB0_40
; %bb.39:
	mov	w8, #18
	b	LBB0_73
LBB0_40:
	ldr	w9, [x8, #64]
	cbz	w9, LBB0_42
; %bb.41:
	mov	w8, #17
	b	LBB0_73
LBB0_42:
	ldr	w9, [x8, #60]
	cbz	w9, LBB0_44
; %bb.43:
	mov	w8, #16
	b	LBB0_73
LBB0_44:
	ldr	w9, [x8, #56]
	cbz	w9, LBB0_46
; %bb.45:
	mov	w8, #15
	b	LBB0_73
LBB0_46:
	ldr	w9, [x8, #52]
	cbz	w9, LBB0_48
; %bb.47:
	mov	w8, #14
	b	LBB0_73
LBB0_48:
	ldr	w9, [x8, #48]
	cbz	w9, LBB0_50
; %bb.49:
	mov	w8, #13
	b	LBB0_73
LBB0_50:
	ldr	w9, [x8, #44]
	cbz	w9, LBB0_52
; %bb.51:
	mov	w8, #12
	b	LBB0_73
LBB0_52:
	ldr	w9, [x8, #40]
	cbz	w9, LBB0_54
; %bb.53:
	mov	w8, #11
	b	LBB0_73
LBB0_54:
	ldr	w9, [x8, #36]
	cbz	w9, LBB0_56
; %bb.55:
	mov	w8, #10
	b	LBB0_73
LBB0_56:
	ldr	w9, [x8, #32]
	cbz	w9, LBB0_58
; %bb.57:
	mov	w8, #9
	b	LBB0_73
LBB0_58:
	ldr	w9, [x8, #28]
	cbz	w9, LBB0_60
; %bb.59:
	mov	w8, #8
	b	LBB0_73
LBB0_60:
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_62
; %bb.61:
	mov	w8, #7
	b	LBB0_73
LBB0_62:
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_64
; %bb.63:
	mov	w8, #6
	b	LBB0_73
LBB0_64:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_66
; %bb.65:
	mov	w8, #5
	b	LBB0_73
LBB0_66:
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_68
; %bb.67:
	mov	w8, #4
	b	LBB0_73
LBB0_68:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_70
; %bb.69:
	mov	w8, #3
	b	LBB0_73
LBB0_70:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_72
; %bb.71:
	mov	w8, #2
	b	LBB0_73
LBB0_72:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, ne
LBB0_73:
	str	w8, [x20, #48]
Lloh7:
	adrp	x8, _verbosity@GOTPAGE
Lloh8:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_76
; %bb.74:
	mov	x21, #0
Lloh10:
	adrp	x23, _stderr@GOTPAGE
Lloh11:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	mov	w24, #46
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_75:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	cmp	x21, #32
	csel	w8, w24, w21, lo
	ldr	x9, [x20, #40]
	ldr	x10, [x20]
	ldr	x10, [x10, x21, lsl #3]
	ldr	w9, [x9, x21, lsl #2]
	stp	x9, x10, [sp]
	sxtb	w3, w8
	mov	x1, x22
	mov	x2, x21
	bl	_fprintf
	add	x21, x21, #1
	cmp	x21, #256
	b.ne	LBB0_75
LBB0_76:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_huffman_build_char_dictionary.code_cnt,128,2 ; @huffman_build_char_dictionary.code_cnt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fatal: character %02x encoded with %lld > 32 bits\n"

	.comm	_verbosity,4,2                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"character %02x ('%c'): %08x:%d\n"

.subsections_via_symbols
