	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sweeplist
_sweeplist:                             ## @sweeplist
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_G
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_otherwhite
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.1:
	incl	%r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_freeobj
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_LUA_TTHREAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_gco2th
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_sweepwholelist
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_WHITEBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	8(%rbx), %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_isdead
	testl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	movq	_FIXEDBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_testbit
	testq	%rax, %rax
	setne	%al
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SFIXEDBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bitmask
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	sete	%cl
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %edi
	callq	_lua_assert
	movq	16(%rbx), %rax
	movq	%rax, (%r14)
	cmpq	(%r15), %rbx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movq	%rax, (%r15)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_lua_assert
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_makewhite
	addq	$16, %rbx
	movq	%rbx, %r14
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TTHREAD,8,3                ## @LUA_TTHREAD
	.comm	_WHITEBITS,4,2                  ## @WHITEBITS
	.comm	_FIXEDBIT,4,2                   ## @FIXEDBIT
	.comm	_SFIXEDBIT,4,2                  ## @SFIXEDBIT
	.no_dead_strip	_sweeplist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sweeplist
_sweeplist:                             ; @sweeplist
	.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	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_G
	mov	x20, x0
	bl	_otherwhite
	ldr	x22, [x23]
	cbz	x22, LBB0_16
; %bb.1:
	mov	x21, x0
	add	w24, w24, #1
Lloh0:
	adrp	x25, _LUA_TTHREAD@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LUA_TTHREAD@GOTPAGEOFF]
Lloh2:
	adrp	x26, _WHITEBITS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _WHITEBITS@GOTPAGEOFF]
Lloh4:
	adrp	x28, _FIXEDBIT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _FIXEDBIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_freeobj
	ldr	x22, [x23]
	cbz	x22, LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	cmp	w24, #1
	b.lt	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_gco2th
	mov	x1, x0
	mov	x0, x19
	bl	_sweepwholelist
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #8]
	ldr	w9, [x26]
	eor	w8, w9, w8
	and	w27, w8, w21
	mov	x0, x20
	mov	x1, x22
	bl	_isdead
	cbz	w27, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #8]
	ldr	w1, [x28]
	bl	_testbit
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_lua_assert
	mov	x0, x20
	mov	x1, x22
	bl	_makewhite
	add	x23, x22, #16
	ldr	x22, [x23]
	cbnz	x22, LBB0_3
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _SFIXEDBIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SFIXEDBIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_bitmask
	cmp	w21, w0
	cset	w0, eq
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_lua_assert
	ldr	x8, [x22, #16]
	str	x8, [x23]
	ldr	x8, [x20]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	str	x8, [x20]
	b	LBB0_2
LBB0_16:
	mov	x0, x23
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TTHREAD,8,3                ; @LUA_TTHREAD
	.comm	_WHITEBITS,4,2                  ; @WHITEBITS
	.comm	_FIXEDBIT,4,2                   ; @FIXEDBIT
	.comm	_SFIXEDBIT,4,2                  ; @SFIXEDBIT
	.no_dead_strip	_sweeplist
.subsections_via_symbols
