	.file	"extr_liolib.c_f_setvbuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	f_setvbuf, @function
f_setvbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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	tofile@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, 2
	lea	rcx, modenames.1943[rip]
	mov	r12, rax
	call	luaL_checkoption@PLT
	mov	edx, DWORD PTR LUAL_BUFFERSIZE[rip]
	mov	rdi, rbp
	mov	esi, 3
	movsx	rbx, eax
	call	luaL_optinteger@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	rcx, rax
	lea	rax, mode.1942[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	call	setvbuf@PLT
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	test	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	sete	sil
	xor	edx, edx
	jmp	luaL_fileresult@PLT
	.cfi_endproc
.LFE0:
	.size	f_setvbuf, .-f_setvbuf
	.section	.rodata
	.align 8
	.type	mode.1942, @object
	.size	mode.1942, 12
mode.1942:
	.long	128
	.long	130
	.long	129
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no"
.LC1:
	.string	"full"
.LC2:
	.string	"line"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	modenames.1943, @object
	.size	modenames.1943, 32
modenames.1943:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	0
	.comm	LUAL_BUFFERSIZE,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_f_setvbuf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	f_setvbuf, %function
f_setvbuf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	tofile
	ldr	r5, .L4
	mov	r6, r0
	mov	r3, r5
	mov	r0, r4
	mov	r2, #0
	mov	r1, #2
	bl	luaL_checkoption
	ldr	r3, .L4+4
	mov	r7, r0
	ldr	r2, [r3]
	mov	r0, r4
	mov	r1, #3
	bl	luaL_optinteger
	add	r5, r5, r7, lsl #2
	ldr	r2, [r5, #16]
	mov	r3, r0
	mov	r1, #0
	mov	r0, r6
	bl	setvbuf
	clz	r1, r0
	mov	r2, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	lsr	r1, r1, #5
	b	luaL_fileresult
.L5:
	.align	2
.L4:
	.word	.LANCHOR0
	.word	LUAL_BUFFERSIZE
	.size	f_setvbuf, .-f_setvbuf
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no\000"
	.align	2
.LC1:
	.ascii	"full\000"
	.align	2
.LC2:
	.ascii	"line\000"
	.comm	LUAL_BUFFERSIZE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	modenames.4227, %object
	.size	modenames.4227, 16
modenames.4227:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	0
	.type	mode.4226, %object
	.size	mode.4226, 12
mode.4226:
	.word	128
	.word	130
	.word	129
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
