	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_popcount                    ## -- Begin function pg_popcount
	.p2align	4, 0x90
_pg_popcount:                           ## @pg_popcount
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$4, %edi
	movq	%r14, %rsi
	callq	_TYPEALIGN
	xorl	%ebx, %ebx
	cmpq	%r14, %rax
	jne	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$4, %r15d
	jl	LBB0_4
## %bb.2:
	movl	%r15d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addq	$4, %r14
	callq	_pg_popcount32
	addl	%eax, %ebx
	leal	-4(%r12), %r15d
	cmpl	$7, %r12d
	movl	%r15d, %r12d
	ja	LBB0_3
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.5:
	movq	_pg_number_of_ones@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	-1(%r15), %ecx
	testb	$3, %r15b
	je	LBB0_9
## %bb.6:
	movl	%r15d, %esi
	andl	$3, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rdx), %edi
	addl	(%rax,%rdi,8), %ebx
	incq	%rdx
	cmpl	%edx, %esi
	jne	LBB0_7
## %bb.8:
	subl	%edx, %r15d
	addq	%rdx, %r14
LBB0_9:
	cmpl	$3, %ecx
	jb	LBB0_12
## %bb.10:
	movl	%r15d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rdx), %esi
	addl	(%rax,%rsi,8), %ebx
	movzbl	1(%r14,%rdx), %esi
	addl	(%rax,%rsi,8), %ebx
	movzbl	2(%r14,%rdx), %esi
	addl	(%rax,%rsi,8), %ebx
	movzbl	3(%r14,%rdx), %esi
	addl	(%rax,%rsi,8), %ebx
	addq	$4, %rdx
	cmpl	%edx, %ecx
	jne	LBB0_11
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pg_number_of_ones,8,3          ## @pg_number_of_ones
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_popcount                    ; -- Begin function pg_popcount
	.p2align	2
_pg_popcount:                           ; @pg_popcount
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w0, #4
	mov	x1, x21
	bl	_TYPEALIGN
	cmp	x0, x21
	b.ne	LBB0_5
; %bb.1:
	cmp	w19, #4
	b.lt	LBB0_5
; %bb.2:
	mov	w20, #0
	mov	x22, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	bl	_pg_popcount32
	add	w20, w20, w0
	sub	w19, w22, #4
	cmp	w22, #7
	mov	x22, x19
	b.hi	LBB0_3
; %bb.4:
	cbnz	w19, LBB0_6
	b	LBB0_12
LBB0_5:
	mov	w20, #0
	cbz	w19, LBB0_12
LBB0_6:
Lloh0:
	adrp	x8, _pg_number_of_ones@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pg_number_of_ones@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w19, #1
	cmp	w9, #3
	b.hs	LBB0_8
; %bb.7:
	mov	x9, x21
	b	LBB0_11
LBB0_8:
	mov	w14, #0
	mov	w13, #0
	mov	w12, #0
	add	x10, x9, #1
	and	x11, x10, #0x1fffffffc
	sub	w19, w19, w11
	add	x9, x21, x11
	add	x15, x21, #3
	mov	x16, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w17, [x15, #-3]
	ldurb	w0, [x15, #-2]
	ldurb	w1, [x15, #-1]
	ldrb	w2, [x15], #4
	ldr	x17, [x8, x17, lsl #3]
	ldr	x0, [x8, x0, lsl #3]
	ldr	x1, [x8, x1, lsl #3]
	ldr	x2, [x8, x2, lsl #3]
	add	w20, w20, w17
	add	w14, w14, w0
	add	w13, w13, w1
	add	w12, w12, w2
	subs	x16, x16, #4
	b.ne	LBB0_9
; %bb.10:
	add	w14, w14, w20
	add	w13, w13, w14
	add	w20, w12, w13
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9], #1
	ldr	x10, [x8, x10, lsl #3]
	add	w20, w20, w10
	subs	w19, w19, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_pg_number_of_ones,8,3          ; @pg_number_of_ones
.subsections_via_symbols
