	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bitmap_popcount
_bitmap_popcount:                       ## @bitmap_popcount
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_popcount_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	decl	%eax
	movl	%eax, %r11d
	shrl	$3, %r11d
	incl	%r11d
	movl	%r11d, %r9d
	andl	$3, %r9d
	cmpl	$24, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	testl	%r9d, %r9d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	andl	$-4, %r11d
	movzbl	%dil, %eax
	movq	(%r8,%rax,8), %r10
	movl	$16, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-8(%rdx), %ecx
	movl	%edi, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	addq	%r10, %rax
	movzbl	%sil, %ecx
	addq	(%r8,%rcx,8), %rax
	movl	%edi, %esi
	movl	%edx, %ecx
	shrl	%cl, %esi
	movzbl	%sil, %ecx
	addq	(%r8,%rcx,8), %rax
	leal	8(%rdx), %ecx
	movl	%edi, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	movzbl	%sil, %ecx
	addq	(%r8,%rcx,8), %rax
	addl	$32, %edx
	addl	$-4, %r11d
	jne	LBB0_5
## %bb.6:
	addl	$-16, %edx
	testl	%r9d, %r9d
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %esi
	movl	%edx, %ecx
	shrl	%cl, %esi
	movzbl	%sil, %ecx
	addq	(%r8,%rcx,8), %rax
	addl	$8, %edx
	decl	%r9d
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_popcount_table,8,3             ## @popcount_table
	.no_dead_strip	_bitmap_popcount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitmap_popcount
_bitmap_popcount:                       ; @bitmap_popcount
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
Lloh0:
	adrp	x8, _BITMAP_WORD_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_WORD_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _popcount_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _popcount_table@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	sub	w11, w9, #1
	cmp	w11, #24
	b.hs	LBB0_4
; %bb.2:
	mov	w11, #0
	mov	x8, #0
	b	LBB0_7
LBB0_3:
	mov	x8, #0
	b	LBB0_8
LBB0_4:
	mov	x8, #0
	mov	x17, #0
	mov	x2, #0
	mov	x5, #0
	lsr	w11, w11, #3
	add	w12, w11, #1
	and	w13, w12, #0x3ffffffc
	lsl	w11, w13, #3
	and	w14, w0, #0xff
	ldr	x14, [x10, w14, uxtw #3]
	mov	w15, #24
	mov	x16, x13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x5
	mov	x3, x2
	mov	x4, x17
	sub	w17, w15, #16
	sub	w2, w15, #8
	lsr	w17, w0, w17
	lsr	w2, w0, w2
	lsr	w5, w0, w15
	and	w17, w17, #0xff
	and	w2, w2, #0xff
	and	w5, w5, #0xff
	ldr	x6, [x10, w17, uxtw #3]
	ldr	x7, [x10, w2, uxtw #3]
	ldr	x19, [x10, w5, uxtw #3]
	add	x17, x6, x4
	add	x2, x7, x3
	add	x5, x19, x1
	add	w15, w15, #32
	sub	x8, x8, x14
	sub	w16, w16, #4
	cbnz	w16, LBB0_5
; %bb.6:
	add	x14, x4, x3
	add	x14, x14, x1
	add	x14, x14, x6
	add	x14, x14, x7
	add	x14, x14, x19
	sub	x8, x14, x8
	cmp	w12, w13
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w0, w11
	and	w12, w12, #0xff
	ldr	x12, [x10, w12, uxtw #3]
	add	x8, x12, x8
	add	w11, w11, #8
	cmp	w11, w9
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x8
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_popcount_table,8,3             ; @popcount_table
	.no_dead_strip	_bitmap_popcount
.subsections_via_symbols
