	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_onecapture
_push_onecapture:                       ## @push_onecapture
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.5:
	movq	8(%rbx), %rax
	movslq	%esi, %r15
	shlq	$4, %r15
	movl	(%rax,%r15), %r14d
	cmpl	$-2, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$-1, %r14d
	jne	LBB0_8
## %bb.7:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_luaL_error
	movq	8(%rbx), %rax
LBB0_8:
	movl	16(%rbx), %edi
	movq	8(%rax,%r15), %rsi
	movl	%r14d, %edx
	jmp	LBB0_3
LBB0_1:
	movl	16(%rbx), %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_error                     ## TAILCALL
LBB0_9:
	movl	16(%rbx), %edi
	movq	8(%rax,%r15), %rsi
	movslq	4(%rbx), %rax
	subq	%rax, %rsi
	incq	%rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lua_pushinteger                ## TAILCALL
LBB0_2:
	subl	%edx, %ecx
	movq	%rdx, %rsi
	movl	%ecx, %edx
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lua_pushlstring                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid capture index"

L_.str.1:                               ## @.str.1
	.asciz	"unfinished capture"

	.no_dead_strip	_push_onecapture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_onecapture
_push_onecapture:                       ; @push_onecapture
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	sxtw	x21, w1
	sbfiz	x9, x1, #4, #32
	ldr	w20, [x8, x9]
	cmn	w20, #2
	b.eq	LBB0_7
; %bb.2:
	cmn	w20, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_luaL_error
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	w0, [x19, #16]
	add	x8, x8, x21, lsl #4
	ldr	x1, [x8, #8]
	mov	x2, x20
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #16]
	cbz	w1, LBB0_8
; %bb.6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_luaL_error
LBB0_7:
	ldr	w0, [x19, #16]
	add	x8, x8, x21, lsl #4
	ldr	x8, [x8, #8]
	ldrsw	x9, [x19, #4]
	sub	x8, x8, x9
	add	x1, x8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lua_pushinteger
LBB0_8:
	sub	w8, w3, w2
	mov	x1, x2
	mov	x2, x8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lua_pushlstring
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid capture index"

l_.str.1:                               ; @.str.1
	.asciz	"unfinished capture"

	.no_dead_strip	_push_onecapture
.subsections_via_symbols
