	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaC_step
_luaC_step:                             ## @luaC_step
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_G
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	16(%r14), %ecx
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	testl	%eax, %eax
	movl	$-2, %ebx
	cmovnel	%eax, %ebx
	subl	24(%r14), %ecx
	addl	%ecx, 4(%r14)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_singlestep
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	%eax, %ebx
	testl	%ebx, %ebx
	jg	LBB0_1
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	movl	4(%r14), %eax
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_7
## %bb.5:
	movl	$1024, %eax                     ## imm = 0x400
	addq	16(%r14), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setthreshold                   ## TAILCALL
LBB0_7:
	addl	$-1024, %eax                    ## imm = 0xFC00
	movl	%eax, 4(%r14)
	movq	16(%r14), %rax
LBB0_8:
	movq	%rax, 24(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_luaC_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaC_step
_luaC_step:                             ; @luaC_step
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	mov	w10, #-2
	cmp	w8, #0
	csel	w21, w10, w8, eq
	ldr	w8, [x0, #16]
	ldr	w10, [x0, #24]
	sub	w8, w8, w10
	add	w8, w9, w8
	str	w8, [x0, #4]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_singlestep
	sub	w21, w21, w0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	w21, #0, #4, ne
	b.gt	LBB0_1
; %bb.2:
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #1023
	b.hi	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	add	x8, x8, #1024
	b	LBB0_7
LBB0_5:
	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	_setthreshold
LBB0_6:
	sub	w8, w8, #1024
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
LBB0_7:
	str	x8, [x19, #24]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_luaC_step
.subsections_via_symbols
