	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_bitmap_walk            ## -- Begin function prepare_bitmap_walk
	.p2align	4, 0x90
_prepare_bitmap_walk:                   ## @prepare_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$1, %edi
	movl	$16, %esi
	callq	_xcalloc
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %edi
	movq	%rax, %rsi
	callq	_open_pack_bitmap
	testq	%rax, %rax
	js	LBB0_21
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rax)
	je	LBB0_10
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	_OBJ_TAG@GOTPCREL(%rip), %r14
	movq	_UNINTERESTING@GOTPCREL(%rip), %r15
	leaq	-56(%rbp), %r12
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	_OBJ_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	12(%rbx), %rdi
	xorl	%esi, %esi
	callq	_parse_object_or_die
	movq	(%rbx), %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r15), %eax
	andl	8(%rbx), %eax
	movq	%r13, %rsi
	cmoveq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_object_list_insert
	movq	%rbx, %rdi
	callq	_get_tagged_oid
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_parse_object_or_die
	movq	%rax, %rbx
	movq	(%rax), %rax
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	andl	8(%rbx), %eax
	movq	%r13, %rsi
	cmoveq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_object_list_insert
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %rcx
	jb	LBB0_3
## %bb.8:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_in_bitmapped_pack
	testl	%eax, %eax
	je	LBB0_21
LBB0_10:
	cmpq	$0, -56(%rbp)
	je	LBB0_21
## %bb.11:
	movq	%r15, %rdi
	callq	_load_pack_bitmap
	testq	%rax, %rax
	js	LBB0_21
## %bb.12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_object_array_clear
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_find_objects
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_reset_revision_walk
	movl	$0, (%rbx)
	testq	%r12, %r12
	jne	LBB0_16
## %bb.14:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_find_objects
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_18:
	testq	%r12, %r12
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bitmap_and_not
LBB0_20:
	movq	%r14, 8(%r15)
	movq	%r12, (%r15)
	jmp	LBB0_22
LBB0_21:
	movq	%r15, %rdi
	callq	_free_bitmap_index
	xorl	%r15d, %r15d
LBB0_22:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_NONE,8,3                   ## @OBJ_NONE
	.comm	_OBJ_TAG,8,3                    ## @OBJ_TAG
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to perform bitmap walk"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_bitmap_walk            ; -- Begin function prepare_bitmap_walk
	.p2align	2
_prepare_bitmap_walk:                   ; @prepare_bitmap_walk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	stp	xzr, xzr, [sp]
	mov	w0, #1
	mov	w1, #16
	bl	_xcalloc
	mov	x19, x0
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_open_pack_bitmap
	tbnz	x0, #63, LBB0_15
; %bb.1:
	mov	x21, x20
	ldr	w8, [x21, #8]!
	cbz	w8, LBB0_10
; %bb.2:
	mov	x23, #0
Lloh0:
	adrp	x24, _OBJ_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OBJ_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _OBJ_TAG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OBJ_TAG@GOTPAGEOFF]
	mov	x26, sp
Lloh4:
	adrp	x27, _UNINTERESTING@GOTPAGE
Lloh5:
	ldr	x27, [x27, _UNINTERESTING@GOTPAGEOFF]
	add	x28, sp, #8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #16]
	ldr	x22, [x8, x23, lsl #3]
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, #12
	mov	x1, #0
	bl	_parse_object_or_die
	ldr	x8, [x22]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x22, #8]
	ldr	w9, [x27]
	tst	w9, w8
	csel	x1, x28, x26, eq
	mov	x0, x22
	bl	_object_list_insert
	mov	x0, x22
	bl	_get_tagged_oid
	mov	x1, #0
	bl	_parse_object_or_die
	mov	x22, x0
	ldr	x8, [x0]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #8]
	ldr	w9, [x27]
	tst	w9, w8
	csel	x1, x28, x26, eq
	mov	x0, x22
	bl	_object_list_insert
	add	x23, x23, #1
	ldr	w8, [x21]
	cmp	x23, x8
	b.lo	LBB0_3
; %bb.8:
	ldr	x1, [sp]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_in_bitmapped_pack
	cbz	w0, LBB0_15
LBB0_10:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_load_pack_bitmap
	tbnz	x0, #63, LBB0_15
; %bb.12:
	mov	x0, x21
	bl	_object_array_clear
	ldr	x2, [sp]
	cbz	x2, LBB0_16
; %bb.13:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_find_objects
	mov	x21, x0
	bl	_reset_revision_walk
	str	wzr, [x20]
	cbnz	x21, LBB0_17
; %bb.14:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_free_bitmap_index
	mov	x19, #0
	b	LBB0_22
LBB0_16:
	mov	x21, #0
LBB0_17:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_find_objects
	mov	x20, x0
	cbnz	x0, LBB0_19
; %bb.18:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_19:
	cbz	x21, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x21
	bl	_bitmap_and_not
LBB0_21:
	stp	x21, x20, [x19]
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_NONE,8,3                   ; @OBJ_NONE
	.comm	_OBJ_TAG,8,3                    ; @OBJ_TAG
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to perform bitmap walk"

.subsections_via_symbols
