	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cache_tree
_add_cache_tree:                        ## @add_cache_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	js	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	24(%r12), %rsi
	callq	_lookup_tree
	orl	%ebx, (%rax)
	movl	8(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_add_pending_object_with_path
LBB0_2:
	cmpl	$0, 8(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_5
## %bb.3:
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	%r12, %rbx
	movq	%r15, %r12
	movq	(%rax,%r13,8), %r15
	movl	8(%r15), %ecx
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_strbuf_addf
	movq	(%r15), %rdi
	movq	%r12, %r15
	movq	%rbx, %r12
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_add_cache_tree
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	incq	%r13
	movslq	8(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_5:
	addq	$24, %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	"%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.no_dead_strip	_add_cache_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cache_tree
_add_cache_tree:                        ; @add_cache_tree
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x2]
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	add	x1, x22, #24
	bl	_lookup_tree
	mov	x1, x0
	ldr	w8, [x0]
	orr	w8, w8, w19
	str	w8, [x0]
	ldr	w4, [x20, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w3, #16384
	bl	_add_pending_object_with_path
LBB0_2:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x26, #0
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x23, #0
	csel	x24, x9, x8, eq
Lloh6:
	adrp	x25, l_.str.1@PAGE
Lloh7:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x27, [x8, x26, lsl #3]
	ldr	w3, [x27, #8]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_strbuf_addf
	ldr	x0, [x27]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_add_cache_tree
	mov	x0, x20
	mov	x1, x23
	bl	_strbuf_setlen
	add	x26, x26, #1
	ldrsw	x8, [x22, #8]
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_5:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.no_dead_strip	_add_cache_tree
.subsections_via_symbols
