	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_count_bits
_dmz_count_bits:                        ## @dmz_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	addl	%esi, %r14d
	xorl	%r12d, %r12d
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_test_bit
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	incl	%ebx
	cmpl	%ebx, %r14d
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	leal	-1(%rax), %ecx
	testl	%ebx, %ecx
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ecx
	subl	%ebx, %ecx
	cmpl	%eax, %ecx
	jl	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_BIT_WORD
	cltq
	movq	(%r15,%rax,8), %rax
	movq	_ULONG_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	addl	%eax, %r12d
	addl	%eax, %ebx
	cmpl	%ebx, %r14d
	jg	LBB0_3
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.no_dead_strip	_dmz_count_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_count_bits
_dmz_count_bits:                        ; @dmz_count_bits
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	w20, #0
	add	w22, w2, w1
Lloh0:
	adrp	x23, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BITS_PER_LONG@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ULONG_MAX@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ULONG_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_test_bit
	cmp	x0, #0
	cinc	w20, w20, ne
	add	w19, w19, #1
	cmp	w22, w19
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	sub	w9, w8, #1
	and	w9, w9, w19
	sub	w10, w22, w19
	cmp	w9, #0
	ccmp	w10, w8, #8, eq
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_BIT_WORD
	ldr	x8, [x21, w0, sxtw #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	add	w20, w8, w20
	add	w19, w8, w19
	cmp	w22, w19
	b.gt	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.no_dead_strip	_dmz_count_bits
.subsections_via_symbols
