	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_bits
_count_bits:                            ## @count_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testq	%rsi, %rsi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rcx,4)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	cmpq	%rsi, %rcx
	je	LBB0_8
## %bb.5:
	movl	(%rdi,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.6:
	shll	$3, %esi
	shll	$3, %ecx
	subl	%ecx, %esi
	addl	$-8, %esi
	movl	%esi, %eax
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ecx
	incl	%eax
	cmpl	$1, %edx
	movl	%ecx, %edx
	ja	LBB0_7
	jmp	LBB0_8
LBB0_9:
	notl	%ecx
	addl	%ecx, %esi
	shll	$3, %esi
	movl	%esi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_count_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_bits
_count_bits:                            ; @count_bits
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	cbz	x1, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0, x8, lsl #2]
	cbnz	w9, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x1, x8
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	ldr	w9, [x0, x8, lsl #2]
	cbz	w9, LBB0_10
; %bb.7:
	lsl	w10, w1, #3
	sub	w8, w10, w8, lsl #3
	sub	w0, w8, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w9, #1
	add	w0, w0, #1
	cmp	w9, #1
	mov	x9, x8
	b.hi	LBB0_8
; %bb.9:
	ret
LBB0_10:
	mvn	w8, w8
	add	w8, w8, w1
	lsl	w0, w8, #3
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_bits
.subsections_via_symbols
