	.file	"extr_lundump.c_LoadUpvalues.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	LoadUpvalues, @function
LoadUpvalues:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	LoadInt@PLT
	mov	edx, DWORD PTR Upvaldesc[rip]
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	mov	ebx, eax
	call	luaM_newvector@PLT
	mov	DWORD PTR 0[r13], ebx
	mov	QWORD PTR 8[r13], rax
	test	ebx, ebx
	jle	.L1
	lea	esi, -1[rbx]
	lea	rdx, 16[rax]
	lea	rcx, [rsi+rsi*2]
	lea	rcx, 40[rax+rcx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rdx], 0
	add	rdx, 24
	cmp	rdx, rcx
	jne	.L3
	lea	r14, 3[rsi+rsi*2]
	xor	ebx, ebx
	sal	r14, 3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[r13]
.L4:
	mov	rdi, r12
	lea	rbp, [rax+rbx]
	call	LoadByte@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	mov	rbp, QWORD PTR 8[r13]
	add	rbp, rbx
	add	rbx, 24
	call	LoadByte@PLT
	mov	QWORD PTR 0[rbp], rax
	cmp	rbx, r14
	jne	.L8
.L1:
	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	LoadUpvalues, .-LoadUpvalues
	.comm	Upvaldesc,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_lundump.c_LoadUpvalues.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LoadUpvalues, %function
LoadUpvalues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r0
	bl	LoadInt
	ldr	r3, .L8
	mov	r4, r0
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r0, [r7]
	bl	luaM_newvector
	cmp	r4, #0
	str	r4, [r6]
	str	r0, [r6, #4]
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r3, r0
	mov	r2, r0
	mov	r0, #0
	add	r1, r4, r4, lsl #1
	lsl	r8, r1, #2
	add	r1, r3, r1, lsl #2
.L3:
	str	r0, [r2, #8]
	add	r2, r2, #12
	cmp	r2, r1
	bne	.L3
	mov	r4, #0
.L4:
	mov	r0, r7
	add	r5, r3, r4
	bl	LoadByte
	mov	r3, r0
	mov	r0, r7
	str	r3, [r5, #4]
	ldr	r5, [r6, #4]
	bl	LoadByte
	str	r0, [r5, r4]
	add	r4, r4, #12
	cmp	r4, r8
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6, #4]
	b	.L4
.L9:
	.align	2
.L8:
	.word	Upvaldesc
	.size	LoadUpvalues, .-LoadUpvalues
	.comm	Upvaldesc,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
