// File: 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
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0x130(%rbp), %rdi
callq 0x417410
movq -0x130(%rbp), %rdi
movb 0x228(%rdi), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
sete %al
andb $0x1, %al
movb %al, -0x11(%rbp)
callq 0x417380
testb $0x1, -0x11(%rbp)
je 0x407634
movq $0x668c60, %rdi         # imm = 0x668C60
leaq 0x1d3bf4(%rip), %rsi    # 0x5db091
callq 0x49dd60
movq %rax, -0x138(%rbp)
movb $0x0, -0x91(%rbp)
movb $0x0, -0xa6(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x4074bf
jmp 0x4074f5
movq -0x130(%rbp), %rsi
movq (%rsi), %rax
movq 0x8(%rax), %rax
leaq -0x90(%rbp), %rdi
callq *%rax
movb $0x1, -0x91(%rbp)
leaq -0x58(%rbp), %rsi
leaq 0x1d3d0b(%rip), %rdx    # 0x5db1f3
leaq -0x38(%rbp), %rdi
callq 0x405d00
jmp 0x4074f3
jmp 0x40752a
leaq -0xa5(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x435b90
movq -0x140(%rbp), %rdx
movb $0x1, -0xa6(%rbp)
leaq 0x1f9485(%rip), %rsi    # 0x6009a2
leaq -0x38(%rbp), %rdi
callq 0x407e60
jmp 0x407528
jmp 0x40752a
movq -0x138(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x4b05e0
movq %rax, -0x148(%rbp)
jmp 0x407543
movq -0x148(%rbp), %rdi
leaq 0x1d3b7f(%rip), %rsi    # 0x5db0d0
callq 0x49dd60
movq %rax, -0x150(%rbp)
jmp 0x40755f
movq -0x150(%rbp), %rdi
movq $0x49d640, %rsi         # imm = 0x49D640
callq 0x49c850
jmp 0x407574
leaq -0x38(%rbp), %rdi
callq 0x4adc60
testb $0x1, -0xa6(%rbp)
jne 0x407588
jmp 0x407594
leaq -0xa5(%rbp), %rdi
callq 0x435bb0
testb $0x1, -0x91(%rbp)
jne 0x40759f
jmp 0x4075ab
leaq -0x90(%rbp), %rdi
callq 0x405650
movq -0x130(%rbp), %rdi
callq 0x407af0
jmp 0x4077e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x407618
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x4075ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x4adc60
testb $0x1, -0xa6(%rbp)
jne 0x40760a
jmp 0x407616
leaq -0xa5(%rbp), %rdi
callq 0x435bb0
jmp 0x407618
testb $0x1, -0x91(%rbp)
jne 0x407623
jmp 0x40762f
leaq -0x90(%rbp), %rdi
callq 0x405650
jmp 0x4077ee
movq $0x668b40, %rdi         # imm = 0x668B40
leaq 0x1d3bde(%rip), %rsi    # 0x5db220
callq 0x49dd60
movq %rax, -0x158(%rbp)
movb $0x0, -0x121(%rbp)
movb $0x0, -0x123(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x407664
jmp 0x4076a0
movq -0x130(%rbp), %rsi
movq (%rsi), %rax
movq 0x8(%rax), %rax
leaq -0x120(%rbp), %rdi
callq *%rax
movb $0x1, -0x121(%rbp)
leaq -0xe8(%rbp), %rsi
leaq 0x1d3bcf(%rip), %rdx    # 0x5db25f
leaq -0xc8(%rbp), %rdi
callq 0x405d00
jmp 0x40769e
jmp 0x4076d8
leaq -0x122(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x435b90
movq -0x160(%rbp), %rdx
movb $0x1, -0x123(%rbp)
leaq 0x1f92da(%rip), %rsi    # 0x6009a2
leaq -0xc8(%rbp), %rdi
callq 0x407e60
jmp 0x4076d6
jmp 0x4076d8
movq -0x158(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x4b05e0
movq %rax, -0x168(%rbp)
jmp 0x4076f4
movq -0x168(%rbp), %rdi
leaq 0x1d39ce(%rip), %rsi    # 0x5db0d0
callq 0x49dd60
movq %rax, -0x170(%rbp)
jmp 0x407710
movq -0x170(%rbp), %rdi
movq $0x49d640, %rsi         # imm = 0x49D640
callq 0x49c850
jmp 0x407725
leaq -0xc8(%rbp), %rdi
callq 0x4adc60
testb $0x1, -0x123(%rbp)
jne 0x40773c
jmp 0x407748
leaq -0x122(%rbp), %rdi
callq 0x435bb0
testb $0x1, -0x121(%rbp)
jne 0x407753
jmp 0x40775f
leaq -0x120(%rbp), %rdi
callq 0x405650
movq -0x130(%rbp), %rdi
callq 0x407a70
jmp 0x4077e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x4077cc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x4077b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x4adc60
testb $0x1, -0x123(%rbp)
jne 0x4077be
jmp 0x4077ca
leaq -0x122(%rbp), %rdi
callq 0x435bb0
jmp 0x4077cc
testb $0x1, -0x121(%rbp)
jne 0x4077d7
jmp 0x4077e3
leaq -0x120(%rbp), %rdi
callq 0x405650
jmp 0x4077ee
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x4deb40
nopw (%rax,%rax)