	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark_complete_and_common_ref
_mark_complete_and_common_ref:          ## @mark_complete_and_common_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	%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, -72(%rbp)                 ## 8-byte Spill
	movq	_save_commit_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rax)
	movq	(%rdx), %rbx
	testq	%rbx, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movq	_OBJECT_INFO_QUICK@GOTPCREL(%rip), %r15
	movq	_the_repository@GOTPCREL(%rip), %r14
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_has_object_file_with_flags
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_parse_object
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r13
	movq	%r13, %rcx
	cmovlq	%rax, %rcx
	testq	%r13, %r13
	cmoveq	%rax, %rcx
	movq	%rcx, %r13
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.9:
	movq	_mark_complete_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_for_each_ref
	movq	_mark_alternate_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_for_each_cached_alternate
	movq	_complete@GOTPCREL(%rip), %rdi
	callq	_commit_list_sort_by_date
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mark_recent_complete_commits
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.12:
	movq	_the_repository@GOTPCREL(%rip), %r15
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %r12
	movq	_COMPLETE@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r14d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_lookup_object
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_deref_tag
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r13), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	*(%rdi)
	jmp	LBB0_17
LBB0_18:
	movq	_save_commit_buffer@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_save_commit_buffer,4,2         ## @save_commit_buffer
	.comm	_OBJECT_INFO_QUICK,4,2          ## @OBJECT_INFO_QUICK
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.comm	_mark_complete_oid,4,2          ## @mark_complete_oid
	.comm	_mark_alternate_complete,4,2    ## @mark_alternate_complete
	.comm	_complete,4,2                   ## @complete
	.comm	_COMPLETE,4,2                   ## @COMPLETE
	.no_dead_strip	_mark_complete_and_common_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark_complete_and_common_ref
_mark_complete_and_common_ref:          ; @mark_complete_and_common_ref
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _save_commit_buffer@GOTPAGE
Lloh1:
	ldr	x24, [x24, _save_commit_buffer@GOTPAGEOFF]
	ldr	w25, [x24]
	str	wzr, [x24]
	ldr	x23, [x2]
Lloh2:
	adrp	x26, _the_repository@GOTPAGE
Lloh3:
	ldr	x26, [x26, _the_repository@GOTPAGEOFF]
Lloh4:
	adrp	x27, _OBJ_COMMIT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _OBJ_COMMIT@GOTPAGEOFF]
	mov	x22, #0
	cbz	x23, LBB0_7
; %bb.1:
Lloh6:
	adrp	x28, _OBJECT_INFO_QUICK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _OBJECT_INFO_QUICK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	x0, x23
	bl	_has_object_file_with_flags
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	mov	x1, x23
	bl	_parse_object
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x8
	ccmp	x22, #0, #4, ge
	csel	x22, x8, x22, eq
	b	LBB0_2
LBB0_7:
	ldr	w8, [x21]
	cbnz	w8, LBB0_10
; %bb.8:
Lloh8:
	adrp	x8, _mark_complete_oid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mark_complete_oid@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_for_each_ref
Lloh11:
	adrp	x8, _mark_alternate_complete@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mark_alternate_complete@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_for_each_cached_alternate
Lloh14:
	adrp	x0, _complete@GOTPAGE
Lloh15:
	ldr	x0, [x0, _complete@GOTPAGEOFF]
	bl	_commit_list_sort_by_date
	cbz	x22, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	bl	_mark_recent_complete_commits
LBB0_10:
	ldr	x20, [x20]
	cbz	x20, LBB0_17
; %bb.11:
Lloh16:
	adrp	x22, _COMPLETE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _COMPLETE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x26]
	mov	x0, x21
	mov	x1, x20
	bl	_lookup_object
	mov	x1, x0
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_deref_tag
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	ldr	x8, [x0]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x1, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_12
LBB0_17:
	str	w25, [x24]
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_save_commit_buffer,4,2         ; @save_commit_buffer
	.comm	_OBJECT_INFO_QUICK,4,2          ; @OBJECT_INFO_QUICK
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.comm	_mark_complete_oid,4,2          ; @mark_complete_oid
	.comm	_mark_alternate_complete,4,2    ; @mark_alternate_complete
	.comm	_complete,4,2                   ; @complete
	.comm	_COMPLETE,4,2                   ; @COMPLETE
	.no_dead_strip	_mark_complete_and_common_ref
.subsections_via_symbols
