// File: /workspace/github_cpp_makefile_star2_O2/errantlinguist[P]Forecast/src/forecast_io/parsers/NotifyingAlertParser.cpp
// Function: forecast_io::parsers::NotifyingAlertParser::parseAttribute(forecast_io::parsers::AlertAttribute const&, json_object* const&)
void NotifyingAlertParser::parseAttribute(const AlertAttribute& attribute,
		json_object* const & pValue)
{
	switch (attribute)
	{
	case AlertAttribute::DESCRIPTION:
	{
		const std::string description(json_object_get_string(pValue));
		for (listeners::AlertDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyDescription(description);
		}
		break;
	}
	case AlertAttribute::EXPIRY_TIME:
	{
		const time_t expiryTime(
				static_cast<time_t>(json_object_get_int64(pValue)));
		for (listeners::AlertDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyExpiryTime(expiryTime);
		}
		break;
	}
	case AlertAttribute::TITLE:
	{
		const std::string title(json_object_get_string(pValue));
		for (listeners::AlertDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyTitle(title);
		}
		break;
	}
	case AlertAttribute::URI:
	{
		const std::string uri(json_object_get_string(pValue));
		for (listeners::AlertDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyUri(uri);
		}
		break;
	}
	default:
	{
		throw std::logic_error(
				createUndefinedAttributeErrorMessage(AlertAttribute_NAME,
						attribute));
		break;
	}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl (%rsi), %eax
cmpq $0x3, %rax
ja 0x1ca9c
movq %rdi, %rbx
leaq 0x767a(%rip), %rcx      # 0x24020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rdx), %rdi
callq 0x96b0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xb070
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ca61
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
jmp 0x1c9d2
movq (%rdx), %rdi
callq 0x96b0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xb070
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ca61
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x10(%rax)
jmp 0x1ca10
movq (%rdx), %rdi
callq 0x96b0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xb070
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ca61
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x28(%rax)
jmp 0x1ca4a
leaq 0x8(%rsp), %rdi
callq 0x9710
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%rdx), %rdi
callq 0x9450
movq %rax, %r14
addq $0x28, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ca6b
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
jmp 0x1ca85
movq %rsi, %r15
pushq $0x10
popq %rdi
callq 0x91e0
movq %rax, %r14
leaq 0x1d327(%rip), %rsi     # 0x39dd8
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x1cb9c
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x90d0
xorl %ebp, %ebp
movq 0x1c511(%rip), %rsi     # 0x38fe8
movq 0x1c4ea(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x9390
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x9710
testb %bpl, %bpl
jne 0x1cafd
jmp 0x1cb21
movq %rax, %rbx
movq %r14, %rdi
callq 0x9530
jmp 0x1cb21
jmp 0x1cb0b
jmp 0x1cb0b
movq %rax, %rbx
jmp 0x1cb21
jmp 0x1cb14
jmp 0x1cb14
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x9710
movq %rbx, %rdi
callq 0x93b0
nop