	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function singlestep
_singlestep:                            ## @singlestep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_G
	movq	%rax, %rbx
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	4(%rbx), %r15d
	movslq	48(%rbx), %rsi
	leal	1(%rsi), %eax
	movl	%eax, 48(%rbx)
	shlq	$2, %rsi
	addq	40(%rbx), %rsi
	movq	%r14, %rdi
	callq	_sweepwholelist
	movl	48(%rbx), %eax
	cmpl	32(%rbx), %eax
	jl	LBB0_4
## %bb.3:
	movl	$129, (%rbx)
LBB0_4:
	xorl	%edi, %edi
	cmpl	4(%rbx), %r15d
	setge	%dil
	callq	_lua_assert
	movl	4(%rbx), %eax
	subl	%r15d, %eax
	addl	%eax, 8(%rbx)
	movq	_GCSWEEPCOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_lua_assert
	jmp	LBB0_18
LBB0_6:
	movl	4(%rbx), %r12d
	movq	24(%rbx), %rsi
	movq	_GCSWEEPMAX@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_sweeplist
	movq	%rax, 24(%rbx)
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_checkSizes
	movl	$132, (%rbx)
LBB0_8:
	xorl	%edi, %edi
	cmpl	4(%rbx), %r12d
	setge	%dil
	callq	_lua_assert
	movl	4(%rbx), %eax
	subl	%r12d, %eax
	addl	%eax, 8(%rbx)
	movq	_GCSWEEPCOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	imull	(%r15), %r14d
	jmp	LBB0_18
LBB0_9:
	cmpl	$0, 52(%rbx)
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_propagatemark                  ## TAILCALL
LBB0_11:
	movq	%r14, %rdi
	callq	_markroot
	jmp	LBB0_17
LBB0_12:
	cmpl	$0, 16(%rbx)
	je	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	callq	_GCTM
	movl	8(%rbx), %eax
	movq	_GCFINALIZECOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	subl	%r14d, %eax
	jle	LBB0_18
## %bb.14:
	movl	%eax, 8(%rbx)
	jmp	LBB0_18
LBB0_15:
	movq	%r14, %rdi
	callq	_atomic
	jmp	LBB0_17
LBB0_16:
	movl	$131, (%rbx)
	movl	$0, 12(%rbx)
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_GCSWEEPCOST,4,2                ## @GCSWEEPCOST
	.comm	_GCSWEEPMAX,4,2                 ## @GCSWEEPMAX
	.comm	_GCFINALIZECOST,4,2             ## @GCFINALIZECOST
	.no_dead_strip	_singlestep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function singlestep
_singlestep:                            ; @singlestep
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_G
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w21, [x19, #4]
	ldr	x8, [x19, #40]
	ldrsw	x9, [x19, #48]
	add	w10, w9, #1
	str	w10, [x19, #48]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	bl	_sweepwholelist
	ldr	w8, [x19, #48]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.3:
	mov	w8, #129
	str	w8, [x19]
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	cset	w0, ge
	bl	_lua_assert
	ldp	w8, w9, [x19, #4]
	sub	w8, w8, w21
	add	w8, w8, w9
	str	w8, [x19, #8]
Lloh2:
	adrp	x8, _GCSWEEPCOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GCSWEEPCOST@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_5:
	mov	w0, #0
	bl	_lua_assert
	b	LBB0_16
LBB0_6:
	ldr	w22, [x19, #4]
	ldr	x1, [x19, #24]
Lloh5:
	adrp	x21, _GCSWEEPMAX@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GCSWEEPMAX@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_sweeplist
	str	x0, [x19, #24]
	ldr	x8, [x0]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_checkSizes
	mov	w8, #132
	str	w8, [x19]
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w22, w8
	cset	w0, ge
	bl	_lua_assert
	ldp	w8, w9, [x19, #4]
	sub	w8, w8, w22
	add	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _GCSWEEPCOST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GCSWEEPCOST@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w0, w9, w8
	b	LBB0_17
LBB0_9:
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_15
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_propagatemark
LBB0_11:
	mov	x0, x20
	bl	_markroot
	b	LBB0_16
LBB0_12:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_18
; %bb.13:
	mov	x0, x20
	bl	_GCTM
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x9, _GCFINALIZECOST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GCFINALIZECOST@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	subs	w8, w8, w0
	b.le	LBB0_17
; %bb.14:
	str	w8, [x19, #8]
	b	LBB0_17
LBB0_15:
	mov	x0, x20
	bl	_atomic
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w0, #0
	mov	w8, #131
	str	w8, [x19]
	str	wzr, [x19, #12]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_GCSWEEPCOST,4,2                ; @GCSWEEPCOST
	.comm	_GCSWEEPMAX,4,2                 ; @GCSWEEPMAX
	.comm	_GCFINALIZECOST,4,2             ; @GCFINALIZECOST
	.no_dead_strip	_singlestep
.subsections_via_symbols
