	.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
	movl	%esi, %edx
	cmpl	$49, %esi
	jl	LBB0_4
## %bb.1:
	leal	-49(%rdx), %eax
	cmpl	(%rdi), %eax
	jge	LBB0_4
## %bb.2:
	movq	8(%rdi), %rcx
	movl	%eax, %esi
	movq	(%rcx,%rsi,8), %rcx
	movq	_CAP_UNFINISHED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
LBB0_4:
	movl	4(%rdi), %edi
	addl	$-48, %edx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmp	_luaL_error                     ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_UNFINISHED,8,3             ## @CAP_UNFINISHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid capture index %%%d"

	.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_3
; %bb.1:
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	x9, [x9, w8, uxtw #3]
Lloh0:
	adrp	x10, _CAP_UNFINISHED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CAP_UNFINISHED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
LBB0_3:
	ldr	w0, [x0, #4]
	sub	w2, w1, #48
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	_luaL_error
LBB0_4:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_UNFINISHED,8,3             ; @CAP_UNFINISHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid capture index %%%d"

	.no_dead_strip	_check_capture
.subsections_via_symbols
