	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tag_tree_code
_tag_tree_code:                         ## @tag_tree_code
	.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	%r12
	pushq	%rbx
	subq	$256, %rsp                      ## imm = 0x100
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rsi, -288(%rbp)
	movq	8(%rsi), %rdx
	xorl	%eax, %eax
	movl	$1, %ecx
	testq	%rdx, %rdx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rdx)
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$1, 16(%rdx)
	movq	%rdx, -288(%rbp,%rcx,8)
	incq	%rcx
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movl	(%rdx), %eax
LBB0_4:
	movl	%ecx, %ebx
	decq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	movq	-288(%rbp,%rcx,8), %r12
	movl	(%r12), %edx
	cmpl	%r14d, %edx
	jge	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	subl	%eax, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_put_bits
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%r12), %eax
	decq	%rbx
	leal	2(%rbx), %ecx
	cmpl	$1, %ecx
	jg	LBB0_5
## %bb.9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.12:
	addq	$256, %rsp                      ## imm = 0x100
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_10
## %bb.7:
	subl	%eax, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	addq	$256, %rsp                      ## imm = 0x100
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tag_tree_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tag_tree_code
_tag_tree_code:                         ; @tag_tree_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	x1, [sp, #8]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w10, #1
	add	x11, sp, #8
	mov	w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, #16]
	cbnz	x12, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x10, [x8, #16]
	add	x12, x9, #1
	str	x8, [x11, x9, lsl #3]
	ldr	x8, [x8, #8]
	mov	x9, x12
	cbnz	x8, LBB0_2
; %bb.4:
	mov	x9, x12
	b	LBB0_7
LBB0_5:
	mov	w9, #1
	b	LBB0_7
LBB0_6:
	ldr	w8, [x8]
LBB0_7:
	and	x9, x9, #0xffffffff
	sub	x21, x9, #1
	add	x22, sp, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x22, w21, uxtw #3]
	ldr	w9, [x23]
	cmp	w9, w20
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w2, w9, w8
	mov	x0, x19
	mov	w1, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w8, [x23]
	sub	x21, x21, #1
	add	w9, w21, #2
	cmp	w9, #1
	b.gt	LBB0_8
; %bb.10:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_12:
	ldur	x9, [x29, #-56]
Lloh6:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.13:
	sub	w2, w20, w8
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #320
	b	_put_bits
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tag_tree_code
.subsections_via_symbols
