// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/warp10server/src/Server.cpp
// Function: Warp10::Server::onManagerClosed(u::Object*)
void Server::onManagerClosed(Object* arg)
{
	arg->destroy();
	lock();
	bool shutdown = _isShuttingDown == true;
	unlock();
	if (shutdown) {
		trace(className() + "::onManagerClosed: All closed. Exit program.");
		programExit();
	} else {
		error(className() + "::onManagerClosed: Unexpected closing.");
		this->shutdown();
		//trace(className() + ": All closed. Continue program.");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *(%rax)
movq %rbx, %rdi
callq 0x410246
movb 0x228(%rbx), %bpl
movq %rbx, %rdi
callq 0x4101fe
cmpb $0x1, %bpl
jne 0x405e2b
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c82b5(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%rbx), %rax
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
leaq 0x1c8326(%rip), %rsi    # 0x5ce126
callq 0x4a25e0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x405e8f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x405e96
movq $0x653b20, %rdi         # imm = 0x653B20
leaq 0x1c831a(%rip), %rsi    # 0x5ce153
movl $0x7, %edx
callq 0x490a00
movq (%rbx), %rax
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
leaq 0x1c82fe(%rip), %rsi    # 0x5ce15b
callq 0x4a25e0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x405f49
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x405f50
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490a00
movq %rax, %r14
leaq 0x1c81de(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r14, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x405f17
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405f32
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x410354
movq %rbx, %rdi
callq 0x406272
jmp 0x405ffe
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq $0x653b20, %rdi         # imm = 0x653B20
callq 0x490a00
movq %rax, %r14
leaq 0x1c8124(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r14, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x405fd1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405fec
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x410354
movq %rbx, %rdi
callq 0x406218
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40600b
movq %rax, %rbx
jmp 0x40602b
jmp 0x406012
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x40602b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
nop