	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_merge
_tree_merge:                            ## @tree_merge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setl	%dil
	callq	_assert
	movq	8(%rbx), %rax
	cmpq	8(%r14), %rax
	jle	LBB0_11
## %bb.4:
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_tree_merge
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movl	16(%rcx), %ecx
	incl	%ecx
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	16(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %r14
	jmp	LBB0_19
LBB0_11:
	movq	32(%r14), %rsi
	movq	%rbx, %rdi
	callq	_tree_merge
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	16(%rax), %ecx
	incl	%ecx
	jmp	LBB0_14
LBB0_5:
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	addl	%ecx, %eax
	movq	%rbx, %r14
	jmp	LBB0_18
LBB0_12:
	movl	$1, %ecx
LBB0_14:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	16(%rax), %eax
	jmp	LBB0_17
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	addl	%ecx, %eax
	movq	%r14, %rbx
LBB0_18:
	movl	%eax, 16(%rbx)
LBB0_19:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_merge
_tree_merge:                            ; @tree_merge
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.3:
	ldr	x0, [x20, #24]
	mov	x1, x19
	bl	_tree_merge
	str	x0, [x20, #24]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	w8, [x8, #16]
	add	w8, w8, #1
	cbz	x0, LBB0_12
LBB0_5:
	ldr	w9, [x0, #16]
	b	LBB0_13
LBB0_6:
	mov	x19, x20
	b	LBB0_15
LBB0_7:
	ldr	x1, [x19, #32]
	mov	x0, x20
	bl	_tree_merge
	str	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.8:
	ldr	w8, [x0, #16]
	add	w8, w8, #1
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_10
LBB0_9:
	ldr	w9, [x9, #16]
LBB0_10:
	add	w8, w9, w8
	mov	x20, x19
	b	LBB0_14
LBB0_11:
	mov	w8, #1
	cbnz	x0, LBB0_5
LBB0_12:
	mov	w9, #0
LBB0_13:
	add	w8, w9, w8
	mov	x19, x20
LBB0_14:
	str	w8, [x20, #16]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w8, #1
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_9
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tree_merge
.subsections_via_symbols
