	.file	"extr_minilua.c_createstdfile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	createstdfile, @function
createstdfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	newfile@PLT
	mov	QWORD PTR [rax], rbx
	test	r12d, r12d
	jle	.L2
	mov	esi, -1
	mov	rdi, rbp
	call	lua_pushvalue@PLT
	mov	edx, r12d
	mov	esi, -10001
	mov	rdi, rbp
	call	lua_rawseti@PLT
.L2:
	mov	rdi, rbp
	mov	esi, -2
	call	lua_pushvalue@PLT
	mov	rdi, rbp
	mov	esi, -2
	call	lua_setfenv@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r13
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, -3
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	lua_setfield@PLT
	.cfi_endproc
.LFE0:
	.size	createstdfile, .-createstdfile
	.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_createstdfile.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	createstdfile, %function
createstdfile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r7, r1
	mov	r6, r3
	mov	r4, r0
	bl	newfile
	cmp	r5, #0
	str	r7, [r0]
	ble	.L2
	mvn	r1, #0
	mov	r0, r4
	bl	lua_pushvalue
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L5
	bl	lua_rawseti
.L2:
	mvn	r1, #1
	mov	r0, r4
	bl	lua_pushvalue
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setfenv
	mov	r2, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mvn	r1, #2
	b	lua_setfield
.L6:
	.align	2
.L5:
	.word	-10001
	.size	createstdfile, .-createstdfile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
