	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_capture
_check_capture:                         ## @check_capture
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$49, %esi
	jl	LBB0_4
## %bb.1:
	addl	$-49, %esi
	cmpl	(%rdi), %esi
	jge	LBB0_4
## %bb.2:
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	cmpl	$-1, (%rax,%rcx,4)
	je	LBB0_4
## %bb.3:
	movl	%esi, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_luaL_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid capture index"

	.no_dead_strip	_check_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_capture
_check_capture:                         ; @check_capture
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #49
	b.lt	LBB0_4
; %bb.1:
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	w9, [x9, w8, uxtw #2]
	cmn	w9, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	_luaL_error
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid capture index"

	.no_dead_strip	_check_capture
.subsections_via_symbols
