	.file	"extr_minilua.c_tremove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tremove, @function
tremove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	aux_getn@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	luaL_optint@PLT
	test	eax, eax
	jle	.L5
	mov	ebx, eax
	cmp	r12d, eax
	jl	.L5
	lea	edx, -1[r12]
	mov	esi, 1
	mov	rdi, rbp
	call	luaL_setn@PLT
	mov	edx, ebx
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	cmp	r12d, ebx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r13d, ebx
	add	ebx, 1
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, ebx
	call	lua_rawgeti@PLT
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawseti@PLT
	cmp	ebx, r12d
	jne	.L4
.L3:
	mov	rdi, rbp
	call	lua_pushnil@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, 1
	call	lua_rawseti@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tremove, .-tremove
	.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_minilua.c_tremove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tremove, %function
tremove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	mov	r5, r0
	bl	aux_getn
	mov	r6, r0
	mov	r1, #2
	mov	r0, r5
	mov	r2, r6
	bl	luaL_optint
	cmp	r6, r0
	cmpge	r0, #0
	bgt	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r4, r0
	mov	r1, #1
	sub	r2, r6, #1
	mov	r0, r5
	bl	luaL_setn
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	cmp	r6, r4
	ble	.L3
.L4:
	mov	r7, r4
	add	r4, r4, #1
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r2, r7
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawseti
	cmp	r4, r6
	bne	.L4
.L3:
	mov	r0, r5
	bl	lua_pushnil
	mov	r2, r6
	mov	r0, r5
	mov	r1, #1
	bl	lua_rawseti
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	tremove, .-tremove
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
