	.file	"extr_liolib.c_aux_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot close standard file"
	.text
	.p2align 4
	.type	aux_close, @function
aux_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	tofilep@PLT
	mov	rdi, QWORD PTR [rax]
	cmp	rdi, QWORD PTR stdin[rip]
	je	.L2
	cmp	rdi, QWORD PTR stdout[rip]
	je	.L2
	cmp	rdi, QWORD PTR stderr[rip]
	je	.L2
	mov	rbx, rax
	call	fclose@PLT
	mov	QWORD PTR [rbx], 0
	xor	esi, esi
	mov	rdi, rbp
	test	rax, rax
	sete	sil
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pushresult@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	lua_pushnil@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	lua_pushliteral@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, 2
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aux_close, .-aux_close
	.comm	stdout,8,8
	.comm	stdin,8,8
	.comm	stderr,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_liolib.c_aux_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot close standard file\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aux_close, %function
aux_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	tofilep
	ldr	r3, .L8
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	bl	fclose
	mov	r2, #0
	clz	r1, r0
	str	r2, [r4]
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	lsr	r1, r1, #5
	b	pushresult
.L2:
	mov	r0, r5
	bl	lua_pushnil
	mov	r0, r5
	ldr	r1, .L8+12
	bl	lua_pushliteral
	mov	r0, #2
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	stdin
	.word	stdout
	.word	stderr
	.word	.LC0
	.size	aux_close, .-aux_close
	.comm	stdout,4,4
	.comm	stdin,4,4
	.comm	stderr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
