	.file	"extr_ltablib.c_tmove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too many elements to move"
.LC1:
	.string	"destination wrap around"
	.text
	.p2align 4
	.type	tmove, @function
tmove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 2
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	luaL_checkinteger@PLT
	mov	esi, 3
	mov	rdi, rbp
	mov	rbx, rax
	call	luaL_checkinteger@PLT
	mov	esi, 4
	mov	rdi, rbp
	mov	r12, rax
	call	luaL_checkinteger@PLT
	mov	esi, 5
	mov	rdi, rbp
	mov	r14, rax
	call	lua_isnoneornil@PLT
	mov	edx, DWORD PTR TAB_R[rip]
	mov	esi, 1
	mov	rdi, rbp
	cmp	eax, 1
	sbb	r13d, r13d
	call	checktab@PLT
	and	r13d, 4
	mov	edx, DWORD PTR TAB_W[rip]
	mov	rdi, rbp
	add	r13d, 1
	mov	esi, r13d
	call	checktab@PLT
	cmp	rbx, r12
	jg	.L3
	mov	esi, 1
	test	rbx, rbx
	jle	.L23
.L4:
	lea	rcx, .LC0[rip]
	mov	edx, 3
	mov	rdi, rbp
	mov	r15, r12
	call	luaL_argcheck@PLT
	sub	r15, rbx
	xor	esi, esi
	mov	edx, 4
	mov	rax, QWORD PTR LUA_MAXINTEGER[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, rbp
	sub	rax, r15
	cmp	rax, r14
	setge	sil
	call	luaL_argcheck@PLT
	cmp	r12, r14
	jl	.L9
	cmp	rbx, r14
	jge	.L9
	cmp	r13d, 1
	jne	.L24
.L8:
	sub	r14, rbx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, r12
	mov	esi, 1
	mov	rdi, rbp
	call	lua_geti@PLT
	lea	rdx, [r14+r12]
	mov	esi, r13d
	mov	rdi, rbp
	call	lua_seti@PLT
	mov	rax, r12
	sub	r12, 1
	cmp	rax, rbx
	jne	.L10
.L3:
	mov	esi, r13d
	mov	rdi, rbp
	call	lua_pushvalue@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR LUA_MAXINTEGER[rip]
	xor	esi, esi
	add	rax, rbx
	cmp	rax, r12
	setg	sil
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	ecx, DWORD PTR LUA_OPEQ[rip]
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, rbp
	call	lua_compare@PLT
	test	eax, eax
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	lea	r12, 1[r15+rbx]
	sub	r14, rbx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, rbx
	mov	esi, 1
	mov	rdi, rbp
	call	lua_geti@PLT
	lea	rdx, [r14+rbx]
	mov	esi, r13d
	mov	rdi, rbp
	call	lua_seti@PLT
	add	rbx, 1
	cmp	rbx, r12
	jne	.L7
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tmove, .-tmove
	.comm	TAB_W,4,4
	.comm	TAB_R,4,4
	.comm	LUA_OPEQ,4,4
	.comm	LUA_MAXINTEGER,8,8
	.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_ltablib.c_tmove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too many elements to move\000"
	.align	2
.LC1:
	.ascii	"destination wrap around\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmove, %function
tmove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #2
	mov	r4, r0
	bl	luaL_checkinteger
	mov	r1, #3
	mov	r6, r0
	mov	r0, r4
	bl	luaL_checkinteger
	mov	r1, #4
	mov	r5, r0
	mov	r0, r4
	bl	luaL_checkinteger
	mov	r1, #5
	mov	r7, r0
	mov	r0, r4
	bl	lua_isnoneornil
	cmp	r0, #0
	moveq	r8, #5
	movne	r8, #1
	ldr	r3, .L24
	mov	r1, #1
	ldr	r2, [r3]
	mov	r0, r4
	bl	checktab
	ldr	r3, .L24+4
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [r3]
	bl	checktab
	cmp	r6, r5
	bgt	.L3
	cmp	r6, #0
	ble	.L22
	mov	r1, #1
	ldr	r9, .L24+8
.L4:
	mov	r2, #3
	ldr	r3, .L24+12
	mov	r0, r4
	bl	luaL_argcheck
	ldr	r1, [r9]
	sub	r9, r5, r6
	sub	r1, r1, r9
	cmp	r1, r7
	ldr	r3, .L24+16
	movlt	r1, #0
	movge	r1, #1
	mov	r2, #4
	mov	r0, r4
	bl	luaL_argcheck
	cmp	r6, r7
	movlt	r3, #0
	movge	r3, #1
	cmp	r5, r7
	orrlt	r3, r3, #1
	cmp	r3, #0
	bne	.L8
	cmp	r8, #1
	bne	.L23
.L7:
	sub	r7, r7, r6
.L9:
	mov	r2, r5
	mov	r1, #1
	mov	r0, r4
	bl	lua_geti
	add	r2, r7, r5
	mov	r1, r8
	mov	r0, r4
	bl	lua_seti
	cmp	r5, r6
	sub	r5, r5, #1
	bne	.L9
.L3:
	mov	r1, r8
	mov	r0, r4
	bl	lua_pushvalue
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r9, .L24+8
	ldr	r1, [r9]
	add	r1, r6, r1
	cmp	r1, r5
	movle	r1, #0
	movgt	r1, #1
	b	.L4
.L23:
	ldr	r3, .L24+20
	mov	r2, r8
	mov	r1, #1
	mov	r0, r4
	ldr	r3, [r3]
	bl	lua_compare
	cmp	r0, #0
	bne	.L7
.L8:
	mov	r5, r6
	add	r6, r6, #1
	sub	r7, r7, r5
	add	r6, r6, r9
.L6:
	mov	r2, r5
	mov	r1, #1
	mov	r0, r4
	bl	lua_geti
	add	r2, r7, r5
	mov	r1, r8
	mov	r0, r4
	add	r5, r5, #1
	bl	lua_seti
	cmp	r5, r6
	bne	.L6
	b	.L3
.L25:
	.align	2
.L24:
	.word	TAB_R
	.word	TAB_W
	.word	LUA_MAXINTEGER
	.word	.LC0
	.word	.LC1
	.word	LUA_OPEQ
	.size	tmove, .-tmove
	.comm	TAB_W,4,4
	.comm	TAB_R,4,4
	.comm	LUA_OPEQ,4,4
	.comm	LUA_MAXINTEGER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
