	.file	"extr_lparser.c_newupvalue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"upvalues"
	.text
	.p2align 4
	.type	newupvalue, @function
newupvalue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rcx, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	mov	edx, DWORD PTR MAXUPVAL[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	rbp, QWORD PTR 16[rdi]
	lea	esi, 1[rax]
	mov	r14d, DWORD PTR 0[rbp]
	call	checklimit@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rcx, .LC0[rip]
	mov	rsi, QWORD PTR 8[rbp]
	mov	r9d, DWORD PTR MAXUPVAL[rip]
	mov	r8d, DWORD PTR Upvaldesc[rip]
	mov	edi, DWORD PTR [rax]
	push	rcx
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR 0[rbp]
	call	luaM_growvector@PLT
	mov	edx, DWORD PTR 0[rbp]
	pop	rcx
	.cfi_def_cfa_offset 56
	mov	rcx, QWORD PTR 8[rbp]
	pop	rsi
	.cfi_def_cfa_offset 48
	cmp	r14d, edx
	jge	.L4
	sub	edx, 1
	movsx	rsi, r14d
	sub	edx, r14d
	lea	rax, [rsi+rsi*2]
	add	rdx, rsi
	lea	rax, 8[rcx+rax*8]
	lea	rdx, [rdx+rdx*2]
	lea	rdx, 32[rcx+rdx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rax], 0
	add	rax, 24
	cmp	rax, rdx
	jne	.L3
.L4:
	movsx	rax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 8[r13]
	lea	rax, [rax+rax*2]
	lea	r14, [rcx+rax*8]
	mov	rax, QWORD PTR VLOCAL[rip]
	cmp	QWORD PTR 0[r13], rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR [r14], eax
	call	cast_byte@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	DWORD PTR 16[r14], eax
	movsx	rax, DWORD PTR [rbx]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*8]
	mov	rdx, r12
	mov	QWORD PTR 8[rax], r12
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	luaC_objbarrier@PLT
	mov	eax, DWORD PTR [rbx]
	lea	edx, 1[rax]
	mov	DWORD PTR [rbx], edx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	newupvalue, .-newupvalue
	.comm	VLOCAL,8,8
	.comm	Upvaldesc,4,4
	.comm	MAXUPVAL,4,4
	.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_lparser.c_newupvalue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"upvalues\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	newupvalue, %function
newupvalue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r9, .L8
	ldr	r10, .L8+4
	mov	r7, r1
	ldr	r1, [r0]
	ldr	r6, [r0, #8]
	sub	sp, sp, #16
	mov	r3, r9
	add	r1, r1, #1
	mov	r8, r2
	ldr	r2, [r10]
	ldr	r4, [r6]
	bl	checklimit
	ldr	r0, [r5, #4]
	ldr	r2, [r10]
	ldr	ip, .L8+8
	ldr	r3, [r6]
	ldr	ip, [ip]
	ldr	r1, [r6, #4]
	ldr	r0, [r0]
	stmib	sp, {r2, r9}
	ldr	r2, [r5]
	str	ip, [sp]
	bl	luaM_growvector
	ldr	ip, [r6]
	cmp	r4, ip
	bge	.L2
	mov	r2, #0
	ldr	r1, [r6, #4]
	add	r4, r4, r4, lsl #1
	add	ip, ip, ip, lsl #1
	add	r3, r1, r4, lsl #2
	add	ip, r1, ip, lsl #2
.L3:
	str	r2, [r3, #4]
	add	r3, r3, #12
	cmp	r3, ip
	bne	.L3
.L4:
	ldr	r2, .L8+12
	ldr	r3, [r8]
	ldr	r2, [r2]
	ldr	r4, [r5]
	sub	r3, r3, r2
	clz	r3, r3
	add	r4, r4, r4, lsl #1
	lsr	r3, r3, #5
	ldr	r0, [r8, #4]
	str	r3, [r1, r4, lsl #2]
	add	r4, r1, r4, lsl #2
	bl	cast_byte
	ldr	r3, [r5]
	ldr	r2, [r6, #4]
	ldr	ip, [r5, #4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	str	r0, [r4, #8]
	mov	r2, r7
	str	r7, [r3, #4]
	mov	r1, r6
	ldr	r0, [ip]
	bl	luaC_objbarrier
	ldr	r0, [r5]
	add	r3, r0, #1
	str	r3, [r5]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r1, [r6, #4]
	b	.L4
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	MAXUPVAL
	.word	Upvaldesc
	.word	VLOCAL
	.size	newupvalue, .-newupvalue
	.comm	VLOCAL,4,4
	.comm	Upvaldesc,4,4
	.comm	MAXUPVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
