	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_writer_select_commits   ## -- Begin function bitmap_writer_select_commits
	.p2align	4, 0x90
_bitmap_writer_select_commits:          ## @bitmap_writer_select_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_date_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_QSORT
	movq	_writer@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_start_progress
	movl	%eax, 4(%rbx)
LBB0_2:
	cmpl	$100, %r15d
	jae	LBB0_3
## %bb.8:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	xorl	%esi, %esi
	callq	_push_bitmapped_commit
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_next_commit_index
	cmpl	%r15d, %eax
	jae	LBB0_24
## %bb.4:
	movl	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r12
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_push_bitmapped_commit
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %r14d
	addl	%eax, %ebx
	incl	%ebx
	movq	_writer@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	movl	%ebx, %esi
	callq	_display_progress
	movl	%ebx, %edi
	callq	_next_commit_index
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addl	%r14d, %eax
	incl	%eax
	cmpl	%r15d, %eax
	jae	LBB0_24
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_writer@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jge	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %eax
	movq	%r12, %r15
	movq	(%r12,%rax,8), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%r13d
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	ja	LBB0_21
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%r13), %eax
	movq	(%r15,%rax,8), %r14
	leaq	12(%r14), %rdi
	callq	_find_reused_bitmap
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_NEEDS_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	$0, (%rax)
	cmovneq	%r14, %r12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	movq	(%r12,%rax,8), %r14
	leaq	12(%r14), %rdi
	callq	_find_reused_bitmap
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movq	%r12, %r14
	jmp	LBB0_22
LBB0_7:
	movq	_writer@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
LBB0_24:
	movq	_writer@GOTPCREL(%rip), %rdi
	addq	$4, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stop_progress                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_date_compare,4,2               ## @date_compare
	.comm	_writer,16,3                    ## @writer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selecting bitmap commits"

	.comm	_NEEDS_BITMAP,4,2               ## @NEEDS_BITMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_writer_select_commits   ; -- Begin function bitmap_writer_select_commits
	.p2align	2
_bitmap_writer_select_commits:          ; @bitmap_writer_select_commits
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _date_compare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _date_compare@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_QSORT
Lloh3:
	adrp	x25, _writer@GOTPAGE
Lloh4:
	ldr	x25, [x25, _writer@GOTPAGEOFF]
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_start_progress
	str	w0, [x25, #4]
LBB0_2:
	cmp	w20, #100
	b.hs	LBB0_7
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
	mov	w20, w20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	mov	x1, #0
	bl	_push_bitmapped_commit
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_6:
	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
LBB0_7:
	mov	w0, #0
	bl	_next_commit_index
	cmp	w0, w20
	b.hs	LBB0_24
; %bb.8:
	mov	w22, #0
Lloh7:
	adrp	x26, _NEEDS_BITMAP@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NEEDS_BITMAP@GOTPAGEOFF]
	mov	x23, x0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [x19, w22, uxtw #3]
	add	x0, x24, #12
	bl	_find_reused_bitmap
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	bl	_push_bitmapped_commit
	add	w8, w23, w22
	add	w22, w8, #1
	ldr	w0, [x25, #4]
	mov	x1, x22
	bl	_display_progress
	mov	x0, x22
	bl	_next_commit_index
	mov	x23, x0
	add	w0, w0, w22
	cmp	w0, w20
	b.hs	LBB0_24
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x25]
	cmp	w8, w21
	b.ge	LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w23, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w28, #0
	ldr	x27, [x19, w0, uxtw #3]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	w28, w28, #1
	cmp	w28, w23
	b.hi	LBB0_22
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w22, w28
	ldr	x24, [x19, w8, uxtw #3]
	add	x0, x24, #12
	bl	_find_reused_bitmap
	cbnz	x0, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x24, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x24]
	cbz	x8, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x27, x27, x24, eq
	b	LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, #0
	b	LBB0_11
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, #0
	mov	x24, x27
	b	LBB0_11
LBB0_23:
	str	w21, [x25]
LBB0_24:
	add	x0, x25, #4
	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
	b	_stop_progress
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_date_compare,4,2               ; @date_compare
	.comm	_writer,16,3                    ; @writer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selecting bitmap commits"

	.comm	_NEEDS_BITMAP,4,2               ; @NEEDS_BITMAP
.subsections_via_symbols
