// File: /workspace/github_c_makefile_star2_O3/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 0x1e67
movq 0x8(%rsi), %rdi
callq 0x10e0
movl %eax, %ebp
movq 0x3d3c(%rip), %rbx      # 0x4fd8
movq (%rbx), %rdi
callq 0x1080
testl %eax, %eax
je 0x12b9
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
subl %ebp, %eax
movq %rax, 0x38(%rsp)
xorl %r13d, %r13d
movq %rbp, 0x8(%rsp)
movq (%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x1e6c
movq 0x50(%rsp), %rdi
leaq 0x1d90(%rip), %rsi      # 0x3076
callq 0x1efc
movq %rax, %r14
movl (%rax), %eax
cmpl %ebp, %eax
setb %cl
movq 0x38(%rsp), %rdx
addl %eax, %edx
sete %dl
orb %cl, %dl
je 0x136f
cmpl $0x0, 0x4(%r14)
je 0x1341
cmpq $0x0, 0x20(%r14)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x1338
xorl %ebx, %ebx
movq 0x8(%r14), %rdi
imulq %rbx, %rdi
addq 0x28(%r14), %rdi
callq *0x20(%r14)
incq %rbx
movl (%r14), %eax
cmpq %rax, %rbx
jb 0x131d
movq 0x28(%r14), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0x50(%rsp), %rdi
callq 0x1030
movq 0x3c7e(%rip), %rbx      # 0x4fd8
movq (%rbx), %rdi
callq 0x1080
testl %eax, %eax
je 0x12cd
jmp 0x1bdd
xorl %r15d, %r15d
movq %r14, 0x10(%rsp)
leal (%r15,%rbp), %edx
movq %r14, %rdi
movq %r15, 0x20(%rsp)
movl %r15d, %esi
callq 0x208f
leaq 0x30(%rsp), %rdi
movq %rax, 0x18(%rsp)
movq %rax, %rsi
leaq 0x1cda(%rip), %rdx      # 0x3079
callq 0x21ef
movq %r13, %r15
testq %r13, %r13
je 0x1635
movq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x1050
movq %rax, %r13
cmpl $0xc, %r13d
jb 0x14ea
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movq %r12, %rax
movl %r13d, %edi
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movsbl (%rax), %r8d
addl %esi, %r8d
movsbl 0x1(%rax), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0x2(%rax), %r8d
shll $0x10, %r8d
movzbl 0x3(%rax), %esi
shll $0x18, %esi
addl %r8d, %esi
addl %r9d, %esi
movsbl 0x4(%rax), %r8d
addl %edx, %r8d
movsbl 0x5(%rax), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0x6(%rax), %r8d
shll $0x10, %r8d
movzbl 0x7(%rax), %edx
shll $0x18, %edx
addl %r8d, %edx
addl %r9d, %edx
movsbl 0x8(%rax), %r8d
addl %ecx, %r8d
movsbl 0x9(%rax), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0xa(%rax), %r8d
shll $0x10, %r8d
movzbl 0xb(%rax), %ecx
shll $0x18, %ecx
addl %r8d, %ecx
addl %r9d, %ecx
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
addq $0xc, %rax
addl $-0xc, %edi
cmpl $0xb, %edi
ja 0x13df
jmp 0x14ff
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %r13d, %edi
movq %r12, %rax
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
addl %r13d, %ecx
decl %edi
cmpl $0xa, %edi
ja 0x158f
leaq 0x1af0(%rip), %r8       # 0x3004
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
jmpq *%rdi
movzbl 0xa(%rax), %edi
shll $0x18, %edi
addl %ecx, %edi
movl %edi, %ecx
movsbl 0x9(%rax), %edi
shll $0x10, %edi
addl %ecx, %edi
movl %edi, %ecx
movsbl 0x8(%rax), %edi
shll $0x8, %edi
addl %ecx, %edi
movl %edi, %ecx
movzbl 0x7(%rax), %edi
shll $0x18, %edi
addl %edx, %edi
movl %edi, %edx
movsbl 0x6(%rax), %edi
shll $0x10, %edi
addl %edx, %edi
movl %edi, %edx
movsbl 0x5(%rax), %edi
shll $0x8, %edi
addl %edx, %edi
movl %edi, %edx
movsbl 0x4(%rax), %edi
addl %edx, %edi
movl %edi, %edx
movzbl 0x3(%rax), %edi
shll $0x18, %edi
addl %esi, %edi
movl %edi, %esi
movsbl 0x2(%rax), %edi
shll $0x10, %edi
addl %esi, %edi
movl %edi, %esi
movsbl 0x1(%rax), %edi
shll $0x8, %edi
addl %esi, %edi
movl %edi, %esi
movsbl (%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(%r15), %rbx
movl 0x8(%rbx), %eax
decl %eax
andl %ecx, %eax
movq (%rbx), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r14
testq %r14, %r14
je 0x1635
subq 0x20(%rbx), %r14
movl 0x40(%r14), %eax
cmpq %rax, %r13
jne 0x162f
movq 0x38(%r14), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x10b0
testl %eax, %eax
je 0x188e
movq 0x30(%r14), %r14
jmp 0x1606
movl $0x48, %edi
callq 0x10a0
movq %rax, %r14
movq 0x30(%rsp), %r13
movq %r13, (%rax)
movl $0x1, 0x8(%rax)
leaq 0x10(%rax), %rbx
movq $0x0, 0x20(%rax)
movq %r13, 0x38(%rax)
movq %r13, %rdi
callq 0x1050
movl %eax, 0x40(%r14)
testq %r15, %r15
movq %r14, 0x28(%rsp)
je 0x1694
movq 0x10(%r15), %r12
movq 0x18(%r12), %rax
movq %r14, 0x10(%rax)
subq 0x20(%r12), %rax
movq %rax, 0x18(%r14)
movq %rbx, 0x18(%r12)
jmp 0x1704
movq $0x0, 0x18(%r14)
movl $0x1, %edi
movl $0x40, %esi
callq 0x1070
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1e5d
movq %rax, %r12
movq %rbx, 0x18(%rax)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r12)
movq $0x10, 0x20(%r12)
movl $0x1, %edi
movl $0x200, %esi            # imm = 0x200
callq 0x1070
movq %rax, (%r12)
testq %rax, %rax
je 0x1e5d
movl $0xa0111fe1, 0x38(%r12) # imm = 0xA0111FE1
movq 0x28(%rsp), %r14
movq %r14, %r15
movq %rbx, 0x48(%rsp)
movq %r15, 0x40(%rsp)
incl 0x10(%r12)
movq %r12, 0x10(%r14)
movl $0xfeedbeef, 0x44(%r14) # imm = 0xFEEDBEEF
movq %r13, %rdi
callq 0x1050
movq %rax, %rbp
cmpl $0xc, %ebp
movq %r13, %rbx
jb 0x183e
movl $0x9e3779b9, %r14d      # imm = 0x9E3779B9
movl $0xfeedbeef, %r13d      # imm = 0xFEEDBEEF
movq %rbx, %rdi
movl $0x9e3779b9, %r15d      # imm = 0x9E3779B9
movq 0x28(%rsp), %r8
movsbl (%rbx), %eax
addl %r15d, %eax
movsbl 0x1(%rbx), %ecx
shll $0x8, %ecx
addl %eax, %ecx
movsbl 0x2(%rbx), %edx
shll $0x10, %edx
movzbl 0x3(%rbx), %eax
shll $0x18, %eax
addl %edx, %eax
addl %ecx, %eax
movsbl 0x4(%rbx), %ecx
addl %r14d, %ecx
movsbl 0x5(%rbx), %edx
shll $0x8, %edx
addl %ecx, %edx
movsbl 0x6(%rbx), %esi
shll $0x10, %esi
movzbl 0x7(%rbx), %ecx
shll $0x18, %ecx
addl %esi, %ecx
addl %edx, %ecx
movsbl 0x8(%rbx), %edx
movsbl 0x9(%rbx), %esi
shll $0x8, %esi
addl %edx, %esi
movsbl 0xa(%rbx), %r9d
shll $0x10, %r9d
addl %r13d, %r9d
addl %esi, %r9d
movzbl 0xb(%rbx), %edx
shll $0x18, %edx
addl %r9d, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0xd, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shll $0x8, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %ecx
shrl $0xd, %ecx
xorl %edx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %edx
shrl $0xc, %edx
xorl %esi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shll $0x10, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shrl $0x5, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %r15d
shrl $0x3, %r15d
xorl %edx, %r15d
subl %eax, %esi
subl %r15d, %esi
movl %r15d, %r14d
shll $0xa, %r14d
xorl %esi, %r14d
subl %r15d, %eax
subl %r14d, %eax
movl %r14d, %r13d
shrl $0xf, %r13d
xorl %eax, %r13d
movl %r13d, 0x44(%r8)
addq $0xc, %rbx
addl $-0xc, %ebp
cmpl $0xb, %ebp
ja 0x1750
jmp 0x1853
movl $0x9e3779b9, %r15d      # imm = 0x9E3779B9
movl $0xfeedbeef, %r13d      # imm = 0xFEEDBEEF
movl $0x9e3779b9, %r14d      # imm = 0x9E3779B9
movq %rbx, %rdi
callq 0x1050
movq 0x28(%rsp), %r8
addl %r13d, %eax
movl %eax, 0x44(%r8)
decl %ebp
cmpl $0xa, %ebp
ja 0x1bce
leaq 0x17ba(%rip), %rdx      # 0x3030
movslq (%rdx,%rbp,4), %rcx
addq %rdx, %rcx
movq 0x40(%rsp), %r13
jmpq *%rcx
movq 0x8(%rsp), %rbp
jmp 0x196b
incl 0x8(%r14)
movq 0x30(%rsp), %rdi
callq 0x1030
movq %r15, %r13
jmp 0x1b5a
movq 0x8(%rsp), %rbp
jmp 0x193a
movq 0x8(%rsp), %rbp
jmp 0x1951
movq 0x8(%rsp), %rbp
jmp 0x1944
movq 0x8(%rsp), %rbp
jmp 0x1913
movq 0x8(%rsp), %rbp
jmp 0x195e
movq 0x8(%rsp), %rbp
jmp 0x192d
movq 0x8(%rsp), %rbp
jmp 0x1920
movzbl 0xa(%rbx), %ecx
shll $0x18, %ecx
addl %eax, %ecx
movl %ecx, 0x44(%r8)
movl %ecx, %eax
movsbl 0x9(%rbx), %ecx
shll $0x10, %ecx
addl %eax, %ecx
movl %ecx, 0x44(%r8)
movl %ecx, %eax
movq 0x8(%rsp), %rbp
movsbl 0x8(%rbx), %ecx
shll $0x8, %ecx
addl %eax, %ecx
movl %ecx, 0x44(%r8)
movl %ecx, %eax
movzbl 0x7(%rbx), %ecx
shll $0x18, %ecx
addl %r14d, %ecx
movl %ecx, %r14d
movsbl 0x6(%rbx), %ecx
shll $0x10, %ecx
addl %r14d, %ecx
movl %ecx, %r14d
movsbl 0x5(%rbx), %ecx
shll $0x8, %ecx
addl %r14d, %ecx
movl %ecx, %r14d
movsbl 0x4(%rbx), %ecx
addl %r14d, %ecx
movl %ecx, %r14d
movzbl 0x3(%rbx), %ecx
shll $0x18, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl 0x2(%rbx), %ecx
shll $0x10, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl 0x1(%rbx), %ecx
shll $0x8, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl (%rbx), %ecx
addl %r15d, %ecx
movl %ecx, %r15d
subl %r14d, %r15d
subl %eax, %r15d
movl %eax, %ecx
shrl $0xd, %ecx
xorl %r15d, %ecx
subl %eax, %r14d
subl %ecx, %r14d
movl %ecx, %edx
shll $0x8, %edx
xorl %r14d, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0xd, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shrl $0xc, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %ecx
shll $0x10, %ecx
xorl %edx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %edx
shrl $0x5, %edx
xorl %esi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0x3, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %edi
shll $0xa, %edi
xorl %ecx, %edi
addl %edi, %esi
subl %esi, %edx
shrl $0xf, %edi
xorl %edx, %edi
movl %edi, 0x44(%r8)
movq 0x10(%r13), %rcx
movl 0x8(%rcx), %eax
decl %eax
andl %edi, %eax
movq (%rcx), %rdx
shlq $0x4, %rax
movl 0x8(%rdx,%rax), %ecx
incl %ecx
movl %ecx, 0x8(%rdx,%rax)
movq (%rdx,%rax), %rsi
movq %rsi, 0x30(%r8)
movq $0x0, 0x28(%r8)
testq %rsi, %rsi
movq 0x48(%rsp), %rdi
je 0x1a19
movq %rdi, 0x18(%rsi)
addq %rax, %rdx
movq %rdi, (%rdx)
movl 0xc(%rdx), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %ecx
jb 0x1b5a
cmpl $0x1, 0x34(%r12)
je 0x1b5a
movl 0x8(%r12), %esi
addl %esi, %esi
shlq $0x4, %rsi
movl $0x1, %edi
callq 0x1070
testq %rax, %rax
je 0x1e5d
movq %rax, %rbx
movl 0x10(%r12), %esi
movb 0xc(%r12), %cl
incb %cl
movl 0x8(%r12), %r8d
leal -0x1(,%r8,2), %r9d
movl %r9d, %eax
andl %esi, %eax
shrl %cl, %esi
cmpl $0x1, %eax
sbbl $-0x1, %esi
movl %esi, 0x28(%r12)
movl $0x0, 0x2c(%r12)
movq (%r12), %rdi
testq %r8, %r8
je 0x1b0e
xorl %ecx, %ecx
xorl %r10d, %r10d
movq %r10, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r11
testq %r11, %r11
je 0x1b06
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 0x1ae3
incl %ecx
movl %ecx, 0x2c(%r12)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r15)
movq $0x0, 0x18(%r11)
movq (%r15), %rax
movq %rax, 0x20(%r11)
testq %rax, %rax
je 0x1afb
movq %r11, 0x18(%rax)
movq %r11, (%r15)
movq %r14, %r11
testq %r14, %r14
jne 0x1ab3
incq %r10
cmpq %r8, %r10
jne 0x1aa3
callq 0x1030
movq 0x48(%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 0x1b53
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
jb 0x1b69
movl $0x1, 0x34(%rax)
jmp 0x1b69
movl $0x0, 0x30(%rax)
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
cmpl $0x0, 0x4(%r12)
je 0x1bab
cmpq $0x0, 0x20(%r12)
je 0x1ba1
cmpl $0x0, (%r12)
je 0x1ba1
xorl %ebx, %ebx
movq 0x8(%r12), %rdi
imulq %rbx, %rdi
addq 0x28(%r12), %rdi
callq *0x20(%r12)
incq %rbx
movl (%r12), %eax
cmpq %rax, %rbx
jb 0x1b82
movq 0x28(%r12), %rdi
callq 0x1030
movq %r12, %rdi
callq 0x1030
incl %r15d
movl (%r14), %eax
movq 0x38(%rsp), %rcx
addl %eax, %ecx
cmpl %ecx, %r15d
jb 0x1377
jmp 0x1303
movq 0x40(%rsp), %r13
movq 0x8(%rsp), %rbp
jmp 0x1974
testq %r13, %r13
je 0x12a8
leaq 0x10(%r13), %rbx
movl $0x1, %eax
movq %rbx, %rdi
movl %eax, %edx
negl %edx
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %esi, %esi
testl %eax, %eax
je 0x1c2f
movl $0x1, %r8d
movq %rdi, %r9
movq 0x10(%r9), %r9
testq %r9, %r9
je 0x1c37
movq 0x10(%r13), %r10
addq 0x20(%r10), %r9
leal (%rdx,%r8), %r10d
incl %r10d
incl %r8d
cmpl $0x1, %r10d
jne 0x1c09
movl %eax, %r8d
jmp 0x1c3a
xorl %r8d, %r8d
movq %rdi, %r9
jmp 0x1c3a
xorl %r9d, %r9d
incl %esi
movl %eax, %r10d
testl %r10d, %r10d
setne %bpl
testq %r9, %r9
setne %r11b
andb %bpl, %r11b
testl %r8d, %r8d
je 0x1c8e
testb %r11b, %r11b
je 0x1caa
movq 0x10(%r13), %r11
movq 0x20(%r11), %r11
movq %rdi, %r14
subq %r11, %r14
movq %r9, %r15
subq %r11, %r15
movl 0x8(%r14), %ebp
cmpl 0x8(%r15), %ebp
jle 0x1cbd
movq 0x10(%r9), %r15
addq %r15, %r11
testq %r15, %r15
movq %r11, %r14
cmoveq %r15, %r14
decl %r10d
jmp 0x1cd6
testb %r11b, %r11b
je 0x1d1d
movq 0x10(%r9), %r14
testq %r14, %r14
je 0x1ccd
movq 0x10(%r13), %r8
addq 0x20(%r8), %r14
jmp 0x1cd0
movq 0x10(%rdi), %r11
testq %r11, %r11
je 0x1cde
movq 0x10(%r13), %r14
addq 0x20(%r14), %r11
jmp 0x1ce1
movq 0x10(%rdi), %r14
addq %r14, %r11
testq %r14, %r14
cmoveq %r14, %r11
jmp 0x1ce1
xorl %r14d, %r14d
decl %r10d
xorl %r8d, %r8d
movq %rdi, %r11
movq %r9, %r15
jmp 0x1cea
xorl %r11d, %r11d
decl %r8d
movq %r9, %r14
movq %rdi, %r15
testq %rcx, %rcx
je 0x1d06
movq 0x10(%r13), %rdi
movq 0x20(%rdi), %rdi
movq %r15, %r9
subq %rdi, %r9
movq %r9, 0x10(%rcx)
subq %rdi, %rcx
jmp 0x1d0b
movq %r15, %rbx
xorl %ecx, %ecx
movq %rcx, 0x8(%r15)
movq %r11, %rdi
movq %r14, %r9
movq %r15, %rcx
jmp 0x1c3f
movq %r9, %rdi
testq %r9, %r9
jne 0x1bfc
movq $0x0, 0x10(%rcx)
cmpl $0x1, %esi
jbe 0x1d51
addl %eax, %eax
testq %rbx, %rbx
jne 0x1bef
movq $0x0, 0x10
xorl %ecx, %ecx
xorl %ebx, %ebx
movq 0x10(%r13), %rax
movq %rcx, 0x18(%rax)
testq %rbx, %rbx
je 0x12a8
subq 0x20(%rax), %rbx
leaq 0x130e(%rip), %r14      # 0x307b
movq %rbx, %r13
movq 0x20(%rbx), %r15
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1060
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
jne 0x1d98
cmpq $0x0, 0x20(%rbx)
je 0x1e43
movq 0x10(%r13), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rax
subq %rax, %rsi
cmpq %rsi, %rbx
jne 0x1db4
leaq (%rcx,%rax), %rsi
movq %rsi, 0x18(%rdx)
movq 0x20(%rbx), %rdx
movq %rdx, %r12
testq %rcx, %rcx
je 0x1dc8
movq %rdx, 0x10(%rcx,%rax)
movq %r13, %r12
movq 0x10(%r12), %rax
testq %rdx, %rdx
je 0x1ddb
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 0x1e02
addq %rcx, %rdx
movq 0x30(%rbx), %rcx
movq %rcx, (%rdx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
testq %rcx, %rcx
je 0x1e13
movq %rdx, 0x20(%rcx)
testq %rdx, %rdx
je 0x1e1c
movq %rcx, 0x18(%rdx)
decl 0x10(%rax)
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movq %r15, %rbx
movq %r12, %r13
testq %r15, %r15
jne 0x1d70
jmp 0x12a8
movq 0x10(%r13), %rax
movq (%rax), %rdi
callq 0x1030
movq 0x10(%r13), %rdi
callq 0x1030
xorl %r12d, %r12d
jmp 0x1e1f
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1100
callq 0x1150