	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsck_handle_ref
_fsck_handle_ref:                       ## @fsck_handle_ref
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_parse_object
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_is_branch
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_error
	movq	_ERROR_REFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_7:
	movq	_default_refs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_name_objects@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_fsck_walk_options@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_xstrdup
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_add_decoration
LBB0_9:
	movq	%rbx, %rdi
	callq	_mark_object_reachable
	jmp	LBB0_10
LBB0_1:
	movq	%r15, %rdi
	callq	_is_promisor_object
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_default_refs@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_oid_to_hex
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
	movq	_ERROR_REACHABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_default_refs,4,2               ## @default_refs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: invalid sha1 pointer %s"

	.comm	_ERROR_REACHABLE,4,2            ## @ERROR_REACHABLE
	.comm	_errors_found,4,2               ## @errors_found
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
L_.str.1:                               ## @.str.1
	.asciz	"%s: not a commit"

	.comm	_ERROR_REFS,4,2                 ## @ERROR_REFS
	.comm	_USED,4,2                       ## @USED
	.comm	_name_objects,8,3               ## @name_objects
	.comm	_fsck_walk_options,4,2          ## @fsck_walk_options
	.no_dead_strip	_fsck_handle_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsck_handle_ref
_fsck_handle_ref:                       ; @fsck_handle_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_parse_object
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_is_branch
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
Lloh8:
	adrp	x8, _ERROR_REFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_REFS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errors_found@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_4:
Lloh13:
	adrp	x8, _default_refs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _default_refs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh15:
	adrp	x8, _USED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh18:
	adrp	x8, _name_objects@GOTPAGE
Lloh19:
	ldr	x8, [x8, _name_objects@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _fsck_walk_options@GOTPAGE
Lloh22:
	ldr	x8, [x8, _fsck_walk_options@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_xstrdup
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_add_decoration
LBB0_6:
	mov	x0, x20
	bl	_mark_object_reachable
	b	LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_is_promisor_object
	cbz	x0, LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _default_refs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _default_refs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x21
	bl	_oid_to_hex
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_error
Lloh28:
	adrp	x8, _ERROR_REACHABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR_REACHABLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _errors_found@GOTPAGE
Lloh32:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_default_refs,4,2               ; @default_refs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: invalid sha1 pointer %s"

	.comm	_ERROR_REACHABLE,4,2            ; @ERROR_REACHABLE
	.comm	_errors_found,4,2               ; @errors_found
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
l_.str.1:                               ; @.str.1
	.asciz	"%s: not a commit"

	.comm	_ERROR_REFS,4,2                 ; @ERROR_REFS
	.comm	_USED,4,2                       ; @USED
	.comm	_name_objects,8,3               ; @name_objects
	.comm	_fsck_walk_options,4,2          ; @fsck_walk_options
	.no_dead_strip	_fsck_handle_ref
.subsections_via_symbols
