	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_bitmap_walk               ## -- Begin function test_bitmap_walk
	.p2align	4, 0x90
_test_bitmap_walk:                      ## @test_bitmap_walk
	.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, %r13
	movl	32(%rdi), %edi
	callq	_prepare_bitmap_git
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$1, 16(%r13)
	je	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	24(%r13), %rax
	movq	(%rax), %r12
	movl	8(%r14), %edi
	movl	(%r12), %esi
	callq	_kh_get_oid_map
	movq	%rax, %rbx
	movl	8(%r14), %edi
	callq	_kh_end
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_kh_value
	movq	%rax, %rdi
	callq	_lookup_stored_bitmap
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%rax, %r15
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ewah_checksum
	leaq	L_.str.3(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_ewah_to_bitmap
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str.4(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r13)
	movl	$1, 8(%r13)
	movq	%r15, %rdi
	callq	_bitmap_popcount
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_prepare_revision_walk
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_9:
	movq	%r14, -56(%rbp)
	xorl	%eax, %eax
	callq	_bitmap_new
	movl	%eax, -72(%rbp)
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	callq	_start_progress
	leaq	-68(%rbp), %rbx
	movl	%eax, -68(%rbp)
	movq	$0, -64(%rbp)
	movq	_test_show_commit@GOTPCREL(%rip), %rsi
	movq	_test_show_object@GOTPCREL(%rip), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	callq	_traverse_commit_list
	movq	%rbx, %rdi
	callq	_stop_progress
	movl	-72(%rbp), %esi
	movq	%r15, %rdi
	callq	_bitmap_equals
	testq	%rax, %rax
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %rsi
	cmoveq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_free_bitmap_index
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	cmpl	$1, 16(%r13)
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load bitmap indexes"

L_.str.1:                               ## @.str.1
	.asciz	"you must specify exactly one commit to test"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Bitmap v%d test (%d entries loaded)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found bitmap for %s. %d bits / %08x checksum\n"

L_.str.4:                               ## @.str.4
	.asciz	"Commit %s doesn't have an indexed bitmap"

L_.str.5:                               ## @.str.5
	.asciz	"revision walk setup failed"

L_.str.6:                               ## @.str.6
	.asciz	"Verifying bitmap entries"

	.comm	_test_show_commit,4,2           ## @test_show_commit
	.comm	_test_show_object,4,2           ## @test_show_object
L_.str.7:                               ## @.str.7
	.asciz	"OK!\n"

L_.str.8:                               ## @.str.8
	.asciz	"Mismatch!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_bitmap_walk               ; -- Begin function test_bitmap_walk
	.p2align	2
_test_bitmap_walk:                      ; @test_bitmap_walk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	ldr	w0, [x0, #32]
	bl	_prepare_bitmap_git
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_4:
Lloh4:
	adrp	x25, _stderr@GOTPAGE
Lloh5:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	ldr	w0, [x25]
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20, #24]
	ldr	x21, [x8]
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_kh_get_oid_map
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_kh_end
	cmp	x22, x0
	b.ge	LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_kh_value
	bl	_lookup_stored_bitmap
	mov	x22, x0
	ldr	w23, [x25]
	mov	x0, x21
	bl	_oid_to_hex
	mov	x24, x0
	ldr	x26, [x22]
	mov	x0, x22
	bl	_ewah_checksum
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp, #8]
	str	x24, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_fprintf
	mov	x0, x22
	bl	_ewah_to_bitmap
	mov	x22, x0
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_oid_to_hex
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
	mov	x22, #0
LBB0_7:
	movi.2s	v0, #1
	str	d0, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x22
	bl	_bitmap_popcount
	mov	x21, x0
	mov	x0, x20
	bl	_prepare_revision_walk
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_die
LBB0_9:
	str	x19, [sp, #40]
	bl	_bitmap_new
	str	w0, [sp, #24]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_start_progress
	add	x8, sp, #24
	orr	x21, x8, #0x4
	str	w0, [sp, #28]
	str	xzr, [sp, #32]
Lloh16:
	adrp	x1, _test_show_commit@GOTPAGE
Lloh17:
	ldr	x1, [x1, _test_show_commit@GOTPAGEOFF]
Lloh18:
	adrp	x2, _test_show_object@GOTPAGE
Lloh19:
	ldr	x2, [x2, _test_show_object@GOTPAGEOFF]
	add	x3, sp, #24
	mov	x0, x20
	bl	_traverse_commit_list
	mov	x0, x21
	bl	_stop_progress
	ldr	w1, [sp, #24]
	mov	x0, x22
	bl	_bitmap_equals
	ldr	w8, [x25]
Lloh20:
	adrp	x9, l_.str.7@PAGE
Lloh21:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh22:
	adrp	x10, l_.str.8@PAGE
Lloh23:
	add	x10, x10, l_.str.8@PAGEOFF
	cmp	x0, #0
	csel	x1, x10, x9, eq
	mov	x0, x8
	bl	_fprintf
	mov	x0, x19
	bl	_free_bitmap_index
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load bitmap indexes"

l_.str.1:                               ; @.str.1
	.asciz	"you must specify exactly one commit to test"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Bitmap v%d test (%d entries loaded)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found bitmap for %s. %d bits / %08x checksum\n"

l_.str.4:                               ; @.str.4
	.asciz	"Commit %s doesn't have an indexed bitmap"

l_.str.5:                               ; @.str.5
	.asciz	"revision walk setup failed"

l_.str.6:                               ; @.str.6
	.asciz	"Verifying bitmap entries"

	.comm	_test_show_commit,4,2           ; @test_show_commit
	.comm	_test_show_object,4,2           ; @test_show_object
l_.str.7:                               ; @.str.7
	.asciz	"OK!\n"

l_.str.8:                               ; @.str.8
	.asciz	"Mismatch!\n"

.subsections_via_symbols
