	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gingetbitmap                   ## -- Begin function gingetbitmap
	.p2align	4, 0x90
_gingetbitmap:                          ## @gingetbitmap
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_ginFreeScanKeys
	movq	%r15, %rdi
	callq	_ginNewScanKey
	movq	%r15, %rdi
	callq	_GinIsVoidRes
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_scanPendingInsert
	movq	%r15, %rdi
	callq	_startScan
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerSetMin
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	-36(%rbp), %esi
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_scanGetItem
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	-36(%rbp), %rbx
	leaq	-40(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-40(%rbp), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_tbm_add_tuples
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	-48(%rbp)
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_scanGetItem
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ItemPointerIsLossyPage
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_tbm_add_page
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gingetbitmap                   ; -- Begin function gingetbitmap
	.p2align	2
_gingetbitmap:                          ; @gingetbitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_ginFreeScanKeys
	mov	x0, x20
	bl	_ginNewScanKey
	mov	x0, x20
	bl	_GinIsVoidRes
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_9
LBB0_2:
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_scanPendingInsert
	mov	x0, x20
	bl	_startScan
	add	x0, sp, #4
	bl	_ItemPointerSetMin
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp]
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #1
	bl	_tbm_add_tuples
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w1, [sp, #4]
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x20
	bl	_scanGetItem
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #4
	bl	_ItemPointerIsLossyPage
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #4
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x19
	bl	_tbm_add_page
	b	LBB0_4
LBB0_8:
	ldr	x0, [sp, #8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
