LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/warp10server/src/Network/WebListener.cpp
// Function: Warp10::Network::WebListener::listen()
void WebListener::listen()
{
	bool ret = _socket->listen();

	if(ret == false) {
		error(className()+"::listen: Can not etablish connection.");
		u::Network::Event close(
			u::Network::Event::CLOSE
		);
		dispatchEvent(&close);
		return;
	}

	// start incoming connections
	Callback cb(this, cb_cast(&WebListener::listenSocket));
	ThreadSystem::create(&cb);

	return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
movq 0x90(%rdi), %rdi
callq 0x41282a
testb %al, %al
je 0x4096f4
leaq 0x28(%rsp), %r14
movl $0x41, %edx
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq %r14, %rdi
callq 0x4145c4
leaq 0x28(%rsp), %rdi
callq 0x410354
jmp 0x40982a
movq $0x653b20, %rdi         # imm = 0x653B20
leaq 0x1c4a51(%rip), %rsi    # 0x5ce153
movl $0x7, %edx
callq 0x490a00
movq (%rbx), %rax
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq *0x8(%rax)
leaq 0x60(%rsp), %rdi
leaq 0x1c4e48(%rip), %rsi    # 0x5ce56e
callq 0x4a25e0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x409752
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x409759
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq $0x653b20, %rdi         # imm = 0x653B20
callq 0x490a00
movq %rax, %r14
leaq 0x1c491a(%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 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4097dc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4097f7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x410354
movq $0x652c08, %rsi         # imm = 0x652C08
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x4168dc
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40e18e
leaq 0x28(%rsp), %rdi
callq 0x4169fc
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4169fc
jmp 0x40987e
movq %rax, %rbx
jmp 0x409874
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x410354
jmp 0x40987e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x409874
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/warp10server/src/Network/WebListener.cpp
// Function: Warp10::Network::WebListener::onClose(u::Object*)
void WebListener::onClose(Object* arg)
{
	bool sendWillClose = false;
	arg->destroy();
	lock();
	if(_isClosed == false) {

		_socket->close();
		
		int64 i = 0, l = _connections.length();
		for(; i < l; i++)
		{
			u::Network::Event close(u::Network::Event::CLOSE);
			IConnection* connection = _connections[i];
			connection->dispatchEvent(&close);
		}

		sendWillClose = true;
	}
	_isClosed = true;
	unlock();

	checkClosed();

	if(sendWillClose == true) {
		WebEvent willClose(WebEvent::WILL_CLOSE);
		dispatchEvent(&willClose);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *(%rax)
movq %rbx, %rdi
callq 0x410246
cmpb $0x0, 0xe8(%rbx)
je 0x4098da
movb $0x1, 0xe8(%rbx)
movq %rbx, %rdi
callq 0x4101fe
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *0x28(%rax)
movq 0x90(%rbx), %rdi
callq 0x41218e
movq 0xd8(%rbx), %r13
subq 0xd0(%rbx), %r13
sarq $0x3, %r13
testq %r13, %r13
jle 0x40994b
xorl %r14d, %r14d
movq $0x652c08, %r15         # imm = 0x652C08
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x4168dc
movq 0xd0(%rbx), %rax
movq 0xd8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
jbe 0x409999
movq (%rax,%r14,8), %rdi
movq %r12, %rsi
callq 0x40e18e
movq %r12, %rdi
callq 0x4169fc
incq %r14
cmpq %r14, %r13
jne 0x40990a
movb $0x1, 0xe8(%rbx)
movq %rbx, %rdi
callq 0x4101fe
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq $0x6527c0, %rsi         # imm = 0x6527C0
movq %rsp, %r14
movq %r14, %rdi
callq 0x409104
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40e18e
movq %rsp, %rdi
callq 0x40904a
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1c4a28(%rip), %rdi    # 0x5ce3c8
movq %r14, %rsi
xorl %eax, %eax
callq 0x471660
movq %rax, %rbx
movq %rsp, %rdi
callq 0x40904a
jmp 0x4099c4
jmp 0x4099b9
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4169fc
movq %rbx, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/warp10server/src/Network/WebListener.cpp
// Function: Warp10::Network::WebListener::onConnectionClosed(u::Object*)
void WebListener::onConnectionClosed(Object *arg)
{
	u::Network::Event* event = ((u::Network::Event*)arg);
	IConnection* connection  = ((IConnection*)event->target());
	lock();
	int64 index = _connections.erase(connection);
	if (index != -1) {
		trace(
			className() + "::onConnectionClosed: Removed connection from list."
		);
		connection->removeEventListener(
			u::Network::Event::CLOSED
			, Callback(this, cb_cast(&WebListener::onConnectionClosed))
		);
		connection->destroy();
	}
	bool isClosed = _isClosed;
	unlock();
	if (isClosed == true) {
		checkClosed();
	}

	event->destroy();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x40c3b8
movq %rax, %r15
movq %r14, %rdi
callq 0x410246
leaq 0x98(%r14), %rdi
movq %r15, %rsi
callq 0x40a8dc
cmpq $-0x1, %rax
je 0x40a814
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c39c2(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%r14), %rax
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x60(%rsp), %rdi
leaq 0x1c3fae(%rip), %rsi    # 0x5ce6a1
callq 0x4a25e0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40a71f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x40a727
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490a00
movq %rax, %r12
leaq 0x1c394c(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r12, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x40a7ab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40a7c6
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x410354
leaq 0x80(%rsp), %r12
movl $0x49, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652c60, %rsi         # imm = 0x652C60
movq %r15, %rdi
movq %r12, %rdx
callq 0x40e05e
leaq 0x80(%rsp), %rdi
callq 0x410354
movq (%r15), %rax
movq %r15, %rdi
callq *(%rax)
movb 0xe8(%r14), %bpl
movq %r14, %rdi
callq 0x4101fe
cmpb $0x1, %bpl
jne 0x40a832
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x410354
jmp 0x40a887
movq %rax, %rbx
jmp 0x40a87d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x40a87d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::createMemory()
void ByteArray::createMemory()
{
	uint64 i;
	_size = BYTEARRAY_CHUNK;
	_buffer = (char *) malloc(_size);
	_position = 0;
	_length=0;
	if(_buffer == null) error("ByteArray::ByteArray(): Out of memory.");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq $0x400, 0x48(%rdi)      # imm = 0x400
movl $0x400, %edi            # imm = 0x400
callq 0x50c8f0
movq %rax, 0x38(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x40(%rbx)
movq %rcx, 0x50(%rbx)
testq %rax, %rax
je 0x40addb
popq %rbx
retq
movq $0x653b20, %rbx         # imm = 0x653B20
leaq 0x1c336a(%rip), %rsi    # 0x5ce153
movl $0x7, %edx
movq %rbx, %rdi
callq 0x490a00
leaq 0x1c3997(%rip), %rsi    # 0x5ce794
movl $0x26, %edx
movq %rbx, %rdi
callq 0x490a00
leaq 0x1c329a(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rbx, %rdi
callq 0x490a00
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %rbx, %rdi
callq 0x490500
movq %rax, %rdi
popq %rbx
jmp 0x48fad0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::cloneFrom(u::ByteArray const&)
void ByteArray::cloneFrom(const ByteArray& value)
{
	size(value._length);
	_position = 0;
	writeBytes(value._buffer, value._length,0);
	_length = value._length;
	_position = value._position;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x50(%rsi), %rsi
callq 0x40aef4
movq $0x0, 0x40(%r14)
movq 0x38(%rbx), %rsi
movq 0x50(%rbx), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x40afca
movq 0x50(%rbx), %rax
movq %rax, 0x50(%r14)
movq 0x40(%rbx), %rax
movq %rax, 0x40(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::size(unsigned long)
void ByteArray::size(uint64 value)
{
	uint64 newLength, i;
	char* newBuffer;

	_length = value;

	newLength = value+(BYTEARRAY_CHUNK-(value%BYTEARRAY_CHUNK));
	if(newLength == _size) return;

	newBuffer = (char*)realloc(_buffer, newLength);
	if(_buffer == null) error("ByteArray::setSize(): Out of memory.");

	_size = newLength;
	_buffer = newBuffer;
	position(_position); // correct pointer if needed
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rsi, 0x50(%rdi)
andq $-0x400, %r14           # imm = 0xFC00
addq $0x400, %r14            # imm = 0x400
cmpq 0x48(%rdi), %r14
jne 0x40af23
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
movq %r14, %rsi
callq 0x50cf80
movq %rax, %r15
cmpq $0x0, 0x38(%rbx)
jne 0x40afa7
movq $0x653b20, %r12         # imm = 0x653B20
leaq 0x1c3209(%rip), %rsi    # 0x5ce153
movl $0x7, %edx
movq %r12, %rdi
callq 0x490a00
leaq 0x1c388d(%rip), %rsi    # 0x5ce7eb
movl $0x24, %edx
movq %r12, %rdi
callq 0x490a00
leaq 0x1c3139(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %r12, %rdi
callq 0x490a00
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r12, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq %r14, 0x48(%rbx)
movq %r15, 0x38(%rbx)
movq (%rbx), %rax
movq 0x40(%rbx), %rsi
movq 0x20(%rax), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::writeBytes(char const*, long, long)
int64 ByteArray::writeBytes(const char* bytes, int64 length, int64 offset)
{
	int64 ret = 0;
	if(_position + length >= _size) size(_position+length);
	memcpy(_buffer+_position, bytes+offset, length);
	_position+=length;
	if(_length < _position) _length=_position;
	return length;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x40(%rdi), %rsi
addq %rdx, %rsi
cmpq 0x48(%rdi), %rsi
jb 0x40aff3
movq %r14, %rdi
callq 0x40aef4
movq 0x38(%r14), %rdi
addq 0x40(%r14), %rdi
addq %r12, %r15
movq %r15, %rsi
movq %rbx, %rdx
callq 0x401080
movq 0x40(%r14), %rax
addq %rbx, %rax
movq %rax, 0x40(%r14)
cmpq %rax, 0x50(%r14)
jae 0x40b01e
movq %rax, 0x50(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::writeUInt(unsigned long, long, bool, signed char)
void ByteArray::writeUInt(const uint64 value, int64 min, bool noHeader, int8 type)
{
	char maxExp, byte;
	int i;

	maxExp = min;

	while((value >> (8*maxExp)) > 0 && maxExp < sizeof(uint64)) maxExp++;
	//maxExp = (double)(log((double)value)/log((double)256));

	if(noHeader == false)
	{
		writeByte(maxExp);
		writeByte(type);
	}

	for(i=maxExp-1; i>=0; i--)
	{
		byte = (value >> (8*i)) & 0xFF;
		writeByte(byte);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %eax
movq %rsi, %rbx
movq %rdi, %r14
movsbl %dl, %r12d
leaq -0x10(,%r12,8), %r15
decb %dl
leal (,%r12,8), %ecx
movl %r12d, %edi
movq %rbx, %rsi
shrq %cl, %rsi
leal 0x1(%rdi), %r12d
addq $0x8, %r15
incb %dl
cmpl $0x7, %edi
ja 0x40b5a6
addl $0x8, %ecx
testq %rsi, %rsi
jne 0x40b586
leal -0x1(%r12), %r13d
testb %al, %al
jne 0x40b5c6
movzbl %dl, %esi
movq %r14, %rdi
callq 0x40b60a
movzbl %bpl, %esi
movq %r14, %rdi
callq 0x40b60a
testl %r13d, %r13d
jle 0x40b5ef
movl %r15d, %ecx
andb $-0x8, %cl
movq %rbx, %rax
shrq %cl, %rax
movzbl %al, %esi
movq %r14, %rdi
callq 0x40b60a
decl %r12d
addq $-0x8, %r15
cmpl $0x1, %r12d
jg 0x40b5cb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::readBinary()
ByteArray ByteArray::readBinary()
{
	ByteArray dest;
	uint64 length = this->readInt();
	dest.size(length);
	readBytes(dest._buffer, length, 0);
	return dest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x40ad64
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40b6e6
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x40aef4
movq 0x40(%r14), %rsi
movq 0x50(%r14), %rax
leaq (%rsi,%r15), %rcx
movq %rax, %r12
subq %rsi, %r12
cmpq %rax, %rcx
cmovbeq %r15, %r12
movq 0x38(%rbx), %rdi
addq 0x38(%r14), %rsi
movq %r12, %rdx
callq 0x401080
addq %r12, 0x40(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x40ae46
movq %r14, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::readInt(long, signed char*)
uint64 ByteArray::readInt(int64 min, int8* type)
{
	int t, i;
	uint64 len, out;
	int64 lout;

	len = min;
	t = TYPE_UINT;
	if(len == 0)
	{
		len = (uint64)readByte();
		t = (int)readByte();
	}

	out=0;
	for(i=len-1; i>=0; i--)
	{
		out += (uint64)readByte() << (8*i);
	}

	if(type != null) *type = t;

	switch(t)
	{
		case TYPE_NEGATIVE_INT:
		{
			lout = (int64)out;
			lout *= -1;
			return lout;
		} break;
		case TYPE_POSITIVE_INT:
		{
			return (int64)out;
		} break;
	}

	return out;
}

// Assembly:
testq %rsi, %rsi
jne 0x40b727
movq 0x40(%rdi), %rcx
movq 0x50(%rdi), %rax
cmpq %rax, %rcx
jae 0x40b70a
movq 0x38(%rdi), %rsi
leaq 0x1(%rcx), %r8
movq %r8, 0x40(%rdi)
movzbl (%rsi,%rcx), %esi
jmp 0x40b70c
xorl %esi, %esi
movq 0x40(%rdi), %rcx
cmpq %rax, %rcx
jae 0x40b727
movq 0x38(%rdi), %rax
leaq 0x1(%rcx), %r8
movq %r8, 0x40(%rdi)
movb (%rax,%rcx), %r8b
jmp 0x40b72a
xorl %r8d, %r8d
pushq %r14
pushq %rbx
decl %esi
js 0x40b773
movq 0x50(%rdi), %rax
movq 0x38(%rdi), %r9
movq 0x40(%rdi), %r10
movl %esi, %ecx
leaq 0x1(%rcx), %r11
shlq $0x3, %rcx
xorl %esi, %esi
cmpq %rax, %r10
jae 0x40b760
leaq 0x1(%r10), %r14
movq %r14, 0x40(%rdi)
movzbl (%r9,%r10), %ebx
movq %r14, %r10
jmp 0x40b762
xorl %ebx, %ebx
shlq %cl, %rbx
addq %rbx, %rsi
addq $-0x8, %rcx
decq %r11
jg 0x40b749
jmp 0x40b775
xorl %esi, %esi
testq %rdx, %rdx
popq %rbx
popq %r14
je 0x40b780
movb %r8b, (%rdx)
movq %rsi, %rax
negq %rax
cmpb $0x2, %r8b
cmovneq %rsi, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::readBytes(char*, long, long)
int64 ByteArray::readBytes(char* bytes, int64 length, int64 offset)
{
	size_t len = length;
	if(len + _position > _length) len = _length - _position;
	memcpy(bytes+offset, _buffer+_position, len);
	_position += len;
	return len;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x50(%rdi), %rdi
leaq (%rax,%rdx), %r8
movq %rdi, %r14
subq %rax, %r14
cmpq %rdi, %r8
cmovbeq %rdx, %r14
leaq (%rsi,%rcx), %rdi
addq 0x38(%rbx), %rax
movq %rax, %rsi
movq %r14, %rdx
callq 0x401080
addq %r14, 0x40(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::readString()
String ByteArray::readString()
{
	size_t length;
	char * str;
	length = readInt();
	str = (char *)malloc(length+1);
	if(str)
	{
		readBytes(str, length);
		str[length]=0;
		String out(str);
		free(str);
		return out;
	}
	return (String)"";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40b6e6
movq %rax, %r12
leaq 0x1(%rax), %rdi
callq 0x50c8f0
testq %rax, %rax
je 0x40b90b
movq %rax, %r15
movq 0x40(%r14), %rbp
movq 0x50(%r14), %rax
leaq (%r12,%rbp), %rcx
movq %rax, %r13
subq %rbp, %r13
cmpq %rax, %rcx
cmovbeq %r12, %r13
movq 0x38(%r14), %rsi
addq %rbp, %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x401080
addq %rbp, %r13
movq %r13, 0x40(%r14)
movb $0x0, (%r15,%r12)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4107fc
movq %r15, %rdi
callq 0x50cc30
jmp 0x40b91a
leaq 0x1e7510(%rip), %rsi    # 0x5f2e22
movq %rbx, %rdi
callq 0x4107fc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::writeFloat(float)
void ByteArray::writeFloat(float value)
{
	size_t l = sizeof(float);
	char bin[l];
	memcpy(&bin, &value, l);
	std::reverse(bin, bin+l);
	if(_position + l >= _size) size(_position+l);
	writeBytes(bin, l);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x3(%rsp), %rax
movss %xmm0, -0x3(%rax)
xorl %ecx, %ecx
movb (%rsp,%rcx), %dl
movb (%rax), %sil
movb %sil, (%rsp,%rcx)
movb %dl, (%rax)
incq %rcx
decq %rax
cmpq $0x2, %rcx
jne 0x40b940
movq 0x40(%rbx), %rsi
addq $0x4, %rsi
cmpq 0x48(%rbx), %rsi
jb 0x40b96e
movq %rbx, %rdi
callq 0x40aef4
movq %rsp, %rsi
movl $0x4, %edx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x40afca
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::readFloat()
float ByteArray::readFloat()
{
	size_t l = sizeof(float);
	char bin[l];
	float out;
	readBytes(bin, l);
	std::reverse(bin, bin+l);
	memcpy(&out, &bin, l);
	return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %r15
movq 0x50(%rdi), %rax
leaq 0x4(%r15), %rcx
movq %rax, %rdx
subq %r15, %rdx
cmpq %rax, %rcx
movl $0x4, %r14d
cmovaq %rdx, %r14
movq 0x38(%rdi), %rsi
addq %r15, %rsi
movq %rsp, %rdi
movq %r14, %rdx
callq 0x401080
addq %r15, %r14
movq %r14, 0x40(%rbx)
leaq 0x3(%rsp), %rax
xorl %ecx, %ecx
movb (%rsp,%rcx), %dl
movb (%rax), %sil
movb %sil, (%rsp,%rcx)
movb %dl, (%rax)
incq %rcx
decq %rax
cmpq $0x2, %rcx
jne 0x40b9d1
movss (%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::compress()
void ByteArray::compress()
{
	Bytef *compr;
	ulong cl;
	int err;
	ByteArray *ba = new ByteArray();
	ba->writeUInt(_length);

	cl = compressBound(_length);
	compr = (Bytef *)malloc(cl+ba->length());
	ba->position(0);
	ba->readBytes((char*)compr, ba->_length, 0);
	err = compress2(compr+ba->length(), &cl, (const Bytef*)_buffer, _length, Z_BEST_COMPRESSION);

	if(err != Z_OK)
	{
		assert(err == Z_OK && "ByteArray::compress(): Compression error.");
		free(compr);
		return;
	}
	size(cl);
	_length = 0;
	position(0);
	writeBytes((const char *)compr, cl+ba->length(),0);
	delete ba;
	free(compr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x58, %edi
callq 0x427f00
movq %rax, %rbx
movq %rax, %rdi
callq 0x40ad64
movq 0x50(%r14), %rsi
xorl %ebp, %ebp
movl $0x1, %edx
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40b55a
movq 0x50(%r14), %rdi
callq 0x4194c0
movq %rax, %r15
movq %rsp, %rax
movq %r15, (%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
addq %rax, %r15
movq %r15, %rdi
callq 0x50c8f0
movq %rax, %r15
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x20(%rax)
movq 0x40(%rbx), %r12
movq 0x50(%rbx), %r13
leaq (%r12,%r13), %rax
cmpq %r13, %rax
cmovaq %r12, %rbp
subq %rbp, %r13
movq 0x38(%rbx), %rsi
addq %r12, %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x401080
addq %r12, %r13
movq %r13, 0x40(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
leaq (%rax,%r15), %rdi
movq 0x38(%r14), %rdx
movq 0x50(%r14), %rcx
movq %rsp, %rsi
movl $0x9, %r8d
callq 0x419370
testl %eax, %eax
jne 0x40bb3b
movq (%rsp), %rsi
movq %r14, %rdi
callq 0x40aef4
movq $0x0, 0x50(%r14)
movq (%r14), %rax
movq %r14, %rdi
xorl %esi, %esi
callq *0x20(%rax)
movq (%rsp), %r12
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
addq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x40afca
leaq 0x23c655(%rip), %rax    # 0x648158
movq %rax, (%rbx)
movq 0x38(%rbx), %rdi
callq 0x50cc30
movq %rbx, %rdi
callq 0x410354
movl $0x58, %esi
movq %rbx, %rdi
callq 0x426f20
movq %r15, %rdi
callq 0x50cc30
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c2cce(%rip), %rdi    # 0x5ce810
leaq 0x1c2d02(%rip), %rsi    # 0x5ce84b
leaq 0x1c2d0d(%rip), %rcx    # 0x5ce85d
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x4e5e10
movq %rax, %r14
movl $0x58, %esi
movq %rbx, %rdi
callq 0x426f20
movq %r14, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::uncompress()
void ByteArray::uncompress()
{
	char *ucompr;
	ulong cl;
	uint64 off, sl;
	int err;

	_position=0;
	cl = (uint64)readInt();
	off = _position;
	sl = _length-off;
	ucompr = (char *)malloc(cl);
	err = ::uncompress((Bytef*)ucompr, (uLongf *)&cl, (const Bytef*)_buffer+off, (uLong) sl);
	if(err != Z_OK)
	{
		assert(err == Z_OK && "ByteArray::uncompress(): Decompression error.");
		free(ucompr);
		return;
	}
	size(cl);
	position(0);
	_length = 0;
	writeBytes((const char *)ucompr, cl,0);
	free(ucompr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x0, 0x40(%rdi)
xorl %esi, %esi
xorl %edx, %edx
callq 0x40b6e6
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq 0x40(%rbx), %r12
movq 0x50(%rbx), %r13
subq %r12, %r13
movq %rax, %rdi
callq 0x50c8f0
movq %rax, %r14
addq 0x38(%rbx), %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x4196a0
testl %eax, %eax
jne 0x40bc12
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40aef4
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x20(%rax)
movq $0x0, 0x50(%rbx)
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x40afca
movq %r14, %rdi
callq 0x50cc30
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1c2c62(%rip), %rdi    # 0x5ce87b
leaq 0x1c2c2b(%rip), %rsi    # 0x5ce84b
leaq 0x1c2c93(%rip), %rcx    # 0x5ce8ba
movl $0x1c2, %edx            # imm = 0x1C2
callq 0x4e5e10
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::splice(long, long)
bool u::ByteArray::splice(int64 offset, int64 length)
{
	int64 oldSize = this->length();
	position(offset);
	int64 i;
	for(i=0; i < oldSize - length - offset; i++)
	{
		if(offset + i + length < oldSize)
			_buffer[offset + i] = _buffer[offset + i + length];
		else
			break; // end of data block before offset+length
	}
	int64 newSize = this->length() - length;
	if(newSize < 0) newSize=0;
	size(newSize);
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, %r12
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *0x20(%rax)
leaq (%r14,%r15), %rax
movq %r12, %rcx
subq %rax, %rcx
testq %rcx, %rcx
jle 0x40bce4
cmpq %r12, %rax
jge 0x40bce4
movq 0x38(%rbx), %rcx
movb (%rcx,%rax), %dl
movb %dl, (%rcx,%r15)
incq %rax
incq %r15
cmpq %rax, %r12
jne 0x40bcc9
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
subq %r14, %rax
xorl %esi, %esi
testq %rax, %rax
cmovgq %rax, %rsi
movq %rbx, %rdi
callq 0x40aef4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::Socket(u::Socket&)
u::Socket::Socket(Socket & value) : Object(value)
{
	_type = value._type;
	_domain = value._domain;
	_protocol = value._protocol;
	_con = -1;
	_hostname = value._hostname;
	_port = value._port;
	maxWaitingClients = SOCKET_MAX_CLIENTS;
	receiveBufferSize = SOCKET_RECV_BUFFER;
	_neverUsed = true;
	_addr = null;
	_addrLen = 0;
	_descriptor = -1;
	_isSending = false;
	init(
		value._domain, value._hostname, value._port, value._type
		, value._protocol
	);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r15
movq %rdi, %rbx
callq 0x41045a
leaq 0x23668e(%rip), %rax    # 0x648620
movq %rax, (%rbx)
leaq 0x58(%rbx), %r14
movq %r14, %rdi
callq 0x4107d2
movl 0x40(%r15), %eax
movl %eax, 0x40(%rbx)
movl 0x38(%r15), %eax
movl %eax, 0x38(%rbx)
movl 0x3c(%r15), %eax
movl %eax, 0x3c(%rbx)
movl $0xffffffff, 0x54(%rbx) # imm = 0xFFFFFFFF
leaq 0x58(%r15), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x410b12
movq 0xb0(%r15), %rax
movq %rax, 0xb0(%rbx)
movl $0xc350, 0xbc(%rbx)     # imm = 0xC350
movq $0x400, 0xc0(%rbx) # imm = 0x400
movw $0x1, 0xb8(%rbx)
movq $0x0, 0x48(%rbx)
movl $0x0, 0x50(%rbx)
movl $0xffffffff, 0x34(%rbx) # imm = 0xFFFFFFFF
movl 0x38(%r15), %ebp
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x410a3a
movq 0xb0(%r15), %rcx
movl 0x3c(%r15), %r9d
movl 0x40(%r15), %r8d
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x411d20
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x412058
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x8(%rsp), %rdi
callq 0x410354
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x40512a
jmp 0x412086
movq %rax, %r15
jmp 0x41208e
movq %rax, %r15
movq %r14, %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x410354
movq %r15, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::destructor()
void u::Socket::destructor()
{
	if(isConnected()) close();
	lock();

	if(_neverUsed && _descriptor != -1)
	{
		::shutdown(_descriptor, SHUT_RDWR);
		::close(_descriptor);
	}

	switch(_domain)
	{
		case AF_UNIX:
		{
			delete ((struct sockaddr_un *)_addr);
		} break;
		default:
		{
			delete ((struct sockaddr_in *)_addr);
		} break;
	}
	unlock();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x410246
movl 0x54(%rbx), %ebp
movq %rbx, %rdi
callq 0x4101fe
cmpl $-0x1, %ebp
je 0x41210d
movq %rbx, %rdi
callq 0x41218e
movq %rbx, %rdi
callq 0x410246
cmpb $0x1, 0xb8(%rbx)
jne 0x412138
movl 0x34(%rbx), %edi
cmpl $-0x1, %edi
je 0x412138
movl $0x2, %esi
callq 0x560a80
movl 0x34(%rbx), %edi
callq 0x55d790
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x412158
cmpl $0x1, 0x38(%rbx)
movl $0x6e, %eax
movl $0x10, %esi
cmoveq %rax, %rsi
callq 0x426f20
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4101fe
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::isConnected()
bool u::Socket::isConnected()
{
	lock();
	bool result = _con != -1;
	unlock();
	return result;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x410246
cmpl $-0x1, 0x54(%rbx)
setne %bpl
movq %rbx, %rdi
callq 0x4101fe
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::close()
void u::Socket::close()
{
	if(!isConnected()) return;
	lock();
	_neverUsed = false;
	::shutdown(_descriptor, SHUT_RDWR);
	::close(_descriptor);
	_con = -1;
	_descriptor = -1;
	unlock();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x410246
movl 0x54(%rbx), %ebp
movq %rbx, %rdi
callq 0x4101fe
cmpl $-0x1, %ebp
je 0x4121e6
movq %rbx, %rdi
callq 0x410246
movb $0x0, 0xb8(%rbx)
movl 0x34(%rbx), %edi
movl $0x2, %esi
callq 0x560a80
movl 0x34(%rbx), %edi
callq 0x55d790
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x54(%rbx)
movl %eax, 0x34(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4101fe
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::operator=(u::Socket&)
Socket& u::Socket::operator =(Socket &value)
{
	destructor();
	Socket(
		value._domain, value._hostname, value._port, value._type
		, value._protocol
	);
	if(value.isConnected())
	{
		connect();
	}
	return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r14
movq %rdi, %rbx
callq 0x4120ea
movl 0x38(%r14), %ebp
leaq 0x58(%r14), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x410a3a
movq 0xb0(%r14), %rcx
movl 0x3c(%r14), %r9d
movl 0x40(%r14), %r8d
leaq 0x60(%rsp), %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x411c58
leaq 0x60(%rsp), %rdi
callq 0x41209e
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x412276
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x8(%rsp), %rdi
callq 0x410354
movq %r14, %rdi
callq 0x410246
movl 0x54(%r14), %ebp
movq %r14, %rdi
callq 0x4101fe
cmpl $-0x1, %ebp
je 0x4122a1
movq %rbx, %rdi
callq 0x4122c8
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::hasIncomingData()
bool u::Socket::hasIncomingData()
{
	fd_set rfds;
	struct timeval tv;
	int retval;

	FD_ZERO(&rfds);
	FD_SET(_descriptor, &rfds);

	tv.tv_sec = 0;
	tv.tv_usec = 0;

	lock();
	retval = select(_descriptor+1, &rfds, NULL, NULL, &tv);
	unlock();

	return retval > 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x50(%r14)
movaps %xmm0, 0x60(%r14)
movaps %xmm0, 0x70(%r14)
movl 0x34(%rdi), %ecx
leal 0x3f(%rcx), %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
movl %eax, %edx
andl $-0x40, %edx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
orq %rdx, 0x10(%rsp,%rax,8)
movq %rsp, %r15
movaps %xmm0, (%r15)
callq 0x410246
movl 0x34(%rbx), %edi
incl %edi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x55e5d0
movl %eax, %ebp
movq %rbx, %rdi
callq 0x4101fe
testl %ebp, %ebp
setg %al
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::hostip()
String u::Socket::hostip()
{
	if(!isConnected()) return "unknown";
	switch(_domain)
	{
		case AF_UNIX:
		{
			return "127.0.0.1";
		} break;
		default:
		{
			return inet_ntoa(((struct sockaddr_in*)_addr)->sin_addr);
		} break;
	}

	return "";
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x410246
movl 0x54(%r14), %ebp
movq %r14, %rdi
callq 0x4101fe
cmpl $-0x1, %ebp
je 0x413a93
cmpl $0x1, 0x38(%r14)
jne 0x413a9f
leaq 0x1bb338(%rip), %rsi    # 0x5cedc9
jmp 0x413a9a
leaq 0x1bb327(%rip), %rsi    # 0x5cedc1
movq %rbx, %rdi
jmp 0x413ab1
movq 0x48(%r14), %rax
movl 0x4(%rax), %edi
callq 0x5614b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4107fc
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Socket.cpp
// Function: u::Socket::accept()
u::Socket* u::Socket::accept()
{
	Socket* clientSocket; 		// client socket data

	lock();
	int32 srcDescriptor = _descriptor;
	int32 domain = _domain;
	unlock();

	if(srcDescriptor == -1) return null;

	clientSocket = new Socket(domain);
	::close(clientSocket->_descriptor); // try to destroy socket..not needed

	clientSocket->_descriptor = ::accept(
		srcDescriptor
		, (struct sockaddr *)(clientSocket->_addr)
		, &(clientSocket->_addrLen)
	);

	if(clientSocket->_descriptor != -1)
	{
		clientSocket->_con = 1; // set manually to connected status
		return clientSocket;
	}

	clientSocket->destroy();
	return null;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
callq 0x410246
movl 0x34(%rbx), %ebp
movl 0x38(%rbx), %r14d
movq %rbx, %rdi
callq 0x4101fe
cmpl $-0x1, %ebp
je 0x413b91
movl $0xc8, %edi
callq 0x427f00
movq %rax, %rbx
leaq 0x1bb2bf(%rip), %rsi    # 0x5cedd3
leaq 0x8(%rsp), %rdi
callq 0x4107fc
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %r14d, %esi
xorl %ecx, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x411c58
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x413b54
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x8(%rsp), %rdi
callq 0x410354
movl 0x34(%rbx), %edi
callq 0x55d790
movq 0x48(%rbx), %rsi
movq %rbx, %rdx
addq $0x50, %rdx
movl %ebp, %edi
callq 0x5606f0
movl %eax, 0x34(%rbx)
cmpl $-0x1, %eax
je 0x413b89
movl $0x1, 0x54(%rbx)
jmp 0x413b93
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x40512a
jmp 0x413bb1
movq %rax, %r14
movl $0xc8, %esi
movq %rbx, %rdi
callq 0x426f20
movq %r14, %rdi
callq 0x4d11b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::Manager()
Manager::Manager() : EventRoom()
{
	_isClosing = false;
	addEventListener(
		Event::REGISTER_NETWORK
		, Callback(this, cb_cast(&Network::Manager::onRegisterNetwork))
	);
	addEventListener(
		Event::REQUEST_LISTENER
		, Callback(this, cb_cast(&Network::Manager::onRequestListener))
	);
	addEventListener(
		Event::CLOSE
		, Callback(this, cb_cast(&Network::Manager::onCloseRequest))
	);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rdi, %rbx
callq 0x40fc28
leaq 0x231c8d(%rip), %rax    # 0x648758
movq %rax, (%rbx)
leaq 0x88(%rbx), %r14
movq %r14, %rdi
callq 0x417fb4
leaq 0x110(%rbx), %r15
leaq 0x148(%rbx), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x148(%rbx)
movq $0x0, 0x158(%rbx)
movq %r15, %rdi
callq 0x41028c
leaq 0x231cb9(%rip), %rax    # 0x6487c8
movq %rax, 0x110(%rbx)
movb $0x0, 0x160(%rbx)
leaq 0xb8(%rsp), %rdi
movl $0x21, %edx
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652aa8, %rsi         # imm = 0x652AA8
leaq 0xb8(%rsp), %rdx
movq %rbx, %rdi
callq 0x40dfba
leaq 0xb8(%rsp), %rdi
callq 0x410354
leaq 0x60(%rsp), %rdi
movl $0x29, %edx
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652b00, %rsi         # imm = 0x652B00
leaq 0x60(%rsp), %rdx
movq %rbx, %rdi
callq 0x40dfba
leaq 0x60(%rsp), %rdi
callq 0x410354
leaq 0x8(%rsp), %rdi
movl $0x39, %edx
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652c08, %rsi         # imm = 0x652C08
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x40dfba
leaq 0x8(%rsp), %rdi
callq 0x410354
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r12
leaq 0x8(%rsp), %rdi
jmp 0x416bf5
movq %rax, %r12
leaq 0x60(%rsp), %rdi
jmp 0x416bf5
movq %rax, %r12
leaq 0xb8(%rsp), %rdi
callq 0x410354
jmp 0x416c21
movq %rax, %r12
movq (%r13), %rdi
testq %rdi, %rdi
je 0x416c29
movq 0x158(%rbx), %rsi
subq %rdi, %rsi
callq 0x426f20
jmp 0x416c29
movq %rax, %r12
jmp 0x416c31
movq %rax, %r12
movq %r15, %rdi
callq 0x417ae0
movq %r14, %rdi
callq 0x4181e4
movq %rbx, %rdi
callq 0x40fc56
movq %r12, %rdi
callq 0x4d11b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::onRegisterNetwork(u::Object*)
void Manager::onRegisterNetwork(Object *arg)
{
	Event* event = ((Event*) arg);

	lock();
	if (_builder.hasKey(event->networkType) == false) {
		_builder[event->networkType] = event->builder;
		Event response(
			Event::NETWORK_REGISTERED
			, event->networkType
		);
		unlock();
		dispatchEvent(&response);
	} else {
		unlock();
	}

	event->destroy();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %rbx
movq %rdi, %r14
callq 0x410246
leaq 0x88(%r14), %r12
leaq 0x58(%rbx), %r15
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x410a3a
movq %r12, %rdi
movq %r13, %rsi
callq 0x41889c
movl %eax, %ebp
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41701a
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xb8(%rsp), %rdi
callq 0x410354
testb %bpl, %bpl
je 0x417039
movq %r14, %rdi
callq 0x4101fe
jmp 0x4170ff
movq 0x48(%rbx), %r13
leaq 0x60(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x410a3a
movq %r12, %rdi
movq %rbp, %rsi
callq 0x418352
movq %rax, %rdi
movq %r13, %rsi
callq 0x4186a2
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x417084
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x60(%rsp), %rdi
callq 0x410354
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x410a3a
movq $0x652b58, %rsi         # imm = 0x652B58
leaq 0x110(%rsp), %rdi
movq %r12, %rdx
callq 0x41687e
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4170d0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x8(%rsp), %rdi
callq 0x410354
movq %r14, %rdi
callq 0x4101fe
leaq 0x110(%rsp), %rsi
movq %r14, %rdi
callq 0x40e18e
leaq 0x110(%rsp), %rdi
callq 0x4169fc
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x41714a
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x4169fc
jmp 0x41714f
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x41714a
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::onListenerClosed(u::Object*)
void Manager::onListenerClosed(Object *arg)
{
	Event* event = ((Event*) arg);
	lock();
	Network::IListener* listener = ((Network::IListener*) event->target());
	if (_listener.erase(listener) != -1) {
		// Destroy only when owned.
		listener->removeEventListener(
			Event::CLOSED
			, Callback(this, cb_cast(&Network::Manager::onListenerClosed))
		);
		listener->destroy();

		unlock();
		checkForCloseState();
	} else {
		unlock();
	}
	event->destroy();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x410246
movq %rbx, %rdi
callq 0x40c3b8
movq %rax, %r15
leaq 0x110(%r14), %rdi
movq %rax, %rsi
callq 0x417b2c
cmpq $-0x1, %rax
je 0x4176cd
movq %rsp, %r12
movl $0x31, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652c60, %rsi         # imm = 0x652C60
movq %r15, %rdi
movq %r12, %rdx
callq 0x40e05e
movq %rsp, %rdi
callq 0x410354
movq (%r15), %rax
movq %r15, %rdi
callq *(%rax)
movq %r14, %rdi
callq 0x4101fe
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
jmp 0x4176d5
movq %r14, %rdi
callq 0x4101fe
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x410354
movq %rbx, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::onCloseRequest(u::Object*)
void Manager::onCloseRequest(Object *arg)
{
	trace(className() + ": Start close procedure.");
	arg->destroy();
	lock();
	if(_isClosing == false) {
		uint64 i, length = _listener.length();
		Event close(Event::CLOSE);
		for (i = 0; i < length; i++) {
			_listener[i]->dispatchEvent(&close);
		}
	}
	_isClosing = true;
	unlock();
	checkForCloseState();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1b6973(%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 0x1b7a00(%rip), %rsi    # 0x5cf142
callq 0x4a25e0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x41776e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x417776
movups (%rcx), %xmm0
movups %xmm0, (%r12)
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, %r15
leaq 0x1b68fe(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r15, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4177f7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x417812
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x410354
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
movq %rbx, %rdi
callq 0x410246
cmpb $0x0, 0x160(%rbx)
jne 0x4178a5
movq 0x148(%rbx), %r14
movq 0x150(%rbx), %r12
movq $0x652c08, %rsi         # imm = 0x652C08
leaq 0x20(%rsp), %rdi
callq 0x4168dc
subq %r14, %r12
je 0x41789b
sarq $0x3, %r12
cmpq $0x1, %r12
adcq $0x0, %r12
xorl %r14d, %r14d
leaq 0x20(%rsp), %r15
movq 0x148(%rbx), %rax
movq 0x150(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
jbe 0x4178cc
movq (%rax,%r14,8), %rdi
movq %r15, %rsi
callq 0x40e18e
incq %r14
cmpq %r14, %r12
jne 0x41786d
leaq 0x20(%rsp), %rdi
callq 0x4169fc
movb $0x1, 0x160(%rbx)
movq %rbx, %rdi
callq 0x4101fe
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x40(%rax)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1b6af5(%rip), %rdi    # 0x5ce3c8
movq %r14, %rsi
xorl %eax, %eax
callq 0x471660
movq %rax, %rbx
jmp 0x4178fb
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4178fb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x40512a
jmp 0x417916
jmp 0x417909
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4169fc
movq %rbx, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::checkForCloseState()
void Manager::checkForCloseState()
{
	lock();
	if (_listener.length() == 0) {
		trace(className() + ": All closed.");
		Event closed(Event::CLOSED);
		unlock();
		dispatchEvent(&closed);
	} else {
		unlock();
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
callq 0x410246
movq 0x150(%rbx), %rax
cmpq 0x148(%rbx), %rax
je 0x417956
movq %rbx, %rdi
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x4101fe
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1b672d(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%rbx), %rax
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq *0x8(%rax)
leaq 0x60(%rsp), %rdi
leaq 0x1b77d3(%rip), %rsi    # 0x5cf15b
callq 0x4a25e0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4179b4
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4179bb
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490a00
movq %rax, %r14
leaq 0x1b66b8(%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 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x417a3e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x417a59
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x410354
movq $0x652c60, %rsi         # imm = 0x652C60
leaq 0x28(%rsp), %rdi
callq 0x4168dc
movq %rbx, %rdi
callq 0x4101fe
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e18e
leaq 0x28(%rsp), %rdi
callq 0x4169fc
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x417ace
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4169fc
jmp 0x417ad8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x417ace
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x28(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Datablock.cpp
// Function: u::Datablock::operator=(u::Datablock&)
Datablock& Datablock::operator=(Datablock& value)
{
	deleteAttributes();

	int64 i, l;
	l = value._list.size();
	for(i=0; i<l; i++)
	{
		saveAttribute(value._list[i]);
	}
	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x418132
movq 0x78(%r14), %r12
subq 0x70(%r14), %r12
sarq $0x3, %r12
testq %r12, %r12
jle 0x418111
xorl %r15d, %r15d
movq 0x70(%r14), %rax
movq 0x78(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x418120
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x41817c
incq %r15
cmpq %r15, %r12
jne 0x4180e9
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1b62a1(%rip), %rdi    # 0x5ce3c8
movq %r15, %rsi
xorl %eax, %eax
callq 0x471660
nop