	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btgetbitmap                    ## -- Begin function btgetbitmap
	.p2align	4, 0x90
_btgetbitmap:                           ## @btgetbitmap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	4(%rdi), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	js	LBB0_2
## %bb.3:
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	__bt_start_array_keys
LBB0_4:
	xorl	%r12d, %r12d
	movq	_ForwardScanDirection@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	__bt_first
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	%r14, %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	incq	%r12
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_tbm_add_tuples
	movq	8(%rbx), %rax
	leaq	1(%rax), %rsi
	movq	%rsi, 8(%rbx)
	cmpq	16(%rbx), %rax
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	__bt_next
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	__bt_advance_array_keys
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_13
LBB0_2:
	xorl	%r12d, %r12d
LBB0_13:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btgetbitmap                    ; -- Begin function btgetbitmap
	.p2align	2
_btgetbitmap:                           ; @btgetbitmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldrsw	x22, [x0, #4]
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _ForwardScanDirection@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ForwardScanDirection@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	tbnz	x8, #63, LBB0_12
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x20
	bl	__bt_start_array_keys
LBB0_3:
	mov	x21, #0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w1, [x23]
	mov	x0, x20
	bl	__bt_first
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	mov	x1, x20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x22, #24]
	add	x1, x9, x8, lsl #2
	add	x21, x21, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_tbm_add_tuples
	ldp	x9, x10, [x22, #8]
	add	x8, x9, #1
	str	x8, [x22, #8]
	cmp	x9, x10
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x23]
	mov	x0, x20
	bl	__bt_next
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22, #8]
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	__bt_advance_array_keys
	cbnz	x0, LBB0_4
	b	LBB0_13
LBB0_12:
	mov	x21, #0
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
.subsections_via_symbols
