	.file	"extr_minilua.c_luaF_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	luaF_close, @function
luaF_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	G@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r13, rax
	test	rdi, rdi
	jne	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbx
	mov	rsi, rbp
	call	luaF_freeupval@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
.L2:
	call	ngcotouv@PLT
	mov	rbp, rax
	cmp	QWORD PTR [rax], r12
	jl	.L1
	mov	rdi, rbp
	call	obj2gco@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR [rbx], rax
	call	isdead@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	lea	r14, 8[rbp]
	call	unlinkupval@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rsi, r14
	mov	rdi, rbx
	call	setobj@PLT
	mov	QWORD PTR 0[rbp], r14
	mov	rdi, rbx
	mov	rsi, rbp
	call	luaC_linkupval@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L2
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	luaF_close, .-luaF_close
	.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_luaF_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaF_close, %function
luaF_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	bl	G
	mov	r8, r0
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L2
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r1, r4
	mov	r0, r5
	bl	luaF_freeupval
.L4:
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	ngcotouv
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, r7
	poplt	{r4, r5, r6, r7, r8, pc}
	bl	obj2gco
	ldr	r3, [r4, #8]
	mov	r1, r0
	str	r3, [r5]
	mov	r0, r8
	bl	isdead
	cmp	r0, #0
	bne	.L14
	mov	r6, r4
	mov	r0, r4
	bl	unlinkupval
	ldr	r2, [r6], #4
	mov	r0, r5
	mov	r1, r6
	bl	setobj
	mov	r1, r4
	mov	r0, r5
	str	r6, [r4]
	bl	luaC_linkupval
	b	.L4
	.size	luaF_close, .-luaF_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
