// File: cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::output(std::ostream&) const
void Student::output(ostream& out) const {
	out << id << ',' << name;

	for (int i = 0; i < size; ++i) {
		if (i == 4) {
			out << ",\"";
			bool have = false;
			for (int j = 0; j < 6; ++i, ++j) {
				if (!have && answers[i][int(raw_data[i])].size() > 0) {
					have = true;
					out << answers[i][int(raw_data[i])];
				}
				else if (answers[i][int(raw_data[i])].size() > 0)
					out << ',' << answers[i][int(raw_data[i])];
			}
			out << "\"";
			--i;
		}
		else
			out << ',' << answers[i][int(raw_data[i])];
	}
	out << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x28(%rbp)
movq -0x10(%rbp), %rdi
addq $0x30, %rsi
callq 0x3240
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3320
movq -0x28(%rbp), %rsi
movq %rax, %rdi
addq $0x50, %rsi
callq 0x3240
movl $0x0, -0x14(%rbp)
cmpl $0xf, -0x14(%rbp)
jge 0x1351f
cmpl $0x4, -0x14(%rbp)
jne 0x134b9
movq -0x10(%rbp), %rdi
leaq 0x9222(%rip), %rsi      # 0x1c54a
callq 0x3270
movb $0x0, -0x15(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x6, -0x1c(%rbp)
jge 0x1349e
testb $0x1, -0x15(%rbp)
jne 0x133e7
movq -0x28(%rbp), %rdi
movslq -0x14(%rbp), %rcx
leaq 0x16f55(%rip), %rax     # 0x2a2b0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
addq $0x70, %rdi
movslq -0x14(%rbp), %rsi
callq 0x13730
movq -0x30(%rbp), %rdi
cvttsd2si (%rax), %eax
cltq
shlq $0x5, %rax
addq %rax, %rdi
callq 0x31b0
cmpq $0x0, %rax
jbe 0x133e7
movq -0x28(%rbp), %rdi
movb $0x1, -0x15(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movslq -0x14(%rbp), %rcx
leaq 0x16f03(%rip), %rax     # 0x2a2b0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
addq $0x70, %rdi
movslq -0x14(%rbp), %rsi
callq 0x13730
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
cvttsd2si (%rax), %eax
cltq
shlq $0x5, %rax
addq %rax, %rsi
callq 0x3240
jmp 0x13485
movq -0x28(%rbp), %rdi
movslq -0x14(%rbp), %rcx
leaq 0x16eba(%rip), %rax     # 0x2a2b0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
addq $0x70, %rdi
movslq -0x14(%rbp), %rsi
callq 0x13730
movq -0x48(%rbp), %rdi
cvttsd2si (%rax), %eax
cltq
shlq $0x5, %rax
addq %rax, %rdi
callq 0x31b0
cmpq $0x0, %rax
jbe 0x13483
movq -0x10(%rbp), %rdi
movl $0x2c, %esi
callq 0x3320
movq -0x28(%rbp), %rdi
movq %rax, -0x50(%rbp)
movslq -0x14(%rbp), %rcx
leaq 0x16e62(%rip), %rax     # 0x2a2b0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
addq $0x70, %rdi
movslq -0x14(%rbp), %rsi
callq 0x13730
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdi
cvttsd2si (%rax), %eax
cltq
shlq $0x5, %rax
addq %rax, %rsi
callq 0x3240
jmp 0x13485
jmp 0x13487
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x13338
movq -0x10(%rbp), %rdi
leaq 0x90a2(%rip), %rsi      # 0x1c54b
callq 0x3270
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1350f
movq -0x10(%rbp), %rdi
movl $0x2c, %esi
callq 0x3320
movq -0x28(%rbp), %rdi
movq %rax, -0x60(%rbp)
movslq -0x14(%rbp), %rcx
leaq 0x16dd6(%rip), %rax     # 0x2a2b0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
addq $0x70, %rdi
movslq -0x14(%rbp), %rsi
callq 0x13730
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdi
cvttsd2si (%rax), %eax
cltq
shlq $0x5, %rax
addq %rax, %rsi
callq 0x3240
jmp 0x13511
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x13309
movq -0x10(%rbp), %rdi
movq 0x16a8e(%rip), %rsi     # 0x29fb8
callq 0x32b0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)