	.file	"extr_lbaselib.c_luaB_unpack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too many results to unpack"
	.text
	.p2align 4
	.type	luaB_unpack, @function
luaB_unpack:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, DWORD PTR LUA_TTABLE[rip]
	mov	esi, 1
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	luaL_checktype@PLT
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rbp
	call	luaL_optint@PLT
	mov	esi, 1
	mov	rdi, rbp
	mov	r13d, eax
	call	luaL_getn@PLT
	mov	esi, DWORD PTR luaL_checkint[rip]
	mov	edx, 3
	mov	rdi, rbp
	mov	ecx, eax
	call	luaL_opt@PLT
	cmp	r13d, eax
	jle	.L9
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r14d, eax
	mov	rdi, rbp
	mov	r12d, eax
	sub	r14d, r13d
	add	r14d, 1
	mov	esi, r14d
	call	lua_checkstack@PLT
	test	eax, eax
	je	.L10
	mov	edx, r13d
	mov	esi, 1
	lea	ebx, 1[r13]
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	cmp	r13d, r12d
	jge	.L1
	add	r12d, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, ebx
	mov	esi, 1
	mov	rdi, rbp
	add	ebx, 1
	call	lua_rawgeti@PLT
	cmp	ebx, r12d
	jne	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	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
	jmp	luaL_error@PLT
	.cfi_endproc
.LFE0:
	.size	luaB_unpack, .-luaB_unpack
	.comm	luaL_checkint,4,4
	.comm	LUA_TTABLE,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_lbaselib.c_luaB_unpack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too many results to unpack\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaB_unpack, %function
luaB_unpack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L11
	mov	r1, #1
	ldr	r2, [r3]
	bl	luaL_checktype
	mov	r2, #1
	mov	r1, #2
	mov	r0, r5
	bl	luaL_optint
	ldr	r3, .L11+4
	mov	r4, r0
	mov	r1, #1
	mov	r0, r5
	ldr	r6, [r3]
	bl	luaL_getn
	mov	r1, r6
	mov	r3, r0
	mov	r2, #3
	mov	r0, r5
	bl	luaL_opt
	cmp	r4, r0
	movgt	r7, #0
	ble	.L9
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	sub	r7, r0, r4
	add	r7, r7, #1
	mov	r6, r0
	mov	r1, r7
	mov	r0, r5
	bl	lua_checkstack
	cmp	r0, #0
	beq	.L10
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	cmp	r4, r6
	add	r4, r4, #1
	bge	.L1
	add	r6, r6, #1
.L4:
	mov	r1, #1
	mov	r2, r4
	mov	r0, r5
	add	r4, r4, r1
	bl	lua_rawgeti
	cmp	r4, r6
	bne	.L4
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L11+8
	b	luaL_error
.L12:
	.align	2
.L11:
	.word	LUA_TTABLE
	.word	luaL_checkint
	.word	.LC0
	.size	luaB_unpack, .-luaB_unpack
	.comm	luaL_checkint,4,4
	.comm	LUA_TTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
