// File: /workspace/github_cpp_makefile_star2_O3/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 0x23f82
movq %rdi, %rbx
leaq 0x823a(%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 0xc40a
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x23f31
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
jmp 0x23ea2
movq (%rdx), %rdi
callq 0x96c0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xc40a
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x23f31
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x10(%rax)
jmp 0x23ee0
movq (%rdx), %rdi
callq 0x96c0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xc40a
addq $0x28, %rbx
leaq 0x8(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x23f31
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x28(%rax)
jmp 0x23f1a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23f77
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0x23f77
movq (%rdx), %rdi
callq 0x9430
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x23f77
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x23f62
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movl $0x10, %edi
callq 0x91c0
movq %rax, %r14
leaq 0x1be3f(%rip), %rsi     # 0x3fdd8
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x240e6
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x90d0
xorl %ebp, %ebp
movq 0x1b029(%rip), %rsi     # 0x3efe8
movq 0x1b002(%rip), %rdx     # 0x3efc8
movq %r14, %rdi
callq 0x9370
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23fec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
testb %bpl, %bpl
jne 0x23ff6
jmp 0x2402b
movq %rax, %rbx
movq %r14, %rdi
callq 0x9510
jmp 0x2402b
jmp 0x24004
jmp 0x24004
movq %rax, %rbx
jmp 0x2402b
jmp 0x2400d
jmp 0x2400d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2402b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390
nop