// File: 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
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x158(%rbp)
subq $0x3, %rax
ja 0x545fb
movq -0x158(%rbp), %rax
leaq 0x13fbd(%rip), %rcx     # 0x68194
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0xa8e0
movq %rax, -0x170(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0xa770
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0xdcb0
jmp 0x5421c
leaq -0x39(%rbp), %rdi
callq 0xa960
movq -0x160(%rbp), %rdi
addq $0x10, %rdi
callq 0x490a0
movq %rax, -0x178(%rbp)
jmp 0x5423e
movq -0x178(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0x547f0
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
callq 0x54820
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x54850
testb $0x1, %al
jne 0x54276
jmp 0x542da
leaq -0x60(%rbp), %rdi
callq 0x54880
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x20(%rax), %rax
leaq -0x38(%rbp), %rsi
callq *%rax
jmp 0x54299
jmp 0x5429b
leaq -0x60(%rbp), %rdi
callq 0x548b0
jmp 0x54263
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0xa960
jmp 0x546ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xa978
jmp 0x546ac
leaq -0x38(%rbp), %rdi
callq 0xa978
jmp 0x546a3
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0xa5d0
movq -0x160(%rbp), %rdi
movq %rax, -0x78(%rbp)
addq $0x10, %rdi
callq 0x490a0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x547f0
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
callq 0x54820
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x54850
testb $0x1, %al
jne 0x54345
jmp 0x5437a
leaq -0x88(%rbp), %rdi
callq 0x54880
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
movq (%rdi), %rax
callq *0x18(%rax)
leaq -0x88(%rbp), %rdi
callq 0x548b0
jmp 0x5432c
jmp 0x546a3
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0xa8e0
movq %rax, -0x188(%rbp)
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0xa770
movq -0x188(%rbp), %rsi
movq -0x180(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
callq 0xdcb0
jmp 0x543c1
leaq -0xb9(%rbp), %rdi
callq 0xa960
movq -0x160(%rbp), %rdi
addq $0x10, %rdi
callq 0x490a0
movq %rax, -0x190(%rbp)
jmp 0x543e6
movq -0x190(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x547f0
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x54820
movq %rax, -0xd8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x54850
testb $0x1, %al
jne 0x54433
jmp 0x544ac
leaq -0xd0(%rbp), %rdi
callq 0x54880
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
leaq -0xb8(%rbp), %rsi
callq *%rax
jmp 0x54462
jmp 0x54464
leaq -0xd0(%rbp), %rdi
callq 0x548b0
jmp 0x5441a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb9(%rbp), %rdi
callq 0xa960
jmp 0x546ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xa978
jmp 0x546ac
leaq -0xb8(%rbp), %rdi
callq 0xa978
jmp 0x546a3
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0xa8e0
movq %rax, -0x1a0(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0xa770
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdx
leaq -0x100(%rbp), %rdi
callq 0xdcb0
jmp 0x544ff
leaq -0x101(%rbp), %rdi
callq 0xa960
movq -0x160(%rbp), %rdi
addq $0x10, %rdi
callq 0x490a0
movq %rax, -0x1a8(%rbp)
jmp 0x54524
movq -0x1a8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
callq 0x547f0
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rdi
callq 0x54820
movq %rax, -0x120(%rbp)
leaq -0x118(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x54850
testb $0x1, %al
jne 0x54571
jmp 0x545ea
leaq -0x118(%rbp), %rdi
callq 0x54880
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x28(%rax), %rax
leaq -0x100(%rbp), %rsi
callq *%rax
jmp 0x545a0
jmp 0x545a2
leaq -0x118(%rbp), %rdi
callq 0x548b0
jmp 0x54558
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x101(%rbp), %rdi
callq 0xa960
jmp 0x546ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0xa978
jmp 0x546ac
leaq -0x100(%rbp), %rdi
callq 0xa978
jmp 0x546a3
movb $0x1, -0x149(%rbp)
movl $0x10, %edi
callq 0xa2d0
movq %rax, -0x1b0(%rbp)
movq -0x10(%rbp), %rdx
leaq 0x498fa(%rip), %rsi     # 0x9df18
leaq -0x148(%rbp), %rdi
callq 0x548e0
jmp 0x5462c
movq -0x1b0(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0xa130
jmp 0x54641
movq -0x1b0(%rbp), %rdi
movb $0x0, -0x149(%rbp)
movq 0x48992(%rip), %rsi     # 0x9cfe8
movq 0x4896b(%rip), %rdx     # 0x9cfc8
callq 0xa500
jmp 0x546b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x5468a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x148(%rbp), %rdi
callq 0xa978
testb $0x1, -0x149(%rbp)
jne 0x54695
jmp 0x546a1
movq -0x1b0(%rbp), %rdi
callq 0xa6c0
jmp 0x546ac
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0xa520
nopw %cs:(%rax,%rax)
nop