	.file	"extr_lpcap.c_numcap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no capture '%d'"
	.text
	.p2align 4
	.type	numcap, @function
numcap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR [rax]
	test	r12d, r12d
	je	.L7
	xor	esi, esi
	call	pushnestedvalues@PLT
	mov	ebx, eax
	cmp	r12d, eax
	jg	.L8
	mov	esi, eax
	mov	edi, DWORD PTR 0[rbp]
	sub	esi, r12d
	mov	r12d, 1
	not	esi
	call	lua_pushvalue@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, ebx
	not	esi
	call	lua_replace@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	esi, -1[rbx]
	call	lua_pop@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	nextcap@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	numcap, .-numcap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lpcap.c_numcap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no capture '%d'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	numcap, %function
numcap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L7
	mov	r1, #0
	mov	r4, r0
	bl	pushnestedvalues
	cmp	r5, r0
	mov	r6, r0
	bgt	.L8
	sub	r1, r0, r5
	mov	r5, #1
	mvn	r1, r1
	ldr	r0, [r4]
	bl	lua_pushvalue
	mvn	r1, r6
	ldr	r0, [r4]
	bl	lua_replace
	ldr	r0, [r4]
	sub	r1, r6, #1
	bl	lua_pop
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L9
	pop	{r4, r5, r6, lr}
	b	luaL_error
.L7:
	bl	nextcap
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	numcap, .-numcap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
