// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x15f56
leaq 0xb59e(%rip), %rsi      # 0x18a2e
movq %r14, %rdi
callq 0x5410
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
leaq 0x20(%rsp), %rdi
callq 0x50c0
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd4d1
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0xd4d8
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x40(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb533(%rip), %rsi      # 0x18a2e
callq 0x5410
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd526
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xd52c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movslq 0x8c(%rbx), %rax
movq 0x60c74(%rip), %rcx     # 0x6e1c8
shlq $0x5, %rax
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
callq 0x50c0
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd58d
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xd595
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rbx), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x5300
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xd5cd
callq 0x5230
movq (%rsp), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0xd5e0
callq 0x5230
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0xd5ef
callq 0x5230
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xd5fe
callq 0x5230
leaq 0x60(%rsp), %rdi
movl $0x1f4, %edx            # imm = 0x1F4
xorl %esi, %esi
callq 0x5180
movl 0x8c(%rbx), %eax
cmpl $0x2, %eax
je 0xd681
cmpl $0x1, %eax
jne 0xd6dc
xorps %xmm0, %xmm0
cvtsi2ssl 0x7c(%rbx), %xmm0
divss 0xaa59(%rip), %xmm0     # 0x1808c
cvtss2sd %xmm0, %xmm0
leaq 0xb5ec(%rip), %rsi      # 0x18c2a
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x5050
movq %rsp, %r15
movq %r13, (%r15)
movq %rbx, %rdi
callq 0x5140
leaq (%rsp,%rax), %rdx
addq $0x60, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x15b1a
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x50c0
jmp 0xd6ce
movl 0x74(%rbx), %edx
incl %edx
leaq 0xb5b7(%rip), %rsi      # 0x18c44
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x5050
movq %rsp, %r15
movq %r13, (%r15)
movq %rbx, %rdi
callq 0x5140
leaq (%rsp,%rax), %rdx
addq $0x60, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x15b1a
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xd6dc
callq 0x5230
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd6f0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0xd740
jmp 0xd745
jmp 0xd700
movq %rax, %rbx
jmp 0xd745
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xd720
callq 0x5230
jmp 0xd720
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0xd736
callq 0x5230
jmp 0xd736
jmp 0xd733
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xd745
callq 0x5230
movq %rbx, %rdi
callq 0x53d0