// File: /workspace/github_cpp_makefile_star2_O3/ryuichiueda[P]GlueLang/src/Environment.cc
// Function: Environment::initTmpdir()
void Environment::initTmpdir(void)
{
	auto *p = getImportPaths("tmpdir");
	if(p == NULL || p->size() < 1){
		cerr << "unable to find tmpdir" << endl;
		throw this;
	}

	srand(time(NULL));

	m_tmpdir = p->at(0) + "glue" + to_string(m_pid) + "-" + to_string(rand());
	while(mkdir(m_tmpdir.c_str(),0700) != 0){
		cerr << "unable to create tmpdir" << endl;
		throw this;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x9ab2(%rip), %rsi      # 0x14447
callq 0xaef2
testq %rax, %rax
je 0xadce
movq %rax, %r14
movq 0x8(%rax), %rax
cmpq (%r14), %rax
je 0xadce
xorl %edi, %edi
callq 0x62c0
movl %eax, %edi
callq 0x62f0
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0xadf8
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x745a
leaq 0x9a5a(%rip), %rsi      # 0x1444e
movq %r14, %rdi
callq 0x65d0
movq %rbx, 0xc0(%rsp)
movl 0xe4(%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xaa68
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xaa5f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xaa65
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xaa68
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xaa2c
addl $-0x3, %r15d
jmp 0xaa68
addl $-0x2, %r15d
jmp 0xaa68
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x90(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x80(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
addq 0x80(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x8e6a
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x88(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0xaac7
movq 0x10(%rsp), %rdi
movq 0x80(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaaeb
movl $0xf, %edi
cmpq %rbx, %rsi
je 0xaae6
movq 0x90(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaaf5
movq %rsp, %rdi
callq 0x6100
jmp 0xab06
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6390
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xab2a
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xab30
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x971d(%rip), %rsi      # 0x14271
leaq 0x20(%rsp), %rdi
callq 0x65d0
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xab86
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0xab8e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x60d0
movl %eax, %r14d
movl %eax, %ebp
negl %ebp
cmovsl %eax, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0xac09
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xac00
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xac06
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xac09
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xabcd
addl $-0x3, %r15d
jmp 0xac09
addl $-0x2, %r15d
jmp 0xac09
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x60(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
movl %r14d, %edi
addq 0x60(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x8e6a
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0xac5d
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rsi
cmpq %rdi, %rax
movq 0xc0(%rsp), %rbp
jbe 0xac83
movl $0xf, %edi
cmpq %r13, %rsi
je 0xac7e
movq 0x70(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xac8f
leaq 0x40(%rsp), %rdi
callq 0x6100
jmp 0xac9d
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6390
leaq 0xb0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xacca
movq %rsi, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0xacd0
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc0(%rbp), %r14
leaq 0xa0(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x63f0
movq (%r15), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xad2a
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0xad41
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0xad58
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6330
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x10(%rsp), %r15
je 0xad78
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x80(%rsp), %rdi
cmpq %rbx, %rdi
je 0xad95
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xadab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%r14), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x6160
testl %eax, %eax
jne 0xae0a
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1121b(%rip), %rdi     # 0x1bff0
leaq 0x965c(%rip), %rsi      # 0x14438
callq 0x6310
movq %rax, %rdi
callq 0x6180
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
jmp 0xae32
leaq 0x957c(%rip), %rdi      # 0x1437b
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x64a0
movq 0x111df(%rip), %rdi     # 0x1bff0
leaq 0x963b(%rip), %rsi      # 0x14453
callq 0x6310
movq %rax, %rdi
callq 0x6180
movl $0x8, %edi
callq 0x6190
movq %rbp, (%rax)
leaq 0x10447(%rip), %rsi     # 0x1b280
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0xae62
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xae62
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0xae7e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xae7e
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xae9e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xae9e
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %rbx, %rdi
je 0xaec0
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xaec0
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xaedb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq %r14, %rdi
callq 0x6580
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0xaece
jmp 0xaedb
nop