	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsck_cache_tree
_fsck_cache_tree:                       ## @fsck_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fprintf_ln
LBB0_2:
	xorl	%r13d, %r13d
	cmpq	$0, (%r14)
	js	LBB0_8
## %bb.3:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %r12
	movq	%r12, %rsi
	callq	_parse_object
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r15
	movq	_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	_name_objects@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_fsck_walk_options@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.2(%rip), %rdi
	callq	_xstrdup
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_add_decoration
LBB0_6:
	movq	%r15, %rdi
	callq	_mark_object_reachable
	movq	(%r15), %rax
	movq	_OBJ_TREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_objerror
	movl	%eax, %r13d
LBB0_8:
	cmpl	$0, 8(%r14)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	callq	_fsck_cache_tree
	orl	%eax, %r13d
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_oid_to_hex
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_error
	movq	_ERROR_REFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movl	$1, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking cache tree"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid sha1 pointer in cache-tree"

	.comm	_ERROR_REFS,4,2                 ## @ERROR_REFS
	.comm	_errors_found,4,2               ## @errors_found
	.comm	_USED,4,2                       ## @USED
	.comm	_name_objects,8,3               ## @name_objects
	.comm	_fsck_walk_options,4,2          ## @fsck_walk_options
L_.str.2:                               ## @.str.2
	.asciz	":"

	.comm	_OBJ_TREE,8,3                   ## @OBJ_TREE
L_.str.3:                               ## @.str.3
	.asciz	"non-tree in cache-tree"

	.no_dead_strip	_fsck_cache_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsck_cache_tree
_fsck_cache_tree:                       ; @fsck_cache_tree
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_fprintf_ln
LBB0_2:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _the_repository@GOTPAGE
Lloh9:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x21, x19, #24
	mov	x1, x21
	bl	_parse_object
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
Lloh11:
	adrp	x8, _USED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
Lloh14:
	adrp	x8, _name_objects@GOTPAGE
Lloh15:
	ldr	x8, [x8, _name_objects@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _fsck_walk_options@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fsck_walk_options@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_xstrdup
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_add_decoration
LBB0_6:
	mov	x0, x20
	bl	_mark_object_reachable
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _OBJ_TREE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OBJ_TREE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
	mov	x0, x21
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x19
	bl	_error
Lloh27:
	adrp	x8, _ERROR_REFS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR_REFS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _errors_found@GOTPAGE
Lloh31:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	w20, #1
	b	LBB0_13
LBB0_9:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_objerror
	mov	x20, x0
LBB0_10:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x0, [x8]
	bl	_fsck_cache_tree
	orr	w20, w0, w20
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.lt	LBB0_12
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking cache tree"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid sha1 pointer in cache-tree"

	.comm	_ERROR_REFS,4,2                 ; @ERROR_REFS
	.comm	_errors_found,4,2               ; @errors_found
	.comm	_USED,4,2                       ; @USED
	.comm	_name_objects,8,3               ; @name_objects
	.comm	_fsck_walk_options,4,2          ; @fsck_walk_options
l_.str.2:                               ; @.str.2
	.asciz	":"

	.comm	_OBJ_TREE,8,3                   ; @OBJ_TREE
l_.str.3:                               ; @.str.3
	.asciz	"non-tree in cache-tree"

	.no_dead_strip	_fsck_cache_tree
.subsections_via_symbols
