	.file	"extr_wl_window.c_createAnonymousFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"XDG_RUNTIME_DIR"
	.text
	.p2align 4
	.type	createAnonymousFile, @function
createAnonymousFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	getenv@PLT
	test	rax, rax
	je	.L10
	mov	rdi, rax
	mov	r12, rax
	call	strlen@PLT
	mov	esi, 1
	lea	rdi, 20[rax]
	call	calloc@PLT
	mov	rsi, r12
	mov	rbp, rax
	mov	rdi, rax
	call	strcpy@PLT
	lea	rsi, template.1967[rip]
	mov	rdi, rbp
	call	strcat@PLT
	mov	rdi, rbp
	call	createTmpfileCloexec@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	free@PLT
	test	r12d, r12d
	js	.L4
	mov	edx, r13d
	xor	esi, esi
	mov	edi, r12d
	call	posix_fallocate@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L11
.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
.L4:
	.cfi_restore_state
	mov	r12d, -1
	jmp	.L1
.L10:
	mov	eax, DWORD PTR ENOENT[rip]
	mov	r12d, -1
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
.L11:
	mov	edi, r12d
	mov	r12d, -1
	call	close@PLT
	mov	DWORD PTR errno[rip], ebp
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	createAnonymousFile, .-createAnonymousFile
	.section	.rodata
	.align 16
	.type	template.1967, @object
	.size	template.1967, 20
template.1967:
	.string	"/glfw-shared-XXXXXX"
	.comm	errno,4,4
	.comm	SHM_ANON,4,4
	.comm	O_RDWR,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MFD_CLOEXEC,4,4
	.comm	MFD_ALLOW_SEALING,4,4
	.comm	F_SEAL_SHRINK,4,4
	.comm	F_SEAL_SEAL,4,4
	.comm	F_ADD_SEALS,4,4
	.comm	ENOENT,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_wl_window.c_createAnonymousFile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"XDG_RUNTIME_DIR\000"
	.align	2
.LC1:
	.ascii	"/glfw-shared-XXXXXX\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	createAnonymousFile, %function
createAnonymousFile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r0, .L12
	bl	getenv
	subs	r5, r0, #0
	beq	.L10
	bl	strlen
	mov	r1, #1
	add	r0, r0, #20
	bl	calloc
	mov	r4, r0
	mov	r1, r5
	bl	strcpy
	mov	r0, r4
	bl	strlen
	mov	r2, #20
	ldr	r1, .L12+4
	add	r0, r4, r0
	bl	memcpy
	mov	r0, r4
	bl	createTmpfileCloexec
	mov	r5, r0
	mov	r0, r4
	bl	free
	cmp	r5, #0
	blt	.L4
	mov	r2, r6
	mov	r1, #0
	mov	r0, r5
	bl	posix_fallocate
	subs	r4, r0, #0
	bne	.L11
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	mvn	r5, #0
	b	.L1
.L10:
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	ldr	r2, [r2]
	mvn	r5, #0
	str	r2, [r3]
	b	.L1
.L11:
	mov	r0, r5
	bl	close
	ldr	r3, .L12+12
	mvn	r5, #0
	str	r4, [r3]
	b	.L1
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	ENOENT
	.word	errno
	.size	createAnonymousFile, .-createAnonymousFile
	.comm	errno,4,4
	.comm	SHM_ANON,4,4
	.comm	O_RDWR,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MFD_CLOEXEC,4,4
	.comm	MFD_ALLOW_SEALING,4,4
	.comm	F_SEAL_SHRINK,4,4
	.comm	F_SEAL_SEAL,4,4
	.comm	F_ADD_SEALS,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
