	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__scrap_cache_tree          ## -- Begin function cmd__scrap_cache_tree
	.p2align	4, 0x90
_cmd__scrap_cache_tree:                 ## @cmd__scrap_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
	subq	$16, %rsp
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	xorl	%eax, %eax
	callq	_setup_git_directory
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdi
	callq	_hold_locked_index
	xorl	%eax, %eax
	callq	_read_cache
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	_active_cache_tree@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_the_index@GOTPCREL(%rip), %rdi
	leaq	-8(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read index file"

	.comm	_active_cache_tree,8,3          ## @active_cache_tree
	.comm	_the_index,4,2                  ## @the_index
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
L_.str.1:                               ## @.str.1
	.asciz	"unable to write index file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__scrap_cache_tree          ; -- Begin function cmd__scrap_cache_tree
	.p2align	2
_cmd__scrap_cache_tree:                 ; @cmd__scrap_cache_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_setup_git_directory
Lloh3:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_hold_locked_index
	bl	_read_cache
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
Lloh8:
	adrp	x8, _active_cache_tree@GOTPAGE
Lloh9:
	ldr	x8, [x8, _active_cache_tree@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x0, _the_index@GOTPAGE
Lloh15:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_write_locked_index
	cbz	x0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read index file"

	.comm	_active_cache_tree,8,3          ; @active_cache_tree
	.comm	_the_index,4,2                  ; @the_index
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
l_.str.1:                               ; @.str.1
	.asciz	"unable to write index file"

.subsections_via_symbols
