// File: errantlinguist[P]Forecast/src/console_weather/writers/FlagsConsoleWriter.cpp
// Function: console_weather::writers::FlagsConsoleWriter::write(forecast_io::Flags const&, std::ostream&)
void FlagsConsoleWriter::write(const forecast_io::Flags& value, std::ostream& output)
{
	output << "Measurement system: ";
	static const forecast_io::MeasurementSystemNameArray& measurementNames = *forecast_io::MeasurementSystemDefaultNameArrayHolder::getInstance();
	const std::string measurementName =
			measurementNames[static_cast<size_t>(value.getUnits())];
	output << measurementName << '\n';

	output << "Dark Sky service is available: ";
	const std::string darkskyAvailableStr = common::to_string(
			!value.isDarkskyUnavailable());
	output << darkskyAvailableStr << '\n';

	output << "met.no license is present: ";
	const std::string metnoLicenseStr = common::to_string(
			value.hasMetnoLicense());
	output << metnoLicenseStr << '\n';

	const std::unordered_set<std::string>& sources = value.getSources();
	output << "Sources used: " << sources.size() << '\n';

	const std::unordered_multimap<std::string, std::string>& stations =
			value.getStations();
	output << "Stations used: " << stations.size() << '\n';

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x2d89d(%rip), %rsi     # 0x672ff
callq 0xa4a0
cmpb $0x0, 0x641aa(%rip)     # 0x9dc18
jne 0x39abe
leaq 0x641a1(%rip), %rdi     # 0x9dc18
callq 0xa290
cmpl $0x0, %eax
je 0x39abe
callq 0x39d70
movq %rax, -0xb0(%rbp)
jmp 0x39a8f
movq -0xb0(%rbp), %rdi
callq 0x39d80
movq %rax, -0xb8(%rbp)
jmp 0x39aa4
movq -0xb8(%rbp), %rax
movq %rax, 0x6415e(%rip)     # 0x9dc10
leaq 0x6415f(%rip), %rdi     # 0x9dc18
callq 0xa480
movq 0x6414b(%rip), %rax     # 0x9dc10
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x39de0
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x39db0
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0xa100
movq -0xc8(%rbp), %rsi
movq -0x18(%rbp), %rdi
callq 0xa240
movq %rax, -0xc0(%rbp)
jmp 0x39b10
movq -0xc0(%rbp), %rdi
movl $0xa, %esi
callq 0xa550
jmp 0x39b23
movq -0x18(%rbp), %rdi
leaq 0x2d7e6(%rip), %rsi     # 0x67314
callq 0xa4a0
jmp 0x39b35
movq -0x10(%rbp), %rdi
callq 0x39e00
movb %al, -0xd1(%rbp)
jmp 0x39b46
movb -0xd1(%rbp), %al
notb %al
andb $0x1, %al
movb %al, -0x69(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x69(%rbp), %rsi
callq 0x38150
jmp 0x39b62
movq -0x18(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xa240
movq %rax, -0xe0(%rbp)
jmp 0x39b78
movq -0xe0(%rbp), %rdi
movl $0xa, %esi
callq 0xa550
jmp 0x39b8b
movq -0x18(%rbp), %rdi
leaq 0x2d79e(%rip), %rsi     # 0x67334
callq 0xa4a0
jmp 0x39b9d
movq -0x10(%rbp), %rdi
callq 0x39e20
movb %al, -0xe1(%rbp)
jmp 0x39bae
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x91(%rbp), %rsi
callq 0x38150
jmp 0x39bd1
movq -0x18(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xa240
movq %rax, -0xf0(%rbp)
jmp 0x39bea
movq -0xf0(%rbp), %rdi
movl $0xa, %esi
callq 0xa550
jmp 0x39bfd
movq -0x10(%rbp), %rdi
callq 0x39e40
movq %rax, -0xf8(%rbp)
jmp 0x39c0f
movq -0xf8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x2d728(%rip), %rsi     # 0x67350
callq 0xa4a0
movq %rax, -0x100(%rbp)
jmp 0x39c36
movq -0xa0(%rbp), %rdi
callq 0x39e60
movq -0x100(%rbp), %rdi
movq %rax, %rsi
callq 0xa840
movq %rax, -0x108(%rbp)
jmp 0x39c5a
movq -0x108(%rbp), %rdi
movl $0xa, %esi
callq 0xa550
jmp 0x39c6d
movq -0x10(%rbp), %rdi
callq 0x39e80
movq %rax, -0x110(%rbp)
jmp 0x39c7f
movq -0x110(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x2d6c7(%rip), %rsi     # 0x6735f
callq 0xa4a0
movq %rax, -0x118(%rbp)
jmp 0x39ca6
movq -0xa8(%rbp), %rdi
callq 0x39ea0
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0xa840
movq %rax, -0x120(%rbp)
jmp 0x39cca
movq -0x120(%rbp), %rdi
movl $0xa, %esi
callq 0xa550
jmp 0x39cdd
leaq -0x90(%rbp), %rdi
callq 0xa978
leaq -0x68(%rbp), %rdi
callq 0xa978
leaq -0x48(%rbp), %rdi
callq 0xa978
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq 0x63f01(%rip), %rdi     # 0x9dc18
callq 0xa310
jmp 0x39d64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x39d5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x39d52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xa978
leaq -0x68(%rbp), %rdi
callq 0xa978
leaq -0x48(%rbp), %rdi
callq 0xa978
movq -0x20(%rbp), %rdi
callq 0xa520
nopl (%rax)