	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splice_tree
_splice_tree:                           ## @splice_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strchrnul
	movq	%rax, %rbx
	cmpb	$1, (%rax)
	sbbq	$-1, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	-124(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_read_object_file
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	subl	%r14d, %ebx
	movq	-80(%rbp), %rdx
	leaq	-96(%rbp), %rdi
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	callq	_init_tree_desc
	cmpq	$0, -88(%rbp)
	je	LBB0_10
## %bb.3:
	leaq	-96(%rbp), %r12
	leaq	-48(%rbp), %r13
	leaq	-72(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_update_tree_entry
	cmpq	$0, -88(%rbp)
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_tree_entry_extract
	movq	-48(%rbp), %rdi
	callq	_strlen
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movzwl	-72(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_8:
	movq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %r13
	incq	%r13
	jmp	LBB0_11
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.13:
	movq	%r13, %rsi
	callq	_hashcpy
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %r14
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_splice_tree
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_hashcpy
	movq	-80(%rbp), %rsi
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	callq	_write_object_file
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
LBB0_15:
	movl	%ebx, %eax
	addq	$88, %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
	.asciz	"cannot read tree %s"

L_.str.1:                               ## @.str.1
	.asciz	"entry %s in tree %s is not a tree"

L_.str.2:                               ## @.str.2
	.asciz	"entry %.*s not found in tree %s"

	.comm	_tree_type,4,2                  ## @tree_type
	.no_dead_strip	_splice_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splice_tree
_splice_tree:                           ; @splice_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strchrnul
	mov	x25, x0
	mov	x8, x0
	ldrb	w9, [x8], #1
	cmp	w9, #0
	csel	x22, x0, x8, eq
	add	x1, sp, #44
	add	x2, sp, #72
	mov	x0, x23
	bl	_read_object_file
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	sub	w25, w25, w24
	ldr	x2, [sp, #72]
	add	x0, sp, #56
	mov	x1, x20
	bl	_init_tree_desc
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #56
	bl	_update_tree_entry
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #64]
	cbz	x8, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #56
	add	x1, sp, #48
	add	x2, sp, #32
	bl	_tree_entry_extract
	ldr	x0, [sp, #48]
	bl	_strlen
	cmp	w0, w25
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #48]
	mov	x1, x24
	mov	x2, x25
	bl	_memcmp
	cbnz	w0, LBB0_3
; %bb.7:
	ldrh	w0, [sp, #32]
	bl	_S_ISDIR
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x24, [sp, #48]
	mov	x0, x23
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_9:
	ldr	x23, [sp, #56]
	mov	x0, x23
	bl	_strlen
	add	x8, x23, w0, sxtw
	add	x23, x8, #1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x0, x23
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #8]
	str	x25, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
	mov	x23, #0
	ldrb	w8, [x22]
	cbz	w8, LBB0_13
LBB0_11:
	mov	x1, x23
	bl	_hashcpy
	add	x0, sp, #32
	add	x3, sp, #48
	mov	x1, x22
	mov	x2, x21
	bl	_splice_tree
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.12:
	add	x21, sp, #48
LBB0_13:
	ldr	x1, [x21]
	mov	x0, x23
	bl	_hashcpy
	ldr	x1, [sp, #72]
Lloh6:
	adrp	x8, _tree_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_write_object_file
	mov	x21, x0
	mov	x0, x20
	bl	_free
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read tree %s"

l_.str.1:                               ; @.str.1
	.asciz	"entry %s in tree %s is not a tree"

l_.str.2:                               ; @.str.2
	.asciz	"entry %.*s not found in tree %s"

	.comm	_tree_type,4,2                  ; @tree_type
	.no_dead_strip	_splice_tree
.subsections_via_symbols
