	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_pcall
_lua_pcall:                             ## @lua_pcall
	.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	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leal	1(%r13), %r15d
	movl	%r15d, %esi
	callq	_api_checknelems
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_checkresults
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_index2adr
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_api_checkvalidindex
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_savestack
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movl	(%rbx), %esi
	subl	%r15d, %esi
	movl	%esi, -48(%rbp)
	movl	%r14d, -44(%rbp)
	movq	_f_call@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_savestack
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_luaD_pcall
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_adjustresults
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f_call,4,2                     ## @f_call
	.no_dead_strip	_lua_pcall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_pcall
_lua_pcall:                             ; @lua_pcall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	add	w21, w1, #1
	mov	x1, x21
	bl	_api_checknelems
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_checkresults
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	bl	_index2adr
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_api_checkvalidindex
	mov	x0, x20
	mov	x1, x22
	bl	_savestack
	mov	x22, x0
LBB0_2:
	ldr	w8, [x20]
	sub	w1, w8, w21
	stp	w1, w19, [sp, #8]
Lloh0:
	adrp	x8, _f_call@GOTPAGE
Lloh1:
	ldr	x8, [x8, _f_call@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_savestack
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x4, x22
	bl	_luaD_pcall
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_adjustresults
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_f_call,4,2                     ; @f_call
	.no_dead_strip	_lua_pcall
.subsections_via_symbols
