	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_stack_limit
_restore_stack_limit:                   ## @restore_stack_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$20001, (%rdi)                  ## imm = 0x4E21
	jl	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	subq	8(%rbx), %rdi
	callq	_cast_int
	cmpl	$19998, %eax                    ## imm = 0x4E1E
	jg	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	$20000, %esi                    ## imm = 0x4E20
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_luaD_reallocCI                 ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_restore_stack_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_stack_limit
_restore_stack_limit:                   ; @restore_stack_limit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	mov	w9, #20001
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	sub	x0, x8, x9
	bl	_cast_int
	mov	w8, #19998
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #20000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_luaD_reallocCI
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_restore_stack_limit
.subsections_via_symbols
