	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge
_merge:                                 ## @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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rax
	movq	_NODE_TREE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r15), %rax
LBB0_6:
	cmpq	%rax, (%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_8:
	movq	(%r14), %rdi
	movq	8(%rdi), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r14), %rdi
LBB0_10:
	addq	$16, %rdi
	addq	$16, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_merge_subs                     ## TAILCALL
LBB0_1:
	movq	%rbx, (%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NODE_TREE,8,3                  ## @NODE_TREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root is not a tree"

L_.str.1:                               ## @.str.1
	.asciz	"can merge only with tree"

L_.str.2:                               ## @.str.2
	.asciz	"trees to merge must have same id"

	.no_dead_strip	_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge
_merge:                                 ; @merge
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	cbz	x19, LBB0_10
; %bb.2:
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _NODE_TREE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NODE_TREE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x21]
LBB0_4:
	ldr	x9, [x19]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x20]
LBB0_8:
	add	x0, x8, #16
	add	x1, x19, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_merge_subs
LBB0_9:
	str	x19, [x20]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NODE_TREE,8,3                  ; @NODE_TREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root is not a tree"

l_.str.1:                               ; @.str.1
	.asciz	"can merge only with tree"

l_.str.2:                               ; @.str.2
	.asciz	"trees to merge must have same id"

	.no_dead_strip	_merge
.subsections_via_symbols
