// File: /workspace/github_cpp_makefile_star2_O1/suyunu[P]Discrete-Event-Simulation/RandQueuing.cpp
// Function: RandQueuing::print(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RandQueuing::print(string fname){
	ofstream fout (fname);
	
	int i;
	
	fout << fixed;
	fout.precision(4);
	fout << currentTime <<endl;
	
	fout.precision(2);
	for(i = 0 ; i < N_unit ; i++)
		fout << i << " " << units[i].Jcounter * units[i].procTime / currentTime << " " << units[i].maxQ <<endl;
	
	fout.precision(4);
	for(i = 0 ; i < N_job ; i++)
		fout << i << " " << jobs[i].timeToGo - jobs[i].enterTime <<endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq -0x228(%rbp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl -0x210(%rbp,%rcx), %edx
orl $0x4, %edx
movl %edx, -0x210(%rbp,%rcx)
movq -0x18(%rax), %rax
movq $0x4, -0x220(%rbp,%rax)
movsd 0x8(%rbx), %xmm0
movq %r14, %rdi
callq 0x21f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2100
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
movq $0x2, -0x220(%rbp,%rax)
cmpl $0x0, 0x4(%rbx)
jle 0x3435
xorl %r14d, %r14d
leaq 0x1c78(%rip), %r15      # 0x5004
xorl %r12d, %r12d
leaq -0x228(%rbp), %rdi
movl %r12d, %esi
callq 0x2240
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2190
movq 0x20(%rbx), %rax
xorps %xmm0, %xmm0
cvtsi2sdl 0x64(%rax,%r14), %xmm0
mulsd 0x8(%rax,%r14), %xmm0
divsd 0x8(%rbx), %xmm0
movq %r13, %rdi
callq 0x21f0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2190
movq 0x20(%rbx), %rax
movl 0x60(%rax,%r14), %esi
movq %r13, %rdi
callq 0x2240
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2100
incq %r12
movslq 0x4(%rbx), %rax
addq $0x70, %r14
cmpq %rax, %r12
jl 0x338f
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
movq $0x4, -0x220(%rbp,%rax)
cmpl $0x0, (%rbx)
jle 0x34d9
movl $0x10, %r15d
xorl %r14d, %r14d
leaq 0x1b9f(%rip), %r12      # 0x5004
leaq -0x228(%rbp), %rdi
movl %r14d, %esi
callq 0x2240
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2190
movq 0x18(%rbx), %rax
movsd (%rax,%r15), %xmm0
subsd -0x8(%rax,%r15), %xmm0
movq %r13, %rdi
callq 0x21f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2100
incq %r14
movslq (%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r14
jl 0x3465
movq 0x3af0(%rip), %rax      # 0x6fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x220(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x228(%rbp,%rcx)
callq 0x2120
leaq -0x130(%rbp), %rdi
callq 0x2090
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3525
jmp 0x3525
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x21d0
movq %rbx, %rdi
callq 0x2250