// File: /workspace/github_cpp_makefile_star2_O1/AGWA[P]logmailer/logmailer.cpp
// Function: main
int main (int argc, char** argv)
{
	const char*			pidfile = NULL;
	bool				pidfile_created = false;
	int				exitcode = 0;

	try {
		hostname = get_hostname();

		Log_mailer		log_mailer;
		bool			no_daemonize = false;
		const char*		username = NULL;
		const char*		groupname = NULL;

		int			flag;
		while ((flag = getopt(argc, argv, "fu:g:p:m:M:r:s:")) != -1) {
			switch (flag) {
			case 'f':
				no_daemonize = true;
				break;
			case 'u':
				username = optarg;
				break;
			case 'g':
				groupname = optarg;
				break;
			case 'p':
				pidfile = optarg;
				break;
			case 'm':
				log_mailer.min_wait_time = std::atol(optarg);
				break;
			case 'M':
				log_mailer.max_wait_time = std::atol(optarg);
				break;
			case 'r':
				log_mailer.recipient = optarg;
				break;
			case 's':
				log_mailer.subject_format = optarg;
				break;
			default:
				print_usage(argv[0]);
				return 2;
			}
		}

		if (argc - optind != 1) {
			print_usage(argv[0]);
			return 2;
		}

		log_mailer.fifo_path = argv[optind];

		if (no_daemonize && pidfile) {
			std::clog << argv[0] << ": -p (PID file) can't be specified with -f (don't daemonize)" << std::endl;
			return 2;
		}

		// Open FIFO before dropping privileges in case FIFO isn't readable by unprivileged user.
		// Open FIFO before daemonizing so we can report errors.
		log_mailer.open_fifo();

		drop_privileges(username, groupname);
		if (!no_daemonize) {
			daemonize(pidfile);
			if (pidfile) {
				pidfile_created = true;
			}
		}
		init_signals();
		log_mailer.run(is_running, flush_requested);
	} catch (const System_error& error) {
		std::clog << argv[0] << ": " << error.syscall;
		if (!error.target.empty()) {
			std::clog << ": " << error.target;
		}
		std::clog << ": " << std::strerror(error.number) << std::endl;
		exitcode = 3;
	}
	if (pidfile_created) {
		unlink(pidfile);
	}
	return exitcode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movq %rsi, 0x30(%rsp)
movl %edi, %ebp
leaq 0x120(%rsp), %rdi
movb $0x0, 0xff(%rdi)
movl $0xff, %esi
callq 0x23a0
cmpl $-0x1, %eax
je 0x2d4f
leaq 0x50(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x120(%rsp), %r14
movq %r14, %rdi
callq 0x20f0
leaq (%rsp,%rax), %rdx
addq $0x120, %rdx            # imm = 0x120
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3cde
leaq 0x4c02(%rip), %rdi      # 0x7290
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x22f0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x26b0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2280
leaq 0x70(%rsp), %rdi
callq 0x3592
movq $0x0, 0x68(%rsp)
leaq 0x2989(%rip), %r12      # 0x5053
movq 0x48e7(%rip), %r13      # 0x6fb8
movq $0x0, 0x60(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x8(%rsp)
movl %ebp, %edi
movq 0x30(%rsp), %rsi
movq %r12, %rdx
callq 0x2070
leal -0x66(%rax), %ecx
cmpl $0xf, %ecx
ja 0x2736
leaq 0x28fa(%rip), %rax      # 0x5004
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
leaq 0xb8(%rsp), %rax
leaq 0xb0(%rsp), %r14
jmpq *%rcx
movq (%r13), %rdi
callq 0x22e0
movq %rax, 0xd0(%rsp)
jmp 0x26ec
cmpl $0x4d, %eax
jne 0x27c9
movq (%r13), %rdi
callq 0x22e0
movq %rax, 0xd8(%rsp)
jmp 0x26ec
leaq 0x98(%rsp), %rax
leaq 0x90(%rsp), %r14
movq (%r13), %r15
movl %ebp, %ebx
movq %r12, %rbp
movq (%rax), %r12
movq %r15, %rdi
callq 0x20f0
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbp, %r12
movl %ebx, %ebp
movq %r15, %rcx
movq %rax, %r8
callq 0x23d0
jmp 0x26ec
movq (%r13), %rax
movq %rax, 0x8(%rsp)
jmp 0x26ec
movq (%r13), %rax
movq %rax, 0x60(%rsp)
jmp 0x26ec
movq (%r13), %rax
movq %rax, 0x38(%rsp)
jmp 0x26ec
movb $0x1, %al
movq %rax, 0x68(%rsp)
jmp 0x26ec
cmpl $-0x1, %eax
jne 0x285c
movq 0x47ff(%rip), %rax      # 0x6fd8
movslq (%rax), %rax
subl %eax, %ebp
cmpl $0x1, %ebp
jne 0x285c
movq 0x30(%rsp), %rcx
movq (%rcx,%rax,8), %r14
leaq 0x70(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x20f0
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x23d0
movq 0x68(%rsp), %rbx
cmpq $0x0, 0x8(%rsp)
setne %al
andb %bl, %al
cmpb $0x1, %al
jne 0x28ad
movq 0x30(%rsp), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x298d
movq %r15, %rdi
callq 0x20f0
xorl %ebp, %ebp
movq 0x4754(%rip), %rdi      # 0x6fa0
movq %r15, %rsi
movq %rax, %rdx
callq 0x22d0
jmp 0x29ad
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movl $0x2, %r15d
xorl %ebp, %ebp
callq 0x3302
xorl %r14d, %r14d
xorl %ebx, %ebx
leaq 0x70(%rsp), %rdi
callq 0x3b76
xorl %ebp, %ebp
testb %bl, %bl
je 0x2898
testb %r14b, %r14b
je 0x2895
movq 0x8(%rsp), %rdi
callq 0x2100
movl %ebp, %r15d
movl %r15d, %eax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
leaq 0x70(%rsp), %rdi
callq 0x367e
movq 0x60(%rsp), %r15
movq %r15, %rax
orq 0x38(%rsp), %rax
je 0x2b29
testq %r15, %r15
je 0x2a0b
callq 0x2040
movq %rax, %rbp
movl $0x0, (%rax)
movq %r15, %rdi
callq 0x21c0
movq %rax, %r13
testq %rax, %rax
jne 0x2a0e
movl $0x48, %edi
callq 0x2130
movq %rax, %r13
leaq 0x130(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movabsq $0x6d616e7770746567, %rax # imm = 0x6D616E7770746567
movq %rax, (%rbx)
movq $0x8, -0x8(%rbx)
movb $0x0, 0x8(%rbx)
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x3cde
movl (%rbp), %eax
testl %eax, %eax
movl $0x2, %ecx
cmovnel %eax, %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x3c38
xorl %ebp, %ebp
leaq 0x4407(%rip), %rsi      # 0x6d80
leaq 0x1328(%rip), %rdx      # 0x3ca8
movq %r13, %rdi
callq 0x2430
jmp 0x3066
movq 0x460c(%rip), %rax      # 0x6fa0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
xorl %ebp, %ebp
callq 0x2410
xorl %ebp, %ebp
movq 0x45ea(%rip), %r15      # 0x6fa0
leaq 0x26a6(%rip), %rsi      # 0x5063
movl $0x3c, %edx
movq %r15, %rdi
callq 0x22d0
movq (%r15), %rax
addq -0x18(%rax), %r15
xorl %ebp, %ebp
movq %r15, %rdi
movl $0xa, %esi
callq 0x2250
xorl %ebp, %ebp
movsbl %al, %esi
movq 0x45b4(%rip), %rdi      # 0x6fa0
callq 0x2030
movl $0x2, %r15d
xorl %ebp, %ebp
movq %rax, %rdi
callq 0x2170
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x2876
xorl %r13d, %r13d
movq 0x38(%rsp), %r14
testq %r14, %r14
je 0x2ad9
callq 0x2040
movq %rax, %r12
movl $0x0, (%rax)
movq %r14, %rdi
xorl %ebp, %ebp
callq 0x2240
testq %rax, %rax
jne 0x2adb
movl $0x48, %edi
callq 0x2130
movq %rax, %r13
leaq 0x130(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movabsq $0x6d616e7267746567, %rax # imm = 0x6D616E7267746567
movq %rax, (%rbx)
movq $0x8, -0x8(%rbx)
movb $0x0, 0x8(%rbx)
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x3cde
movl (%r12), %eax
testl %eax, %eax
movl $0x2, %ecx
cmovnel %eax, %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x3c38
xorl %ebp, %ebp
leaq 0x42bb(%rip), %rsi      # 0x6d80
leaq 0x11dc(%rip), %rdx      # 0x3ca8
movq %r13, %rdi
callq 0x2430
jmp 0x3066
xorl %eax, %eax
leaq 0x10(%rax), %rcx
leaq 0x14(%r13), %rdx
testq %rax, %rax
cmoveq %rdx, %rcx
movl (%rcx), %edi
callq 0x2460
cmpl $-0x1, %eax
je 0x2e54
testq %r13, %r13
je 0x2b29
movq (%r13), %rdi
movl 0x14(%r13), %esi
xorl %ebp, %ebp
callq 0x2300
cmpl $-0x1, %eax
je 0x2edd
movl 0x10(%r13), %edi
callq 0x2480
cmpl $-0x1, %eax
je 0x2fea
xorl %r15d, %r15d
movl $0x0, %ebp
testb $0x1, %bl
jne 0x2c73
xorl %ebp, %ebp
leaq 0x120(%rsp), %rdi
callq 0x2420
cmpq $0x0, 0x8(%rsp)
je 0x2b82
leaq 0x120(%rsp), %rdi
movq 0x8(%rsp), %rsi
movl $0x30, %edx
callq 0x2050
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x2f65
callq 0x2090
testl %eax, %eax
jne 0x2dd2
callq 0x22b0
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x2be0
callq 0x2380
leaq 0x120(%rsp), %rdi
movl %eax, %esi
callq 0x2440
leaq 0x10(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22d0
leaq 0x120(%rsp), %rdi
callq 0x2350
xorl %edi, %edi
callq 0x24a0
movl $0x1, %edi
callq 0x24a0
movl $0x2, %edi
callq 0x24a0
leaq 0x25a1(%rip), %rdi      # 0x51a3
xorl %esi, %esi
xorl %eax, %eax
callq 0x21a0
leaq 0x2591(%rip), %rdi      # 0x51a3
movl $0x1, %esi
xorl %eax, %eax
callq 0x21a0
leaq 0x257e(%rip), %rdi      # 0x51a3
movl $0x1, %esi
xorl %eax, %eax
callq 0x21a0
cmpq $0x0, 0x8(%rsp)
setne %bpl
movq 0x4386(%rip), %rax      # 0x6fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x128(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x120(%rsp,%rcx)
callq 0x21f0
leaq 0x218(%rsp), %rdi
callq 0x20c0
leaq 0x128(%rsp), %r12
movq %r12, %rdi
callq 0x2310
movq %r12, %rdi
movl $0x2, %esi
callq 0x23b0
movq %r12, %rdi
movl $0xf, %esi
callq 0x23b0
movq %r12, %rdi
movl $0xa, %esi
callq 0x23b0
movl %r15d, 0x80(%r12)
leaq 0x886(%rip), %rax       # 0x353f
movq %rax, -0x8(%r12)
leaq 0x120(%rsp), %r14
movl $0x2, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
movl $0xf, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
movl %r15d, 0x88(%r14)
leaq 0x858(%rip), %rax       # 0x354a
movq %rax, (%r14)
movl $0xa, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
movl %r15d, 0x88(%r14)
movq $0x1, (%r14)
movl $0xd, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
xorl %edi, %edi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2110
movb $0x1, %bl
leaq 0x4532(%rip), %rsi      # 0x7268
leaq 0x454f(%rip), %rdx      # 0x728c
leaq 0x70(%rsp), %rdi
callq 0x37b2
movl %ebp, %r14d
jmp 0x2876
movl $0x48, %edi
callq 0x2130
movq %rax, %r14
leaq 0x80(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movabsq $0x6e74736f68746567, %rax # imm = 0x6E74736F68746567
movq %rax, (%rbx)
movl $0x656d616e, 0x7(%rbx)  # imm = 0x656D616E
movq $0xb, -0x8(%rbx)
xorl %eax, %eax
movb %al, 0xb(%rbx)
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb %al, (%r13)
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x70(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x3c38
xorl %ebp, %ebp
leaq 0x3fbd(%rip), %rsi      # 0x6d80
leaq 0xede(%rip), %rdx       # 0x3ca8
movq %r14, %rdi
callq 0x2430
cmpl $-0x1, %eax
jne 0x2ed6
movl $0x48, %edi
callq 0x2130
movq %rax, %r13
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movl $0x6b726f66, (%rbx)     # imm = 0x6B726F66
movq $0x4, -0x8(%rbx)
xorl %eax, %eax
movb %al, 0x4(%rbx)
leaq 0x40(%rsp), %r14
leaq 0x50(%rsp), %rcx
movq %rcx, (%r14)
movq $0x0, 0x8(%r14)
movb %al, 0x10(%r14)
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
movq %r14, %rdx
callq 0x3c38
xorl %ebp, %ebp
leaq 0x3f40(%rip), %rsi      # 0x6d80
leaq 0xe61(%rip), %rdx       # 0x3ca8
movq %r13, %rdi
callq 0x2430
jmp 0x2fea
movl $0x48, %edi
callq 0x2130
movq %rax, %r13
leaq 0x130(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movl $0x67746573, (%rbx)     # imm = 0x67746573
movw $0x6469, 0x4(%rbx)      # imm = 0x6469
movq $0x6, -0x8(%rbx)
xorl %eax, %eax
movb %al, 0x6(%rbx)
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb %al, (%r14)
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x3c38
xorl %ebp, %ebp
leaq 0x3ebe(%rip), %rsi      # 0x6d80
leaq 0xddf(%rip), %rdx       # 0x3ca8
movq %r13, %rdi
callq 0x2430
jmp 0x3066
xorl %edi, %edi
callq 0x23f0
movl $0x48, %edi
callq 0x2130
movq %rax, %rbp
leaq 0x130(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movabsq $0x756f726774696e69, %rax # imm = 0x756F726774696E69
movq %rax, (%rbx)
movw $0x7370, 0x8(%rbx)      # imm = 0x7370
movq $0xa, -0x8(%rbx)
movb $0x0, 0xa(%rbx)
movq (%r13), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x3bfa
callq 0x2040
movl (%rax), %ecx
movb $0x1, %r14b
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x3c38
xorl %r14d, %r14d
leaq 0x3e2f(%rip), %rsi      # 0x6d80
leaq 0xd50(%rip), %rdx       # 0x3ca8
movq %rbp, %rdi
callq 0x2430
jmp 0x3066
movl $0x48, %edi
callq 0x2130
movq %rax, %r13
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movl $0x6e65706f, (%rbx)     # imm = 0x6E65706F
movq $0x4, -0x8(%rbx)
movb $0x0, 0x4(%rbx)
leaq 0x40(%rsp), %r14
leaq 0x50(%rsp), %rax
movq %rax, (%r14)
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3cde
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r13, %rdi
callq 0x3c38
xorl %ebp, %ebp
leaq 0x3da5(%rip), %rsi      # 0x6d80
leaq 0xcc6(%rip), %rdx       # 0x3ca8
movq %r13, %rdi
callq 0x2430
movl $0x48, %edi
callq 0x2130
movq %rax, %rbp
leaq 0x130(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movl $0x75746573, (%rbx)     # imm = 0x75746573
movw $0x6469, 0x4(%rbx)      # imm = 0x6469
movq $0x6, -0x8(%rbx)
movb $0x0, 0x6(%rbx)
movq (%r13), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x3bfa
callq 0x2040
movl (%rax), %ecx
movb $0x1, %r14b
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x3c38
xorl %r14d, %r14d
leaq 0x3d29(%rip), %rsi      # 0x6d80
leaq 0xc4a(%rip), %rdx       # 0x3ca8
movq %rbp, %rdi
callq 0x2430
jmp 0x307a
jmp 0x309d
jmp 0x30ea
movq %rdx, %r12
movq %rax, %r15
movb $0x1, %bpl
jmp 0x310c
movq %rdx, %r12
movq %rax, %r15
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30a6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
jmp 0x30a6
movq %rdx, %r12
movq %rax, %r15
movb $0x1, %r14b
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0x30c3
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x2280
testb %r14b, %r14b
je 0x3212
movq %rbp, %rdi
jmp 0x3178
jmp 0x3132
jmp 0x30da
jmp 0x3132
movq %rdx, %r12
movq %rax, %r15
movb $0x1, %bpl
jmp 0x314f
jmp 0x3182
movq %rdx, %r12
movq %rax, %r15
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x310c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3123
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x3188
movq %r13, %rdi
callq 0x2190
jmp 0x3188
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x314f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0x316c
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x3212
movq %r13, %rdi
callq 0x2190
jmp 0x3212
movq %rdx, %r12
movq %rax, %r15
leaq 0x120(%rsp), %rdi
callq 0x2390
jmp 0x3212
movq %rdx, %r12
movq %rax, %r15
xorl %ebp, %ebp
movq $0x0, 0x8(%rsp)
jmp 0x321e
movq %rdx, %r12
movq %rax, %r15
jmp 0x31f6
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x31cf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x31e9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x31f6
movq %r14, %rdi
callq 0x2190
xorl %r14d, %r14d
movq $0x0, 0x8(%rsp)
jmp 0x3221
movq %rdx, %r12
movq %rax, %r15
jmp 0x3214
movq %rdx, %r12
movq %rax, %r15
xorl %ebp, %ebp
leaq 0x70(%rsp), %rdi
callq 0x3b76
movl %ebp, %r14d
cmpl $0x1, %r12d
jne 0x32f2
movq %r15, %rdi
callq 0x20e0
movq %rax, %r15
movq 0x30(%rsp), %rax
movq (%rax), %rsi
movq 0x3d5b(%rip), %rdi      # 0x6fa0
callq 0x2260
movq %rax, %rbx
leaq 0x1ea1(%rip), %rsi      # 0x50f5
movl $0x2, %edx
movq %rax, %rdi
callq 0x22d0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x22d0
cmpq $0x0, 0x28(%r15)
je 0x32a3
movq 0x3d22(%rip), %rdi      # 0x6fa0
leaq 0x1e70(%rip), %rsi      # 0x50f5
movl $0x2, %edx
callq 0x22d0
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq 0x3d02(%rip), %rdi      # 0x6fa0
callq 0x22d0
movq 0x3cf6(%rip), %rdi      # 0x6fa0
leaq 0x1e44(%rip), %rsi      # 0x50f5
movl $0x2, %edx
callq 0x22d0
movl 0x40(%r15), %edi
callq 0x20d0
movq 0x3cd5(%rip), %rdi      # 0x6fa0
movq %rax, %rsi
callq 0x2260
movq %rax, %rdi
callq 0x2120
callq 0x2400
movl $0x3, %ebp
jmp 0x2886
movq %rax, %r15
callq 0x2400
movq %r15, %rdi
callq 0x2450
movq %rax, %rdi
callq 0x3bef