	.file	"extr_minilua.c_cleartable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cleartable, @function
cleartable:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L33
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L13:
	call	gco2h@PLT
	mov	esi, 4
	mov	edi, DWORD PTR 24[rax]
	movsx	r12, DWORD PTR [rax]
	mov	rbx, rax
	call	testbit@PLT
	test	rax, rax
	jne	.L36
.L3:
	mov	rdi, rbx
	call	sizenode@PLT
	lea	r12d, -1[rax]
	test	eax, eax
	jne	.L12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	sub	r12d, 1
	cmp	r12d, -1
	je	.L6
.L12:
	mov	esi, r12d
	mov	rdi, rbx
	call	gnode@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	gval@PLT
	mov	rdi, rax
	call	ttisnil@PLT
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	key2tval@PLT
	mov	esi, 1
	mov	rdi, rax
	call	iscleared@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, rbp
	call	gval@PLT
	xor	esi, esi
	mov	rdi, rax
	call	iscleared@PLT
	test	rax, rax
	je	.L8
.L10:
	mov	rdi, rbp
	sub	r12d, 1
	call	gval@PLT
	mov	rdi, rax
	call	setnilvalue@PLT
	mov	rdi, rbp
	call	removeentry@PLT
	cmp	r12d, -1
	jne	.L12
.L6:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L36:
	.cfi_restore_state
	lea	eax, -1[r12]
	test	r12d, r12d
	je	.L3
	movsx	rbp, eax
	mov	eax, eax
	sub	r12, rax
	sal	rbp, 2
	lea	r13, -8[0+r12*4]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	sub	rbp, 4
	cmp	rbp, r13
	je	.L3
.L5:
	mov	r12, QWORD PTR 16[rbx]
	xor	esi, esi
	add	r12, rbp
	mov	rdi, r12
	call	iscleared@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r12
	call	setnilvalue@PLT
	jmp	.L4
.L33:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	cleartable, .-cleartable
	.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_cleartable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleartable, %function
cleartable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
.L13:
	bl	gco2h
	mov	r6, r0
	mov	r1, #4
	ldr	r0, [r0, #12]
	ldr	r4, [r6]
	bl	testbit
	cmp	r0, #0
	bne	.L36
.L3:
	mov	r0, r6
	bl	sizenode
	cmp	r0, #0
	sub	r4, r0, #1
	bne	.L12
	b	.L6
.L8:
	subs	r4, r4, #1
	bcc	.L6
.L12:
	mov	r1, r4
	mov	r0, r6
	bl	gnode
	mov	r5, r0
	bl	gval
	bl	ttisnil
	cmp	r0, #0
	bne	.L8
	mov	r0, r5
	bl	key2tval
	mov	r1, #1
	bl	iscleared
	subs	r7, r0, #0
	bne	.L10
	mov	r0, r5
	bl	gval
	mov	r1, r7
	bl	iscleared
	cmp	r0, #0
	beq	.L8
.L10:
	mov	r0, r5
	bl	gval
	bl	setnilvalue
	mov	r0, r5
	bl	removeentry
	subs	r4, r4, #1
	bcs	.L12
.L6:
	ldr	r0, [r6, #4]
	cmp	r0, #0
	bne	.L13
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	cmp	r4, #0
	sub	r4, r4, #1
	bne	.L5
	b	.L3
.L4:
	cmn	r4, #1
	beq	.L3
.L5:
	ldr	r5, [r6, #8]
	mov	r1, #0
	add	r5, r5, r4, lsl #2
	mov	r0, r5
	bl	iscleared
	cmp	r0, #0
	sub	r4, r4, #1
	beq	.L4
	mov	r0, r5
	bl	setnilvalue
	b	.L4
	.size	cleartable, .-cleartable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
