	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaD_precall
_luaD_precall:                          ## @luaD_precall
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ttisfunction
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tryfuncTM
	movq	%rax, %rbx
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_savestack
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_clvalue
	movl	12(%r14), %ecx
	movq	16(%r14), %rdx
	movl	%ecx, (%rdx)
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.11:
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_luaD_checkstack
	movq	%r14, %rdi
	callq	_inc_ci
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	movl	%eax, (%rbx)
	incl	%eax
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%r14)
	movl	(%r14), %eax
	addl	$20, %eax
	movl	%eax, 8(%rbx)
	movl	%r13d, 12(%rbx)
	movq	%r14, %rdi
	callq	_curr_func
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	(%r14), %rsi
	movl	%eax, %eax
	subq	%rax, %rsi
	movq	%r14, %rdi
	callq	_luaD_poscall
	movl	$1, %eax
	jmp	LBB0_14
LBB0_3:
	movq	(%rax), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_luaD_checkstack
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	cmpl	$0, 20(%r15)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.6:
	movq	(%r14), %rdi
	subq	%rax, %rdi
	callq	_cast_int
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_adjust_varargs
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_12:
	movl	$2, %eax
	jmp	LBB0_14
LBB0_4:
	movq	%rax, %rbx
	movq	%rax, %r13
	incq	%r13
	movq	8(%r15), %rax
	addq	%r13, %rax
	cmpq	%rax, (%r14)
	jle	LBB0_7
## %bb.5:
	movq	%rax, (%r14)
LBB0_7:
	movq	%r14, %rdi
	callq	_inc_ci
	movq	%rax, %r12
	movl	%ebx, (%rax)
	movl	%r13d, 4(%rax)
	movl	%r13d, 8(%r14)
	movslq	(%r15), %rcx
	movslq	%r13d, %rax
	addq	%rcx, %rax
	movl	%eax, 8(%r12)
	movl	16(%r15), %ecx
	movl	%ecx, 12(%r14)
	movq	$0, 16(%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%r12)
	movq	(%r14), %rbx
	cmpq	%rax, %rbx
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_setnilvalue
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_10:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_luaD_precall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaD_precall
_luaD_precall:                          ; @luaD_precall
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ttisfunction
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_tryfuncTM
	mov	x21, x0
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_savestack
	mov	x22, x0
	mov	x0, x21
	bl	_clvalue
	ldr	w8, [x19, #12]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #20
	bl	_luaD_checkstack
	mov	x0, x19
	bl	_inc_ci
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_restorestack
	add	w8, w0, #1
	stp	w0, w8, [x21]
	str	w8, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #20
	stp	w8, w20, [x21, #8]
	mov	x0, x19
	bl	_curr_func
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	sub	x1, x8, w0, uxtw
	mov	x0, x19
	bl	_luaD_poscall
	mov	w0, #1
	b	LBB0_14
LBB0_5:
	ldr	x21, [x0]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_luaD_checkstack
	mov	x0, x19
	mov	x1, x22
	bl	_restorestack
	mov	x24, x0
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	sub	x0, x8, x24
	bl	_cast_int
	sub	w2, w0, #1
	mov	x0, x19
	mov	x1, x21
	bl	_adjust_varargs
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_restorestack
	mov	x24, x0
	b	LBB0_10
LBB0_7:
	mov	w0, #2
	b	LBB0_14
LBB0_8:
	add	x23, x24, #1
	ldr	x9, [x19]
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	cmp	x9, x8
	b.le	LBB0_10
; %bb.9:
	str	x8, [x19]
LBB0_10:
	mov	x0, x19
	bl	_inc_ci
	stp	w24, w23, [x0]
	ldrsw	x8, [x21]
	add	x8, x8, w23, sxtw
	ldr	w9, [x21, #16]
	stp	w23, w9, [x19, #8]
	str	xzr, [x0, #16]
	stp	w8, w20, [x0, #8]
	ldr	x20, [x19]
	cmp	x20, x8
	b.ge	LBB0_13
; %bb.11:
	mov	x22, x0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_setnilvalue
	add	x20, x20, #1
	ldrsw	x8, [x22, #8]
	cmp	x20, x8
	b.lt	LBB0_12
LBB0_13:
	mov	w0, #0
	str	x8, [x19]
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_luaD_precall
.subsections_via_symbols
