// File: /workspace/github_c_makefile_star2_O2/MartinDrab[P]netpipe/netpipe.c
// Function: NetPipeMain
int NetPipeMain(int argc, char *argv[])
{
	int ret = 0;
	char *mode = NULL;

	if (argc < 2) {
		usage();
		return -1;
	}

	mode = argv[1];
	if (strcmp(mode, "ac") == 0) {
		_sourceMode = cetAccept;
		_targetMode = cetConnect;
	} else if (strcmp(mode, "cc") == 0) {
		_sourceMode = cetConnect;
		_targetMode = cetConnect;
	} else if (strcmp(mode, "aa") == 0) {
		_sourceMode = cetAccept;
		_targetMode = cetAccept;
	} else if (strcmp(mode, "ca") == 0) {
		_sourceMode = cetConnect;
		_targetMode = cetAccept;
	} else {
		fprintf(stderr, "Unknown operating mode \"%s\"\n", mode);
		return -2;
	}

	char **arg = argv + 2;
	argc -= 2;
	while (ret == 0 && argc > 0) {
		int found = 0;
		PCOMMAND_LINE_OPTION cmdOption = _cmdOptions;

		for (size_t i = 0; i < sizeof(_cmdOptions) / sizeof(_cmdOptions[0]) - 1; ++i) {
			for (size_t j = 0; j < cmdOption->NameCount; ++j) {
				found = (strcmp(*arg, cmdOption->Names[j]) == 0);
				if (found) {
					++cmdOption->Specified;
					if (argc < cmdOption->ArgumentCount) {
						ret = -1;
						LogError("Not enough arguments for the %s option", *arg);
						break;
					}

					if (cmdOption->Specified > 1)
						LogWarning("The %s has been specified for %uth time, the last specification is used", *arg);;
				
					arg_advance(argc, arg);
					break;
				}
			}

			if (found)
				break;

			++cmdOption;
		}

		switch (cmdOption->Type) {
			case otUnknown:
				ret = -1;
				LogError("Unknown option %s", *arg);
				break;
			case otSourceHost:
				_sourceAddress = *arg;
				break;
			case otSourcePort:
				_sourceService = *arg;
				break;
			case otTargetHost:
				_targetAddress = *arg;
				break;
			case otTargetPort:
				_targetService = *arg;
				break;
			case otIPv4Only:
				_sourceAddressFamily = AF_INET;
				_destAddressFamily = AF_INET;
				break;
			case otIPv6Only:
				_sourceAddressFamily = AF_INET6;
				_destAddressFamily = AF_INET6;
				break;
			case otLogError:
				_loggingFlags |= LOG_FLAG_ERROR;
				break;
			case otLogWarning:
				_loggingFlags |= LOG_FLAG_WARNING;
				break;
			case otLogInfo:
				_loggingFlags |= LOG_FLAG_INFO;
				break;
			case otLogPacket:
				_loggingFlags |= LOG_FLAG_PACKET;
				break;
			case otLogPacketData:
				_loggingFlags |= LOG_FLAG_PACKET_DATA;
				break;
			case otOneConnection:
				_oneConnection = 1;
				break;
			case otHelp:
				_help = 1;
				break;
			case otVersion:
				_version = 1;
				break;
			case otKeepAlive:
				_keepAlive = 1;
				break;
			case otAuthSource:
				_sourcePassword = *arg;
				break;
			case otAuthTarget:
				_targetPassword = *arg;
				break;
			case otLogFile:
				_logFile = *arg;
				break;
			case otReceiveDomain:
				_sourceReceiveDomain = 1;
				break;
			case otSendDomain:
				_targetSendDomain = *arg;
				break;
#ifndef _WIN32
			case otUnixSource:
				_sourceAddressFamily = AF_UNIX;
				break;
			case otUnixDest:
				_destAddressFamily = AF_UNIX;
				break;
#endif
		}

		if (ret == 0 && cmdOption->ArgumentCount > 0) {
			for (int i = 0; i < cmdOption->ArgumentCount; ++i)
				arg_advance(argc, arg);
		}
	}

	switch (ret) {
		case -3:
			fprintf(stderr, "Missing argument for command-line option \"%s\"\n", *(arg - 1));
			return ret;
			break;
		case -4:
			fprintf(stderr, "Unknown command-line option \"%s\"\n", *(arg - 1));
			return ret;
			break;
		default:
			break;
	}

	if (_help) {
		usage();
		return 0;
	}

	if (_version) {
		fprintf(stderr, "NetPipe v1.0\n");
		return 0;
	}

	if (_logFile != NULL) {
		ret = LogSetFile(_logFile);
		if (ret != 0) {
			fprintf(stderr, "Failed to change log file: %u\n", ret);
			return ret;
		}
	}

	if (_sourceAddress == NULL) {
		fprintf(stderr, "Source host not specified\n");
		return -1;
	}

	if (_sourceAddressFamily != AF_UNIX && _sourceService == NULL) {
		fprintf(stderr, "Source port not specified\n");
		return -1;
	}

	if (_targetAddress == NULL) {
		fprintf(stderr, "Target host not specified\n");
		return -1;
	}

	if (_destAddressFamily != AF_UNIX && _targetService == NULL) {
		fprintf(stderr, "Target port not specified\n");
		return -1;
	}

#ifdef _WIN32
	WSADATA wsaData;

	ret = WSAStartup(MAKEWORD(2, 2), &wsaData);
	if (ret != NO_ERROR) {
		fprintf(stderr, "WSAStartup: %i\n", ret);
		return ret;
	}

#endif
	CHANNEL_END source;
	CHANNEL_END dest;

	memset(&source, 0, sizeof(source));
	source.ListenSocket = INVALID_SOCKET;
	memset(&dest, 0, sizeof(dest));
	dest.ListenSocket = INVALID_SOCKET;
	while (!_terminated) {
		source.Type = _sourceMode;
		source.AddressFamily = _sourceAddressFamily;
		source.Address = _sourceAddress;
		source.Service = _sourceService;
		source.EndSocket = INVALID_SOCKET;
		source.Password = _sourcePassword;
		ret = _PrepareChannelEnd(&source, !_oneConnection, _sourceReceiveDomain, 0);		
		if (ret == 0) {
			dest.Type = _targetMode;
			dest.AddressFamily = _destAddressFamily;
			dest.Address = _targetAddress;
			dest.Service = _targetService;
			dest.EndSocket = INVALID_SOCKET;
			dest.Password = _targetPassword;
			ret = _PrepareChannelEnd(&dest, 0, 0, _targetSendDomain != NULL);
			if (ret == 0) {
				PCHANNEL_DATA d = NULL;

				d = (PCHANNEL_DATA)malloc(sizeof(CHANNEL_DATA));
				if (d != NULL) {
					d->Timeout.tv_sec = 5;
					d->Timeout.tv_usec = 0;
					d->SourceAddress = source.AcceptAddress;
					d->DestAddress = dest.AcceptAddress;
					d->SourceSocket = source.EndSocket;
					d->DestSocket = dest.EndSocket;
#ifdef _WIN32
					DWORD threadId = 0;
					HANDLE threadHandle = NULL;

					threadHandle = CreateThread(NULL, 0, _ChannelThreadWrapper, d, 0, &threadId);
					if (threadHandle != NULL) {
						if (_oneConnection)
							WaitForSingleObject(threadHandle, INFINITE);

						CloseHandle(threadHandle);
					} else ret = GetLastError();
#else
					ret = fork();
					if (ret > 0) {
						closesocket(d->DestSocket);
						closesocket(d->SourceSocket);
						free(d);
						if (_oneConnection)
							waitpid(ret, &ret, 0);
						
						ret = 0;
					} else if (ret == 0) {
						_ProcessChannel(d);
						return 0;
					}
#endif
					if (ret != 0)
						free(d);
				} else ret = ENOMEM;

				if (dest.ListenSocket != INVALID_SOCKET) {
					closesocket(dest.ListenSocket);
					dest.ListenSocket = INVALID_SOCKET;
				}

				if (ret != 0)
					closesocket(dest.EndSocket);
			} else LogError("Failed to prepare the target channel: %u", ret);

			if (ret != 0)
				closesocket(source.EndSocket);
		} else LogError("Failed to prepare the source channel: %u", ret);

		sleep(_timeout);
	}


#ifdef _WIN32
	WSACleanup();
#endif

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
andl $0x0, 0xc(%rsp)
movl %edi, 0x10(%rsp)
cmpl $0x1, %edi
jg 0x540d
callq 0x525a
pushq $-0x1
popq %rbx
jmp 0x597d
movq %rsi, %rbx
movq 0x8(%rsi), %rdx
movzbl (%rdx), %eax
cmpl $0x63, %eax
je 0x543f
cmpl $0x61, %eax
jne 0x545b
cmpb $0x63, 0x1(%rdx)
jne 0x542d
cmpb $0x0, 0x2(%rdx)
je 0x5477
cmpb $0x61, 0x1(%rdx)
jne 0x545b
cmpb $0x0, 0x2(%rdx)
jne 0x545b
movb $0x1, %cl
xorl %eax, %eax
jmp 0x547f
cmpb $0x63, 0x1(%rdx)
jne 0x544b
cmpb $0x0, 0x2(%rdx)
je 0x547b
cmpb $0x61, 0x1(%rdx)
jne 0x545b
movb $0x1, %al
cmpb $0x0, 0x2(%rdx)
movb $0x1, %cl
je 0x547f
movq 0xbb96(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x8594(%rip), %rsi      # 0xda00
xorl %eax, %eax
callq 0x2160
pushq $-0x2
jmp 0x5407
xorl %eax, %eax
jmp 0x547d
movb $0x1, %al
xorl %ecx, %ecx
movb %al, 0xc63f(%rip)       # 0x11ac4
movb %cl, 0xc63d(%rip)       # 0x11ac8
addq $0x10, %rbx
addl $-0x2, 0x10(%rsp)
movb $0x1, %r13b
testb $0x1, %r13b
je 0x56d7
cmpl $0x0, 0x10(%rsp)
jle 0x56d7
leaq 0xbcad(%rip), %r14      # 0x11160
xorl %r13d, %r13d
movb $0x1, %r15b
cmpq $0x16, %r13
je 0x5593
movq 0x10(%r14), %r12
xorl %ebp, %ebp
cmpq %rbp, %r12
je 0x54e4
movq (%rbx), %rdi
movq 0x18(%r14,%rbp,8), %rsi
callq 0x2150
incq %rbp
testl %eax, %eax
jne 0x54c9
jmp 0x54ed
addq $0x38, %r14
incq %r13
jmp 0x54b6
movl 0x4(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%r14)
movl 0x10(%rsp), %ecx
cmpl 0x8(%r14), %ecx
jge 0x5527
orl $-0x1, 0xc(%rsp)
callq 0x2090
movq (%rbx), %rcx
xorl %r15d, %r15d
pushq $0x1
popq %rdi
leaq 0x8501(%rip), %rsi      # 0xda1d
movl %eax, %edx
xorl %eax, %eax
callq 0x5054
jmp 0x554e
testl %eax, %eax
jle 0x5546
callq 0x2090
movq (%rbx), %rcx
pushq $0x2
popq %rdi
leaq 0x850e(%rip), %rsi      # 0xda4b
movl %eax, %edx
xorl %eax, %eax
callq 0x5054
decl 0x10(%rsp)
addq $0x8, %rbx
movl (%r14), %eax
cmpq $0x16, %rax
ja 0x56ae
leaq 0x7cee(%rip), %rcx      # 0xd250
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
orl $-0x1, 0xc(%rsp)
callq 0x2090
movq (%rbx), %rcx
xorl %r13d, %r13d
pushq $0x1
popq %rdi
leaq 0x8515(%rip), %rsi      # 0xda9a
movl %eax, %edx
xorl %eax, %eax
callq 0x5054
jmp 0x5497
leaq 0xc096(%rip), %r14      # 0x11630
jmp 0x554e
movq (%rbx), %rax
movq %rax, 0xc562(%rip)      # 0x11b08
jmp 0x56ae
movb $0x1, 0xc54e(%rip)      # 0x11b00
jmp 0x56ae
movb $0x1, 0xc53a(%rip)      # 0x11af8
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc51b(%rip)      # 0x11ae8
jmp 0x56ae
movb $0x1, 0xc52b(%rip)      # 0x11b04
jmp 0x56ae
leaq 0xbb6b(%rip), %rax      # 0x11150
orb $0x4, (%rax)
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc4e1(%rip)      # 0x11ad8
jmp 0x56ae
leaq 0xbb4d(%rip), %rax      # 0x11150
orb $0x10, (%rax)
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc4cb(%rip)      # 0x11ae0
jmp 0x56ae
leaq 0xbb2f(%rip), %rax      # 0x11150
orb $0x1, (%rax)
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc49d(%rip)      # 0x11ad0
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc4d1(%rip)      # 0x11b10
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc4dd(%rip)      # 0x11b28
jmp 0x56ae
pushq $0x2
jmp 0x5668
movl $0x1, 0xc495(%rip)      # 0x11af0
jmp 0x56ae
movb $0x1, 0xc498(%rip)      # 0x11afc
jmp 0x56ae
pushq $0xa
popq %rax
movl %eax, 0xc481(%rip)      # 0x11af0
movl %eax, 0xc47f(%rip)      # 0x11af4
jmp 0x56ae
movq (%rbx), %rax
movq %rax, 0xc497(%rip)      # 0x11b18
jmp 0x56ae
leaq 0xbac6(%rip), %rax      # 0x11150
orb $0x8, (%rax)
jmp 0x56ae
leaq 0xbaba(%rip), %rax      # 0x11150
orb $0x2, (%rax)
jmp 0x56ae
movl $0x1, 0xc44f(%rip)      # 0x11af4
jmp 0x56ae
movb $0x1, 0xc472(%rip)      # 0x11b20
xorl %r13d, %r13d
testb %r15b, %r15b
je 0x5497
movslq 0x8(%r14), %rax
movb $0x1, %r13b
testq %rax, %rax
jle 0x5497
subl %eax, 0x10(%rsp)
leaq (%rbx,%rax,8), %rbx
jmp 0x5497
cmpb $0x1, 0xc41e(%rip)      # 0x11afc
jne 0x56ec
callq 0x525a
xorl %ebx, %ebx
jmp 0x597d
cmpb $0x1, 0xc40d(%rip)      # 0x11b00
je 0x5991
movq 0xc418(%rip), %rdi      # 0x11b18
testq %rdi, %rdi
je 0x5716
callq 0x5149
movl %eax, 0xc(%rsp)
testl %eax, %eax
jne 0x5a0c
cmpq $0x0, 0xc3b2(%rip)      # 0x11ad0
je 0x59b2
cmpl $0x1, 0xc3c5(%rip)      # 0x11af0
je 0x573b
cmpq $0x0, 0xc3a3(%rip)      # 0x11ad8
je 0x59c5
cmpq $0x0, 0xc39d(%rip)      # 0x11ae0
je 0x59d8
cmpl $0x1, 0xc3a4(%rip)      # 0x11af4
je 0x5760
cmpq $0x0, 0xc38e(%rip)      # 0x11ae8
je 0x59eb
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %r14
movaps %xmm0, 0x20(%r14)
movaps %xmm0, (%r14)
movaps %xmm0, 0x10(%r14)
orl $-0x1, 0x28(%r14)
leaq 0x40(%rsp), %rbx
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, (%rbx)
movaps %xmm0, 0x10(%rbx)
orl $-0x1, 0x28(%rbx)
pushq $0x1
popq %r15
leaq 0x83df(%rip), %r12      # 0xdb7c
cmpl $0x0, 0xc31c(%rip)      # 0x11ac0
jne 0x5979
movzbl 0xc313(%rip), %eax      # 0x11ac4
xorl $0x1, %eax
movl %eax, 0x80(%rsp)
movl 0xc32f(%rip), %eax      # 0x11af0
movl %eax, 0xa0(%rsp)
movq 0xc301(%rip), %rax      # 0x11ad0
movq %rax, 0x88(%rsp)
movq 0xc2fa(%rip), %rax      # 0x11ad8
movq %rax, 0x90(%rsp)
orl $-0x1, 0xa4(%rsp)
movq 0xc313(%rip), %rax      # 0x11b08
movq %rax, 0xb0(%rsp)
movzbl 0xc2f4(%rip), %esi      # 0x11af8
xorl $0x1, %esi
movzbl 0xc312(%rip), %edx      # 0x11b20
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x5bd0
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x583d
callq 0x2090
movl 0xc(%rsp), %ecx
movl %r15d, %edi
movq %r12, %rsi
movl %eax, %edx
xorl %eax, %eax
callq 0x5054
jmp 0x596c
movzbl 0xc284(%rip), %eax      # 0x11ac8
movl %eax, 0x40(%rsp)
movl 0xc2a6(%rip), %eax      # 0x11af4
movl %eax, 0x60(%rsp)
movq 0xc287(%rip), %rax      # 0x11ae0
movq %rax, 0x48(%rsp)
movq 0xc283(%rip), %rax      # 0x11ae8
movq %rax, 0x50(%rsp)
orl $-0x1, 0x64(%rsp)
movq 0xc29a(%rip), %rax      # 0x11b10
movq %rax, 0x70(%rsp)
xorl %ecx, %ecx
cmpq $0x0, 0xc2a3(%rip)      # 0x11b28
setne %cl
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5bd0
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x58bd
callq 0x2090
movl 0xc(%rsp), %ecx
movl %r15d, %edi
leaq 0x829d(%rip), %rsi      # 0xdb4c
movl %eax, %edx
xorl %eax, %eax
callq 0x5054
jmp 0x5959
movq %rbx, %r12
movq 0x98(%rsp), %r14
movq 0x58(%rsp), %r13
movl 0xa4(%rsp), %ebx
movl 0x64(%rsp), %ebp
callq 0x2240
movl %eax, 0xc(%rsp)
testl %eax, %eax
jle 0x5915
movl %ebp, %edi
callq 0x2110
movl %ebx, %edi
callq 0x2110
cmpb $0x1, 0xc1fe(%rip)      # 0x11af8
jne 0x590c
movl 0xc(%rsp), %edi
leaq 0xc(%rsp), %rsi
xorl %edx, %edx
callq 0x21d0
andl $0x0, 0xc(%rsp)
xorl %eax, %eax
jmp 0x5925
movq %r14, 0x38(%rsp)
movq %r13, 0x10(%rsp)
je 0x5a2d
movl 0x68(%rsp), %edi
cmpl $-0x1, %edi
je 0x593c
callq 0x2110
orl $-0x1, 0x68(%rsp)
movl 0xc(%rsp), %eax
testl %eax, %eax
movq %r12, %rbx
leaq 0x80(%rsp), %r14
leaq 0x822c(%rip), %r12      # 0xdb7c
je 0x596c
movl %ebp, %edi
callq 0x2110
cmpl $0x0, 0xc(%rsp)
je 0x596c
movl 0xa4(%rsp), %edi
callq 0x2110
movl %r15d, %edi
callq 0x2230
jmp 0x579d
movl 0xc(%rsp), %ebx
movl %ebx, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb660(%rip), %rax      # 0x10ff8
movq (%rax), %rcx
leaq 0x8111(%rip), %rdi      # 0xdab3
pushq $0xd
popq %rsi
pushq $0x1
popq %rdx
callq 0x2210
jmp 0x56e5
movq 0xb63f(%rip), %rax      # 0x10ff8
movq (%rax), %rcx
leaq 0x811d(%rip), %rdi      # 0xdae0
jmp 0x59fc
movq 0xb62c(%rip), %rax      # 0x10ff8
movq (%rax), %rcx
leaq 0x8125(%rip), %rdi      # 0xdafb
jmp 0x59fc
movq 0xb619(%rip), %rax      # 0x10ff8
movq (%rax), %rcx
leaq 0x812d(%rip), %rdi      # 0xdb16
jmp 0x59fc
movq 0xb606(%rip), %rax      # 0x10ff8
movq (%rax), %rcx
leaq 0x8135(%rip), %rdi      # 0xdb31
pushq $0x1a
popq %rsi
pushq $0x1
popq %rdx
callq 0x2210
jmp 0x5405
movl %eax, %ebx
movq 0xb5e3(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x80a2(%rip), %rsi      # 0xdac1
movl %ebx, %edx
xorl %eax, %eax
callq 0x2160
jmp 0x597d
leaq 0x20(%rsp), %r14
movl %ebp, %ecx
movl %ebx, %ebp
movl %ebx, (%r14)
movw $0x1, %ax
movw %ax, 0x4(%r14)
movl %ecx, %ebx
movl %ecx, 0x8(%r14)
movw %ax, 0xc(%r14)
callq 0x2090
leaq 0x8430(%rip), %rsi      # 0xde89
pushq $0x4
popq %rdi
movl %eax, %edx
movq 0x38(%rsp), %rcx
movq 0x10(%rsp), %r8
xorl %eax, %eax
callq 0x5054
pushq $0x2
popq %r15
andw $0x0, 0x26(%rsp)
andw $0x0, 0x2e(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movl $0x3e8, %edx            # imm = 0x3E8
callq 0x21b0
testl %eax, %eax
jle 0x5adf
movswl 0x26(%rsp), %edx
testb $0x8, %dl
jne 0x5b10
movzwl 0x2e(%rsp), %ecx
testb $0x8, %cl
jne 0x5b10
testb $0x1, %dl
je 0x5aba
movl %ebp, %edi
movl %ebx, %esi
callq 0x646d
movzwl 0x2e(%rsp), %ecx
testb $0x1, %cl
je 0x5ac8
movl %ebx, %edi
movl %ebp, %esi
callq 0x646d
testb $0x10, 0x26(%rsp)
jne 0x5b77
testb $0x10, 0x2e(%rsp)
je 0x5af6
jmp 0x5b77
cmpl $-0x1, %eax
jne 0x5af6
callq 0x2050
movq %rax, %rcx
xorl %eax, %eax
cmpl $0x4, (%rcx)
setne %al
negl %eax
cmpl $0x0, 0xbfc3(%rip)      # 0x11ac0
jne 0x5b91
testl %eax, %eax
jns 0x5a73
jmp 0x5b91
pushq $0x1
popq %r14
leaq 0x34(%rsp), %r13
leaq 0x83a0(%rip), %r15      # 0xdec0
xorl %r12d, %r12d
cmpq $0x2, %r12
je 0x5b91
testb $0x8, 0x26(%rsp,%r12,8)
je 0x5b72
andl $0x0, 0x1c(%rsp)
movl $0x4, 0x34(%rsp)
movl 0x20(%rsp,%r12,8), %edi
movl %r14d, %esi
pushq $0x4
popq %rdx
leaq 0x1c(%rsp), %rcx
movq %r13, %r8
callq 0x2130
callq 0x2090
movl 0x1c(%rsp), %r8d
movl %r14d, %edi
movq %r15, %rsi
movl %eax, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x5054
incq %r12
jmp 0x5b23
callq 0x2090
leaq 0x8380(%rip), %rsi      # 0xdf03
pushq $0x4
popq %rdi
movl %eax, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x5054
pushq $0x2
popq %r14
movl %ebx, %edi
movl %r14d, %esi
callq 0x20b0
movl %ebx, %edi
callq 0x2110
movl %ebp, %edi
movl %r14d, %esi
callq 0x20b0
movl %ebp, %edi
callq 0x2110
movq 0x38(%rsp), %rdi
callq 0x2030
movq 0x10(%rsp), %rdi
callq 0x2030
jmp 0x56e5