	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_clear_range             ## -- Begin function bitmap_clear_range
	.p2align	4, 0x90
_bitmap_clear_range:                    ## @bitmap_clear_range
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
	leal	(%r15,%rbx), %eax
	decl	%eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_bitmap_find_bit
	movq	%rbx, %r10
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	addl	%r10d, %r15d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_bitmap_element_free
	movq	-64(%rbp), %r10                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_26
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movl	(%rbx), %esi
	cmpl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	ja	LBB0_25
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %r12
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%edi, %esi
	addl	%esi, %edi
	cmpl	%r10d, %esi
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, %edi
	jbe	LBB0_23
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r10d, %esi
	jbe	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$-1, %r9d
	xorl	%r8d, %r8d
	cmpl	%r15d, %edi
	ja	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	decl	%r14d
	movl	$-1, %r15d
	cmpl	%r14d, %r8d
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	notl	%r9d
	movq	8(%rbx), %r13
	movl	%r8d, %eax
	andl	%r9d, (%r13,%rax,4)
	leal	1(%r8), %eax
	cmpl	%r14d, %eax
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %eax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	%r14d, %eax
	subl	%r8d, %eax
	addl	$-2, %eax
	leaq	4(,%rax,4), %rsi
	callq	___bzero
	movq	-64(%rbp), %r10                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %r8d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %eax
	subl	%esi, %eax
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
	movl	$-1, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	cmpl	%r15d, %edi
	jbe	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	subl	%esi, %eax
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
	movl	$-1, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	notl	%r15d
	cmpl	%r14d, %r8d
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	andl	%r9d, %r15d
	movq	8(%rbx), %r13
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	notl	%r15d
	movl	%r8d, %eax
	andl	%r15d, (%r13,%rax,4)
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r13,%rcx,4)
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 8(%rax)
	movl	%esi, (%rax)
	jmp	LBB0_26
LBB0_1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r14d, (%rax)
	jae	LBB0_4
## %bb.3:
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ## @BITMAP_ELEMENT_WORDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_clear_range             ; -- Begin function bitmap_clear_range
	.p2align	2
_bitmap_clear_range:                    ; @bitmap_clear_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
	ldr	w24, [x23]
	bl	_bitmap_find_bit
	mov	x21, x0
	cbz	x0, LBB0_19
LBB0_1:
	add	w22, w22, w20
	sub	w8, w22, #1
	udiv	w27, w8, w24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_bitmap_element_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x28
	cbz	x28, LBB0_22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	w8, [x21]
	cmp	w8, w27
	b.hi	LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x21, #16]
	ldr	w9, [x23]
	mul	w10, w9, w8
	add	w11, w10, w9
	cmp	w10, w20
	ccmp	w11, w22, #2, hs
	b.ls	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, w20
	b.ls	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mov	w9, #-1
	cmp	w11, w22
	b.hi	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x10, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	sub	w26, w10, #1
	mov	w25, #-1
	cmp	w8, w26
	b.eq	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x21, #8]
	mov	w10, w8
	lsl	x10, x10, #2
	ldr	w11, [x24, x10]
	bic	w9, w11, w9
	str	w9, [x24, x10]
	add	w9, w8, #1
	cmp	w9, w26
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x24, w9, uxtw #2
	sub	w8, w26, w8
	sub	w8, w8, #2
	lsl	x8, x8, #2
	add	x1, x8, #4
	bl	_bzero
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w20, w10
Lloh5:
	adrp	x9, _BITMAP_WORD_BITS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BITMAP_WORD_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x9]
	udiv	w9, w20, w12
	msub	w9, w9, w12, w20
	mov	w13, #-1
	lsl	w9, w13, w9
	udiv	w8, w8, w12
	cmp	w11, w22
	b.ls	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w10, w22, w10
Lloh8:
	adrp	x11, _BITMAP_WORD_BITS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BITMAP_WORD_BITS@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	udiv	w26, w10, w11
	udiv	w10, w22, w11
	msub	w10, w10, w11, w22
	mov	w11, #-1
	lsl	w10, w11, w10
	mvn	w25, w10
	cmp	w8, w26
	b.ne	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w25, w25, w9
	ldr	x24, [x21, #8]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w8
	lsl	x8, x8, #2
	ldr	w9, [x24, x8]
	bic	w9, w9, w25
	str	w9, [x24, x8]
Lloh11:
	adrp	x8, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x24]
	cbnz	w9, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x24, x24, #4
	subs	x8, x8, #1
	b.ne	LBB0_16
	b	LBB0_2
LBB0_18:
	str	x21, [x19, #8]
	str	w8, [x19]
	b	LBB0_22
LBB0_19:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_22
; %bb.20:
	udiv	w8, w20, w24
	ldr	w9, [x19]
	cmp	w9, w8
	b.hs	LBB0_1
; %bb.21:
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_1
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ; @BITMAP_ELEMENT_WORDS
.subsections_via_symbols
