	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function incremental_sweep_phase
_incremental_sweep_phase:               ## @incremental_sweep_phase
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_31
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_31
## %bb.2:
	xorl	%eax, %eax
	movq	_MRB_HEAP_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_objects
	movq	%rax, %r12
	movq	(%r13), %r14
	shlq	$4, %r14
	addq	%rax, %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	16(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_minor_gc
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r14, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MRB_TT_FREE@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, %eax
	cmpq	%r14, %r12
	jae	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	callq	_is_generational
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	addq	$16, %r12
	cmpq	%r14, %r12
	jae	LBB0_19
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_is_dead
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_obj_free
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%rax, 8(%r12)
	movq	%r12, 16(%rcx)
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r15), %r13
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_MRB_TT_FREE@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_paint_partial_white
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	movq	_MRB_HEAP_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r13), %r12
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_unlink_heap_page
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_unlink_free_heap_page
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_mrb_free
	movq	%r14, %r15
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_link_free_heap_page
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rcx
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_minor_gc
	movq	_TRUE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx), %rax
	movq	%rax, 8(%r15)
	movq	(%r15), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	(%r13), %rax
	movdqu	(%rbx), %xmm0
	movq	%r12, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, (%rbx)
	testq	%r15, %r15
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rax
	jb	LBB0_3
LBB0_31:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 16(%rcx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_HEAP_PAGE_SIZE,8,3         ## @MRB_HEAP_PAGE_SIZE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_MRB_TT_FREE,8,3                ## @MRB_TT_FREE
	.no_dead_strip	_incremental_sweep_phase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function incremental_sweep_phase
_incremental_sweep_phase:               ; @incremental_sweep_phase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	ldr	x20, [x1, #16]
	cmp	x20, #0
	ccmp	x2, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_26
LBB0_2:
	mov	x23, x0
	mov	x21, #0
Lloh0:
	adrp	x25, _MRB_HEAP_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MRB_HEAP_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _FALSE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MRB_TT_FREE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MRB_TT_FREE@GOTPAGEOFF]
	str	x2, [sp]                        ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x20
	bl	_objects
	mov	x24, x0
	ldr	x8, [x25]
	add	x25, x0, x8, lsl #4
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	ldr	x26, [x20, #16]
	mov	x0, x19
	bl	_is_minor_gc
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x27]
	cmp	x8, #0
	csel	x24, x24, x25, eq
	csel	x22, x22, x9, eq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, x25
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	mov	x26, #0
	b.lo	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x25, _MRB_HEAP_PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MRB_HEAP_PAGE_SIZE@GOTPAGEOFF]
	cbz	x22, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cmp	x26, x8
	b.hs	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_unlink_heap_page
	mov	x0, x19
	mov	x1, x20
	bl	_unlink_free_heap_page
	mov	x0, x23
	mov	x1, x20
	bl	_mrb_free
	mov	x20, x22
	b	LBB0_24
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	bl	_is_generational
	cbz	w0, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x22, [x27]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x24, x24, #16
	cmp	x24, x25
	b.hs	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_is_dead
	cbz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x2, [x27]
	mov	x0, x23
	mov	x1, x24
	bl	_obj_free
	ldr	x8, [x24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x20, #16]
	str	x8, [x24, #8]
	str	x24, [x20, #16]
	add	x26, x26, #1
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_paint_partial_white
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	x8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	x26, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_link_free_heap_page
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x27
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_is_minor_gc
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_21
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x20, [x20]
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	add	x21, x8, x21
	ldr	q0, [x19]
	dup.2d	v1, x26
	sub.2d	v0, v0, v1
	str	q0, [x19]
	cbz	x20, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_26:
	str	x20, [x19, #16]
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_HEAP_PAGE_SIZE,8,3         ; @MRB_HEAP_PAGE_SIZE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_MRB_TT_FREE,8,3                ; @MRB_TT_FREE
	.no_dead_strip	_incremental_sweep_phase
.subsections_via_symbols
