	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shift_tree                     ## -- Begin function shift_tree
	.p2align	4, 0x90
_shift_tree:                            ## @shift_tree
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	movl	$2, %ebx
	cmovnel	%r8d, %ebx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_score_trees
	movl	%eax, -44(%rbp)
	movl	%eax, -48(%rbp)
	movl	$1, %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, -72(%rbp)
	movl	$1, %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, -56(%rbp)
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_match_trees
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_match_trees
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_oidcpy
	movl	-48(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jge	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_6
## %bb.2:
	leaq	-58(%rbp), %r8
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_get_tree_entry
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rbx
	movq	%r13, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_die
	jmp	LBB0_6
LBB0_4:
	movq	-72(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_splice_tree
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"cannot find path %s in tree %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shift_tree                     ; -- Begin function shift_tree
	.p2align	2
_shift_tree:                            ; @shift_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	w8, #2
	cmp	w4, #0
	csel	w23, w8, w4, eq
	mov	x0, x1
	mov	x1, x2
	bl	_score_trees
	stp	w0, w0, [sp, #8]
	mov	w0, #1
	mov	w1, #1
	bl	_xcalloc
	str	x0, [sp, #24]
	mov	w0, #1
	mov	w1, #1
	bl	_xcalloc
	str	x0, [sp, #16]
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x19
	mov	x4, x24
	mov	x5, x23
	bl	_match_trees
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x22
	mov	x4, x24
	mov	x5, x23
	bl	_match_trees
	mov	x0, x20
	mov	x1, x19
	bl	_oidcpy
	ldp	w9, w8, [sp, #8]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.1:
	ldr	x2, [sp, #16]
	ldrb	w8, [x2]
	cbz	w8, LBB0_6
; %bb.2:
	add	x4, sp, #6
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_get_tree_entry
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x20, [sp, #16]
	mov	x0, x19
	bl	_oid_to_hex
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_die
	b	LBB0_6
LBB0_4:
	ldr	x1, [sp, #24]
	ldrb	w8, [x1]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	bl	_splice_tree
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"cannot find path %s in tree %s"

.subsections_via_symbols
