// File: /workspace/github_cpp_makefile_star2_O1/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 0x9a7c(%rip), %rsi      # 0x1442d
callq 0xaf14
testq %rax, %rax
je 0xadf1
movq %rax, %r14
movq 0x8(%rax), %rax
cmpq (%r14), %rax
je 0xadf1
xorl %edi, %edi
callq 0x62c0
movl %eax, %edi
callq 0x62f0
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0xae1b
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 0x7456
leaq 0x9a24(%rip), %rsi      # 0x14434
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 0xaa84
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xaa7b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xaa81
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xaa84
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xaa48
addl $-0x3, %r15d
jmp 0xaa84
addl $-0x2, %r15d
jmp 0xaa84
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x70(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x60(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
addq 0x60(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x8e5c
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0xaad7
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xaaf2
movl $0xf, %esi
cmpq %rbx, 0x60(%rsp)
je 0xaaed
movq 0x70(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xab01
movq 0x60(%rsp), %rsi
movq %rsp, %rdi
callq 0x6100
jmp 0xab0f
leaq 0x60(%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 0xab33
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xab39
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 0x9714(%rip), %rsi      # 0x14271
leaq 0x20(%rsp), %rdi
callq 0x65d0
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xab98
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xaba0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x88(%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 0xac1e
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xac15
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xac1b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xac1e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xabe2
addl $-0x3, %r15d
jmp 0xac1e
addl $-0x2, %r15d
jmp 0xac1e
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x40(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
movl %r14d, %edi
addq 0x40(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x8e5c
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0xac7b
movq 0x90(%rsp), %rsi
cmpq %rsi, %rax
movq 0xc0(%rsp), %rbp
jbe 0xac9e
movl $0xf, %esi
cmpq %r13, 0x40(%rsp)
je 0xac99
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xacb2
movq 0x40(%rsp), %rsi
leaq 0x80(%rsp), %rdi
callq 0x6100
jmp 0xacc0
leaq 0x40(%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 0xaced
movq %rsi, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0xacf3
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 0xad4d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0xad64
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0xad81
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x6330
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x10(%rsp), %r15
je 0xada1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xadb8
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xadce
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq (%r14), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x6160
testl %eax, %eax
jne 0xae2d
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x111f8(%rip), %rdi     # 0x1bff0
leaq 0x961f(%rip), %rsi      # 0x1441e
callq 0x6310
movq %rax, %rdi
callq 0x6180
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
jmp 0xae55
leaq 0x9559(%rip), %rdi      # 0x1437b
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x64a0
movq 0x111bc(%rip), %rdi     # 0x1bff0
leaq 0x95fe(%rip), %rsi      # 0x14439
callq 0x6310
movq %rax, %rdi
callq 0x6180
movl $0x8, %edi
callq 0x6190
movq %rbp, (%rax)
leaq 0x10424(%rip), %rsi     # 0x1b280
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0xae85
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xae85
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0xaea7
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xaea7
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaec7
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xaec7
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xaee3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0xaee3
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xaefe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq %r14, %rdi
callq 0x6580
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0xaef1
jmp 0xaefe