// File: /workspace/github_cpp_makefile_star2_O1/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 0x240ae
movq %rdi, %rbx
leaq 0x810e(%rip), %rcx      # 0x2c0b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rdx), %rdi
callq 0x96c0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xc420
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2405d
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
jmp 0x23fce
movq (%rdx), %rdi
callq 0x96c0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xc420
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2405d
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x10(%rax)
jmp 0x2400c
movq (%rdx), %rdi
callq 0x96c0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xc420
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2405d
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x28(%rax)
jmp 0x24046
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x240a3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0x240a3
movq (%rdx), %rdi
callq 0x9430
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x240a3
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x2408e
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movl $0x10, %edi
callq 0x91c0
movq %rax, %r14
leaq 0x1bd13(%rip), %rsi     # 0x3fdd8
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x24214
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x90d0
xorl %ebp, %ebp
movq 0x1aefd(%rip), %rsi     # 0x3efe8
movq 0x1aed6(%rip), %rdx     # 0x3efc8
movq %r14, %rdi
callq 0x9370
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24120
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0x24120
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x2415a
movq %r14, %rdi
callq 0x9510
jmp 0x2415a
jmp 0x24133
jmp 0x24133
movq %rax, %rbx
jmp 0x2415a
jmp 0x2413c
jmp 0x2413c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2415a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390