	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sweep_pages
_sweep_pages:                           ## @sweep_pages
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r12)
	movq	$0, 48(%r12)
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	leaq	24(%r12), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%rbx), %r14
	movl	$0, (%rbx)
	addq	48(%rbx), %r13
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	testq	%r15, %r15
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	callq	_gcc_assert
	movq	16(%rbx), %r15
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, (%r14)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, (%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rcx)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_free_large_page
	jmp	LBB0_9
LBB0_10:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.11:
	leaq	16(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_free_small_page
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_12 Depth=1
	subl	%r14d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_VALGRIND_MAKE_WRITABLE
	movl	%eax, %edi
	callq	_VALGRIND_DISCARD
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_poison_region
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_free_chunk
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	subq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%rbx, %r13
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_31:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_33
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$0, 36(%rbx)
	sete	%dil
	callq	_gcc_assert
	leaq	16(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rcx
	movq	_SMALL_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	(%rbx), %r14
	movq	8(%rbx), %r15
	movq	_BYTES_PER_ALLOC_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_gcc_assert
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	24(%rbx), %rbx
	movl	$1, %ecx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rdx
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rax
	movq	-128(%rbp), %r15                ## 8-byte Reload
	addq	$4, %r15
	movq	-136(%rbp), %r14                ## 8-byte Reload
	addq	$4, %r14
	movl	(%rdx), %ecx
	movl	%r12d, %edx
	movl	$32, %ebx
	subq	%rdx, %rbx
	imulq	%rcx, %rbx
	addq	%rax, %rbx
	cmpq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	jae	LBB0_26
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movl	(%r15), %r13d
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	(%r14), %r15d
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	cmovnel	%r12d, %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_alloc_ffs
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=3
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=3
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_zone_clear_object_alloc_bit
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rdx
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=3
	shrl	%r13d
	sarl	%r15d
	movl	(%rdx), %eax
	addq	%rax, %rbx
	addl	%r14d, %r12d
	movl	%r13d, %edi
	callq	_alloc_ffs
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rdx
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_25
LBB0_16:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rax
	leal	-1(%r14), %ebx
	movl	%ebx, %ecx
	shrl	%cl, %r13d
	sarl	%cl, %r15d
	imull	(%rdx), %ebx
	addq	%rax, %rbx
	testb	$1, %r15b
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%rbx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%rbx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=3
	movl	%ebx, %esi
	subl	%edi, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_VALGRIND_MAKE_WRITABLE
	movl	%eax, %edi
	callq	_VALGRIND_DISCARD
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_poison_region
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_free_chunk
	movq	_BYTES_PER_MARK_BIT@GOTPCREL(%rip), %rdx
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=3
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_33:
	movq	%r13, 8(%r12)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMALL_PAGE_SIZE,4,2            ## @SMALL_PAGE_SIZE
	.comm	_BYTES_PER_ALLOC_BIT,4,2        ## @BYTES_PER_ALLOC_BIT
	.comm	_BYTES_PER_MARK_BIT,4,2         ## @BYTES_PER_MARK_BIT
	.no_dead_strip	_sweep_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sweep_pages
_sweep_pages:                           ; @sweep_pages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x0
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x19, [sp, #64]                  ; 8-byte Folded Spill
	ldr	x20, [x19, #24]!
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	mov	x26, #0
	cbnz	x20, LBB0_2
	b	LBB0_8
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x20]
	ldr	x9, [x20, #48]
	add	x26, x9, x26
	mov	x19, x8
	mov	x20, x21
	cbz	x21, LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #24]
	bl	_gcc_assert
	mov	x8, x20
	ldr	x21, [x8, #16]!
	ldr	w9, [x20]
	cbnz	w9, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x21, [x19]
	ldp	x8, x9, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x9, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [x9, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_free_large_page
	mov	x20, x21
	cbnz	x21, LBB0_2
LBB0_8:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x19, [x8, #16]!
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x19, LBB0_29
; %bb.9:
Lloh0:
	adrp	x28, _BYTES_PER_MARK_BIT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _BYTES_PER_MARK_BIT@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	w19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x19, [x8]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_free_small_page
	cbnz	x19, LBB0_16
	b	LBB0_29
LBB0_12:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x21, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w20, w24, w21
	mov	x0, x21
	mov	x1, x20
	bl	_VALGRIND_MAKE_WRITABLE
	bl	_VALGRIND_DISCARD
	mov	x0, x21
	mov	x1, x20
	bl	_poison_region
	mov	x0, x21
	mov	x1, x20
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	bl	_free_chunk
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	x8, x26, x25
	add	x26, x8, x24
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldp	x8, x19, [sp, #16]              ; 16-byte Folded Reload
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x19, LBB0_29
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
	ldr	w8, [x19, #36]
	cmp	w8, #0
	cset	w0, eq
	bl	_gcc_assert
	mov	x9, x19
	ldr	x8, [x9, #16]!
	stp	x9, x8, [sp, #16]               ; 16-byte Folded Spill
	ldr	x25, [x19, #24]
Lloh2:
	adrp	x8, _SMALL_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMALL_PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	add	x8, x25, x8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldp	x20, x22, [x19]
Lloh5:
	adrp	x8, _BYTES_PER_ALLOC_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BYTES_PER_ALLOC_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x28]
	cmp	w8, w9
	cset	w0, eq
	bl	_gcc_assert
	mov	x21, #0
	str	x19, [sp, #72]                  ; 8-byte Folded Spill
	ldr	x24, [x19, #24]
	mov	w19, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	w19, #0
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w8, [x28]
	mov	w9, #32
	sub	x9, x9, w19, uxtw
	madd	x24, x9, x8, x24
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x24, x8
	ldp	x22, x20, [sp, #48]             ; 16-byte Folded Reload
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	b.hs	LBB0_10
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
	mov	x8, x22
	ldr	w22, [x8], #4
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w27, [x20], #4
	cmp	w27, #0
	csel	w19, w19, wzr, eq
	mov	x0, x22
	bl	_alloc_ffs
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	str	w19, [sp, #44]                  ; 4-byte Folded Spill
	cbz	w0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x23, x0
	mov	w19, #0
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=3
	cbz	x21, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_24 Depth=3
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_zone_clear_object_alloc_bit
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=3
	lsr	w8, w22, w20
	lsr	w22, w8, #1
	asr	w27, w27, #1
	ldr	w8, [x28]
	add	x24, x24, x8
	add	w19, w23, w19
	mov	x0, x22
	bl	_alloc_ffs
	mov	x23, x0
	cbz	w0, LBB0_18
LBB0_24:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	w20, w23, #1
	asr	w27, w27, w20
	ldr	w8, [x28]
	mul	w8, w8, w20
	add	x24, x24, x8
	tbz	w27, #0, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	cbnz	x21, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=3
	sub	x8, x26, x25
	add	x26, x8, x24
	mov	x25, x24
	b	LBB0_23
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=3
	sub	x8, x26, x25
	add	x26, x8, x24
	mov	x21, x24
	b	LBB0_23
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=3
	sub	w25, w24, w21
	mov	x0, x21
	mov	x1, x25
	bl	_VALGRIND_MAKE_WRITABLE
	bl	_VALGRIND_DISCARD
	mov	x0, x21
	mov	x1, x25
	bl	_poison_region
	mov	x0, x21
	mov	x1, x25
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	bl	_free_chunk
	mov	x21, #0
	mov	x25, x24
	b	LBB0_23
LBB0_29:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	str	x26, [x8, #8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SMALL_PAGE_SIZE,4,2            ; @SMALL_PAGE_SIZE
	.comm	_BYTES_PER_ALLOC_BIT,4,2        ; @BYTES_PER_ALLOC_BIT
	.comm	_BYTES_PER_MARK_BIT,4,2         ; @BYTES_PER_MARK_BIT
	.no_dead_strip	_sweep_pages
.subsections_via_symbols
