// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/ngram_count.c
// Function: main
int main(int argc, char** argv) {

	char* line;
	char* joined;
	int len, n, i, joined_len;
	UT_array* tokens;
	UT_array* token_slice = NULL;
	ngram_count_t* ngrams = NULL;
	ngram_count_t* current_ngram = NULL;
	ngram_count_t* tmp = NULL;

	if (argc != 2) {
		fprintf(stderr, "missing required param n\n");
		exit(-1);
	}

	n = atoi(argv[1]);

	while (!feof(stdin)) {

		/* read a line, split it into tokens */
		len = ap_getline(&line, stdin);
		tokens = split_new(line, " \n");

		/* if we have enough tokens to find an ngram of length n... */
		if (utarray_len(tokens) >= n) {
			/* iterate over each group of n from beginning to end of list */
			for (i = 0; i < utarray_len(tokens) - n + 1; i++) {

				/* make a new array slice, then join to make key */
				token_slice = slice_new(tokens, i, i+n);
				joined_len = join_new(&joined, token_slice, " ");

				/* if we can find a struct with that key in the hash, increment */
				HASH_FIND_STR(ngrams, joined, current_ngram);
				if (current_ngram != NULL) {
					current_ngram->count++;
					free(joined); /* no longer needed */
				}
				/* otherwise, malloc and add to hash */
				else {
					current_ngram = (ngram_count_t*)malloc(sizeof(ngram_count_t));
					current_ngram->gram = joined; /* free this later */
					current_ngram->count = 1;
					HASH_ADD_KEYPTR(hh, ngrams, current_ngram->gram,
							strlen(current_ngram->gram), current_ngram);
				}

				utarray_free(token_slice);
			}
		}

		utarray_free(tokens);
		free(line);

	}

	HASH_SORT(ngrams, compare_count);

	HASH_ITER(hh, ngrams, current_ngram, tmp) {
		printf("%s: %d\n", current_ngram->gram, current_ngram->count);
		HASH_DEL(ngrams, current_ngram);
		free(current_ngram->gram);
		free(current_ngram);
	}

	return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpl $0x2, %edi
jne 0x1e5f
movq 0x8(%rsi), %rdi
callq 0x10e0
movl %eax, %r12d
xorl %r13d, %r13d
movq 0x3d68(%rip), %rax      # 0x4fd8
movq %r12, 0x8(%rsp)
movq (%rax), %rdi
movq %rax, %rbx
callq 0x1080
testl %eax, %eax
jne 0x1bbc
movq (%rbx), %rsi
leaq 0x40(%rsp), %rdi
callq 0x1e84
movq 0x40(%rsp), %rdi
leaq 0x1dd5(%rip), %rsi      # 0x3076
callq 0x1f0c
movq %rax, %rdi
movl (%rax), %eax
cmpl %r12d, %eax
movq %rdi, 0x18(%rsp)
jae 0x1323
cmpl $0x0, 0x4(%rdi)
je 0x1308
cmpq $0x0, 0x20(%rdi)
je 0x12f5
xorl %ebx, %ebx
movl %eax, %eax
cmpq %rax, %rbx
jae 0x12f5
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
imulq %rbx, %rdi
movq 0x18(%rsp), %rax
addq 0x28(%rax), %rdi
movq 0x18(%rsp), %rax
callq *0x20(%rax)
incq %rbx
movq 0x18(%rsp), %rax
movl (%rax), %eax
jmp 0x12c4
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x1030
movq 0x18(%rsp), %rdi
callq 0x1030
movq 0x40(%rsp), %rdi
callq 0x1030
movq 0x3cba(%rip), %rax      # 0x4fd8
jmp 0x1275
xorl %esi, %esi
movl %eax, %ecx
subl %r12d, %ecx
incl %ecx
cmpl %ecx, %esi
jae 0x12b5
leal (%rsi,%r12), %edx
movq %rsi, 0x48(%rsp)
callq 0x208b
movq %rax, %rbp
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
leaq 0x1d29(%rip), %rdx      # 0x3079
callq 0x21f0
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
testq %r13, %r13
je 0x1640
movq %rbp, %r12
movq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x1050
movq %rax, %rbx
leaq 0xb(%r14), %rax
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %ebx, %edi
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
cmpl $0xc, %edi
jb 0x149e
movsbl -0xb(%rax), %r9d
movsbl -0xa(%rax), %r8d
shll $0x8, %r8d
movsbl -0x9(%rax), %r11d
shll $0x10, %r11d
movzbl -0x8(%rax), %r10d
shll $0x18, %r10d
addl %r11d, %r10d
movsbl -0x7(%rax), %r11d
movsbl -0x6(%rax), %ebp
shll $0x8, %ebp
movsbl -0x5(%rax), %r14d
shll $0x10, %r14d
movzbl -0x4(%rax), %r15d
shll $0x18, %r15d
addl %r14d, %r15d
addl %r11d, %edx
addl %ebp, %edx
addl %r15d, %edx
movsbl -0x3(%rax), %r11d
movsbl -0x2(%rax), %ebp
shll $0x8, %ebp
movsbl -0x1(%rax), %r14d
shll $0x10, %r14d
movzbl (%rax), %r15d
shll $0x18, %r15d
addl %r14d, %r15d
addl %r11d, %ecx
addl %ebp, %ecx
addl %r15d, %ecx
addl %r9d, %esi
addl %r8d, %esi
addl %r10d, %esi
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %r8d
shrl $0xd, %r8d
xorl %esi, %r8d
subl %ecx, %edx
subl %r8d, %edx
movl %r8d, %esi
shll $0x8, %esi
xorl %edx, %esi
subl %r8d, %ecx
subl %esi, %ecx
movl %esi, %edx
shrl $0xd, %edx
xorl %ecx, %edx
subl %esi, %r8d
subl %edx, %r8d
movl %edx, %ecx
shrl $0xc, %ecx
xorl %r8d, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %r8d
shll $0x10, %r8d
xorl %esi, %r8d
subl %ecx, %edx
subl %r8d, %edx
movl %r8d, %r9d
shrl $0x5, %r9d
xorl %edx, %r9d
subl %r8d, %ecx
subl %r9d, %ecx
movl %r9d, %esi
shrl $0x3, %esi
xorl %ecx, %esi
subl %r9d, %r8d
subl %esi, %r8d
movl %esi, %edx
shll $0xa, %edx
xorl %r8d, %edx
subl %esi, %r9d
subl %edx, %r9d
movl %edx, %ecx
shrl $0xf, %ecx
xorl %r9d, %ecx
addl $-0xc, %edi
addq $0xc, %rax
jmp 0x1390
addl %ebx, %ecx
decl %edi
cmpl $0xa, %edi
ja 0x1baf
leaq 0x1b52(%rip), %r8       # 0x3004
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
movq %r12, %rbp
jmpq *%rdi
movq 0x8(%rsp), %r12
jmp 0x1573
movq 0x8(%rsp), %r12
jmp 0x154a
movq 0x8(%rsp), %r12
jmp 0x155d
movq 0x8(%rsp), %r12
jmp 0x1552
movq 0x8(%rsp), %r12
jmp 0x1529
movq 0x8(%rsp), %r12
jmp 0x1568
movq 0x8(%rsp), %r12
jmp 0x153f
movq 0x8(%rsp), %r12
jmp 0x1534
movzbl -0x1(%rax), %edi
shll $0x18, %edi
addl %ecx, %edi
movl %edi, %ecx
movq 0x8(%rsp), %r12
movsbl -0x2(%rax), %edi
shll $0x10, %edi
addl %ecx, %edi
movl %edi, %ecx
jmp 0x151e
movq 0x8(%rsp), %r12
movsbl -0x3(%rax), %edi
shll $0x8, %edi
addl %ecx, %edi
movl %edi, %ecx
movzbl -0x4(%rax), %edi
shll $0x18, %edi
addl %edx, %edi
movl %edi, %edx
movsbl -0x5(%rax), %edi
shll $0x10, %edi
addl %edx, %edi
movl %edi, %edx
movsbl -0x6(%rax), %edi
shll $0x8, %edi
addl %edx, %edi
movl %edi, %edx
movsbl -0x7(%rax), %edi
addl %edx, %edi
movl %edi, %edx
movzbl -0x8(%rax), %edi
shll $0x18, %edi
addl %esi, %edi
movl %edi, %esi
movsbl -0x9(%rax), %edi
shll $0x10, %edi
addl %esi, %edi
movl %edi, %esi
movsbl -0xa(%rax), %edi
shll $0x8, %edi
addl %esi, %edi
movl %edi, %esi
movsbl -0xb(%rax), %eax
addl %esi, %eax
movl %eax, %esi
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %eax
shrl $0xd, %eax
xorl %esi, %eax
subl %ecx, %edx
subl %eax, %edx
movl %eax, %esi
shll $0x8, %esi
xorl %edx, %esi
subl %eax, %ecx
subl %esi, %ecx
movl %esi, %edx
shrl $0xd, %edx
xorl %ecx, %edx
subl %esi, %eax
subl %edx, %eax
movl %edx, %ecx
shrl $0xc, %ecx
xorl %eax, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %eax
shll $0x10, %eax
xorl %esi, %eax
subl %ecx, %edx
subl %eax, %edx
movl %eax, %esi
shrl $0x5, %esi
xorl %edx, %esi
subl %eax, %ecx
subl %esi, %ecx
movl %esi, %edx
shrl $0x3, %edx
xorl %ecx, %edx
subl %esi, %eax
subl %edx, %eax
movl %edx, %ecx
shll $0xa, %ecx
xorl %eax, %ecx
addl %ecx, %edx
subl %edx, %esi
shrl $0xf, %ecx
xorl %esi, %ecx
movq 0x10(%r13), %r14
movl 0x8(%r14), %eax
decl %eax
andl %ecx, %eax
movq (%r14), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r15
testq %r15, %r15
je 0x15fe
subq 0x20(%r14), %r15
jmp 0x1601
xorl %r15d, %r15d
testq %r15, %r15
je 0x1640
movl 0x40(%r15), %eax
cmpq %rax, %rbx
jne 0x1628
movq 0x38(%r15), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x10b0
testl %eax, %eax
je 0x1897
movq 0x30(%r15), %rax
movl $0x0, %r15d
testq %rax, %rax
je 0x1601
subq 0x20(%r14), %rax
movq %rax, %r15
jmp 0x1601
pushq $0x48
popq %rdi
callq 0x10a0
movq %rax, %r14
movq 0x28(%rsp), %rdi
movq %rdi, (%rax)
movl $0x1, 0x8(%rax)
leaq 0x10(%rax), %rbx
andq $0x0, 0x20(%rax)
movq %rdi, 0x38(%rax)
callq 0x1050
movl %eax, 0x40(%r14)
testq %r13, %r13
movq %r14, 0x30(%rsp)
movq %rbp, 0x10(%rsp)
movq %rbx, 0x38(%rsp)
je 0x16a3
movq %r13, 0x20(%rsp)
movq 0x10(%r13), %r13
movq 0x18(%r13), %rax
movq %r14, 0x10(%rax)
subq 0x20(%r13), %rax
movq %rax, 0x18(%r14)
movq %rbx, 0x18(%r13)
jmp 0x1716
andq $0x0, 0x18(%r14)
pushq $0x1
popq %rbx
movq %rbx, %rdi
pushq $0x40
popq %rsi
callq 0x1070
movq %rax, %r13
movq 0x30(%rsp), %rax
movq %r13, 0x10(%rax)
testq %r13, %r13
je 0x1e7b
movq 0x38(%rsp), %rax
movq %rax, 0x18(%r13)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r13)
movq $0x10, 0x20(%r13)
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
callq 0x1070
movq %rax, (%r13)
testq %rax, %rax
je 0x1e7b
movl $0xa0111fe1, 0x38(%r13) # imm = 0xA0111FE1
movq 0x30(%rsp), %r14
movq %r14, 0x20(%rsp)
incl 0x10(%r13)
movq %r13, 0x10(%r14)
movl $0xfeedbeef, 0x44(%r14) # imm = 0xFEEDBEEF
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x1050
movq 0x30(%rsp), %r10
movq %rax, %rbp
leaq 0xb(%rbx), %r12
movl $0x9e3779b9, %r14d      # imm = 0x9E3779B9
movl $0xfeedbeef, %r15d      # imm = 0xFEEDBEEF
movl $0x9e3779b9, %ebx       # imm = 0x9E3779B9
cmpl $0xc, %ebp
jb 0x185c
movsbl -0xb(%r12), %ecx
movsbl -0xa(%r12), %eax
shll $0x8, %eax
movsbl -0x9(%r12), %esi
shll $0x10, %esi
movzbl -0x8(%r12), %edx
shll $0x18, %edx
addl %esi, %edx
movsbl -0x7(%r12), %esi
movsbl -0x6(%r12), %edi
shll $0x8, %edi
movsbl -0x5(%r12), %r8d
shll $0x10, %r8d
movzbl -0x4(%r12), %r9d
shll $0x18, %r9d
addl %r8d, %r9d
addl %esi, %ebx
addl %edi, %ebx
addl %r9d, %ebx
movsbl -0x3(%r12), %esi
movsbl -0x2(%r12), %edi
shll $0x8, %edi
addl %esi, %edi
movsbl -0x1(%r12), %esi
shll $0x10, %esi
movzbl (%r12), %r8d
shll $0x18, %r8d
addl %r15d, %esi
addl %edi, %esi
addl %r8d, %esi
addl %ecx, %r14d
addl %eax, %r14d
addl %edx, %r14d
subl %ebx, %r14d
subl %esi, %r14d
movl %esi, %eax
shrl $0xd, %eax
xorl %r14d, %eax
subl %esi, %ebx
subl %eax, %ebx
movl %eax, %ecx
shll $0x8, %ecx
xorl %ebx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %edx
shrl $0xd, %edx
xorl %esi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0xc, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shll $0x10, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %ecx
shrl $0x5, %ecx
xorl %edx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %r14d
shrl $0x3, %r14d
xorl %esi, %r14d
subl %ecx, %eax
subl %r14d, %eax
movl %r14d, %ebx
shll $0xa, %ebx
xorl %eax, %ebx
subl %r14d, %ecx
subl %ebx, %ecx
movl %ebx, %r15d
shrl $0xf, %r15d
xorl %ecx, %r15d
movl %r15d, 0x44(%r10)
addl $-0xc, %ebp
addq $0xc, %r12
jmp 0x1750
movq 0x28(%rsp), %rdi
callq 0x1050
movq 0x30(%rsp), %rdi
addl %eax, %r15d
movl %r15d, 0x44(%rdi)
decl %ebp
cmpl $0xa, %ebp
ja 0x1ba5
leaq 0x17ac(%rip), %rcx      # 0x3030
movslq (%rcx,%rbp,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rbp
jmp 0x1980
incl 0x8(%r15)
movq 0x28(%rsp), %rdi
callq 0x1030
jmp 0x1b56
movq 0x10(%rsp), %rbp
jmp 0x1949
movq 0x10(%rsp), %rbp
jmp 0x1962
movq 0x10(%rsp), %rbp
jmp 0x1953
movq 0x10(%rsp), %rbp
jmp 0x1922
movq 0x10(%rsp), %rbp
jmp 0x1971
movq 0x10(%rsp), %rbp
jmp 0x193c
movq 0x10(%rsp), %rbp
jmp 0x192f
movzbl -0x1(%r12), %eax
shll $0x18, %eax
addl %r15d, %eax
movl %eax, 0x44(%rdi)
movl %eax, %r15d
movsbl -0x2(%r12), %eax
shll $0x10, %eax
addl %r15d, %eax
movl %eax, 0x44(%rdi)
movl %eax, %r15d
movq 0x10(%rsp), %rbp
movsbl -0x3(%r12), %eax
shll $0x8, %eax
addl %r15d, %eax
movl %eax, 0x44(%rdi)
movl %eax, %r15d
movzbl -0x4(%r12), %eax
shll $0x18, %eax
addl %ebx, %eax
movl %eax, %ebx
movsbl -0x5(%r12), %eax
shll $0x10, %eax
addl %ebx, %eax
movl %eax, %ebx
movsbl -0x6(%r12), %eax
shll $0x8, %eax
addl %ebx, %eax
movl %eax, %ebx
movsbl -0x7(%r12), %eax
addl %ebx, %eax
movl %eax, %ebx
movzbl -0x8(%r12), %eax
shll $0x18, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0x9(%r12), %eax
shll $0x10, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0xa(%r12), %eax
shll $0x8, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0xb(%r12), %eax
addl %r14d, %eax
movl %eax, %r14d
subl %ebx, %r14d
subl %r15d, %r14d
movl %r15d, %eax
shrl $0xd, %eax
xorl %r14d, %eax
subl %r15d, %ebx
subl %eax, %ebx
movl %eax, %ecx
shll $0x8, %ecx
xorl %ebx, %ecx
subl %eax, %r15d
subl %ecx, %r15d
movl %ecx, %edx
shrl $0xd, %edx
xorl %r15d, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0xc, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shll $0x10, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %ecx
shrl $0x5, %ecx
xorl %edx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %edx
shrl $0x3, %edx
xorl %esi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shll $0xa, %esi
xorl %eax, %esi
addl %esi, %edx
subl %edx, %ecx
shrl $0xf, %esi
xorl %ecx, %esi
movl %esi, 0x44(%rdi)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rcx
movl 0x8(%rcx), %eax
decl %eax
andl %esi, %eax
movq (%rcx), %rcx
shlq $0x4, %rax
movl 0x8(%rcx,%rax), %edx
incl %edx
movl %edx, 0x8(%rcx,%rax)
movq (%rcx,%rax), %rsi
movq %rsi, 0x30(%rdi)
andq $0x0, 0x28(%rdi)
testq %rsi, %rsi
movq 0x8(%rsp), %r12
movq 0x38(%rsp), %rdi
je 0x1a39
movq %rdi, 0x18(%rsi)
addq %rax, %rcx
movq %rdi, (%rcx)
imull $0xa, 0xc(%rcx), %eax
addl $0xa, %eax
cmpl %eax, %edx
jb 0x1b51
cmpl $0x1, 0x34(%r13)
je 0x1b51
movl 0x8(%r13), %esi
addl %esi, %esi
shlq $0x4, %rsi
pushq $0x1
popq %rdi
callq 0x1070
testq %rax, %rax
je 0x1e7b
movq %rax, %rbx
movl 0x10(%r13), %esi
movb 0xc(%r13), %cl
incb %cl
movl 0x8(%r13), %r8d
leal -0x1(,%r8,2), %r9d
movl %r9d, %eax
andl %esi, %eax
shrl %cl, %esi
cmpl $0x1, %eax
sbbl $-0x1, %esi
movl %esi, 0x28(%r13)
andl $0x0, 0x2c(%r13)
movq (%r13), %rdi
xorl %ecx, %ecx
xorl %r10d, %r10d
cmpq %r8, %r10
je 0x1b12
movq %r10, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r11
testq %r11, %r11
je 0x1b0d
movq 0x20(%r11), %r14
movl 0x34(%r11), %edx
andl %r9d, %edx
shlq $0x4, %rdx
leaq (%rbx,%rdx), %r15
movl 0x8(%rbx,%rdx), %eax
incl %eax
movl %eax, 0x8(%rbx,%rdx)
cmpl %esi, %eax
jbe 0x1af0
incl %ecx
movl %ecx, 0x2c(%r13)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r15)
andq $0x0, 0x18(%r11)
movq (%r15), %rax
movq %rax, 0x20(%r11)
testq %rax, %rax
je 0x1b05
movq %r11, 0x18(%rax)
movq %r11, (%r15)
movq %r14, %r11
jmp 0x1abc
incq %r10
jmp 0x1aac
callq 0x1030
movq 0x38(%rsp), %rax
movq (%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %rbx, (%rax)
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x1b4d
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq 0x20(%rsp), %r13
jb 0x1b56
movl $0x1, 0x34(%rax)
jmp 0x1b56
andl $0x0, 0x30(%rax)
movq 0x20(%rsp), %r13
cmpl $0x0, 0x4(%rbp)
je 0x1b8a
cmpq $0x0, 0x20(%rbp)
je 0x1b81
xorl %ebx, %ebx
movl (%rbp), %eax
cmpq %rax, %rbx
jae 0x1b81
movq 0x8(%rbp), %rdi
imulq %rbx, %rdi
addq 0x28(%rbp), %rdi
callq *0x20(%rbp)
incq %rbx
jmp 0x1b65
movq 0x28(%rbp), %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
movq 0x48(%rsp), %rsi
incl %esi
movq 0x18(%rsp), %rdi
movl (%rdi), %eax
jmp 0x1325
movq 0x10(%rsp), %rbp
jmp 0x198c
movq %r12, %rbp
movq 0x8(%rsp), %r12
jmp 0x157b
testq %r13, %r13
je 0x1d44
leaq 0x10(%r13), %rcx
pushq $0x1
popq %rax
movl %eax, %esi
movl %eax, %edx
testl %esi, %esi
je 0x1d30
movl %edx, %edi
negl %edi
xorl %esi, %esi
movq %rcx, %r10
xorl %ecx, %ecx
xorl %r8d, %r8d
testq %r10, %r10
je 0x1d0a
incl %esi
movl %eax, %r9d
movq %r10, %rbx
leal (%rdi,%r9), %r11d
cmpl $0x1, %r11d
je 0x1c17
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x1c1c
movq 0x10(%r13), %r11
addq 0x20(%r11), %rbx
incl %r9d
jmp 0x1bf7
movl %edx, %r9d
jmp 0x1c1e
xorl %ebx, %ebx
movl %edx, %r11d
testl %r11d, %r11d
setne %r14b
testq %rbx, %rbx
setne %bpl
andb %r14b, %bpl
testl %r9d, %r9d
je 0x1c71
testb %bpl, %bpl
je 0x1c8d
movq 0x10(%r13), %r14
movq 0x20(%r14), %r14
movq %r10, %r15
subq %r14, %r15
movq %rbx, %r12
subq %r14, %r12
movl 0x8(%r15), %ebp
cmpl 0x8(%r12), %ebp
jle 0x1ca0
movq 0x10(%rbx), %r12
addq %r12, %r14
testq %r12, %r12
movq %r14, %r15
cmoveq %r12, %r15
decl %r11d
jmp 0x1cb9
testb %bpl, %bpl
je 0x1d02
movq 0x10(%rbx), %r15
testq %r15, %r15
je 0x1cb0
movq 0x10(%r13), %r9
addq 0x20(%r9), %r15
jmp 0x1cb3
movq 0x10(%r10), %r14
testq %r14, %r14
je 0x1cc1
movq 0x10(%r13), %r15
addq 0x20(%r15), %r14
jmp 0x1cc4
movq 0x10(%r10), %r15
addq %r15, %r14
testq %r15, %r15
cmoveq %r15, %r14
jmp 0x1cc4
xorl %r15d, %r15d
decl %r11d
xorl %r9d, %r9d
movq %r10, %r14
movq %rbx, %r12
jmp 0x1ccd
xorl %r14d, %r14d
decl %r9d
movq %rbx, %r15
movq %r10, %r12
testq %r8, %r8
je 0x1ce9
movq 0x10(%r13), %r10
movq 0x20(%r10), %r10
movq %r12, %rbx
subq %r10, %rbx
movq %rbx, 0x10(%r8)
subq %r10, %r8
jmp 0x1cef
movq %r12, %rcx
xorl %r8d, %r8d
movq %r8, 0x8(%r12)
movq %r14, %r10
movq %r15, %rbx
movq %r12, %r8
jmp 0x1c21
movq %rbx, %r10
jmp 0x1be6
andq $0x0, 0x10(%r8)
cmpl $0x1, %esi
ja 0x1d27
movq 0x10(%r13), %rsi
movq %r8, 0x18(%rsi)
movq %rcx, %r13
subq 0x20(%rsi), %r13
xorl %esi, %esi
jmp 0x1d29
movl %eax, %esi
addl %edx, %edx
jmp 0x1bd0
movq %r13, %r15
testq %r13, %r13
je 0x1d44
movq 0x20(%r13), %rax
movq %r13, %rbx
movq %r15, %r12
jmp 0x1d4b
xorl %eax, %eax
xorl %ebx, %ebx
xorl %r12d, %r12d
leaq 0x1329(%rip), %r14      # 0x307b
testq %rbx, %rbx
je 0x1e4e
movq %rax, %r13
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1060
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
jne 0x1d82
cmpq $0x0, 0x20(%rbx)
je 0x1e32
movq 0x10(%r12), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rax
subq %rax, %rsi
cmpq %rsi, %rbx
jne 0x1d9f
leaq (%rcx,%rax), %rsi
movq %rsi, 0x18(%rdx)
movq 0x20(%rbx), %rdx
movq %rdx, %r15
testq %rcx, %rcx
je 0x1db3
movq %rdx, 0x10(%rcx,%rax)
movq %r12, %r15
movq 0x10(%r15), %rax
testq %rdx, %rdx
je 0x1dc5
movq 0x20(%rax), %rsi
movq %rcx, 0x8(%rdx,%rsi)
movl 0x8(%rax), %ecx
decl %ecx
andl 0x44(%rbx), %ecx
movq (%rax), %rdx
shlq $0x4, %rcx
decl 0x8(%rdx,%rcx)
leaq 0x10(%rbx), %rsi
cmpq %rsi, (%rdx,%rcx)
jne 0x1dec
addq %rcx, %rdx
movq 0x30(%rbx), %rcx
movq %rcx, (%rdx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
testq %rcx, %rcx
je 0x1dfd
movq %rdx, 0x20(%rcx)
testq %rdx, %rdx
je 0x1e06
movq %rcx, 0x18(%rdx)
decl 0x10(%rax)
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl $0x0, %eax
movq %r13, %rbx
movq %r15, %r12
testq %r13, %r13
je 0x1d52
jmp 0x1d38
movq 0x10(%r12), %rax
movq (%rax), %rdi
callq 0x1030
movq 0x10(%r12), %rdi
callq 0x1030
xorl %r15d, %r15d
jmp 0x1e09
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3192(%rip), %rax      # 0x4ff8
movq (%rax), %rcx
leaq 0x11ec(%rip), %rdi      # 0x305c
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
callq 0x1110
pushq $-0x1
popq %rdi
callq 0x1100
nop