	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_nbits                   ## -- Begin function bitmap_nbits
	.p2align	4, 0x90
_bitmap_nbits:                          ## @bitmap_nbits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_retop
	movq	(%rbx), %rsi
	movq	8(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rsi
	jge	LBB0_7
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	16(%rbx), %rax
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_5:
	movl	(%rax,%rsi,8), %edx
	incq	%rsi
	movq	_BITMAP_BITS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rsi, %rax
	imulq	%rcx, %rax
	decb	%cl
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	%edx, %edx
	decq	%rax
	testl	%esi, %edx
	je	LBB0_6
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_nbits                   ; -- Begin function bitmap_nbits
	.p2align	2
_bitmap_nbits:                          ; @bitmap_nbits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_retop
	ldp	x9, x8, [x19]
	cmp	x9, x8
	ccmp	x8, #0, #4, lt
	b.ne	LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #16]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x10, [x8]
	cbz	x10, LBB0_1
LBB0_4:
	ldr	x8, [x8, x9, lsl #3]
Lloh0:
	adrp	x10, _BITMAP_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITMAP_BITS@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	madd	x0, x10, x9, x10
	sub	w9, w10, #1
	mov	w10, #1
	lsl	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	sub	x0, x0, #1
	tst	w8, w9
	b.eq	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_BITS,4,2                ; @BITMAP_BITS
.subsections_via_symbols
