// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/count_word_pairs.c
// Function: main
int main() {

	char* line;
	int len, i;
	UT_array* words;
	word_pair_t* pairs = NULL;
	word_pair_t* current_pair = NULL;
	word_pair_t* tmp = NULL;

	while (!feof(stdin)) {
		len = ap_getline(&line, stdin);
		words = split_new(line, " \n");

		char** first = NULL;
		char** second = NULL;
		size_t concat_len = 0;
		char* pair_concat;

		/* if there are at least two words on this line... */
		if (utarray_len(words) >= 2) {
			/* get each pair */
			for (i = 0; i < utarray_len(words) - 1; i++) {
				first = (char**)utarray_eltptr(words, i);
				second = (char**)utarray_eltptr(words, i+1);

				/* malloc a new string and sprintf pair into it */
				concat_len = strlen(*first) + 1 + strlen(*second) + 1;
				pair_concat = (char*)malloc(concat_len);
				sprintf(pair_concat, "%s %s", *first, *second);
				printf("pair: '%s'\n", pair_concat);

				/* check if this key is present */
				HASH_FIND_STR(pairs, pair_concat, current_pair);
				if (current_pair != NULL) {
					current_pair->count++;
					free(pair_concat); /* no longer needed */
				}
				else {
					current_pair = (word_pair_t*)malloc(sizeof(word_pair_t));
					current_pair->pair = pair_concat;
					current_pair->count = 1;
					HASH_ADD_KEYPTR(hh, pairs, current_pair->pair,
							strlen(current_pair->pair), current_pair);
				}
			}
		}
		utarray_free(words);
		free(line);
	}

	HASH_SORT(pairs, compare_count);

	HASH_ITER(hh, pairs, current_pair, tmp) {
		printf("%s: %d\n", current_pair->pair, current_pair->count);
		HASH_DEL(pairs, current_pair);
		free(current_pair->pair);
		free(current_pair);
	}

	return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x3da8(%rip), %rax      # 0x4fe0
xorl %ebp, %ebp
movq (%rax), %rdi
movq %rax, %rbx
callq 0x1080
testl %eax, %eax
jne 0x1a9a
movq (%rbx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x1d48
movq 0x20(%rsp), %rdi
leaq 0x1df6(%rip), %rsi      # 0x305c
callq 0x1dd0
movq %rax, %r14
movl (%rax), %eax
cmpl $0x2, %eax
jb 0x1a44
xorl %edx, %edx
movq %r14, 0x8(%rsp)
leal -0x1(%rax), %ecx
cmpq %rcx, %rdx
jae 0x1a44
movq 0x8(%r14), %r15
movq 0x28(%r14), %r12
movq %r15, %rax
imulq %rdx, %rax
incq %rdx
movq %rdx, 0x10(%rsp)
imulq %rdx, %r15
movq (%r12,%rax), %r13
movq %r13, %rdi
callq 0x1050
movq %rax, %rbx
movq (%r12,%r15), %r15
movq %r15, %rdi
callq 0x1050
leaq (%rbx,%rax), %rdi
addq $0x2, %rdi
callq 0x10a0
movq %rax, %rbx
movq %rax, %rdi
leaq 0x1d83(%rip), %rsi      # 0x305f
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x10e0
leaq 0x1d75(%rip), %rdi      # 0x3065
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1060
testq %rbp, %rbp
je 0x158f
movq %rbx, %rdi
callq 0x1050
movq %rax, %r13
leaq 0xb(%rbx), %rax
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %r13d, %edi
cmpl $0xc, %edi
jb 0x1438
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), %r15d
shll $0x8, %r15d
movsbl -0x5(%rax), %r12d
shll $0x10, %r12d
movzbl -0x4(%rax), %r14d
shll $0x18, %r14d
addl %r12d, %r14d
addl %r11d, %edx
addl %r15d, %edx
addl %r14d, %edx
movsbl -0x3(%rax), %r11d
movsbl -0x2(%rax), %r14d
shll $0x8, %r14d
movsbl -0x1(%rax), %r15d
shll $0x10, %r15d
movzbl (%rax), %r12d
shll $0x18, %r12d
addl %r15d, %r12d
addl %r11d, %ecx
addl %r14d, %ecx
addl %r12d, %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 0x1324
addl %r13d, %ecx
decl %edi
cmpl $0xa, %edi
ja 0x14c9
leaq 0x1bb7(%rip), %r8       # 0x3004
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
jmpq *%rdi
movzbl -0x1(%rax), %edi
shll $0x18, %edi
addl %ecx, %edi
movl %edi, %ecx
movsbl -0x2(%rax), %edi
shll $0x10, %edi
addl %ecx, %edi
movl %edi, %ecx
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 %ecx, %esi
subl %edx, %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(%rbp), %r15
movl 0x8(%r15), %eax
decl %eax
andl %ecx, %eax
movq (%r15), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r12
testq %r12, %r12
je 0x154c
subq 0x20(%r15), %r12
jmp 0x154f
xorl %r12d, %r12d
testq %r12, %r12
je 0x158f
movl 0x40(%r12), %eax
cmpq %rax, %r13
jne 0x1576
movq 0x38(%r12), %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x10b0
testl %eax, %eax
je 0x17b9
movq 0x30(%r12), %rax
movl $0x0, %r12d
testq %rax, %rax
je 0x154f
subq 0x20(%r15), %rax
movq %rax, %r12
jmp 0x154f
pushq $0x48
popq %rdi
callq 0x10a0
movq %rax, %r15
movq %rbx, (%rax)
movl $0x1, 0x8(%rax)
leaq 0x10(%rax), %r14
andq $0x0, 0x20(%rax)
movq %rbx, 0x38(%rax)
movq %rbx, %rdi
callq 0x1050
movl %eax, 0x40(%r15)
testq %rbp, %rbp
movq %r14, (%rsp)
je 0x15e5
movq %rbp, 0x18(%rsp)
movq 0x10(%rbp), %r13
movq 0x18(%r13), %rax
movq %r15, 0x10(%rax)
subq 0x20(%r13), %rax
movq %rax, 0x18(%r15)
movq %r14, 0x18(%r13)
jmp 0x164e
andq $0x0, 0x18(%r15)
pushq $0x1
popq %r14
movq %r14, %rdi
pushq $0x40
popq %rsi
callq 0x1070
movq %rax, 0x10(%r15)
testq %rax, %rax
je 0x1d3d
movq %rax, %r13
movq (%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 %r14, %rdi
callq 0x1070
movq %rax, (%r13)
testq %rax, %rax
je 0x1d3d
movl $0xa0111fe1, 0x38(%r13) # imm = 0xA0111FE1
movq %r15, 0x18(%rsp)
incl 0x10(%r13)
movq %r13, 0x10(%r15)
movq %rbx, %rdi
callq 0x1050
addq $0xb, %rbx
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl $0xfeedbeef, %esi       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %ecx       # imm = 0x9E3779B9
movl %eax, %edi
cmpl $0xc, %edi
jb 0x178e
movsbl -0xb(%rbx), %r9d
movsbl -0xa(%rbx), %r8d
shll $0x8, %r8d
movsbl -0x9(%rbx), %r11d
shll $0x10, %r11d
movzbl -0x8(%rbx), %r10d
shll $0x18, %r10d
addl %r11d, %r10d
movsbl -0x7(%rbx), %r11d
movsbl -0x6(%rbx), %r14d
shll $0x8, %r14d
movsbl -0x5(%rbx), %r12d
shll $0x10, %r12d
movq %r15, %rbp
movzbl -0x4(%rbx), %r15d
shll $0x18, %r15d
addl %r12d, %r15d
addl %r11d, %ecx
addl %r14d, %ecx
addl %r15d, %ecx
movsbl -0x3(%rbx), %r11d
movsbl -0x2(%rbx), %r14d
shll $0x8, %r14d
addl %r11d, %r14d
movsbl -0x1(%rbx), %r11d
shll $0x10, %r11d
movzbl (%rbx), %r15d
shll $0x18, %r15d
addl %esi, %r11d
addl %r14d, %r11d
addl %r15d, %r11d
movq %rbp, %r15
addl %r9d, %edx
addl %r8d, %edx
addl %r10d, %edx
subl %ecx, %edx
subl %r11d, %edx
movl %r11d, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %r11d, %ecx
subl %esi, %ecx
movl %esi, %edx
shll $0x8, %edx
xorl %ecx, %edx
subl %esi, %r11d
subl %edx, %r11d
movl %edx, %ecx
shrl $0xd, %ecx
xorl %r11d, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %r8d
shrl $0xc, %r8d
xorl %esi, %r8d
subl %ecx, %edx
subl %r8d, %edx
movl %r8d, %esi
shll $0x10, %esi
xorl %edx, %esi
subl %r8d, %ecx
subl %esi, %ecx
movl %esi, %r9d
shrl $0x5, %r9d
xorl %ecx, %r9d
subl %esi, %r8d
subl %r9d, %r8d
movl %r9d, %edx
shrl $0x3, %edx
xorl %r8d, %edx
subl %r9d, %esi
subl %edx, %esi
movl %edx, %ecx
shll $0xa, %ecx
xorl %esi, %ecx
subl %edx, %r9d
subl %ecx, %r9d
movl %ecx, %esi
shrl $0xf, %esi
xorl %r9d, %esi
movl %esi, 0x44(%rbp)
addl $-0xc, %edi
addq $0xc, %rbx
jmp 0x1673
addl %eax, %esi
decl %edi
cmpl $0xa, %edi
movq 0x18(%rsp), %rbp
ja 0x1a3b
leaq 0x1889(%rip), %r8       # 0x3030
movslq (%r8,%rdi,4), %rax
addq %r8, %rax
jmpq *%rax
movq (%rsp), %rdi
jmp 0x186c
incl 0x8(%r12)
movq %rbx, %rdi
callq 0x1030
jmp 0x1a29
movq (%rsp), %rdi
jmp 0x1843
movq (%rsp), %rdi
jmp 0x1856
movq (%rsp), %rdi
jmp 0x184b
movq (%rsp), %rdi
jmp 0x1822
movq (%rsp), %rdi
jmp 0x1861
movq (%rsp), %rdi
jmp 0x1838
movq (%rsp), %rdi
jmp 0x182d
movzbl -0x1(%rbx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, 0x44(%r15)
movl %eax, %esi
movsbl -0x2(%rbx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movq (%rsp), %rdi
movsbl -0x3(%rbx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, 0x44(%r15)
movl %eax, %esi
movzbl -0x4(%rbx), %eax
shll $0x18, %eax
addl %ecx, %eax
movl %eax, %ecx
movsbl -0x5(%rbx), %eax
shll $0x10, %eax
addl %ecx, %eax
movl %eax, %ecx
movsbl -0x6(%rbx), %eax
shll $0x8, %eax
addl %ecx, %eax
movl %eax, %ecx
movsbl -0x7(%rbx), %eax
addl %ecx, %eax
movl %eax, %ecx
movzbl -0x8(%rbx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x9(%rbx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0xa(%rbx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0xb(%rbx), %eax
addl %edx, %eax
movl %eax, %edx
subl %ecx, %edx
subl %esi, %edx
movl %esi, %eax
shrl $0xd, %eax
xorl %edx, %eax
subl %esi, %ecx
subl %eax, %ecx
movl %eax, %edx
shll $0x8, %edx
xorl %ecx, %edx
subl %eax, %esi
subl %edx, %esi
movl %edx, %ecx
shrl $0xd, %ecx
xorl %esi, %ecx
subl %edx, %eax
subl %ecx, %eax
movl %ecx, %esi
shrl $0xc, %esi
xorl %eax, %esi
subl %ecx, %edx
subl %esi, %edx
movl %esi, %eax
shll $0x10, %eax
xorl %edx, %eax
subl %esi, %ecx
subl %eax, %ecx
movl %eax, %edx
shrl $0x5, %edx
xorl %ecx, %edx
subl %eax, %esi
subl %edx, %esi
movl %edx, %ecx
shrl $0x3, %ecx
xorl %esi, %ecx
subl %edx, %eax
subl %ecx, %eax
movl %ecx, %esi
shll $0xa, %esi
xorl %eax, %esi
addl %esi, %ecx
subl %ecx, %edx
shrl $0xf, %esi
xorl %edx, %esi
movl %esi, 0x44(%r15)
movq 0x10(%rbp), %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(%r15)
andq $0x0, 0x28(%r15)
testq %rsi, %rsi
je 0x190b
movq %rdi, 0x18(%rsi)
addq %rax, %rcx
movq %rdi, (%rcx)
imull $0xa, 0xc(%rcx), %eax
addl $0xa, %eax
cmpl %eax, %edx
jb 0x1a29
cmpl $0x1, 0x34(%r13)
je 0x1a29
movq %rdi, %r14
movl 0x8(%r13), %esi
addl %esi, %esi
shlq $0x4, %rsi
pushq $0x1
popq %rdi
callq 0x1070
testq %rax, %rax
je 0x1d3d
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 0x19ea
movq %r10, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r11
testq %r11, %r11
je 0x19e5
movq 0x20(%r11), %r15
movl 0x34(%r11), %edx
andl %r9d, %edx
shlq $0x4, %rdx
leaq (%rbx,%rdx), %r12
movl 0x8(%rbx,%rdx), %eax
incl %eax
movl %eax, 0x8(%rbx,%rdx)
cmpl %esi, %eax
jbe 0x19c6
incl %ecx
movl %ecx, 0x2c(%r13)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r12)
andq $0x0, 0x18(%r11)
movq (%r12), %rax
movq %rax, 0x20(%r11)
testq %rax, %rax
je 0x19dc
movq %r11, 0x18(%rax)
movq %r11, (%r12)
movq %r15, %r11
jmp 0x1991
incq %r10
jmp 0x1981
callq 0x1030
movq (%r14), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %rbx, (%rax)
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x1a25
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rdx
jb 0x1a33
movl $0x1, 0x34(%rax)
jmp 0x1a33
andl $0x0, 0x30(%rax)
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rdx
movl (%r14), %eax
jmp 0x1280
movq (%rsp), %rdi
jmp 0x1874
cmpl $0x0, 0x4(%r14)
je 0x1a7c
cmpq $0x0, 0x20(%r14)
je 0x1a73
xorl %ebx, %ebx
movl %eax, %eax
cmpq %rax, %rbx
jae 0x1a73
movq 0x8(%r14), %rdi
imulq %rbx, %rdi
addq 0x28(%r14), %rdi
callq *0x20(%r14)
incq %rbx
movl (%r14), %eax
jmp 0x1a54
movq 0x28(%r14), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0x20(%rsp), %rdi
callq 0x1030
movq 0x354b(%rip), %rax      # 0x4fe0
jmp 0x123a
testq %rbp, %rbp
je 0x1c22
leaq 0x10(%rbp), %rcx
pushq $0x1
popq %rax
movl %eax, %esi
movl %eax, %edx
testl %esi, %esi
je 0x1c0e
movl %edx, %edi
negl %edi
xorl %esi, %esi
movq %rcx, %r10
xorl %ecx, %ecx
xorl %r8d, %r8d
testq %r10, %r10
je 0x1be8
incl %esi
movl %eax, %r9d
movq %r10, %rbx
leal (%rdi,%r9), %r11d
cmpl $0x1, %r11d
je 0x1af5
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x1afa
movq 0x10(%rbp), %r11
addq 0x20(%r11), %rbx
incl %r9d
jmp 0x1ad5
movl %edx, %r9d
jmp 0x1afc
xorl %ebx, %ebx
movl %edx, %r11d
testl %r11d, %r11d
setne %r15b
testq %rbx, %rbx
setne %r14b
andb %r15b, %r14b
testl %r9d, %r9d
je 0x1b4f
testb %r14b, %r14b
je 0x1b6b
movq 0x10(%rbp), %r14
movq 0x20(%r14), %r14
movq %r10, %r15
subq %r14, %r15
movq %rbx, %r12
subq %r14, %r12
movl 0x8(%r15), %r15d
cmpl 0x8(%r12), %r15d
jle 0x1b7e
movq 0x10(%rbx), %r12
addq %r12, %r14
testq %r12, %r12
movq %r14, %r15
cmoveq %r12, %r15
decl %r11d
jmp 0x1b97
testb %r14b, %r14b
je 0x1be0
movq 0x10(%rbx), %r15
testq %r15, %r15
je 0x1b8e
movq 0x10(%rbp), %r9
addq 0x20(%r9), %r15
jmp 0x1b91
movq 0x10(%r10), %r14
testq %r14, %r14
je 0x1b9f
movq 0x10(%rbp), %r15
addq 0x20(%r15), %r14
jmp 0x1ba2
movq 0x10(%r10), %r15
addq %r15, %r14
testq %r15, %r15
cmoveq %r15, %r14
jmp 0x1ba2
xorl %r15d, %r15d
decl %r11d
xorl %r9d, %r9d
movq %r10, %r14
movq %rbx, %r12
jmp 0x1bab
xorl %r14d, %r14d
decl %r9d
movq %rbx, %r15
movq %r10, %r12
testq %r8, %r8
je 0x1bc7
movq 0x10(%rbp), %r10
movq 0x20(%r10), %r10
movq %r12, %rbx
subq %r10, %rbx
movq %rbx, 0x10(%r8)
subq %r10, %r8
jmp 0x1bcd
movq %r12, %rcx
xorl %r8d, %r8d
movq %r8, 0x8(%r12)
movq %r14, %r10
movq %r15, %rbx
movq %r12, %r8
jmp 0x1aff
movq %rbx, %r10
jmp 0x1ac4
andq $0x0, 0x10(%r8)
cmpl $0x1, %esi
ja 0x1c05
movq 0x10(%rbp), %rsi
movq %r8, 0x18(%rsi)
movq %rcx, %rbp
subq 0x20(%rsi), %rbp
xorl %esi, %esi
jmp 0x1c07
movl %eax, %esi
addl %edx, %edx
jmp 0x1aae
movq %rbp, %r15
testq %rbp, %rbp
je 0x1c22
movq 0x20(%rbp), %rax
movq %rbp, %rbx
movq %r15, %r12
jmp 0x1c29
xorl %eax, %eax
xorl %ebx, %ebx
xorl %r12d, %r12d
leaq 0x1441(%rip), %r14      # 0x3071
testq %rbx, %rbx
je 0x1d2c
movq %rax, %rbp
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1060
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
jne 0x1c60
cmpq $0x0, 0x20(%rbx)
je 0x1d10
movq 0x10(%r12), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rax
subq %rax, %rsi
cmpq %rsi, %rbx
jne 0x1c7d
leaq (%rcx,%rax), %rsi
movq %rsi, 0x18(%rdx)
movq 0x20(%rbx), %rdx
movq %rdx, %r15
testq %rcx, %rcx
je 0x1c91
movq %rdx, 0x10(%rcx,%rax)
movq %r12, %r15
movq 0x10(%r15), %rax
testq %rdx, %rdx
je 0x1ca3
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 0x1cca
addq %rcx, %rdx
movq 0x30(%rbx), %rcx
movq %rcx, (%rdx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
testq %rcx, %rcx
je 0x1cdb
movq %rdx, 0x20(%rcx)
testq %rdx, %rdx
je 0x1ce4
movq %rcx, 0x18(%rdx)
decl 0x10(%rax)
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl $0x0, %eax
movq %rbp, %rbx
movq %r15, %r12
testq %rbp, %rbp
je 0x1c30
jmp 0x1c16
movq 0x10(%r12), %rax
movq (%rax), %rdi
callq 0x1030
movq 0x10(%r12), %rdi
callq 0x1030
xorl %r15d, %r15d
jmp 0x1ce7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdi
callq 0x10f0
nopl (%rax)