// File: essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: update_device_desciption(item*)
void update_device_desciption(item* dev)
{
	dev->description = dev->name + ". " + dev->base_description + ". "+ vconfig_names[dev->configuration];
	char desc[500] = "";
	if(dev->configuration == ON_TIMER)
	{
		sprintf(desc, ", %.1f seconds remaining.", (float)dev->time_remaining/10);
		dev->description += std::string(desc);
	}
	else if(dev->configuration == ON_REMOTE)
	{
		sprintf(desc, ", wavelength %d.", dev->wavelength+1);
		dev->description += std::string(desc);
	}
}

// Assembly:
subq $0x308, %rsp            # imm = 0x308
movq %rdi, 0x300(%rsp)
movq 0x300(%rsp), %rsi
addq $0x10, %rsi
leaq 0x1a579(%rip), %rdx     # 0x2dbfb
leaq 0x280(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x20670
movq 0x28(%rsp), %rsi
movq 0x300(%rsp), %rdx
addq $0x50, %rdx
leaq 0x2a0(%rsp), %rdi
callq 0x1fe80
jmp 0x136b4
leaq 0x1a540(%rip), %rdx     # 0x2dbfb
leaq 0x2c0(%rsp), %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x21090
jmp 0x136d2
movq 0x300(%rsp), %rax
movslq 0x8c(%rax), %rsi
leaq 0x74b50(%rip), %rdi     # 0x88238
callq 0x1fe60
movq %rax, %rdx
leaq 0x2e0(%rsp), %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x1fe80
jmp 0x13707
movq 0x300(%rsp), %rdi
addq $0x30, %rdi
leaq 0x2e0(%rsp), %rsi
callq 0x5370
leaq 0x2e0(%rsp), %rdi
callq 0x54f8
leaq 0x2c0(%rsp), %rdi
callq 0x54f8
leaq 0x2a0(%rsp), %rdi
callq 0x54f8
leaq 0x280(%rsp), %rdi
callq 0x54f8
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x51c0
movq 0x300(%rsp), %rax
cmpl $0x1, 0x8c(%rax)
jne 0x138ba
movq 0x300(%rsp), %rax
cvtsi2ssl 0x7c(%rax), %xmm0
movss 0x198d2(%rip), %xmm1    # 0x2d064
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x1a656(%rip), %rsi     # 0x2ddf7
leaq 0x80(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movb $0x1, %al
callq 0x5080
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5490
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x60(%rsp), %rdi
callq 0x53d0
jmp 0x137da
movq 0x300(%rsp), %rdi
addq $0x30, %rdi
leaq 0x60(%rsp), %rsi
callq 0x5390
jmp 0x137f2
leaq 0x60(%rsp), %rdi
callq 0x54f8
leaq 0x5f(%rsp), %rdi
callq 0x5310
jmp 0x1398c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x13865
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x13858
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x2c0(%rsp), %rdi
callq 0x54f8
leaq 0x2a0(%rsp), %rdi
callq 0x54f8
leaq 0x280(%rsp), %rdi
callq 0x54f8
jmp 0x13994
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x138ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x54f8
leaq 0x5f(%rsp), %rdi
callq 0x5310
jmp 0x13994
movq 0x300(%rsp), %rax
cmpl $0x2, 0x8c(%rax)
jne 0x1398a
movq 0x300(%rsp), %rax
movl 0x74(%rax), %edx
incl %edx
leaq 0x1a52e(%rip), %rsi     # 0x2de11
xorl %eax, %eax
leaq 0x80(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5080
leaq 0x37(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5490
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0x53d0
jmp 0x1391c
movq 0x300(%rsp), %rdi
addq $0x30, %rdi
leaq 0x38(%rsp), %rsi
callq 0x5390
jmp 0x13934
leaq 0x38(%rsp), %rdi
callq 0x54f8
leaq 0x37(%rsp), %rdi
callq 0x5310
jmp 0x1398a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x1397e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x54f8
leaq 0x37(%rsp), %rdi
callq 0x5310
jmp 0x13994
jmp 0x1398c
addq $0x308, %rsp            # imm = 0x308
retq
movq 0x278(%rsp), %rdi
callq 0x5480
nopw %cs:(%rax,%rax)