	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_and_scan_merged_commits
_sort_and_scan_merged_commits:          ## @sort_and_scan_merged_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_start_delayed_progress
	movl	%eax, (%r14)
LBB0_2:
	movq	24(%r14), %rdi
	movl	16(%r14), %esi
	movq	_commit_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_QSORT
	movq	$0, 8(%r14)
	cmpl	$0, 16(%r14)
	jle	LBB0_12
## %bb.3:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_display_progress
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_commit_list_count
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %eax
	jb	LBB0_5
## %bb.4:
	decl	%eax
	addq	%rax, 8(%r14)
LBB0_5:
	cmpl	$2, 16(%r14)
	jl	LBB0_12
## %bb.6:
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	__
	movl	%eax, %r12d
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$4, %rdi
	callq	_oid_to_hex
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_die
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	16(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_display_progress
	movq	24(%r14), %rax
	movq	-8(%rax,%rbx,8), %rdi
	movq	(%rax,%rbx,8), %rsi
	addq	$4, %rdi
	addq	$4, %rsi
	callq	_oideq
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_commit_list_count
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %eax
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	decl	%eax
	addq	%rax, 8(%r14)
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stop_progress                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scanning merged commits"

	.comm	_commit_compare,4,2             ## @commit_compare
L_.str.1:                               ## @.str.1
	.asciz	"unexpected duplicate commit id %s"

	.no_dead_strip	_sort_and_scan_merged_commits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_and_scan_merged_commits
_sort_and_scan_merged_commits:          ; @sort_and_scan_merged_commits
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19, #16]
	bl	_start_delayed_progress
	str	w0, [x19]
LBB0_2:
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
Lloh2:
	adrp	x8, _commit_compare@GOTPAGE
Lloh3:
	ldr	x8, [x8, _commit_compare@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_QSORT
	str	xzr, [x19, #8]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_display_progress
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_commit_list_count
	cmp	w0, #3
	b.lo	LBB0_5
; %bb.4:
	sub	w8, w0, #1
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_5:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.6:
	mov	x22, #0
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	__
	mov	x21, x0
	ldr	x8, [x19, #24]
	add	x8, x8, x22, lsl #3
	ldr	x8, [x8, #8]
	add	x0, x8, #4
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x21
	bl	_die
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x8, [x19, #16]
	add	x9, x22, #2
	add	x22, x22, #1
	cmp	x9, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	w1, w22, #1
	bl	_display_progress
	ldr	x8, [x19, #24]
	add	x8, x8, x22, lsl #3
	ldp	x9, x8, [x8]
	add	x0, x9, #4
	add	x1, x8, #4
	bl	_oideq
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x22, lsl #3
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_commit_list_count
	cmp	w0, #3
	b.lo	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w0, #1
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_12:
	mov	x0, x19
	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
	b	_stop_progress
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scanning merged commits"

	.comm	_commit_compare,4,2             ; @commit_compare
l_.str.1:                               ; @.str.1
	.asciz	"unexpected duplicate commit id %s"

	.no_dead_strip	_sort_and_scan_merged_commits
.subsections_via_symbols
