	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_all_trees
_send_all_trees:                        ## @send_all_trees
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	cmpl	$257, %esi                      ## imm = 0x101
	setge	%al
	testl	%edx, %edx
	setg	%cl
	andb	%al, %cl
	cmpl	$4, %r12d
	setge	%al
	andb	%cl, %al
	movzbl	%al, %edi
	leaq	L_.str(%rip), %rsi
	callq	_Assert
	movq	_L_CODES@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	setge	%al
	movq	_D_CODES@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	setge	%cl
	andb	%al, %cl
	movq	_BL_CODES@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	setge	%al
	andb	%cl, %al
	movzbl	%al, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Assert
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Tracev
	leal	-257(%r15), %esi
	movq	%r13, %rdi
	movl	$5, %edx
	callq	_send_bits
	decl	%ebx
	movq	%r13, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	$5, %edx
	callq	_send_bits
	leal	-4(%r12), %esi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_send_bits
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	_bl_order@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_Tracev
	movq	24(%r13), %rax
	movq	(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_send_bits
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movl	(%r13), %edi
	callq	_Tracev
	movq	16(%r13), %rsi
	decl	%r15d
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_send_tree
	movl	(%r13), %edi
	callq	_Tracev
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_send_tree
	movl	(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Tracev                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enough codes"

	.comm	_L_CODES,4,2                    ## @L_CODES
	.comm	_D_CODES,4,2                    ## @D_CODES
	.comm	_BL_CODES,4,2                   ## @BL_CODES
L_.str.1:                               ## @.str.1
	.asciz	"too many codes"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"\nbl counts: "

	.comm	_bl_order,8,3                   ## @bl_order
	.no_dead_strip	_send_all_trees
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_all_trees
_send_all_trees:                        ; @send_all_trees
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #256
	ccmp	w2, #0, #4, gt
	ccmp	w3, #3, #4, gt
	cset	w0, gt
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Assert
Lloh2:
	adrp	x8, _L_CODES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L_CODES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
Lloh5:
	adrp	x8, _D_CODES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_CODES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ccmp	w8, w21, #8, ge
Lloh8:
	adrp	x8, _BL_CODES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BL_CODES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ccmp	w8, w22, #8, ge
	cset	w0, ge
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Assert
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_Tracev
	sub	w1, w20, #257
	mov	x0, x19
	mov	w2, #5
	bl	_send_bits
	sub	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #5
	bl	_send_bits
	sub	w1, w22, #4
	mov	x0, x19
	mov	w2, #4
	bl	_send_bits
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w8, w22
	lsl	x22, x8, #3
Lloh15:
	adrp	x24, _bl_order@GOTPAGE
Lloh16:
	ldr	x24, [x24, _bl_order@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x23]
	bl	_Tracev
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	ldr	x9, [x9, x23]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #3
	bl	_send_bits
	add	x23, x23, #8
	cmp	x22, x23
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x19]
	bl	_Tracev
	ldr	x1, [x19, #16]
	sub	w2, w20, #1
	mov	x0, x19
	bl	_send_tree
	ldr	w0, [x19]
	bl	_Tracev
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_send_tree
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_Tracev
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enough codes"

	.comm	_L_CODES,4,2                    ; @L_CODES
	.comm	_D_CODES,4,2                    ; @D_CODES
	.comm	_BL_CODES,4,2                   ; @BL_CODES
l_.str.1:                               ; @.str.1
	.asciz	"too many codes"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"\nbl counts: "

	.comm	_bl_order,8,3                   ; @bl_order
	.no_dead_strip	_send_all_trees
.subsections_via_symbols
