	.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
	testl	%edx, %edx
	jle	LBB0_13
## %bb.1:
	movl	%edx, %r8d
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	testb	$1, %r8b
	jne	LBB0_11
LBB0_13:
	popq	%rbp
	retq
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%r9, %rcx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	btl	%eax, %esi
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rcx
	incl	(%rcx,%rax,4)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rax), %rcx
	btl	%ecx, %esi
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rdx
	incl	4(%rdx,%rax,4)
	jmp	LBB0_8
LBB0_9:
	addq	$2, %rax
	testb	$1, %r8b
	je	LBB0_13
LBB0_11:
	btl	%eax, %esi
	jae	LBB0_13
## %bb.12:
	movq	(%rdi), %rcx
	incl	(%rcx,%rax,4)
	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:
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	mov	w9, w2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w1, w8
	tbz	w10, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0]
	lsl	x11, x8, #2
	ldr	w12, [x10, x11]
	add	w12, w12, #1
	str	w12, [x10, x11]
	b	LBB0_2
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_bits
.subsections_via_symbols
