	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_step                      ## -- Begin function luaC_step
	.p2align	4, 0x90
_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_G
	movq	%rax, %r14
	movq	_GCSTEPSIZE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	imull	(%r14), %ebx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_MAX_LUMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	decl	%ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %ebx
	decl	%ebx
	sarl	%ebx
LBB0_2:
	movl	8(%r14), %eax
	subl	16(%r14), %eax
	addl	%eax, 4(%r14)
	movq	_GCSpause@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_singlestep
	movq	24(%r14), %rcx
	movq	(%r13), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ebx
	testl	%ebx, %ebx
	jg	LBB0_3
LBB0_5:
	cmpq	%rdx, %rcx
	je	LBB0_8
## %bb.6:
	movl	4(%r14), %ecx
	movslq	(%r15), %rax
	cmpl	%eax, %ecx
	jge	LBB0_9
## %bb.7:
	addq	8(%r14), %rax
	jmp	LBB0_10
LBB0_8:
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	32(%r14), %rax
	setge	%dil
	callq	_lua_assert
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setthreshold                   ## TAILCALL
LBB0_9:
	subl	%eax, %ecx
	movl	%ecx, 4(%r14)
	movq	8(%r14), %rax
LBB0_10:
	movq	%rax, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCSTEPSIZE,4,2                 ## @GCSTEPSIZE
	.comm	_MAX_LUMEM,4,2                  ## @MAX_LUMEM
	.comm	_GCSpause,8,3                   ## @GCSpause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_step                      ; -- Begin function luaC_step
	.p2align	2
_luaC_step:                             ; @luaC_step
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_G
	mov	x19, x0
Lloh0:
	adrp	x21, _GCSTEPSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GCSTEPSIZE@GOTPAGEOFF]
	ldrsw	x8, [x21]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	ldr	w9, [x0]
	mul	w22, w8, w9
	cbnz	w22, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MAX_LUMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_LUMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w22, w8, #1
LBB0_2:
	ldr	w8, [x19, #16]
	ldp	w10, w9, [x19, #4]
	sub	w8, w9, w8
	add	w8, w10, w8
	str	w8, [x19, #4]
Lloh5:
	adrp	x23, _GCSpause@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GCSpause@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_singlestep
	sub	w22, w22, w0
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	cmp	x8, x9
	ccmp	w22, #0, #4, ne
	b.gt	LBB0_3
; %bb.4:
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	ldr	w9, [x19, #4]
	ldrsw	x8, [x21]
	cmp	w9, w8
	b.ge	LBB0_8
; %bb.6:
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	cset	w0, ge
	bl	_lua_assert
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_setthreshold
LBB0_8:
	sub	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
LBB0_9:
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GCSTEPSIZE,4,2                 ; @GCSTEPSIZE
	.comm	_MAX_LUMEM,4,2                  ; @MAX_LUMEM
	.comm	_GCSpause,8,3                   ; @GCSpause
.subsections_via_symbols
