	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function correctstack
_correctstack:                          ## @correctstack
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rdi), %rdx
	subq	%rsi, %rdx
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	addq	%rax, %rdx
	movq	%rdx, 24(%rdi)
	testq	%rcx, %rcx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	movq	8(%rcx), %rsi
	subq	%r15, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%rcx)
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	LBB0_1
LBB0_2:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	subq	%r15, %rdx
	addq	%rax, %rdx
	movq	%rdx, 16(%rbx)
	subq	%r15, %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_isLua
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	subq	%r15, %rax
	addq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	jmp	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_correctstack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function correctstack
_correctstack:                          ; @correctstack
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldp	x9, x10, [x0, #16]
	sub	x10, x10, x1
	add	x10, x8, x10
	str	x10, [x0, #24]
	cbz	x9, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	sub	x10, x10, x19
	add	x10, x8, x10
	str	x10, [x9]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_1
LBB0_2:
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x10, x9, [x21, #8]
	sub	x9, x9, x19
	add	x9, x8, x9
	sub	x10, x10, x19
	add	x8, x8, x10
	stp	x8, x9, [x21, #8]
	mov	x0, x21
	bl	_isLua
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x20]
	sub	x8, x8, x19
	add	x8, x9, x8
	str	x8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	b	LBB0_3
LBB0_7:
	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	_correctstack
.subsections_via_symbols
