// File: /workspace/github_cpp_makefile_star2_O1/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 0x166e0
leaq 0xb010(%rip), %rsi      # 0x189be
movq %r14, %rdi
callq 0x5420
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 0xd9ef
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0xd9f6
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 0xafa5(%rip), %rsi      # 0x189be
callq 0x5420
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xda44
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xda4a
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 0x60766(%rip), %rcx     # 0x6e1d8
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 0xdaab
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xdab3
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 0xdaeb
callq 0x5230
movq (%rsp), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0xdafe
callq 0x5230
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0xdb0d
callq 0x5230
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xdb1c
callq 0x5230
leaq 0x60(%rsp), %rdi
movl $0x1f4, %edx            # imm = 0x1F4
xorl %esi, %esi
callq 0x5180
movl 0x8c(%rbx), %eax
cmpl $0x2, %eax
je 0xdb9f
cmpl $0x1, %eax
jne 0xdbfa
xorps %xmm0, %xmm0
cvtsi2ssl 0x7c(%rbx), %xmm0
divss 0xa53b(%rip), %xmm0     # 0x1808c
cvtss2sd %xmm0, %xmm0
leaq 0xb05e(%rip), %rsi      # 0x18bba
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 0x16274
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x50c0
jmp 0xdbec
movl 0x74(%rbx), %edx
incl %edx
leaq 0xb029(%rip), %rsi      # 0x18bd4
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 0x16274
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xdbfa
callq 0x5230
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdc0e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0xdc5e
jmp 0xdc63
jmp 0xdc1e
movq %rax, %rbx
jmp 0xdc63
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xdc3e
callq 0x5230
jmp 0xdc3e
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0xdc54
callq 0x5230
jmp 0xdc54
jmp 0xdc51
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xdc63
callq 0x5230
movq %rbx, %rdi
callq 0x53d0