	.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
	movl	%esi, %eax
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.4:
	movq	8(%rbx), %rcx
	movslq	%eax, %r15
	shlq	$4, %r15
	movl	(%rcx,%r15), %r14d
	movq	_CAP_UNFINISHED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_6
## %bb.5:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_luaL_error
LBB0_6:
	movq	_CAP_POSITION@GOTPCREL(%rip), %rax
	movl	16(%rbx), %edi
	movq	8(%rbx), %rcx
	movq	8(%rcx,%r15), %rsi
	cmpl	(%rax), %r14d
	jne	LBB0_7
## %bb.9:
	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_1:
	movl	16(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	incl	%eax
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_error                     ## TAILCALL
LBB0_7:
	movl	%r14d, %edx
	jmp	LBB0_8
LBB0_2:
	subl	%edx, %ecx
	movq	%rdx, %rsi
	movl	%ecx, %edx
LBB0_8:
	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 %%%d"

	.comm	_CAP_UNFINISHED,4,2             ## @CAP_UNFINISHED
L_.str.1:                               ## @.str.1
	.asciz	"unfinished capture"

	.comm	_CAP_POSITION,4,2               ## @CAP_POSITION
	.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:
	sub	sp, sp, #64
	.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
                                        ; 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]
Lloh0:
	adrp	x8, _CAP_UNFINISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_UNFINISHED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_luaL_error
LBB0_3:
Lloh5:
	adrp	x8, _CAP_POSITION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAP_POSITION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w0, [x19, #16]
	ldr	x9, [x19, #8]
	add	x9, x9, x21, lsl #4
	ldr	x1, [x9, #8]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.4:
	ldrsw	x8, [x19, #4]
	sub	x8, x1, x8
	add	x1, x8, #1
	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
	add	sp, sp, #64
	b	_lua_pushinteger
LBB0_5:
	ldr	w0, [x19, #16]
	cbz	w1, LBB0_8
; %bb.6:
	add	w8, w1, #1
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_luaL_error
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x2, x20
	b	LBB0_9
LBB0_8:
	sub	w8, w3, w2
	mov	x1, x2
	mov	x2, x8
LBB0_9:
	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
	add	sp, sp, #64
	b	_lua_pushlstring
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid capture index %%%d"

	.comm	_CAP_UNFINISHED,4,2             ; @CAP_UNFINISHED
l_.str.1:                               ; @.str.1
	.asciz	"unfinished capture"

	.comm	_CAP_POSITION,4,2               ; @CAP_POSITION
	.no_dead_strip	_push_onecapture
.subsections_via_symbols
