	.file	"extr_io.c_vlclua_io_file_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"io_file"
.LC1:
	.string	"Attempt to use a closed file"
.LC2:
	.string	"*l"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Invalid file:read() format: %s"
	.text
	.p2align 4
	.type	vlclua_io_file_read, @function
vlclua_io_file_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, .LC0[rip]
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	luaL_checkudata@PLT
	cmp	QWORD PTR [rax], 0
	je	.L13
	mov	esi, 2
	mov	rdi, rbp
	mov	rbx, rax
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TNUMBER[rip]
	je	.L14
	lea	rdx, .LC2[rip]
	mov	esi, 2
	mov	rdi, rbp
	call	luaL_optstring@PLT
	cmp	BYTE PTR [rax], 42
	mov	rdx, rax
	jne	.L9
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 108
	je	.L5
	cmp	al, 110
	je	.L6
	cmp	al, 97
	je	.L15
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, 2
	call	lua_tointeger@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rdx, r12
	mov	rsi, rax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vlclua_io_file_read_chars@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vlclua_io_file_read_line@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR SIZE_MAX[rip]
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vlclua_io_file_read_chars@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vlclua_io_file_read_number@PLT
	.cfi_endproc
.LFE0:
	.size	vlclua_io_file_read, .-vlclua_io_file_read
	.comm	SIZE_MAX,8,8
	.comm	LUA_TNUMBER,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_io.c_vlclua_io_file_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"io_file\000"
	.align	2
.LC1:
	.ascii	"Attempt to use a closed file\000"
	.align	2
.LC2:
	.ascii	"*l\000"
	.align	2
.LC3:
	.ascii	"Invalid file:read() format: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlclua_io_file_read, %function
vlclua_io_file_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #1
	ldr	r2, .L15
	mov	r4, r0
	bl	luaL_checkudata
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L12
	mov	r5, r0
	mov	r1, #2
	mov	r0, r4
	bl	lua_type
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L13
	mov	r1, #2
	mov	r0, r4
	ldr	r2, .L15+8
	bl	luaL_optstring
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L9
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #108
	beq	.L5
	cmp	r3, #110
	beq	.L6
	cmp	r3, #97
	beq	.L14
.L9:
	mov	r2, r0
	ldr	r1, .L15+12
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	luaL_error
.L12:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, .L15+16
	b	luaL_error
.L13:
	mov	r1, #2
	mov	r0, r4
	bl	lua_tointeger
	ldr	r2, [r5]
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	vlclua_io_file_read_chars
.L5:
	mov	r0, r4
	ldr	r1, [r5]
	pop	{r4, r5, r6, lr}
	b	vlclua_io_file_read_line
.L14:
	ldr	r3, .L15+20
	mov	r0, r4
	ldr	r2, [r5]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	vlclua_io_file_read_chars
.L6:
	mov	r0, r4
	ldr	r1, [r5]
	pop	{r4, r5, r6, lr}
	b	vlclua_io_file_read_number
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	LUA_TNUMBER
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	SIZE_MAX
	.size	vlclua_io_file_read, .-vlclua_io_file_read
	.comm	SIZE_MAX,4,4
	.comm	LUA_TNUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
