// File: /workspace/github_cpp_makefile_star2_O3/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, 0x38(%rsp)
movl %edi, %ebp
leaq 0x120(%rsp), %rdi
movb $0x0, 0xff(%rdi)
movl $0xff, %esi
callq 0x23a0
cmpl $-0x1, %eax
je 0x2d4d
leaq 0x58(%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 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x3d16
leaq 0x4c02(%rip), %rdi      # 0x7290
leaq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x22f0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x26b0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2280
leaq 0x70(%rsp), %rdi
callq 0x359c
movq $0x0, 0x8(%rsp)
leaq 0x2989(%rip), %r12      # 0x5053
movq 0x48e7(%rip), %r13      # 0x6fb8
movq $0x0, 0x68(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x30(%rsp)
movl %ebp, %edi
movq 0x38(%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, 0x30(%rsp)
jmp 0x26ec
movq (%r13), %rax
movq %rax, 0x68(%rsp)
jmp 0x26ec
movq (%r13), %rax
movq %rax, 0x40(%rsp)
jmp 0x26ec
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x26ec
cmpl $-0x1, %eax
jne 0x285e
movq 0x47ff(%rip), %rax      # 0x6fd8
movslq (%rax), %rax
subl %eax, %ebp
cmpl $0x1, %ebp
jne 0x285e
movq 0x38(%rsp), %rcx
movq (%rcx,%rax,8), %r14
leaq 0x70(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x20f0
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x23d0
movq 0x8(%rsp), %rbx
cmpq $0x0, 0x30(%rsp)
setne %r14b
movl %ebx, %eax
andb %r14b, %al
cmpb $0x1, %al
jne 0x2891
movq 0x38(%rsp), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x2979
movq %r15, %rdi
callq 0x20f0
xorl %r13d, %r13d
movq 0x4752(%rip), %rdi      # 0x6fa0
movq %r15, %rsi
movq %rax, %rdx
callq 0x22d0
jmp 0x299a
movq 0x38(%rsp), %rax
movq (%rax), %rdi
xorl %r13d, %r13d
callq 0x32fb
leaq 0x70(%rsp), %rdi
callq 0x3bae
movl $0x2, %ebx
movl %ebx, %eax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
leaq 0x70(%rsp), %rdi
callq 0x3688
movq 0x68(%rsp), %r15
movq %r15, %rax
orq 0x40(%rsp), %rax
je 0x2b14
testq %r15, %r15
je 0x29f1
callq 0x2040
movq %rax, %r13
movl $0x0, (%rax)
movq %r15, %rdi
callq 0x21c0
movq %rax, %rbp
testq %rax, %rax
jne 0x29f3
movl $0x48, %edi
callq 0x2130
movq %rax, 0x8(%rsp)
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 0x3d16
movl (%r13), %eax
testl %eax, %eax
movl $0x2, %ecx
cmovnel %eax, %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x441d(%rip), %rsi      # 0x6d80
leaq 0x1376(%rip), %rdx      # 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x2430
jmp 0x3075
movq 0x4620(%rip), %rax      # 0x6fa0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
xorl %r13d, %r13d
callq 0x2410
xorl %r13d, %r13d
movq 0x45fc(%rip), %r15      # 0x6fa0
leaq 0x26b8(%rip), %rsi      # 0x5063
movl $0x3c, %edx
movq %r15, %rdi
callq 0x22d0
movq (%r15), %rax
addq -0x18(%rax), %r15
xorl %r13d, %r13d
movq %r15, %rdi
movl $0xa, %esi
callq 0x2250
xorl %r13d, %r13d
movsbl %al, %esi
movq 0x45c4(%rip), %rdi      # 0x6fa0
callq 0x2030
xorl %r13d, %r13d
movq %rax, %rdi
callq 0x2170
jmp 0x286e
xorl %ebp, %ebp
movq 0x40(%rsp), %r15
testq %r15, %r15
je 0x2ac5
callq 0x2040
movq %rax, %r12
movl $0x0, (%rax)
movq %r15, %rdi
xorl %r13d, %r13d
callq 0x2240
testq %rax, %rax
jne 0x2ac7
movl $0x48, %edi
callq 0x2130
movq %rax, 0x8(%rsp)
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 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x3d16
movl (%r12), %eax
testl %eax, %eax
movl $0x2, %ecx
cmovnel %eax, %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x42d1(%rip), %rsi      # 0x6d80
leaq 0x122a(%rip), %rdx      # 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x2430
jmp 0x3075
xorl %eax, %eax
leaq 0x10(%rax), %rcx
leaq 0x14(%rbp), %rdx
testq %rax, %rax
cmoveq %rdx, %rcx
movl (%rcx), %edi
callq 0x2460
cmpl $-0x1, %eax
je 0x2e52
testq %rbp, %rbp
je 0x2b14
movq (%rbp), %rdi
movl 0x14(%rbp), %esi
xorl %r13d, %r13d
callq 0x2300
cmpl $-0x1, %eax
je 0x2ee2
movl 0x10(%rbp), %edi
callq 0x2480
cmpl $-0x1, %eax
je 0x2ff4
xorl %r12d, %r12d
movl $0x0, %r13d
testb $0x1, %bl
jne 0x2c59
xorl %r13d, %r13d
leaq 0x120(%rsp), %rdi
callq 0x2420
cmpq $0x0, 0x30(%rsp)
je 0x2b6f
leaq 0x120(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl $0x30, %edx
callq 0x2050
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x2f6f
callq 0x2090
testl %eax, %eax
jne 0x2dd0
callq 0x22b0
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x2bcd
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 0x25b4(%rip), %rdi      # 0x51a3
xorl %esi, %esi
xorl %eax, %eax
callq 0x21a0
leaq 0x25a4(%rip), %rdi      # 0x51a3
movl $0x1, %esi
xorl %eax, %eax
callq 0x21a0
leaq 0x2591(%rip), %rdi      # 0x51a3
movl $0x1, %esi
xorl %eax, %eax
callq 0x21a0
movq 0x43a3(%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
movl %r14d, %r13d
leaq 0x128(%rsp), %r15
movq %r15, %rdi
callq 0x2310
movq %r15, %rdi
movl $0x2, %esi
callq 0x23b0
movq %r15, %rdi
movl $0xf, %esi
callq 0x23b0
movq %r15, %rdi
movl $0xa, %esi
callq 0x23b0
movl %r12d, 0x80(%r15)
leaq 0x8aa(%rip), %rax       # 0x3548
movq %rax, -0x8(%r15)
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 %r12d, 0x88(%r14)
leaq 0x87d(%rip), %rax       # 0x3553
movq %rax, (%r14)
movl $0xa, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
movl %r12d, 0x88(%r14)
movq $0x1, (%r14)
movl $0xd, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2320
xorl %edi, %edi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2110
leaq 0x4550(%rip), %rsi      # 0x7268
leaq 0x456d(%rip), %rdx      # 0x728c
leaq 0x70(%rsp), %rdi
callq 0x37cc
leaq 0x70(%rsp), %rdi
callq 0x3bae
xorl %ebx, %ebx
testb %r13b, %r13b
je 0x287d
movq 0x30(%rsp), %rdi
callq 0x2100
jmp 0x287d
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 0x3c70
xorl %ebp, %ebp
leaq 0x3fbf(%rip), %rsi      # 0x6d80
leaq 0xf18(%rip), %rdx       # 0x3ce0
movq %r14, %rdi
callq 0x2430
cmpl $-0x1, %eax
jne 0x2edb
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 0x48(%rsp), %r14
leaq 0x58(%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 0x3c70
xorl %ebp, %ebp
leaq 0x3f42(%rip), %rsi      # 0x6d80
leaq 0xe9b(%rip), %rdx       # 0x3ce0
movq %r13, %rdi
callq 0x2430
jmp 0x2ff4
movl $0x48, %edi
callq 0x2130
movq %rax, %r15
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 %r15, 0x8(%rsp)
movq %r15, %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x3ebb(%rip), %rsi      # 0x6d80
leaq 0xe14(%rip), %rdx       # 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x2430
jmp 0x3075
xorl %edi, %edi
callq 0x23f0
movl $0x48, %edi
callq 0x2130
movq %rax, 0x8(%rsp)
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 (%rbp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3c32
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x3e27(%rip), %rsi      # 0x6d80
leaq 0xd80(%rip), %rdx       # 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x2430
jmp 0x3075
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 0x48(%rsp), %r14
leaq 0x58(%rsp), %rax
movq %rax, (%r14)
movq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3d16
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %r13, %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x3d9b(%rip), %rsi      # 0x6d80
leaq 0xcf4(%rip), %rdx       # 0x3ce0
movq %r13, %rdi
callq 0x2430
movl $0x48, %edi
callq 0x2130
movq %rax, 0x8(%rsp)
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 (%rbp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3c32
callq 0x2040
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x3c70
xorl %ebp, %ebp
leaq 0x3d1c(%rip), %rsi      # 0x6d80
leaq 0xc75(%rip), %rdx       # 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x2430
jmp 0x30a1
jmp 0x30c6
jmp 0x30f7
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3135
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
jmp 0x3135
movq %rdx, %r12
movq %rax, %r15
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x314f
jmp 0x315c
jmp 0x30c6
jmp 0x313f
jmp 0x30c6
jmp 0x313f
movq %rdx, %r12
movq %rax, %r15
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3182
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x2280
jmp 0x3182
jmp 0x318e
movq %rdx, %r12
movq %rax, %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3119
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3130
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x3194
movq %r13, %rdi
callq 0x2190
jmp 0x3194
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x315c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3179
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x320d
movq 0x8(%rsp), %rdi
callq 0x2190
jmp 0x320d
movq %rdx, %r12
movq %rax, %r15
leaq 0x120(%rsp), %rdi
callq 0x2390
jmp 0x320d
jmp 0x31a5
movq %rdx, %r12
movq %rax, %r15
jmp 0x31f1
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x31ca
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2280
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x31e4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2280
testb %bpl, %bpl
je 0x31f1
movq %r14, %rdi
callq 0x2190
xorl %r13d, %r13d
movq $0x0, 0x30(%rsp)
jmp 0x321a
movq %rdx, %r12
movq %rax, %r15
jmp 0x3210
movq %rdx, %r12
movq %rax, %r15
xorl %r13d, %r13d
leaq 0x70(%rsp), %rdi
callq 0x3bae
cmpl $0x1, %r12d
jne 0x32eb
movq %r15, %rdi
callq 0x20e0
movq %rax, %r15
movq 0x38(%rsp), %rax
movq (%rax), %rsi
movq 0x3d62(%rip), %rdi      # 0x6fa0
callq 0x2260
movq %rax, %rbx
leaq 0x1ea8(%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 0x329c
movq 0x3d29(%rip), %rdi      # 0x6fa0
leaq 0x1e77(%rip), %rsi      # 0x50f5
movl $0x2, %edx
callq 0x22d0
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq 0x3d09(%rip), %rdi      # 0x6fa0
callq 0x22d0
movq 0x3cfd(%rip), %rdi      # 0x6fa0
leaq 0x1e4b(%rip), %rsi      # 0x50f5
movl $0x2, %edx
callq 0x22d0
movl 0x40(%r15), %edi
callq 0x20d0
movq 0x3cdc(%rip), %rdi      # 0x6fa0
movq %rax, %rsi
callq 0x2260
movq %rax, %rdi
callq 0x2120
callq 0x2400
movl $0x3, %ebx
jmp 0x2d35
movq %rax, %r15
callq 0x2400
movq %r15, %rdi
callq 0x2450
movq %rax, %rdi
callq 0x3c27