// File: /workspace/github_c_makefile_star2_O1/alexgirao[P]aimant/aimant.c
// Function: main
int main(int argc, char **argv)
{
	char **sink_argv;
	struct sink svlogd[1];
	struct fd_tap fd0[1];
	struct getopt_x state[1];
	int pid_to_send_signal = -1;

	if (process_args(state, argc, argv)) {
		help(argv[0], state);
		exit(1);
	}

	if (argc == 1) {
		help(argv[0], state);
		exit(0);
	}

	DEBUG_INFO("args->pid_file=[%s]", args->pid_file);
	DEBUG_INFO("args->log_file=[%s]", args->log_file);
	DEBUG_INFO("args->svlogd_path=[%s]", args->svlogd_path);
	DEBUG_INFO("args->count_to_rotate=%li", args->count_to_rotate);

	if (read_pid(args->pid_file, &pid_to_send_signal)) {
		DEBUG("invalid pid file");
		return 1;
	}

	memset(svlogd, 0, sizeof(svlogd));
	memset(fd0, 0, sizeof(fd0));

	/* spawn svlogd
	 */

	sink_argv = calloc(4, sizeof(char*));
	sink_argv[0] = args->svlogd_path;
	sink_argv[1] = "-ttt";
	sink_argv[2] = args->output_dir;
	sink_argv[3] = NULL;

	assert(sink_open(svlogd, 1 /* search path? */, sink_argv) == 0);

	/* register stdin as tap
	 */

	assert(fd_tap_open(fd0, STDIN_FILENO) == 0);

	/* unleash
	 */

	assert(doit(pid_to_send_signal, svlogd, fd0, args->log_file, args->count_to_rotate, args->exit_on_timeout) == 0);

	DEBUG_INFO("closing svlogd sink, pid=%i", svlogd->sp->pid);
	sink_close(svlogd);

	/* cleanup
	 */

	free(sink_argv);
	sink_argv = NULL;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x14d8, %rsp           # imm = 0x14D8
movq %rsi, %rdx
movl %edi, %esi
leaq 0xd5b0(%rip), %r8       # 0x11610
leaq 0x76e8(%rip), %r9       # 0xb74f
leaq -0x500(%rbp), %rdi
movl %esi, -0x2c(%rbp)
movq %rdx, -0x38(%rbp)
xorl %ecx, %ecx
callq 0x8274
testl %eax, %eax
jne 0x5158
leaq -0x500(%rbp), %r13
leaq -0x1500(%rbp), %rbx
leaq 0x6f87(%rip), %r14      # 0xb020
leaq 0xd880(%rip), %r15      # 0x11920
movq %r13, %rdi
movq %rbx, %rsi
callq 0x8a2d
movl %eax, %r12d
leal -0x63(%r12), %eax
cmpl $0x10, %eax
ja 0x40d5
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq (%r15), %rdi
callq 0x22e0
movq %rax, 0xd430(%rip)      # 0x11500
jmp 0x4196
cmpl $-0x1, %r12d
je 0x4196
jmp 0x5003
movl $0x1, 0xd41a(%rip)      # 0x11508
jmp 0x4196
movq (%r15), %rsi
movb $0x5a, 0xd50e(%rip)     # 0x1160b
movl $0x100, %edx            # imm = 0x100
leaq 0xd403(%rip), %rdi      # 0x1150c
callq 0x2090
cmpb $0x0, 0xd4f6(%rip)      # 0x1160b
je 0x4196
jmp 0x50b5
movq (%r15), %rsi
movb $0x5a, 0xd3d9(%rip)     # 0x114ff
movl $0x100, %edx            # imm = 0x100
leaq 0xd2ce(%rip), %rdi      # 0x11400
callq 0x2090
cmpb $0x0, 0xd3c1(%rip)      # 0x114ff
je 0x4196
jmp 0x5077
movq (%r15), %rsi
movb $0x5a, 0xd2b0(%rip)     # 0x113ff
movl $0x100, %edx            # imm = 0x100
leaq 0xd1a5(%rip), %rdi      # 0x11300
callq 0x2090
cmpb $0x0, 0xd298(%rip)      # 0x113ff
je 0x4196
jmp 0x50d4
movq (%r15), %rsi
movb $0x5a, 0xd187(%rip)     # 0x112ff
movl $0x100, %edx            # imm = 0x100
leaq 0xd07c(%rip), %rdi      # 0x11200
callq 0x2090
cmpb $0x0, 0xd16f(%rip)      # 0x112ff
jne 0x5096
cmpl $-0x1, %r12d
jne 0x40a0
movq 0xd359(%rip), %rcx      # 0x11500
testq %rcx, %rcx
jle 0x5177
cmpl $0x0, -0x3ec(%rbp)
jne 0x5019
cmpl $0x1, -0x2c(%rbp)
je 0x505d
movl $0x1, %ebx
leaq 0xd02d(%rip), %r15      # 0x11200
leaq 0x6ee2(%rip), %r12      # 0xb0bc
leaq 0x7afa(%rip), %r13      # 0xbcdb
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x22f0
movl %eax, %r14d
testl %eax, %eax
jns 0x4259
callq 0x2080
cmpl $-0x1, %r14d
jne 0x4fe4
movl (%rax), %edi
cmpl $0x2, %edi
sete %cl
cmpl $0xa, %ebx
setl %r14b
andb %cl, %r14b
cmpb $0x1, %r14b
jne 0x424f
incl %ebx
movq %r12, %rdi
movl $0x4e9, %esi            # imm = 0x4E9
movq %r13, %rdx
movq %r15, %rcx
movl %ebx, %r8d
movl $0xa, %r9d
xorl %eax, %eax
callq 0x9a2c
movl $0x186a0, %edi          # imm = 0x186A0
callq 0x23d0
testb %r14b, %r14b
jne 0x41e1
jmp 0x42eb
movq %rax, %rsi
callq 0x264e
jmp 0x4245
leaq -0x1500(%rbp), %rsi
movl %r14d, %edi
callq 0x2360
testl %eax, %eax
js 0x42e3
movq -0x14d0(%rbp), %rbx
cmpq $0x64, %rbx
jge 0x52d4
xorl %r15d, %r15d
movl %r15d, %eax
leaq (%rax,%rbp), %rsi
addq $-0x270, %rsi           # imm = 0xFD90
movl %ebx, %eax
subl %r15d, %eax
movslq %eax, %rdx
movl %r14d, %edi
callq 0x2200
testl %eax, %eax
jle 0x42ad
addl %eax, %r15d
cmpl %ebx, %r15d
jl 0x4280
movq %rbx, %rax
cltq
cmpq %rax, %rbx
jne 0x52f3
movb $0x0, -0x270(%rbp,%rbx)
movl %r14d, %edi
callq 0x21e0
testl %eax, %eax
jne 0x5312
leaq -0x270(%rbp), %rdi
callq 0x2340
movl %eax, -0x44(%rbp)
movb $0x1, %al
jmp 0x42f4
movl %r14d, %edi
callq 0x25f9
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
testb %al, %al
je 0x4eca
xorps %xmm0, %xmm0
leaq -0x130(%rbp), %rbx
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
xorl %r15d, %r15d
movq %r15, 0x40(%rbx)
leaq -0x50(%rbp), %r14
movq %r15, (%r14)
movl $0x0, 0x8(%r14)
movl $0x4, %edi
movl $0x8, %esi
callq 0x2220
movq %rax, %rdx
leaq 0xd0bc(%rip), %rax      # 0x11400
movq %rax, (%rdx)
leaq 0x7335(%rip), %rax      # 0xb683
movq %rax, 0x8(%rdx)
leaq 0xd1b3(%rip), %rax      # 0x1150c
movq %rax, 0x10(%rdx)
movq %r15, 0x18(%rdx)
movq %rbx, %rdi
movl $0x1, %esi
movq %rdx, -0xc8(%rbp)
callq 0x2efc
movq %r14, %rdi
xorl %esi, %esi
callq 0x2ff7
movq 0xd17a(%rip), %rbx      # 0x11500
movl 0xd17c(%rip), %eax      # 0x11508
movl %eax, -0x64(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x1f0(%rbp), %rax
movq %rax, -0xa8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movl $0x100000, %edi         # imm = 0x100000
callq 0x22a0
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x5239
xorps %xmm0, %xmm0
movaps %xmm0, -0x150(%rbp)
movaps %xmm0, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
movaps %xmm0, -0x180(%rbp)
movaps %xmm0, -0x190(%rbp)
xorl %eax, %eax
movq %rax, -0x140(%rbp)
movaps %xmm0, -0x1f0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movq %rax, -0x1a0(%rbp)
testq %rbx, %rbx
jle 0x5258
cmpl $0x0, -0x50(%rbp)
js 0x5277
movq %rbx, -0xd0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x190(%rbp)
movl %eax, -0x1f0(%rbp)
cmpl $0x0, -0x110(%rbp)
jle 0x5296
leaq 0xce9f(%rip), %rsi      # 0x11300
leaq -0x190(%rbp), %rdi
movl $0x1, %edx
callq 0x318f
testl %eax, %eax
jne 0x52b5
leaq 0xce7f(%rip), %rsi      # 0x11300
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
callq 0x9daf
leaq 0x7469(%rip), %rsi      # 0xb8fd
movq %rbx, %rdi
callq 0x9ec1
movl $0x1, %edi
movl $0x10, %esi
callq 0x2220
movq %rax, %r13
xorps %xmm0, %xmm0
leaq -0x270(%rbp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x40(%rax)
movaps %xmm0, 0x50(%rax)
movaps %xmm0, 0x60(%rax)
movaps %xmm0, 0x70(%rax)
leaq -0x2f0(%rbp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x40(%rax)
movaps %xmm0, 0x50(%rax)
movaps %xmm0, 0x60(%rax)
movaps %xmm0, 0x70(%rax)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movq %r13, -0x60(%rbp)
xorl %eax, %eax
callq 0x6818
movl $0x0, %edx
testq %r13, %r13
je 0x4543
movq (%r13), %rsi
xorl %edx, %edx
movl $0x0, %ecx
testq %rsi, %rsi
je 0x4534
movl (%rsi), %ecx
incl %ecx
movq 0x8(%r13), %rsi
testq %rsi, %rsi
je 0x4541
movl (%rsi), %edx
incl %edx
addl %ecx, %edx
testl %eax, %eax
js 0x4fc5
movl -0x2c(%rbp), %ecx
movl %ecx, %r11d
andl $0x1, %r11d
movl %r11d, %r10d
xorl $0x1, %r10d
movl %ecx, %ecx
movq -0xb0(%rbp,%rcx,8), %rbx
movq -0xb0(%rbp,%r10,8), %r12
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpl $0x63, %edx
jg 0x4626
movl -0x50(%rbp), %ecx
cmpl $-0x1, %ecx
je 0x45b0
leal 0x3f(%rcx), %esi
testl %ecx, %ecx
cmovnsl %ecx, %esi
cmovnsl %ecx, %edi
movl %esi, %r8d
andl $-0x40, %r8d
subl %r8d, %ecx
movl $0x1, %r8d
shlq %cl, %r8
sarl $0x6, %esi
movslq %esi, %rcx
orq %r8, -0x270(%rbp,%rcx,8)
movl (%rbx), %esi
cmpl $-0x1, %esi
je 0x45ea
leal 0x3f(%rsi), %r8d
testl %esi, %esi
cmovnsl %esi, %r8d
movl %r8d, %r9d
andl $-0x40, %r9d
movl %esi, %ecx
subl %r9d, %ecx
movl $0x1, %r9d
shlq %cl, %r9
sarl $0x6, %r8d
movslq %r8d, %rcx
orq %r9, -0x270(%rbp,%rcx,8)
cmpl %edi, %esi
cmovgl %esi, %edi
movl (%r12), %esi
cmpl $-0x1, %esi
je 0x4626
leal 0x3f(%rsi), %r8d
testl %esi, %esi
cmovnsl %esi, %r8d
movl %r8d, %r9d
andl $-0x40, %r9d
movl %esi, %ecx
subl %r9d, %ecx
movl $0x1, %r9d
shlq %cl, %r9
sarl $0x6, %r8d
movslq %r8d, %rcx
orq %r9, -0x270(%rbp,%rcx,8)
cmpl %edi, %esi
cmovgl %esi, %edi
movq %r10, -0x90(%rbp)
movl $0x1, %r14d
movl %eax, %ecx
shlq %cl, %r14
movl %eax, %r15d
shrl $0x6, %r15d
orq %r14, -0x270(%rbp,%r15,8)
cmpl %edi, %eax
cmovgl %eax, %edi
testl %edx, %edx
movl %r11d, -0x68(%rbp)
je 0x4694
movl -0x130(%rbp), %eax
cmpl $-0x1, %eax
je 0x468b
leal 0x3f(%rax), %edx
testl %eax, %eax
cmovnsl %eax, %edx
movl %edx, %esi
andl $-0x40, %esi
movl %eax, %ecx
subl %esi, %ecx
movl $0x1, %esi
shlq %cl, %rsi
sarl $0x6, %edx
movslq %edx, %rcx
orq %rsi, -0x2f0(%rbp,%rcx,8)
cmpl %edi, %eax
cmovgl %eax, %edi
leaq -0x2f0(%rbp), %rdx
jmp 0x4696
xorl %edx, %edx
movl -0x48(%rbp), %r13d
testl %r13d, %r13d
jne 0x46a9
cmpl $0x0, -0x38(%rbp)
je 0x4992
movq $0x3, -0xc0(%rbp)
movq $0x0, -0xb8(%rbp)
testl %edi, %edi
js 0x4fa6
incl %edi
leaq -0x270(%rbp), %rsi
movq %rdx, -0x98(%rbp)
xorl %ecx, %ecx
leaq -0xc0(%rbp), %r8
callq 0x2290
testl %eax, %eax
js 0x476e
je 0x4967
testq %r14, -0x270(%rbp,%r15,8)
movq -0x60(%rbp), %r13
je 0x4796
xorl %eax, %eax
callq 0x6a8d
testl %eax, %eax
jne 0x50f3
cmpl $0x0, -0xf4(%rbp)
je 0x4796
movl -0xf8(%rbp), %edi
testl %edi, %edi
js 0x5112
movl $0xfff, %edx            # imm = 0xFFF
leaq -0x1500(%rbp), %rsi
callq 0x2200
testl %eax, %eax
jle 0x474d
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, -0x1500(%rbp,%rax)
movl $0xc, %r14d
movl -0x2c(%rbp), %eax
movl %eax, %r15d
movl -0x38(%rbp), %eax
movl %r15d, -0x2c(%rbp)
testl %r14d, %r14d
jne 0x4983
jmp 0x497d
cmpl $-0x1, %eax
jne 0x5036
callq 0x2080
movl (%rax), %edi
movl $0xd, %r14d
cmpl $0x4, %edi
movq -0x60(%rbp), %r13
je 0x4983
jmp 0x5055
movl -0x50(%rbp), %eax
xorl %r14d, %r14d
cmpl $-0x1, %eax
je 0x4802
leal 0x3f(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq -0x270(%rbp,%rcx,8), %rcx
btq %rax, %rcx
jae 0x4802
leaq -0x50(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl $0xfffff, %edx          # imm = 0xFFFFF
callq 0x33a9
testl %eax, %eax
js 0x4ab9
je 0x4b54
movl %eax, %r15d
movl %eax, %eax
movq -0x40(%rbp), %rdx
movb $0x0, (%rdx,%rax)
movq (%r13), %rdi
movl $0x1, %esi
movl %r15d, %ecx
callq 0x38fe
movq %rax, (%r13)
movl %r15d, %r14d
movq %r12, %rdi
movq %rbx, %rdx
movl (%rdi), %eax
cmpl $-0x1, %eax
je 0x486f
leal 0x3f(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq -0x270(%rbp,%rcx,8), %rcx
btq %rax, %rcx
jae 0x486f
movq -0x40(%rbp), %rsi
movl $0xfffff, %edx          # imm = 0xFFFFF
callq 0x34dd
testl %eax, %eax
js 0x4ae3
je 0x4c36
movl %eax, %r15d
movl %eax, %eax
movq -0x40(%rbp), %rdx
movb $0x0, (%rdx,%rax)
movq (%r13), %rdi
movl $0x3, %esi
movl %r15d, %ecx
callq 0x38fe
movq %rax, (%r13)
addl %r15d, %r14d
movq %rbx, %rdx
movl (%rdx), %eax
cmpl $-0x1, %eax
je 0x48d8
leal 0x3f(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq -0x270(%rbp,%rcx,8), %rcx
btq %rax, %rcx
jae 0x48d8
movq %rdx, %rdi
movq -0x40(%rbp), %rsi
movl $0xfffff, %edx          # imm = 0xFFFFF
callq 0x34dd
testl %eax, %eax
js 0x4b2a
je 0x4c53
movl %eax, %ecx
movq -0x40(%rbp), %rdx
movb $0x0, (%rdx,%rcx)
movq (%r13), %rdi
movl $0x2, %esi
movl %eax, %ecx
callq 0x38fe
movq %rax, (%r13)
movl $0x1, %r14d
movq %rbx, %rdx
movslq 0x50(%rdx), %rax
cmpq %rax, -0xd0(%rbp)
movl %r14d, -0x54(%rbp)
jle 0x49a2
movl -0x2c(%rbp), %eax
movl %eax, %r15d
xorl %eax, %eax
cmpq $0x0, -0x98(%rbp)
je 0x4b0d
movl -0x130(%rbp), %ecx
cmpl $-0x1, %ecx
movl -0x54(%rbp), %ebx
je 0x4b10
leal 0x3f(%rcx), %edx
testl %ecx, %ecx
cmovnsl %ecx, %edx
sarl $0x6, %edx
movslq %edx, %rdx
movq -0x98(%rbp), %rsi
movq (%rsi,%rdx,8), %rdx
btq %rcx, %rdx
jae 0x4b10
leaq -0x130(%rbp), %rdi
movq %r13, %rsi
callq 0x3b71
testl %eax, %eax
js 0x4eb1
movl $0xc, %r14d
cmpl $0x0, -0xf0(%rbp)
jne 0x4759
jmp 0x4b10
orl -0x64(%rbp), %r13d
xorl %eax, %eax
movl $0xc, %r14d
orl -0x38(%rbp), %r13d
movq -0x60(%rbp), %r13
jne 0x4983
xorl %r14d, %r14d
movl %eax, -0x38(%rbp)
cmpl $0xc, %r14d
jne 0x450f
jmp 0x4eee
movq $0x5, -0xc0(%rbp)
jmp 0x46b4
movq 0x8(%rdx), %rdi
addq $0x8, %rdx
movq %rdx, -0x88(%rbp)
movq -0x80(%rbp), %rsi
callq 0x2320
testl %eax, %eax
jne 0x4e4a
leaq 0xc937(%rip), %rdi      # 0x11300
movl $0x41, %esi
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x22f0
movl %eax, %r15d
testl %eax, %eax
js 0x4e68
movl %r15d, %edi
callq 0x21e0
xorl %r14d, %r14d
testl %eax, %eax
jne 0x51d4
testl %r15d, %r15d
movq -0x88(%rbp), %rdi
js 0x4753
leaq -0x80(%rbp), %rsi
callq 0x9d6d
movq %r12, %rdi
cmpl $0x0, (%r12)
js 0x4a23
callq 0x32d0
movq %r12, %rdi
leaq 0xc8d6(%rip), %rsi      # 0x11300
xorl %edx, %edx
callq 0x318f
testl %eax, %eax
jne 0x521a
movl -0x44(%rbp), %edi
movl $0xa, %esi
callq 0x2280
testl %eax, %eax
movl $0x1, %eax
movl -0x38(%rbp), %ecx
cmovnel %eax, %ecx
movl %ecx, -0x38(%rbp)
leaq -0x130(%rbp), %rdi
movq %r13, %rsi
callq 0x3f2d
testl %eax, %eax
js 0x4e9c
movl $0xc, %r14d
cmpl $0x0, -0xf0(%rbp)
jne 0x4753
testq %r13, %r13
je 0x4c6e
movq (%r13), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x4aa6
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
subl (%rcx), %r15d
movq 0x8(%r13), %rcx
testq %rcx, %rcx
je 0x4ab1
movl (%rcx), %eax
subl %eax, %r15d
jmp 0x4c71
callq 0x2080
movl (%rax), %edi
movl $0xd, %r14d
cmpl $0x4, %edi
je 0x4753
movl -0x2c(%rbp), %ecx
movl %ecx, %r15d
cmpl $0xb, %edi
je 0x4759
jmp 0x540a
callq 0x2080
movl (%rax), %edi
movl $0xd, %r14d
cmpl $0x4, %edi
je 0x4753
movl -0x2c(%rbp), %ecx
movl %ecx, %r15d
cmpl $0xb, %edi
je 0x4759
jmp 0x5412
movl -0x54(%rbp), %ebx
cmpl $0x0, -0x48(%rbp)
je 0x4c19
orl %ebx, %eax
je 0x4ebf
xorl %r14d, %r14d
jmp 0x4759
callq 0x2080
movl (%rax), %edi
movl $0xd, %r14d
cmpl $0x4, %edi
je 0x4753
movl -0x2c(%rbp), %ecx
movl %ecx, %r15d
cmpl $0xb, %edi
je 0x4759
jmp 0x5477
leaq 0x6561(%rip), %rdi      # 0xb0bc
movl $0x30d, %esi            # imm = 0x30D
leaq 0x6e1d(%rip), %rdx      # 0xb984
xorl %eax, %eax
callq 0x9a2c
cmpl $0x0, -0x48(%rbp)
je 0x538e
movl -0x50(%rbp), %ecx
movq $-0x2, %rax
rolq %cl, %rax
leal 0x3f(%rcx), %edx
testl %ecx, %ecx
cmovnsl %ecx, %edx
sarl $0x6, %edx
movslq %edx, %rcx
andq %rax, -0x270(%rbp,%rcx,8)
leaq -0x50(%rbp), %rdi
callq 0x3039
cmpl $-0x1, -0x50(%rbp)
jne 0x5331
movq %r12, %rdi
movl (%r12), %ecx
testl %ecx, %ecx
js 0x4bd6
movq $-0x2, %rax
rolq %cl, %rax
shrl $0x6, %ecx
andq %rax, -0x270(%rbp,%rcx,8)
callq 0x32d0
movq %r12, %rdi
movq %rbx, %rdx
movl (%rbx), %ecx
testl %ecx, %ecx
js 0x4c02
movq $-0x2, %rax
rolq %cl, %rax
shrl $0x6, %ecx
andq %rax, -0x270(%rbp,%rcx,8)
movq %rdx, %rdi
callq 0x32d0
movq %rbx, %rdx
movq %r12, %rdi
cmpl $-0x1, (%rdi)
jne 0x5350
cmpl $-0x1, (%rdx)
je 0x4808
jmp 0x536f
cmpl $0x0, -0x38(%rbp)
je 0x4b22
orl %ebx, %eax
movl $0xc, %r14d
je 0x4759
jmp 0x4b22
movl $0xc, %r14d
cmpl $0x0, 0x54(%r12)
movl -0x2c(%rbp), %eax
movl %eax, %r15d
jne 0x4759
jmp 0x53eb
movl $0xc, %r14d
cmpl $0x0, 0x54(%rbx)
movl -0x2c(%rbp), %eax
movl %eax, %r15d
jne 0x4759
jmp 0x5439
xorl %r15d, %r15d
movl -0x68(%rbp), %eax
movq -0xb0(%rbp,%rax,8), %rbx
cmpl $0x0, (%rbx)
js 0x5458
xorps %xmm0, %xmm0
movaps %xmm0, -0x1490(%rbp)
movaps %xmm0, -0x14a0(%rbp)
movaps %xmm0, -0x14b0(%rbp)
movaps %xmm0, -0x14c0(%rbp)
movaps %xmm0, -0x14d0(%rbp)
movaps %xmm0, -0x14e0(%rbp)
movaps %xmm0, -0x14f0(%rbp)
movaps %xmm0, -0x1500(%rbp)
movl (%rbx), %edi
leal 0x3f(%rdi), %eax
testl %edi, %edi
cmovnsl %edi, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %edi, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
orq %rdx, -0x1500(%rbp,%rax,8)
movq $0x0, -0xe0(%rbp)
movq $0x186a0, -0xd8(%rbp) # imm = 0x186A0
incl %edi
leaq -0x1500(%rbp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xe0(%rbp), %r8
callq 0x2290
testl %eax, %eax
js 0x4dd6
je 0x4e34
movq %rbx, %rdi
movq -0x40(%rbp), %rsi
movl $0xfffff, %edx          # imm = 0xFFFFF
callq 0x34dd
testl %eax, %eax
js 0x4df4
je 0x4e0f
movl %eax, %ecx
movq -0x40(%rbp), %rdx
movb $0x0, (%rdx,%rcx)
movq (%r13), %rdi
movl $0x4, %esi
movl %eax, %ecx
callq 0x38fe
movq %rax, (%r13)
xorl %ecx, %ecx
movl $0x0, %esi
testq %rax, %rax
je 0x4d72
movl (%rax), %esi
incl %esi
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x4d7f
movl (%rdx), %ecx
incl %ecx
addl %r15d, %esi
addl %ecx, %esi
xorl %ecx, %ecx
cmpl $0x63, %esi
jle 0x4e1e
xorl %ecx, %ecx
movl $0x0, %esi
testq %rax, %rax
je 0x4d9f
movl (%rax), %esi
incl %esi
testq %rdx, %rdx
je 0x4da8
movl (%rdx), %ecx
incl %ecx
addl %esi, %ecx
leaq 0x630b(%rip), %rdi      # 0xb0bc
movl $0x25b, %esi            # imm = 0x25B
leaq 0x6e7e(%rip), %rdx      # 0xbc3b
xorl %eax, %eax
callq 0x9a2c
callq 0x2080
movl $0xb, (%rax)
movl $0x1, %ecx
jmp 0x4e1e
cmpl $-0x1, %eax
jne 0x5131
callq 0x2080
movl (%rax), %edi
cmpl $0x4, %edi
je 0x4cc0
jmp 0x5150
callq 0x2080
movl (%rax), %edi
movl $0x8, %ecx
cmpl $0x4, %edi
je 0x4e1e
cmpl $0xb, %edi
je 0x4e1e
jmp 0x5212
movl $0x7, %ecx
cmpl $0x0, 0x54(%rbx)
je 0x51f3
testl %ecx, %ecx
je 0x4cc0
cmpl $0x8, %ecx
je 0x4cc0
cmpl $0x7, %ecx
jne 0x4e82
cmpl $0x0, 0x54(%rbx)
movq -0x90(%rbp), %r15
jne 0x4759
jmp 0x48f3
cmpl $-0x1, %eax
jne 0x5196
movq -0x88(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x275e
jmp 0x474d
cmpl $-0x1, %r15d
jne 0x51b5
callq 0x27b1
movl $0xc, %r14d
jmp 0x49f8
callq 0x2080
cmpl $0xb, (%rax)
movq -0x90(%rbp), %r15
je 0x4759
jmp 0x547f
leaq -0x110(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2885
jmp 0x474d
cmpl $-0x1, %eax
jne 0x541a
callq 0x28d5
movl $0xc, %r14d
jmp 0x4759
leaq 0x61eb(%rip), %rdi      # 0xb0bc
leaq 0x679a(%rip), %rdx      # 0xb672
movl $0x4b0, %esi            # imm = 0x4B0
xorl %eax, %eax
callq 0x9a2c
movl $0x1, %eax
jmp 0x4f94
cmpl $0x0, -0x190(%rbp)
js 0x4f12
leaq -0x190(%rbp), %rbx
movq %rbx, %rdi
callq 0x32d0
movl 0x34(%rbx), %eax
cmpl 0x30(%rbx), %eax
jne 0x53ad
cmpl $0x0, -0x1f0(%rbp)
js 0x4f36
leaq -0x1f0(%rbp), %rbx
movq %rbx, %rdi
callq 0x32d0
movl 0x34(%rbx), %eax
cmpl 0x30(%rbx), %eax
jne 0x53cc
cmpl $0x0, -0x13c(%rbp)
je 0x4f4b
leaq -0x178(%rbp), %rdi
callq 0x7803
cmpl $0x0, -0x19c(%rbp)
je 0x4f60
leaq -0x1d8(%rbp), %rdi
callq 0x7803
movq %r13, %rdi
callq 0x399f
movq -0x40(%rbp), %rdi
callq 0x2060
leaq -0x80(%rbp), %rdi
callq 0x9d0f
leaq -0x130(%rbp), %rdi
callq 0x2f86
movq -0xc8(%rbp), %rdi
callq 0x2060
xorl %eax, %eax
addq $0x14d8, %rsp           # imm = 0x14D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6967(%rip), %rdi      # 0xb914
leaq 0x6108(%rip), %rsi      # 0xb0bc
leaq 0x689c(%rip), %rcx      # 0xb857
movl $0x2d3, %edx            # imm = 0x2D3
callq 0x21b0
leaq 0x693a(%rip), %rdi      # 0xb906
leaq 0x60e9(%rip), %rsi      # 0xb0bc
leaq 0x687d(%rip), %rcx      # 0xb857
movl $0x29a, %edx            # imm = 0x29A
callq 0x21b0
leaq 0x69d1(%rip), %rdi      # 0xb9bc
leaq 0x60ca(%rip), %rsi      # 0xb0bc
leaq 0x6cc0(%rip), %rcx      # 0xbcb9
movl $0x4e7, %edx            # imm = 0x4E7
callq 0x21b0
movq -0x1500(%rbp), %rdx
leaq -0x500(%rbp), %rdi
movl %r12d, %esi
callq 0x8efd
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq -0x500(%rbp), %rsi
callq 0x549e
movl $0x1, %edi
callq 0x2350
leaq 0x7a7a(%rip), %rdi      # 0xcab7
leaq 0x6078(%rip), %rsi      # 0xb0bc
leaq 0x680c(%rip), %rcx      # 0xb857
movl $0x2d8, %edx            # imm = 0x2D8
callq 0x21b0
movq %rax, %rsi
callq 0x2918
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq -0x500(%rbp), %rsi
callq 0x549e
xorl %edi, %edi
callq 0x2350
leaq 0x665b(%rip), %rdi      # 0xb6d9
leaq 0x6037(%rip), %rsi      # 0xb0bc
leaq 0x661b(%rip), %rcx      # 0xb6a7
movl $0x484, %edx            # imm = 0x484
callq 0x21b0
leaq 0x663c(%rip), %rdi      # 0xb6d9
leaq 0x6018(%rip), %rsi      # 0xb0bc
leaq 0x65fc(%rip), %rcx      # 0xb6a7
movl $0x482, %edx            # imm = 0x482
callq 0x21b0
leaq 0x661d(%rip), %rdi      # 0xb6d9
leaq 0x5ff9(%rip), %rsi      # 0xb0bc
leaq 0x65dd(%rip), %rcx      # 0xb6a7
movl $0x487, %edx            # imm = 0x487
callq 0x21b0
leaq 0x65fe(%rip), %rdi      # 0xb6d9
leaq 0x5fda(%rip), %rsi      # 0xb0bc
leaq 0x65be(%rip), %rcx      # 0xb6a7
movl $0x483, %edx            # imm = 0x483
callq 0x21b0
leaq 0x6827(%rip), %rdi      # 0xb921
leaq 0x5fbb(%rip), %rsi      # 0xb0bc
leaq 0x674f(%rip), %rcx      # 0xb857
movl $0x2e6, %edx            # imm = 0x2E6
callq 0x21b0
leaq 0x6828(%rip), %rdi      # 0xb941
leaq 0x5f9c(%rip), %rsi      # 0xb0bc
leaq 0x6730(%rip), %rcx      # 0xb857
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x21b0
leaq 0x797f(%rip), %rdi      # 0xcab7
leaq 0x5f7d(%rip), %rsi      # 0xb0bc
leaq 0x6a8f(%rip), %rcx      # 0xbbd5
movl $0x234, %edx            # imm = 0x234
callq 0x21b0
movq %rax, %rsi
callq 0x2844
leaq 0x5f5d(%rip), %rdi      # 0xb0bc
leaq 0x6522(%rip), %rdx      # 0xb688
movl $0x47c, %esi            # imm = 0x47C
xorl %eax, %eax
callq 0x9a2c
jmp 0x502c
leaq 0x5f3e(%rip), %rdi      # 0xb0bc
leaq 0x6562(%rip), %rdx      # 0xb6e7
movl $0x490, %esi            # imm = 0x490
xorl %eax, %eax
callq 0x9a2c
jmp 0x5019
leaq 0x791a(%rip), %rdi      # 0xcab7
leaq 0x5f18(%rip), %rsi      # 0xb0bc
leaq 0x66ac(%rip), %rcx      # 0xb857
movl $0x36b, %edx            # imm = 0x36B
callq 0x21b0
leaq 0x6800(%rip), %rdi      # 0xb9bc
leaq 0x5ef9(%rip), %rsi      # 0xb0bc
leaq 0x668d(%rip), %rcx      # 0xb857
movl $0x379, %edx            # imm = 0x379
callq 0x21b0
leaq 0x68ee(%rip), %rdi      # 0xbac9
leaq 0x5eda(%rip), %rsi      # 0xb0bc
leaq 0x666e(%rip), %rcx      # 0xb857
movl $0x37f, %edx            # imm = 0x37F
callq 0x21b0
leaq 0x6a32(%rip), %rdi      # 0xbc2c
leaq 0x5ebb(%rip), %rsi      # 0xb0bc
leaq 0x69cd(%rip), %rcx      # 0xbbd5
movl $0x257, %edx            # imm = 0x257
callq 0x21b0
movq %rax, %rsi
callq 0x2803
leaq 0x68b7(%rip), %rdi      # 0xbad8
leaq 0x5e94(%rip), %rsi      # 0xb0bc
leaq 0x6628(%rip), %rcx      # 0xb857
movl $0x39c, %edx            # imm = 0x39C
callq 0x21b0
leaq 0x6613(%rip), %rdi      # 0xb853
leaq 0x5e75(%rip), %rsi      # 0xb0bc
leaq 0x6609(%rip), %rcx      # 0xb857
movl $0x27a, %edx            # imm = 0x27A
callq 0x21b0
leaq 0x663f(%rip), %rdi      # 0xb89e
leaq 0x5e56(%rip), %rsi      # 0xb0bc
leaq 0x65ea(%rip), %rcx      # 0xb857
movl $0x27e, %edx            # imm = 0x27E
callq 0x21b0
leaq 0x6634(%rip), %rdi      # 0xb8b2
leaq 0x5e37(%rip), %rsi      # 0xb0bc
leaq 0x65cb(%rip), %rcx      # 0xb857
movl $0x280, %edx            # imm = 0x280
callq 0x21b0
leaq 0x6622(%rip), %rdi      # 0xb8bf
leaq 0x5e18(%rip), %rsi      # 0xb0bc
leaq 0x65ac(%rip), %rcx      # 0xb857
movl $0x285, %edx            # imm = 0x285
callq 0x21b0
leaq 0x6617(%rip), %rdi      # 0xb8d3
leaq 0x5df9(%rip), %rsi      # 0xb0bc
leaq 0x658d(%rip), %rcx      # 0xb857
movl $0x287, %edx            # imm = 0x287
callq 0x21b0
leaq 0x6aa7(%rip), %rdi      # 0xbd82
leaq 0x5dda(%rip), %rsi      # 0xb0bc
leaq 0x69d0(%rip), %rcx      # 0xbcb9
movl $0x4fd, %edx            # imm = 0x4FD
callq 0x21b0
leaq 0x6a9c(%rip), %rdi      # 0xbd96
leaq 0x5dbb(%rip), %rsi      # 0xb0bc
leaq 0x69b1(%rip), %rcx      # 0xbcb9
movl $0x4ff, %edx            # imm = 0x4FF
callq 0x21b0
leaq 0x67b0(%rip), %rdi      # 0xbac9
leaq 0x5d9c(%rip), %rsi      # 0xb0bc
leaq 0x6992(%rip), %rcx      # 0xbcb9
movl $0x502, %edx            # imm = 0x502
callq 0x21b0
leaq 0x667f(%rip), %rdi      # 0xb9b7
leaq 0x5d7d(%rip), %rsi      # 0xb0bc
leaq 0x6511(%rip), %rcx      # 0xb857
movl $0x311, %edx            # imm = 0x311
callq 0x21b0
leaq 0x666e(%rip), %rdi      # 0xb9c5
leaq 0x5d5e(%rip), %rsi      # 0xb0bc
leaq 0x64f2(%rip), %rcx      # 0xb857
movl $0x321, %edx            # imm = 0x321
callq 0x21b0
leaq 0x6667(%rip), %rdi      # 0xb9dd
leaq 0x5d3f(%rip), %rsi      # 0xb0bc
leaq 0x64d3(%rip), %rcx      # 0xb857
movl $0x322, %edx            # imm = 0x322
callq 0x21b0
leaq 0x6615(%rip), %rdi      # 0xb9aa
leaq 0x5d20(%rip), %rsi      # 0xb0bc
leaq 0x64b4(%rip), %rcx      # 0xb857
movl $0x30e, %edx            # imm = 0x30E
callq 0x21b0
leaq 0x67bc(%rip), %rdi      # 0xbb70
leaq 0x5d01(%rip), %rsi      # 0xb0bc
leaq 0x6495(%rip), %rcx      # 0xb857
movl $0x418, %edx            # imm = 0x418
callq 0x21b0
leaq 0x67c8(%rip), %rdi      # 0xbb9b
leaq 0x5ce2(%rip), %rsi      # 0xb0bc
leaq 0x6476(%rip), %rcx      # 0xb857
movl $0x41e, %edx            # imm = 0x41E
callq 0x21b0
leaq 0x662b(%rip), %rdi      # 0xba1d
leaq 0x5cc3(%rip), %rsi      # 0xb0bc
leaq 0x6457(%rip), %rcx      # 0xb857
movl $0x33f, %edx            # imm = 0x33F
callq 0x21b0
movq %rax, %rsi
callq 0x269b
movq %rax, %rsi
callq 0x26dc
leaq 0x5edf(%rip), %rdi      # 0xb300
leaq 0x5c94(%rip), %rsi      # 0xb0bc
leaq 0x6428(%rip), %rcx      # 0xb857
movl $0x3e2, %edx            # imm = 0x3E2
callq 0x21b0
leaq 0x65f4(%rip), %rdi      # 0xba34
leaq 0x5c75(%rip), %rsi      # 0xb0bc
leaq 0x6409(%rip), %rcx      # 0xb857
movl $0x35d, %edx            # imm = 0x35D
callq 0x21b0
leaq 0x6767(%rip), %rdi      # 0xbbc6
leaq 0x5c56(%rip), %rsi      # 0xb0bc
leaq 0x6768(%rip), %rcx      # 0xbbd5
movl $0x225, %edx            # imm = 0x225
callq 0x21b0
movq %rax, %rsi
callq 0x271d
leaq 0x66b8(%rip), %rdi      # 0xbb3e
leaq 0x5c2f(%rip), %rsi      # 0xb0bc
leaq 0x63c3(%rip), %rcx      # 0xb857
movl $0x3d1, %edx            # imm = 0x3D1
callq 0x21b0