	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_distinct_commits
_count_distinct_commits:                ## @count_distinct_commits
	.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, %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	8(%r15), %esi
	movl	%eax, %edi
	callq	_start_delayed_progress
	movl	%eax, %edi
	movl	%eax, (%r15)
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %edi
LBB0_3:
	xorl	%esi, %esi
	callq	_display_progress
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	movq	_oid_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_QSORT
	movl	$1, %r14d
	cmpl	$2, 8(%r15)
	jl	LBB0_11
## %bb.4:
	movl	$1, %r14d
	movl	$1, %r12d
	movl	$4, %ebx
	movq	_COMMIT_NOT_FROM_GRAPH@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	8(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	incq	%r12
	movl	%r12d, %esi
	callq	_display_progress
	movq	16(%r15), %rsi
	leaq	(%rsi,%rbx), %rdi
	addq	$-4, %rdi
	addq	%rbx, %rsi
	callq	_oideq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 32(%r15)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r15), %edi
	movq	16(%r15), %rsi
	addq	%rbx, %rsi
	callq	_lookup_commit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_stop_progress
	movl	%r14d, %eax
	addq	$8, %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
	.asciz	"Counting distinct commits in commit graph"

	.comm	_oid_compare,4,2                ## @oid_compare
	.comm	_COMMIT_NOT_FROM_GRAPH,8,3      ## @COMMIT_NOT_FROM_GRAPH
	.no_dead_strip	_count_distinct_commits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_distinct_commits
_count_distinct_commits:                ; @count_distinct_commits
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19, #8]
	bl	_start_delayed_progress
	str	w0, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
LBB0_3:
	mov	w1, #0
	bl	_display_progress
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x8, _oid_compare@GOTPAGE
Lloh3:
	ldr	x8, [x8, _oid_compare@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_QSORT
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.4:
	mov	w21, #1
	mov	w22, #4
Lloh5:
	adrp	x23, _COMMIT_NOT_FROM_GRAPH@GOTPAGE
Lloh6:
	ldr	x23, [x23, _COMMIT_NOT_FROM_GRAPH@GOTPAGEOFF]
	mov	w20, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w20, w20, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #4
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x21, x21, #1
	mov	x1, x21
	bl	_display_progress
	ldr	x8, [x19, #16]
	add	x1, x8, x22
	sub	x0, x1, #4
	bl	_oideq
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	add	x1, x8, x22
	bl	_lookup_commit
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
	b	LBB0_6
LBB0_11:
	mov	w20, #1
LBB0_12:
	mov	x0, x19
	bl	_stop_progress
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Counting distinct commits in commit graph"

	.comm	_oid_compare,4,2                ; @oid_compare
	.comm	_COMMIT_NOT_FROM_GRAPH,8,3      ; @COMMIT_NOT_FROM_GRAPH
	.no_dead_strip	_count_distinct_commits
.subsections_via_symbols
