	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NUM_ORDERS@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jb	LBB0_28
## %bb.1:
	movl	$2, %r14d
	movq	_G@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_NUM_ORDERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jae	LBB0_28
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movq	16(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r14,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_free_page
	movq	%r14, %rax
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_OBJECTS_IN_PAGE
	movq	%rax, %r12
	movq	(%rbx), %r14
	movq	%rax, %r15
	subq	%r14, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_OBJECT_SIZE
	imulq	%r15, %rax
	addq	%rax, (%r13)
	movq	8(%rbx), %rcx
	movq	%rbx, %rax
	cmpq	8(%r13), %rcx
	jl	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r14, %r12
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	16(%r14), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(,%rdx,8), %rcx
	addq	16(%r13), %rcx
	testq	%r14, %r14
	cmovneq	%rax, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, 24(%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r13), %rax
	cmpq	(%rax,%rdx,8), %rbx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, (%rax,%rdx,8)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r13), %rcx
	movq	%rbx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx,%rdx,8), %rbx
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%rbx), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rsi)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsi, 24(%rax)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 24(%rbx)
	movq	(%rcx,%rdx,8), %rax
	movq	%rbx, 24(%rax)
	movq	%rbx, (%rcx,%rdx,8)
	movq	24(%r13), %rax
	cmpq	%rbx, (%rax,%rdx,8)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsi, (%rax,%rdx,8)
	jmp	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r13), %rcx
	movq	%rbx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx,%rdx,8), %rbx
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	$0, 16(%rbx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rax
	movq	%rax, 24(%rbx)
	movq	(%rcx,%rdx,8), %rax
	movq	%rbx, 16(%rax)
	movq	%rbx, (%rcx,%rdx,8)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	16(%rsi), %rax
	leaq	(,%rdx,8), %rcx
	addq	16(%r13), %rcx
	testq	%rsi, %rsi
	cmovneq	%rax, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsi, 24(%rax)
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsi, %rax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rbx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	16(%rbx), %rbx
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	8(%rbx), %rax
	cmpq	8(%r13), %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%rbx, %rdi
	callq	_ggc_recalculate_in_use_p
	jmp	LBB0_26
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_ORDERS,4,2                 ## @NUM_ORDERS
	.comm	_G,32,3                         ## @G
	.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:
	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
Lloh0:
	adrp	x8, _NUM_ORDERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_ORDERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lo	LBB0_27
; %bb.1:
	mov	w19, #2
Lloh3:
	adrp	x23, _G@GOTPAGE
Lloh4:
	ldr	x23, [x23, _G@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
Lloh5:
	adrp	x8, _NUM_ORDERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_ORDERS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x19, x8
	b.hs	LBB0_27
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	lsl	x24, x19, #3
	ldr	x8, [x23, #16]
	ldr	x25, [x8, x24]
	cbz	x25, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	ldr	x8, [x23, #24]
	ldr	x26, [x8, x24]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	bl	_free_page
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x27
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x27, x0
	cmp	x20, x26
	b.eq	LBB0_23
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x25
	ldr	x25, [x25, #16]
	mov	x0, x20
	bl	_OBJECTS_IN_PAGE
	mov	x21, x0
	ldr	x28, [x20]
	sub	x22, x0, x28
	mov	x0, x19
	bl	_OBJECT_SIZE
	ldp	x8, x9, [x23]
	madd	x8, x0, x22, x8
	str	x8, [x23]
	ldr	x8, [x20, #8]
	mov	x0, x20
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x21, x28
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x27, #16
	ldr	x9, [x23, #16]
	add	x9, x9, x19, lsl #3
	cmp	x27, #0
	csel	x8, x9, x8, eq
	str	x25, [x8]
	cbz	x25, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x27, [x25, #24]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x23, #24]
	ldr	x9, [x8, x19, lsl #3]
	cmp	x20, x9
	b.ne	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x27, [x8, x19, lsl #3]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20]
	cbz	x8, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x23, #16]
	ldr	x9, [x8, x19, lsl #3]
	mov	x0, x20
	cmp	x20, x9
	b.eq	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x20, #16]
	str	x9, [x27, #16]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x27, [x9, #24]
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x8, x24]
	stp	x9, xzr, [x20, #16]
	ldr	x9, [x8, x24]
	str	x20, [x9, #24]
	str	x20, [x8, x24]
	ldr	x8, [x23, #24]
	ldr	x9, [x8, x24]
	cmp	x9, x20
	b.ne	LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x27, [x8, x19, lsl #3]
	b	LBB0_6
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x23, #24]
	ldr	x9, [x8, x19, lsl #3]
	mov	x0, x20
	cmp	x20, x9
	b.eq	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=2
	str	xzr, [x20, #16]
	ldr	x9, [x8, x24]
	str	x9, [x20, #24]
	ldr	x9, [x8, x24]
	str	x20, [x9, #16]
	str	x20, [x8, x24]
	add	x8, x27, #16
	ldr	x9, [x23, #16]
	add	x9, x9, x24
	cmp	x27, #0
	csel	x8, x9, x8, eq
	str	x25, [x8]
	cbz	x25, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x27, [x25, #24]
	b	LBB0_6
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #16]
	ldr	x20, [x8, x19, lsl #3]
	cbnz	x20, LBB0_25
	b	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_2
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	x0, x20
	bl	_ggc_recalculate_in_use_p
	b	LBB0_24
LBB0_27:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_ORDERS,4,2                 ; @NUM_ORDERS
	.comm	_G,32,3                         ; @G
	.no_dead_strip	_sweep_pages
.subsections_via_symbols
