// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq 0x3da8(%rip), %rbx      # 0x4fe0
movq (%rbx), %rdi
callq 0x1080
testl %eax, %eax
je 0x1255
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
movq (%rbx), %rsi
leaq 0x10(%rsp), %rdi
callq 0x1d08
movq 0x10(%rsp), %rdi
leaq 0x1deb(%rip), %rsi      # 0x305c
callq 0x1d98
movq %rax, %r14
movl (%rax), %eax
cmpl $0x2, %eax
jb 0x1a10
xorl %edx, %edx
movq %r14, 0x8(%rsp)
movq 0x8(%r14), %r15
movq 0x28(%r14), %r13
movq %r15, %rax
imulq %rdx, %rax
incq %rdx
movq %rdx, (%rsp)
imulq %rdx, %r15
movq (%r13,%rax), %rbx
movq %rbx, %rdi
callq 0x1050
movq %rax, %r14
movq (%r13,%r15), %r15
movq %r15, %rdi
callq 0x1050
leaq (%r14,%rax), %rdi
addq $0x2, %rdi
callq 0x10a0
movq %rax, %rbp
movq %rax, %rdi
leaq 0x1d83(%rip), %rsi      # 0x305f
movq %rbx, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x10e0
leaq 0x1d75(%rip), %rdi      # 0x3065
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1060
testq %r12, %r12
je 0x1581
movq %rbp, %rdi
callq 0x1050
movq %rax, %rbx
cmpl $0xc, %ebx
jb 0x1436
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movq %rbp, %rax
movl %ebx, %edi
movl $0x9e3779b9, %esi       # 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 0x132b
jmp 0x144a
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %ebx, %edi
movq %rbp, %rax
addl %ebx, %ecx
decl %edi
cmpl $0xa, %edi
ja 0x14d9
leaq 0x1ba6(%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 %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(%r12), %r14
movl 0x8(%r14), %eax
decl %eax
andl %ecx, %eax
movq (%r14), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r15
testq %r15, %r15
je 0x1581
subq 0x20(%r14), %r15
movl 0x40(%r15), %eax
cmpq %rax, %rbx
jne 0x157b
movq 0x38(%r15), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x10b0
testl %eax, %eax
je 0x19e3
movq 0x30(%r15), %r15
jmp 0x1552
movl $0x48, %edi
callq 0x10a0
movq %rax, %r14
movq %rbp, (%rax)
movl $0x1, 0x8(%rax)
leaq 0x10(%rax), %r15
movq $0x0, 0x20(%rax)
movq %rbp, 0x38(%rax)
movq %rbp, %rdi
callq 0x1050
movl %eax, 0x40(%r14)
testq %r12, %r12
je 0x15d4
movq 0x10(%r12), %rbx
movq 0x18(%rbx), %rax
movq %r14, 0x10(%rax)
subq 0x20(%rbx), %rax
movq %rax, 0x18(%r14)
movq %r15, 0x18(%rbx)
jmp 0x163a
movq $0x0, 0x18(%r14)
movl $0x1, %edi
movl $0x40, %esi
callq 0x1070
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1cfe
movq %rax, %rbx
movq %r15, 0x18(%rax)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%rbx)
movq $0x10, 0x20(%rbx)
movl $0x1, %edi
movl $0x200, %esi            # imm = 0x200
callq 0x1070
movq %rax, (%rbx)
testq %rax, %rax
je 0x1cfe
movl $0xa0111fe1, 0x38(%rbx) # imm = 0xA0111FE1
movq %r14, %r12
incl 0x10(%rbx)
movq %rbx, 0x10(%r14)
movq %rbp, %rdi
callq 0x1050
cmpl $0xc, %eax
jb 0x176f
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl %eax, %edi
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movsbl (%rbp), %r8d
addl %esi, %r8d
movsbl 0x1(%rbp), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0x2(%rbp), %r8d
shll $0x10, %r8d
movzbl 0x3(%rbp), %esi
shll $0x18, %esi
addl %r8d, %esi
addl %r9d, %esi
movsbl 0x4(%rbp), %r8d
addl %edx, %r8d
movsbl 0x5(%rbp), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0x6(%rbp), %r8d
shll $0x10, %r8d
movzbl 0x7(%rbp), %edx
shll $0x18, %edx
addl %r8d, %edx
addl %r9d, %edx
movsbl 0x8(%rbp), %r8d
movsbl 0x9(%rbp), %r9d
shll $0x8, %r9d
addl %r8d, %r9d
movsbl 0xa(%rbp), %r8d
shll $0x10, %r8d
addl %ecx, %r8d
addl %r9d, %r8d
movzbl 0xb(%rbp), %ecx
shll $0x18, %ecx
addl %r8d, %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, %rbp
addl $-0xc, %edi
cmpl $0xb, %edi
ja 0x1663
jmp 0x1780
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %ecx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %eax, %edi
addl %eax, %ecx
movl %ecx, 0x44(%r14)
decl %edi
cmpl $0xa, %edi
ja 0x1820
leaq 0x1898(%rip), %r8       # 0x3030
movslq (%r8,%rdi,4), %rax
addq %r8, %rax
jmpq *%rax
movzbl 0xa(%rbp), %eax
shll $0x18, %eax
addl %ecx, %eax
movl %eax, 0x44(%r14)
movl %eax, %ecx
movsbl 0x9(%rbp), %eax
shll $0x10, %eax
addl %ecx, %eax
movl %eax, 0x44(%r14)
movl %eax, %ecx
movsbl 0x8(%rbp), %eax
shll $0x8, %eax
addl %ecx, %eax
movl %eax, 0x44(%r14)
movl %eax, %ecx
movzbl 0x7(%rbp), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x6(%rbp), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x5(%rbp), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x4(%rbp), %eax
addl %edx, %eax
movl %eax, %edx
movzbl 0x3(%rbp), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x2(%rbp), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x1(%rbp), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl (%rbp), %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
movl %ecx, 0x44(%r14)
movq 0x10(%r12), %rdx
movl 0x8(%rdx), %eax
decl %eax
andl %ecx, %eax
movq (%rdx), %rdx
shlq $0x4, %rax
movl 0x8(%rdx,%rax), %ecx
incl %ecx
movl %ecx, 0x8(%rdx,%rax)
movq (%rdx,%rax), %rsi
movq %rsi, 0x30(%r14)
movq $0x0, 0x28(%r14)
testq %rsi, %rsi
je 0x18bb
movq %r15, 0x18(%rsi)
addq %rax, %rdx
movq %r15, (%rdx)
movl 0xc(%rdx), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %ecx
movq 0x8(%rsp), %r14
jb 0x19fd
cmpl $0x1, 0x34(%rbx)
je 0x19fd
movl 0x8(%rbx), %esi
addl %esi, %esi
shlq $0x4, %rsi
movl $0x1, %edi
callq 0x1070
testq %rax, %rax
je 0x1cfe
movq %rax, %r14
movl 0x10(%rbx), %esi
movb 0xc(%rbx), %cl
incb %cl
movl 0x8(%rbx), %r8d
leal -0x1(,%r8,2), %r9d
movl %r9d, %eax
andl %esi, %eax
shrl %cl, %esi
cmpl $0x1, %eax
sbbl $-0x1, %esi
movl %esi, 0x28(%rbx)
movl $0x0, 0x2c(%rbx)
movq (%rbx), %rdi
testq %r8, %r8
je 0x19a9
xorl %ecx, %ecx
xorl %r10d, %r10d
movq %r10, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r11
testq %r11, %r11
je 0x19a1
movq 0x20(%r11), %rbp
movl 0x34(%r11), %edx
andl %r9d, %edx
shlq $0x4, %rdx
leaq (%r14,%rdx), %r13
movl 0x8(%r14,%rdx), %eax
incl %eax
movl %eax, 0x8(%r14,%rdx)
cmpl %esi, %eax
jbe 0x197c
incl %ecx
movl %ecx, 0x2c(%rbx)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r13)
movq $0x0, 0x18(%r11)
movq (%r13), %rax
movq %rax, 0x20(%r11)
testq %rax, %rax
je 0x1995
movq %r11, 0x18(%rax)
movq %r11, (%r13)
movq %rbp, %r11
testq %rbp, %rbp
jne 0x194c
incq %r10
cmpq %r8, %r10
jne 0x193c
callq 0x1030
movq (%r15), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %r14, (%rax)
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x19f1
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq 0x8(%rsp), %r14
movq (%rsp), %rdx
jb 0x1a01
movl $0x1, 0x34(%rax)
jmp 0x1a01
incl 0x8(%r15)
movq %rbp, %rdi
callq 0x1030
jmp 0x19f8
movl $0x0, 0x30(%rax)
movq 0x8(%rsp), %r14
movq (%rsp), %rdx
movl (%r14), %eax
leal -0x1(%rax), %ecx
cmpq %rcx, %rdx
jb 0x128b
cmpl $0x0, 0x4(%r14)
je 0x1a4e
cmpq $0x0, 0x20(%r14)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x1a45
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 0x1a2a
movq 0x28(%r14), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0x10(%rsp), %rdi
callq 0x1030
movq 0x3579(%rip), %rbx      # 0x4fe0
movq (%rbx), %rdi
callq 0x1080
testl %eax, %eax
je 0x1258
testq %r12, %r12
je 0x1244
leaq 0x10(%r12), %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 0x1acb
movl $0x1, %r8d
movq %rdi, %r9
movq 0x10(%r9), %r9
testq %r9, %r9
je 0x1ad3
movq 0x10(%r12), %r10
addq 0x20(%r10), %r9
leal (%rdx,%r8), %r10d
incl %r10d
incl %r8d
cmpl $0x1, %r10d
jne 0x1aa4
movl %eax, %r8d
jmp 0x1ad6
xorl %r8d, %r8d
movq %rdi, %r9
jmp 0x1ad6
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 0x1b2b
testb %r11b, %r11b
je 0x1b48
movq 0x10(%r12), %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 0x1b5c
movq 0x10(%r9), %r15
addq %r15, %r11
testq %r15, %r15
movq %r11, %r14
cmoveq %r15, %r14
decl %r10d
jmp 0x1b75
testb %r11b, %r11b
je 0x1bbd
movq 0x10(%r9), %r14
testq %r14, %r14
je 0x1b6c
movq 0x10(%r12), %r8
addq 0x20(%r8), %r14
jmp 0x1b6f
movq 0x10(%rdi), %r11
testq %r11, %r11
je 0x1b7d
movq 0x10(%r12), %r14
addq 0x20(%r14), %r11
jmp 0x1b80
movq 0x10(%rdi), %r14
addq %r14, %r11
testq %r14, %r14
cmoveq %r14, %r11
jmp 0x1b80
xorl %r14d, %r14d
decl %r10d
xorl %r8d, %r8d
movq %rdi, %r11
movq %r9, %r15
jmp 0x1b89
xorl %r11d, %r11d
decl %r8d
movq %r9, %r14
movq %rdi, %r15
testq %rcx, %rcx
je 0x1ba6
movq 0x10(%r12), %rdi
movq 0x20(%rdi), %rdi
movq %r15, %r9
subq %rdi, %r9
movq %r9, 0x10(%rcx)
subq %rdi, %rcx
jmp 0x1bab
movq %r15, %rbx
xorl %ecx, %ecx
movq %rcx, 0x8(%r15)
movq %r11, %rdi
movq %r14, %r9
movq %r15, %rcx
jmp 0x1adb
movq %r9, %rdi
testq %r9, %r9
jne 0x1a97
movq $0x0, 0x10(%rcx)
cmpl $0x1, %esi
jbe 0x1bf1
addl %eax, %eax
testq %rbx, %rbx
jne 0x1a8a
movq $0x0, 0x10
xorl %ecx, %ecx
xorl %ebx, %ebx
movq 0x10(%r12), %rax
movq %rcx, 0x18(%rax)
testq %rbx, %rbx
je 0x1244
subq 0x20(%rax), %rbx
leaq 0x1463(%rip), %r14      # 0x3071
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 0x1c39
cmpq $0x0, 0x20(%rbx)
je 0x1ce4
movq 0x10(%r13), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rax
subq %rax, %rsi
cmpq %rsi, %rbx
jne 0x1c55
leaq (%rcx,%rax), %rsi
movq %rsi, 0x18(%rdx)
movq 0x20(%rbx), %rdx
movq %rdx, %r12
testq %rcx, %rcx
je 0x1c69
movq %rdx, 0x10(%rcx,%rax)
movq %r13, %r12
movq 0x10(%r12), %rax
testq %rdx, %rdx
je 0x1c7c
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 0x1ca3
addq %rcx, %rdx
movq 0x30(%rbx), %rcx
movq %rcx, (%rdx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
testq %rcx, %rcx
je 0x1cb4
movq %rdx, 0x20(%rcx)
testq %rdx, %rdx
je 0x1cbd
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 0x1c11
jmp 0x1244
movq 0x10(%r13), %rax
movq (%rax), %rdi
callq 0x1030
movq 0x10(%r13), %rdi
callq 0x1030
xorl %r12d, %r12d
jmp 0x1cc0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x10f0