	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_from_string             ## -- Begin function bitmap_from_string
	.p2align	4, 0x90
_bitmap_from_string:                    ## @bitmap_from_string
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BITMAP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	movl	$-1, %eax
	cmpq	%rdx, %rcx
	jb	LBB0_14
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	(,%rdx,8), %rsi
	callq	_reserve
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	%r14, %rdi
	callq	_bitmap_zero
	testq	%r15, %r15
	je	LBB0_13
## %bb.3:
	movq	_BITMAP_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	(%rcx,%r15), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	decq	%rax
	movq	%rax, (%r14)
	movq	8(%r14), %r9
	shlq	$3, %rcx
	cmpq	$1, %r15
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_8:
	movq	_BITMAP_BITS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rbx
	addq	$-8, %rbx
	movq	%r15, %r8
	andq	$-2, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rdi,8), %rdx
	shlq	%cl, %rdx
	orq	%rdx, (%r9,%rax,8)
	leaq	-8(%rcx), %rdx
	xorl	%esi, %esi
	testq	%rcx, %rcx
	sete	%sil
	cmoveq	%rbx, %rdx
	subq	%rsi, %rax
	movq	8(%r12,%rdi,8), %rsi
	movl	%edx, %ecx
	shlq	%cl, %rsi
	orq	%rsi, (%r9,%rax,8)
	leaq	-8(%rdx), %rcx
	xorl	%esi, %esi
	testq	%rdx, %rdx
	cmoveq	%rbx, %rcx
	sete	%sil
	subq	%rsi, %rax
	addq	$2, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:
	testb	$1, %r15b
	je	LBB0_12
## %bb.11:
	movq	(%r12,%rdi,8), %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	orq	%rdx, (%r9,%rax,8)
LBB0_12:
	movq	%r14, %rdi
	callq	_retop
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_MAX,4,2                 ## @BITMAP_MAX
	.comm	_BITMAP_BYTES,4,2               ## @BITMAP_BYTES
	.comm	_BITMAP_BITS,4,2                ## @BITMAP_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_from_string             ; -- Begin function bitmap_from_string
	.p2align	2
_bitmap_from_string:                    ; @bitmap_from_string
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _BITMAP_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #3, #29
	cmp	x8, x2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_8
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	lsl	x1, x2, #3
	bl	_reserve
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_bitmap_zero
	cbz	x20, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _BITMAP_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BITMAP_BYTES@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x8]
	add	x8, x10, x20
	sub	x11, x8, #1
	udiv	x12, x11, x10
	sub	x8, x12, #1
	str	x8, [x19]
	ldr	x9, [x19, #8]
	msub	x10, x12, x10, x11
	lsl	x10, x10, #3
Lloh6:
	adrp	x11, _BITMAP_BITS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BITMAP_BITS@GOTPAGEOFF]
Lloh8:
	ldrsw	x11, [x11]
	sub	x11, x11, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x21], #8
	lsl	x12, x12, x10
	lsl	x13, x8, #3
	ldr	x14, [x9, x13]
	orr	x12, x14, x12
	str	x12, [x9, x13]
	sub	x12, x10, #8
	cmp	x10, #0
	csel	x10, x11, x12, eq
	cset	w12, eq
	sub	x8, x8, x12
	subs	x20, x20, #1
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x19
	bl	_retop
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_MAX,4,2                 ; @BITMAP_MAX
	.comm	_BITMAP_BYTES,4,2               ; @BITMAP_BYTES
	.comm	_BITMAP_BITS,4,2                ; @BITMAP_BITS
.subsections_via_symbols
