	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaD_precall                   ## -- Begin function luaD_precall
	.p2align	4, 0x90
_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ttisfunction
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_tryfuncTM
	movq	%rax, %rbx
LBB0_2:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_savestack
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_clvalue
	movl	28(%r13), %ecx
	movq	32(%r13), %rdx
	movl	%ecx, (%rdx)
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.12:
	movq	_LUA_MINSTACK@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_luaD_checkstack
	movq	%r13, %rdi
	callq	_inc_ci
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	movq	%rax, (%rbx)
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	%rax, 8(%r13)
	movq	(%r14), %rax
	addq	(%r13), %rax
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
	cmpq	16(%r13), %rax
	setle	%dil
	callq	_lua_assert
	movl	%r15d, 24(%rbx)
	movq	_LUA_MASKCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r13)
	je	LBB0_14
## %bb.13:
	movq	_LUA_HOOKCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_luaD_callhook
LBB0_14:
	movq	%r13, %rdi
	callq	_lua_unlock
	movq	%r13, %rdi
	callq	_curr_func
	movq	%r13, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_lua_lock
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.16:
	movq	(%r13), %rsi
	movl	%ebx, %eax
	subq	%rax, %rsi
	movq	%r13, %rdi
	callq	_luaD_poscall
	movq	_PCRC@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_luaD_checkstack
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	movq	%rax, %r15
	cmpl	$0, 20(%rbx)
	je	LBB0_4
## %bb.6:
	movq	(%r13), %rdi
	subq	%r15, %rdi
	callq	_cast_int
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_adjust_varargs
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_restorestack
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_15:
	movq	_PCRYIELD@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_4:
	movq	%rbx, %rax
	movq	%r15, %r14
	incq	%r14
	movq	8(%rbx), %rax
	addq	%r14, %rax
	cmpq	%rax, (%r13)
	jle	LBB0_7
## %bb.5:
	movq	%rax, (%r13)
LBB0_7:
	movq	%r13, %rdi
	callq	_inc_ci
	movq	%rax, %r12
	movq	%r15, (%rax)
	movq	%r14, 8(%rax)
	movq	%r14, 8(%r13)
	addq	(%rbx), %r14
	movq	%r14, 16(%rax)
	xorl	%edi, %edi
	cmpq	16(%r13), %r14
	setle	%dil
	callq	_lua_assert
	movl	16(%rbx), %eax
	movl	%eax, 28(%r13)
	movq	$0, 32(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r12)
	movq	(%r13), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_setnilvalue
	incq	%rbx
	jmp	LBB0_9
LBB0_10:
	movq	%rax, (%r13)
	movq	_LUA_MASKCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PCRLUA@GOTPCREL(%rip), %rbx
	testl	%eax, 24(%r13)
	je	LBB0_17
## %bb.11:
	incl	28(%r13)
	movq	_LUA_HOOKCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_luaD_callhook
	decl	28(%r13)
LBB0_17:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_MASKCALL,4,2               ## @LUA_MASKCALL
	.comm	_LUA_HOOKCALL,4,2               ## @LUA_HOOKCALL
	.comm	_PCRLUA,4,2                     ## @PCRLUA
	.comm	_LUA_MINSTACK,8,3               ## @LUA_MINSTACK
	.comm	_PCRYIELD,4,2                   ## @PCRYIELD
	.comm	_PCRC,4,2                       ## @PCRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaD_precall                   ; -- Begin function luaD_precall
	.p2align	2
_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, #28]
	ldr	x9, [x19, #32]
	str	w8, [x9]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x23, _LUA_MINSTACK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LUA_MINSTACK@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_luaD_checkstack
	mov	x0, x19
	bl	_inc_ci
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_restorestack
	add	x8, x0, #1
	stp	x0, x8, [x21]
	str	x8, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x10, [x19, #16]
	add	x8, x9, x8
	cmp	x8, x10
	str	x8, [x21, #16]
	cset	w0, le
	bl	_lua_assert
	str	w20, [x21, #24]
	ldr	w8, [x19, #24]
Lloh2:
	adrp	x9, _LUA_MASKCALL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LUA_MASKCALL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _LUA_HOOKCALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_HOOKCALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_luaD_callhook
LBB0_5:
	mov	x0, x19
	bl	_lua_unlock
	mov	x0, x19
	bl	_curr_func
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_lua_lock
	tbnz	w20, #31, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	sub	x1, x8, w20, uxtw
	mov	x0, x19
	bl	_luaD_poscall
Lloh8:
	adrp	x8, _PCRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCRC@GOTPAGEOFF]
	b	LBB0_18
LBB0_7:
	ldr	x21, [x0]
	ldr	x1, [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_10
; %bb.8:
	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_12
LBB0_9:
Lloh10:
	adrp	x8, _PCRYIELD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCRYIELD@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
	add	x23, x24, #1
	ldr	x9, [x19]
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	cmp	x9, x8
	b.le	LBB0_12
; %bb.11:
	str	x8, [x19]
LBB0_12:
	mov	x0, x19
	bl	_inc_ci
	mov	x22, x0
	stp	x24, x23, [x0]
	str	x23, [x19, #8]
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	add	x8, x8, x23
	cmp	x8, x9
	str	x8, [x0, #16]
	cset	w0, le
	bl	_lua_assert
	ldr	w8, [x21, #16]
	str	w8, [x19, #28]
	str	xzr, [x22, #32]
	str	w20, [x22, #24]
	ldr	x20, [x19]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	cmp	x20, x8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_setnilvalue
	add	x20, x20, #1
	b	LBB0_13
LBB0_15:
	str	x8, [x19]
	ldr	w8, [x19, #24]
Lloh12:
	adrp	x9, _LUA_MASKCALL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LUA_MASKCALL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
Lloh15:
	adrp	x8, _LUA_HOOKCALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LUA_HOOKCALL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_luaD_callhook
	ldr	w8, [x19, #28]
	sub	w8, w8, #1
	str	w8, [x19, #28]
LBB0_17:
Lloh18:
	adrp	x8, _PCRLUA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCRLUA@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_MASKCALL,4,2               ; @LUA_MASKCALL
	.comm	_LUA_HOOKCALL,4,2               ; @LUA_HOOKCALL
	.comm	_PCRLUA,4,2                     ; @PCRLUA
	.comm	_LUA_MINSTACK,8,3               ; @LUA_MINSTACK
	.comm	_PCRYIELD,4,2                   ; @PCRYIELD
	.comm	_PCRC,4,2                       ; @PCRC
.subsections_via_symbols
