	.file	"374030.c"
	.intel_syntax noprefix
	.text
	.type	add, @function
add:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -8[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L2:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add, .-add
	.data
	.align 32
	.type	chars, @object
	.size	chars, 66
chars:
	.string	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-+"
	.text
	.type	addn, @function
addn:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 63
	mov	QWORD PTR -8[rbp], rax
	shr	QWORD PTR -32[rbp], 6
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	lea	rcx, chars[rip]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	cmp	QWORD PTR -32[rbp], 0
	je	.L10
.L6:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cmp	DWORD PTR -36[rbp], eax
	jg	.L8
	jmp	.L7
.L10:
	nop
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addn, .-addn
	.local	pgrand
	.comm	pgrand,8,8
	.local	pid
	.comm	pid,8,8
	.section	.rodata
.LC0:
	.string	"TMPDIR"
.LC1:
	.string	"TMP"
.LC2:
	.string	"/tmp"
.LC3:
	.string	"PATH"
.LC4:
	.string	"USER"
.LC5:
	.string	"USERNAME"
.LC6:
	.string	"/"
	.text
	.type	gentmp, @function
gentmp:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -192[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L12
.L13:
	mov	QWORD PTR -192[rbp], 0
.L12:
	cmp	QWORD PTR -192[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -192[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
.L15:
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -192[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L16
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L16
.L17:
	mov	QWORD PTR -192[rbp], 0
.L16:
	cmp	QWORD PTR -192[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -192[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L20
.L19:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -192[rbp], rax
.L20:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 32
	mov	DWORD PTR -208[rbp], eax
	cmp	QWORD PTR -216[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -208[rbp]
	add	eax, edx
	mov	DWORD PTR -208[rbp], eax
.L21:
	cmp	QWORD PTR -224[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -208[rbp]
	add	eax, edx
	mov	DWORD PTR -208[rbp], eax
.L22:
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR pgrand[rip]
	test	rax, rax
	jne	.L23
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR pgrand[rip], rax
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L24
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	QWORD PTR -176[rbp], rax
.L24:
	cmp	QWORD PTR -176[rbp], 0
	je	.L25
	mov	DWORD PTR -204[rbp], 0
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -176[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rsi, al
	mov	eax, DWORD PTR -204[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -204[rbp], edx
	mov	ecx, eax
	sal	rsi, cl
	mov	rdx, rsi
	mov	rax, QWORD PTR pgrand[rip]
	xor	rax, rdx
	mov	QWORD PTR pgrand[rip], rax
.L26:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L27
.L25:
	mov	rax, QWORD PTR -168[rbp]
	sar	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR pgrand[rip]
	xor	rax, rdx
	mov	QWORD PTR pgrand[rip], rax
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR pgrand[rip]
	xor	rax, rdx
	mov	QWORD PTR pgrand[rip], rax
	call	getpid@PLT
	cdqe
	mov	QWORD PTR pid[rip], rax
.L23:
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L28
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	add
	mov	QWORD PTR -184[rbp], rax
.L28:
	cmp	QWORD PTR -216[rbp], 0
	je	.L29
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
	mov	QWORD PTR -184[rbp], rax
.L29:
	mov	rax, QWORD PTR pgrand[rip]
	and	eax, 63
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -184[rbp], rdx
	lea	rdx, chars[rip]
	movzx	edx, BYTE PTR [rcx+rdx]
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR pid[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	addn
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR pgrand[rip]
	sal	rax, 16
	mov	rcx, rax
	mov	rdx, QWORD PTR pgrand[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR pgrand[rip], rax
	mov	rax, QWORD PTR pgrand[rip]
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	addn
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR pgrand[rip]
	sal	rax, 16
	mov	rcx, rax
	mov	rdx, QWORD PTR pgrand[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR pgrand[rip], rax
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -224[rbp]
	xor	rax, rdx
	sar	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR pgrand[rip]
	xor	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	addn
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -224[rbp], 0
	je	.L30
	mov	rdx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
	mov	QWORD PTR -184[rbp], rax
.L30:
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gentmp, .-gentmp
	.globl	pg_newfile
	.type	pg_newfile, @function
pg_newfile:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
.L38:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gentmp
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L41
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	cmp	DWORD PTR -12[rbp], -1
	je	.L42
	jmp	.L38
.L40:
	nop
	jmp	.L35
.L41:
	nop
	jmp	.L35
.L42:
	nop
.L35:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pg_newfile, .-pg_newfile
	.section	.rodata
.LC7:
	.string	"nf"
	.text
	.globl	pg_makenewfile
	.type	pg_makenewfile, @function
pg_makenewfile:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
.L50:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gentmp
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L46
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L46
	cmp	DWORD PTR -36[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 384
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L54
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 2
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L45
.L46:
	cmp	DWORD PTR -16[rbp], -1
	jne	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L45
.L54:
	nop
.L49:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L50
.L52:
	nop
	jmp	.L45
.L53:
	nop
.L45:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pg_makenewfile, .-pg_makenewfile
	.section	.rodata
.LC8:
	.string	"mkdir"
	.text
	.globl	pg_makenewdir
	.type	pg_makenewdir, @function
pg_makenewdir:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
.L61:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gentmp
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L63
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L58
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L58
	cmp	DWORD PTR -36[rbp], 0
	je	.L64
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L64
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L64
.L58:
	cmp	DWORD PTR -16[rbp], -1
	jne	.L60
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L57
.L60:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L61
.L63:
	nop
	jmp	.L57
.L64:
	nop
.L57:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pg_makenewdir, .-pg_makenewdir
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"374030.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L2
.L3:
	ldr	r2, [fp, #-12]
	add	r3, r2, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L2:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	add, .-add
	.data
	.align	2
	.type	chars, %object
	.size	chars, 66
chars:
	.ascii	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY"
	.ascii	"Z0123456789_-+\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addn, %function
addn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L8:
	ldr	r3, [fp, #-20]
	and	r3, r3, #63
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #6
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r1, .L11
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
.L6:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L8
	b	.L7
.L10:
	nop
.L7:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	chars
	.size	addn, .-addn
	.local	pgrand
	.comm	pgrand,4,4
	.local	pid
	.comm	pid,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TMPDIR\000"
	.align	2
.LC1:
	.ascii	"TMP\000"
	.align	2
.LC2:
	.ascii	"/tmp\000"
	.align	2
.LC3:
	.ascii	"PATH\000"
	.align	2
.LC4:
	.ascii	"USER\000"
	.align	2
.LC5:
	.ascii	"USERNAME\000"
	.align	2
.LC6:
	.ascii	"/\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gentmp, %function
gentmp:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L35+4
	bl	getenv
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	stat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L14
.L15:
	mov	r3, #0
	str	r3, [fp, #-132]
.L14:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r0, .L35+8
	bl	getenv
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	stat
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L18
.L19:
	mov	r3, #0
	str	r3, [fp, #-132]
.L18:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L22
.L21:
	ldr	r3, .L35+12
	str	r3, [fp, #-132]
.L22:
	ldr	r0, [fp, #-132]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #32
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-136]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
.L23:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L24
	ldr	r0, [fp, #-140]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
.L24:
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L35+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L35+20
	bl	getenv
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	ldr	r2, .L35+16
	str	r3, [r2]
	ldr	r0, .L35+24
	bl	getenv
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L35+28
	bl	getenv
	str	r0, [fp, #-124]
.L26:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L27
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L28
.L29:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	str	r2, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-116]
	add	r2, r3, #1
	str	r2, [fp, #-116]
	lsl	r2, r1, r3
	ldr	r3, .L35+16
	ldr	r3, [r3]
	eor	r3, r3, r2
	ldr	r2, .L35+16
	str	r3, [r2]
.L28:
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
.L27:
	ldr	r3, [fp, #-104]
	asr	r2, r3, #4
	ldr	r3, .L35+16
	ldr	r3, [r3]
	eor	r3, r3, r2
	ldr	r2, .L35+16
	str	r3, [r2]
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, .L35+16
	ldr	r3, [r3]
	eor	r3, r3, r2
	ldr	r2, .L35+16
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L35+32
	str	r2, [r3]
.L25:
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-104]
	bl	add
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L30
	ldr	r1, .L35+36
	ldr	r0, [fp, #-128]
	bl	add
	str	r0, [fp, #-128]
.L30:
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L31
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-128]
	bl	add
	str	r0, [fp, #-128]
.L31:
	ldr	r3, .L35+16
	ldr	r3, [r3]
	and	r2, r3, #63
	ldr	r3, [fp, #-128]
	add	r1, r3, #1
	str	r1, [fp, #-128]
	ldr	r1, .L35+40
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, .L35+32
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	addn
	str	r0, [fp, #-128]
	ldr	r3, .L35+16
	ldr	r3, [r3]
	lsl	r1, r3, #16
	ldr	r3, .L35+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldr	r2, .L35+16
	str	r3, [r2]
	ldr	r3, .L35+16
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	addn
	str	r0, [fp, #-128]
	ldr	r3, .L35+16
	ldr	r3, [r3]
	lsl	r1, r3, #16
	ldr	r3, .L35+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldr	r2, .L35+16
	str	r3, [r2]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-140]
	eor	r3, r3, r2
	asr	r2, r3, #5
	ldr	r3, .L35+16
	ldr	r3, [r3]
	eor	r3, r3, r2
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	addn
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L32
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-128]
	bl	add
	str	r0, [fp, #-128]
.L32:
	ldr	r3, [fp, #-104]
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	pgrand
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	pid
	.word	.LC6
	.word	chars
	.size	gentmp, .-gentmp
	.align	2
	.global	pg_newfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_newfile, %function
pg_newfile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
.L42:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	gentmp
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L44
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	access
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L45
.L40:
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L46
	b	.L42
.L44:
	nop
	b	.L39
.L45:
	nop
	b	.L39
.L46:
	nop
.L39:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pg_newfile, .-pg_newfile
	.section	.rodata
	.align	2
.LC8:
	.ascii	"nf\000"
	.text
	.align	2
	.global	pg_makenewfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_makenewfile, %function
pg_makenewfile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
.L54:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	gentmp
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L56
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	access
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L50
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L50
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L57
	mov	r2, #384
	mov	r1, #194
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L58
	mov	r2, #2
	ldr	r1, .L59
	ldr	r0, [fp, #-8]
	bl	write
	ldr	r0, [fp, #-8]
	bl	close
	b	.L49
.L50:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L53
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L49
.L58:
	nop
.L53:
	ldr	r0, [fp, #-16]
	bl	free
	b	.L54
.L56:
	nop
	b	.L49
.L57:
	nop
.L49:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC8
	.size	pg_makenewfile, .-pg_makenewfile
	.section	.rodata
	.align	2
.LC9:
	.ascii	"mkdir\000"
	.text
	.align	2
	.global	pg_makenewdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_makenewdir, %function
pg_makenewdir:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
.L67:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	gentmp
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L69
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	access
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L64
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L64
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L70
	ldr	r1, .L71
	ldr	r0, [fp, #-16]
	bl	mkdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L70
	ldr	r0, .L71+4
	bl	perror
	b	.L70
.L64:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L66
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L63
.L66:
	ldr	r0, [fp, #-16]
	bl	free
	b	.L67
.L69:
	nop
	b	.L63
.L70:
	nop
.L63:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	511
	.word	.LC9
	.size	pg_makenewdir, .-pg_makenewdir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
