	.file	"extr_liolib.c_io_readline.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"file is already closed"
.LC1:
	.string	"%s"
	.text
	.p2align 4
	.type	io_readline, @function
io_readline:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rbp, rdi
	mov	edi, 1
	call	lua_upvalueindex@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lua_touserdata@PLT
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L11
.L2:
	mov	rdi, rbp
	mov	rsi, r13
	call	read_line@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	ferror@PLT
	test	rax, rax
	jne	.L12
	test	r12d, r12d
	je	.L13
	mov	r12d, 1
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L13:
	.cfi_restore_state
	mov	edi, 2
	call	lua_upvalueindex@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lua_toboolean@PLT
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, rbp
	call	lua_settop@PLT
	mov	edi, 1
	call	lua_upvalueindex@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lua_pushvalue@PLT
	mov	rdi, rbp
	call	aux_close@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, eax
	pop	r12
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	io_readline, .-io_readline
	.comm	errno,4,4
	.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_io_readline.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"file is already closed\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_readline, %function
io_readline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, #1
	bl	lua_upvalueindex
	mov	r1, r0
	mov	r0, r4
	bl	lua_touserdata
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L11
.L2:
	mov	r1, r5
	mov	r0, r4
	bl	read_line
	mov	r1, r0
	mov	r0, r5
	mov	r5, r1
	bl	ferror
	cmp	r0, #0
	bne	.L12
	cmp	r5, #0
	beq	.L13
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, #2
	bl	lua_upvalueindex
	mov	r1, r0
	mov	r0, r4
	bl	lua_toboolean
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r5
	mov	r0, r4
	bl	lua_settop
	mov	r0, #1
	bl	lua_upvalueindex
	mov	r1, r0
	mov	r0, r4
	bl	lua_pushvalue
	mov	r0, r4
	bl	aux_close
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14
	ldr	r0, [r3]
	bl	strerror
	ldr	r1, .L14+4
	mov	r2, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	luaL_error
.L11:
	mov	r0, r4
	ldr	r1, .L14+8
	bl	luaL_error
	b	.L2
.L15:
	.align	2
.L14:
	.word	errno
	.word	.LC1
	.word	.LC0
	.size	io_readline, .-io_readline
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
