	.file	"extr_lgc.c_clearvalues.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clearvalues, @function
clearvalues:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdx
	cmp	rsi, rdx
	je	.L1
	mov	r12, rdi
	mov	r13, rsi
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	gco2t@PLT
	mov	rdi, rax
	mov	r15, rax
	call	gnodelast@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	je	.L3
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	cmp	DWORD PTR [r15], ebx
	jbe	.L3
.L5:
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, ebx
	mov	rdi, r12
	lea	r14, [rdx+rax*4]
	mov	rsi, r14
	call	iscleared@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r14
	add	ebx, 1
	call	setnilvalue@PLT
	cmp	DWORD PTR [r15], ebx
	ja	.L5
.L3:
	xor	esi, esi
	mov	rdi, r15
	call	gnode@PLT
	mov	rbx, rax
	cmp	rbp, rax
	ja	.L10
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbx, 4
	cmp	rbp, rbx
	jbe	.L6
.L10:
	mov	rdi, rbx
	call	gval@PLT
	mov	rdi, rax
	call	ttisnil@PLT
	test	eax, eax
	jne	.L8
	mov	rdi, rbx
	call	gval@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	iscleared@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rbx
	call	gval@PLT
	mov	rdi, rax
	call	setnilvalue@PLT
	mov	rdi, rbx
	add	rbx, 4
	call	removeentry@PLT
	cmp	rbp, rbx
	ja	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	call	gco2t@PLT
	mov	r13, QWORD PTR 16[rax]
	cmp	QWORD PTR 8[rsp], r13
	jne	.L11
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	clearvalues, .-clearvalues
	.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_lgc.c_clearvalues.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearvalues, %function
clearvalues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, r2
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r8, r2
	mov	r6, r0
.L11:
	mov	r0, r7
	bl	gco2t
	mov	r10, r0
	bl	gnodelast
	ldr	r3, [r10]
	mov	r5, r0
	cmp	r3, #0
	beq	.L3
	mov	r9, #0
	b	.L5
.L4:
	ldr	r3, [r10]
	cmp	r3, r9
	bls	.L3
.L5:
	ldr	r4, [r10, #4]
	mov	r0, r6
	add	r4, r4, r9, lsl #2
	mov	r1, r4
	bl	iscleared
	cmp	r0, #0
	add	r9, r9, #1
	beq	.L4
	mov	r0, r4
	bl	setnilvalue
	ldr	r3, [r10]
	cmp	r3, r9
	bhi	.L5
.L3:
	mov	r0, r10
	mov	r1, #0
	bl	gnode
	cmp	r5, r0
	mov	r4, r0
	bhi	.L10
	b	.L6
.L8:
	add	r4, r4, #4
	cmp	r5, r4
	bls	.L6
.L10:
	mov	r0, r4
	bl	gval
	bl	ttisnil
	cmp	r0, #0
	bne	.L8
	mov	r0, r4
	bl	gval
	mov	r1, r0
	mov	r0, r6
	bl	iscleared
	cmp	r0, #0
	beq	.L8
	mov	r0, r4
	bl	gval
	bl	setnilvalue
	mov	r0, r4
	add	r4, r4, #4
	bl	removeentry
	cmp	r5, r4
	bhi	.L10
.L6:
	mov	r0, r7
	bl	gco2t
	ldr	r7, [r0, #8]
	cmp	r8, r7
	bne	.L11
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	clearvalues, .-clearvalues
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
