	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twoway_merge                   ## -- Begin function twoway_merge
	.p2align	4, 0x90
_twoway_merge:                          ## @twoway_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	%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
	movq	%rsi, %r14
	movl	(%rsi), %esi
	cmpl	$2, %esi
	jne	LBB0_36
## %bb.1:
	movq	(%rdi), %r15
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r12
	movq	16(%r14), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	cmoveq	%rcx, %rbx
	cmpq	%rax, %r12
	cmoveq	%rcx, %r12
	testq	%r15, %r15
	je	LBB0_28
## %bb.2:
	movq	_CE_CONFLICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_5:
	testq	%r12, %r12
	je	LBB0_6
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	jmp	LBB0_10
LBB0_36:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_28:
	testq	%r12, %r12
	je	LBB0_34
## %bb.29:
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.30:
	cmpl	$0, 4(%r14)
	je	LBB0_31
LBB0_33:
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_10:
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_merged_entry                   ## TAILCALL
LBB0_13:
	movq	%rbx, %rax
	orq	%r12, %rax
	je	LBB0_37
## %bb.14:
	testq	%rbx, %rbx
	jne	LBB0_17
## %bb.15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	jne	LBB0_37
LBB0_17:
	testq	%r12, %r12
	setne	%al
	testq	%rbx, %rbx
	setne	%r13b
	andb	%al, %r13b
	cmpb	$1, %r13b
	jne	LBB0_21
## %bb.18:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_19
LBB0_37:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_keep_entry                     ## TAILCALL
LBB0_34:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
LBB0_7:
	movq	%r15, %rsi
LBB0_8:
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deleted_entry                  ## TAILCALL
LBB0_31:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_32
## %bb.35:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	%rbx, %rdi
	jmp	LBB0_12
LBB0_19:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	jne	LBB0_37
LBB0_21:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.22:
	testq	%r12, %r12
	jne	LBB0_25
## %bb.23:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_25:
	testb	%r13b, %r13b
	je	LBB0_11
## %bb.26:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_11
## %bb.27:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	movq	%r15, %rdi
LBB0_12:
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reject_merge                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot do a twoway merge of %d trees"

	.comm	_CE_CONFLICTED,4,2              ## @CE_CONFLICTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twoway_merge                   ; -- Begin function twoway_merge
	.p2align	2
_twoway_merge:                          ; @twoway_merge
	.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	x19, x1
	ldr	w1, [x1]
	cmp	w1, #2
	b.ne	LBB0_7
; %bb.1:
	ldp	x9, x8, [x0, #8]
	ldr	x20, [x0]
	ldr	x10, [x19, #16]
	cmp	x9, x10
	csel	x22, xzr, x9, eq
	cmp	x8, x10
	csel	x21, xzr, x8, eq
	cbz	x20, LBB0_8
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _CE_CONFLICTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CE_CONFLICTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_same
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_35
LBB0_5:
	cbz	x21, LBB0_20
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	b	LBB0_12
LBB0_7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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	_error
LBB0_8:
	cbz	x21, LBB0_19
; %bb.9:
	cbz	x22, LBB0_11
; %bb.10:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
LBB0_11:
	mov	x0, x21
	mov	x1, #0
LBB0_12:
	mov	x2, 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	_merged_entry
LBB0_13:
	orr	x8, x22, x21
	cbz	x8, LBB0_18
; %bb.14:
	cmp	x22, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x21
	bl	_same
	cbnz	x0, LBB0_18
LBB0_16:
	cmp	x22, #0
	ccmp	x21, #0, #4, ne
	cset	w23, ne
	b.eq	LBB0_28
; %bb.17:
	mov	x0, x22
	mov	x1, x21
	bl	_same
	cbz	x0, LBB0_26
LBB0_18:
	mov	x0, x20
	mov	x1, 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	_keep_entry
LBB0_19:
	mov	x0, x22
	mov	x1, #0
	b	LBB0_22
LBB0_20:
	mov	x0, x20
LBB0_21:
	mov	x1, x20
LBB0_22:
	mov	x2, 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	_deleted_entry
LBB0_23:
	mov	x0, x22
	mov	x1, x21
	bl	_same
	cbz	x0, LBB0_25
; %bb.24:
	mov	w0, #1
	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
	ret
LBB0_25:
	mov	x0, x22
	b	LBB0_36
LBB0_26:
	mov	x0, x22
	mov	x1, x21
	bl	_same
	cbnz	x0, LBB0_28
; %bb.27:
	mov	x0, x20
	mov	x1, x21
	bl	_same
	cbnz	x0, LBB0_18
LBB0_28:
	cbz	x22, LBB0_32
; %bb.29:
	cbnz	x21, LBB0_32
; %bb.30:
	mov	x0, x20
	mov	x1, x22
	bl	_same
	cbz	x0, LBB0_32
; %bb.31:
	mov	x0, x22
	b	LBB0_21
LBB0_32:
	cbz	w23, LBB0_35
; %bb.33:
	mov	x0, x20
	mov	x1, x22
	bl	_same
	cbz	x0, LBB0_35
; %bb.34:
	mov	x0, x20
	mov	x1, x21
	bl	_same
	cbz	x0, LBB0_6
LBB0_35:
	mov	x0, x20
LBB0_36:
	mov	x1, 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	_reject_merge
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot do a twoway merge of %d trees"

	.comm	_CE_CONFLICTED,4,2              ; @CE_CONFLICTED
.subsections_via_symbols
