	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function store_tree
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_store_tree:                            ## @store_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	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,1,0]
	movups	%xmm0, -68(%rbp)
	movq	$0, -52(%rbp)
	movq	(%rdi), %rdi
	addq	$12, %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movq	8(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_load_tree
	movq	8(%r14), %r12
LBB0_3:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_store_tree
	movl	(%r12), %eax
	jmp	LBB0_7
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_NO_DELTA@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_10
## %bb.9:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_10:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_find_object
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	(%rax), %edi
LBB0_11:
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	testq	%r15, %r15
	je	LBB0_15
## %bb.13:
	movq	(%r15), %rax
	movq	_pack_id@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_old_tree@GOTPCREL(%rip), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_mktree
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -64(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -68(%rbp)
LBB0_15:
	movq	_new_tree@GOTPCREL(%rip), %rbx
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_mktree
	movq	_OBJ_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rcx
	addq	$12, %rcx
	leaq	-72(%rbp), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_store_object
	movl	-68(%rbp), %eax
	movl	%eax, 16(%r12)
	cmpl	$0, (%r12)
	je	LBB0_22
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	callq	_release_tree_entry
	incl	%r14d
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movl	(%r12), %r15d
	cmpq	%r15, %rbx
	jae	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	movq	(%r15), %rsi
	movl	8(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, (%rsi)
	leaq	4(%rsi), %rdi
	addq	$12, %rsi
	callq	_oidcpy
	movq	8(%r12), %rax
	movl	%r13d, %ecx
	incl	%r13d
	movq	%r15, (%rax,%rcx,8)
	jmp	LBB0_20
LBB0_21:
	subl	%r14d, %r15d
LBB0_22:
	movl	%r15d, (%r12)
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_NO_DELTA,4,2                   ## @NO_DELTA
	.comm	_pack_id,8,3                    ## @pack_id
	.comm	_old_tree,4,2                   ## @old_tree
	.comm	_new_tree,4,2                   ## @new_tree
	.comm	_OBJ_TREE,4,2                   ## @OBJ_TREE
	.no_dead_strip	_store_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function store_tree
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_store_tree:                            ; @store_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, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #4]
	stp	wzr, wzr, [sp, #20]
	ldr	x8, [x0]
	add	x0, x8, #12
	bl	_is_null_oid
	cbz	w0, LBB0_22
; %bb.1:
	ldr	x19, [x20, #8]
	cbnz	x19, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_load_tree
	ldr	x19, [x20, #8]
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, uxtw
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x21, lsl #3]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_store_tree
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh5:
	adrp	x9, _NO_DELTA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NO_DELTA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_10
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:
	add	x0, x8, #4
	bl	_find_object
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
LBB0_11:
	bl	_S_ISDIR
	cmp	x0, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _pack_id@GOTPAGE
Lloh9:
	ldr	x9, [x9, _pack_id@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh11:
	adrp	x22, _old_tree@GOTPAGE
Lloh12:
	ldr	x22, [x22, _old_tree@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_mktree
	ldr	w8, [x22]
	str	w8, [sp, #12]
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #16]
	stp	w9, w8, [sp, #4]
LBB0_14:
Lloh13:
	adrp	x21, _new_tree@GOTPAGE
Lloh14:
	ldr	x21, [x21, _new_tree@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_mktree
Lloh15:
	adrp	x8, _OBJ_TREE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OBJ_TREE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x3, x8, #12
	mov	x2, sp
	mov	x1, x21
	mov	w4, #0
	bl	_store_object
	ldr	w8, [sp, #4]
	str	w8, [x19, #16]
	ldr	w8, [x19]
	cbz	w8, LBB0_21
; %bb.15:
	mov	x22, #0
	mov	w21, #0
	mov	w23, #0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_release_tree_entry
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.hs	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x22, lsl #3]
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x1, x8
	str	w9, [x1], #12
	add	x0, x8, #4
	bl	_oidcpy
	ldr	x8, [x19, #8]
	str	x20, [x8, w23, uxtw #3]
	add	w23, w23, #1
	b	LBB0_17
LBB0_20:
	sub	w8, w8, w21
LBB0_21:
	str	w8, [x19]
LBB0_22:
	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 AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_NO_DELTA,4,2                   ; @NO_DELTA
	.comm	_pack_id,8,3                    ; @pack_id
	.comm	_old_tree,4,2                   ; @old_tree
	.comm	_new_tree,4,2                   ; @new_tree
	.comm	_OBJ_TREE,4,2                   ; @OBJ_TREE
	.no_dead_strip	_store_tree
.subsections_via_symbols
