// File: /workspace/github_c_makefile_star2_O3/aparrish[P]rwet-examples-c/markov_gen.c
// Function: markov_gen_feed
void markov_gen_feed(markov_gen_t* mg, const char* line) {
	UT_array* tokens;
	UT_array* token_slice;
	ngram_t* current_ngram;
	char** next_tok;
	char* joined;
	int i, token_len, joined_len;

	tokens = split_new(line, " \n");
	token_len = utarray_len(tokens);

	/* skip if this line has fewer than n tokens */
	if (token_len < mg->n) {
		utarray_free(tokens);
		return;
	}

	/* iterate over n-length slices of array */
	for (i = 0; i < token_len - (mg->n); i++) {
		token_slice = slice_new(tokens, i, i+(mg->n));
		joined_len = join_new(&joined, token_slice, " ");

		next_tok = (char**)utarray_eltptr(tokens, i+(mg->n));

		HASH_FIND_STR(mg->ngrams, joined, current_ngram);
		/* if this n-gram is already in the struct, push the next token */
		if (current_ngram != NULL) {
			utarray_push_back(current_ngram->possible_nexts, next_tok);
			free(joined);
			utarray_free(token_slice);
		}
		/* otherwise, malloc a new n-gram struct and init with relevant info */
		else {
			current_ngram = (ngram_t*)malloc(sizeof(ngram_t));
			/* need to store slice as well */
			current_ngram->ngram_key = joined;
			current_ngram->ngram = token_slice;
			utarray_new(current_ngram->possible_nexts, &ut_str_icd);
			utarray_push_back(current_ngram->possible_nexts, next_tok);
			HASH_ADD_KEYPTR(hh, mg->ngrams, current_ngram->ngram_key,
					strlen(current_ngram->ngram_key), current_ngram);
		}
		/* if this is the first ngram of the line, add to beginnings */
		if (i == 0) {
			utarray_push_back(mg->beginnings, &current_ngram);
		} 

	}

	utarray_free(tokens);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x18e6(%rip), %rsi      # 0x30ac
movq %rax, %rdi
callq 0x135c
movq %rax, %r13
movl (%rax), %eax
movl (%rbx), %edx
movl %eax, 0x1c(%rsp)
cmpl %edx, %eax
jge 0x182f
cmpl $0x0, 0x4(%r13)
je 0x1819
cmpl $0x0, 0x1c(%rsp)
je 0x1810
cmpq $0x0, 0x20(%r13)
je 0x1810
xorl %ebx, %ebx
movq 0x8(%r13), %rdi
imulq %rbx, %rdi
addq 0x28(%r13), %rdi
callq *0x20(%r13)
incq %rbx
movl (%r13), %eax
cmpq %rax, %rbx
jb 0x17f4
movq 0x28(%r13), %rdi
callq 0x1030
movq %r13, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
jle 0x226f
xorl %r14d, %r14d
movq %r13, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
addl %r14d, %edx
movq %r13, %rdi
movl %r14d, %esi
callq 0x14ef
movq %rax, %rbp
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
leaq 0x184e(%rip), %rdx      # 0x30b0
callq 0x164f
movslq (%rbx), %rax
movq %r14, (%rsp)
movslq %r14d, %r12
addq %rax, %r12
cmpl (%r13), %r12d
jae 0x1885
imulq 0x8(%r13), %r12
addq 0x28(%r13), %r12
jmp 0x1888
xorl %r12d, %r12d
movq $0x0, 0x10(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x1b82
movq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x1060
cmpl $0xc, %eax
jb 0x19db
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movq %r13, %rcx
movl %eax, %r8d
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movsbl (%rcx), %r9d
addl %edi, %r9d
movsbl 0x1(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x2(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x3(%rcx), %edi
shll $0x18, %edi
addl %r9d, %edi
addl %r10d, %edi
movsbl 0x4(%rcx), %r9d
addl %esi, %r9d
movsbl 0x5(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x6(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x7(%rcx), %esi
shll $0x18, %esi
addl %r9d, %esi
addl %r10d, %esi
movsbl 0x8(%rcx), %r9d
addl %edx, %r9d
movsbl 0x9(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0xa(%rcx), %r9d
shll $0x10, %r9d
movzbl 0xb(%rcx), %edx
shll $0x18, %edx
addl %r9d, %edx
addl %r10d, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %r9d
shrl $0xd, %r9d
xorl %edi, %r9d
subl %edx, %esi
subl %r9d, %esi
movl %r9d, %edi
shll $0x8, %edi
xorl %esi, %edi
subl %r9d, %edx
subl %edi, %edx
movl %edi, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %edi, %r9d
subl %esi, %r9d
movl %esi, %edx
shrl $0xc, %edx
xorl %r9d, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %r9d
shll $0x10, %r9d
xorl %edi, %r9d
subl %edx, %esi
subl %r9d, %esi
movl %r9d, %r10d
shrl $0x5, %r10d
xorl %esi, %r10d
subl %r9d, %edx
subl %r10d, %edx
movl %r10d, %edi
shrl $0x3, %edi
xorl %edx, %edi
subl %r10d, %r9d
subl %edi, %r9d
movl %edi, %esi
shll $0xa, %esi
xorl %r9d, %esi
subl %edi, %r10d
subl %esi, %r10d
movl %esi, %edx
shrl $0xf, %edx
xorl %r10d, %edx
addq $0xc, %rcx
addl $-0xc, %r8d
cmpl $0xb, %r8d
ja 0x18ce
jmp 0x19f0
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl %eax, %r8d
movq %r13, %rcx
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
addl %eax, %edx
decl %r8d
cmpl $0xa, %r8d
ja 0x217d
leaq 0x1622(%rip), %r9       # 0x3028
movslq (%r9,%r8,4), %rax
addq %r9, %rax
jmpq *%rax
movq 0x8(%rsp), %r8
jmp 0x1aba
movq 0x8(%rsp), %r8
jmp 0x1a91
movq 0x8(%rsp), %r8
jmp 0x1aa4
movq 0x8(%rsp), %r8
jmp 0x1a99
movq 0x8(%rsp), %r8
jmp 0x1a70
movq 0x8(%rsp), %r8
jmp 0x1aaf
movq 0x8(%rsp), %r8
jmp 0x1a86
movq 0x8(%rsp), %r8
jmp 0x1a7b
movzbl 0xa(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x9(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movq 0x8(%rsp), %r8
movsbl 0x8(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movzbl 0x7(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x6(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x5(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x4(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
movzbl 0x3(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x2(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x1(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, %edi
movsbl (%rcx), %eax
addl %edi, %eax
movl %eax, %edi
subl %esi, %edi
subl %edx, %edi
movl %edx, %eax
shrl $0xd, %eax
xorl %edi, %eax
subl %edx, %esi
subl %eax, %esi
movl %eax, %ecx
shll $0x8, %ecx
xorl %esi, %ecx
subl %eax, %edx
subl %ecx, %edx
movl %ecx, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %ecx, %eax
subl %esi, %eax
movl %esi, %edx
shrl $0xc, %edx
xorl %eax, %edx
subl %esi, %ecx
subl %edx, %ecx
movl %edx, %eax
shll $0x10, %eax
xorl %ecx, %eax
subl %edx, %esi
subl %eax, %esi
movl %eax, %ecx
shrl $0x5, %ecx
xorl %esi, %ecx
subl %eax, %edx
subl %ecx, %edx
movl %ecx, %esi
shrl $0x3, %esi
xorl %edx, %esi
subl %ecx, %eax
subl %esi, %eax
movl %esi, %edx
shll $0xa, %edx
xorl %eax, %edx
addl %edx, %esi
subl %esi, %ecx
shrl $0xf, %edx
xorl %ecx, %edx
movq 0x18(%r8), %rcx
movl 0x8(%rcx), %eax
decl %eax
andl %edx, %eax
movq (%rcx), %rdx
shlq $0x4, %rax
movq (%rdx,%rax), %rax
testq %rax, %rax
je 0x1b82
movq 0x20(%rcx), %rcx
xorl %r14d, %r14d
subq %rcx, %r14
leaq (%rax,%r14), %r15
movq %r15, 0x10(%rsp)
movl 0x48(%rax,%r14), %ebx
movq %r13, %rdi
callq 0x1060
cmpq %rbx, %rax
jne 0x1b79
movq 0x40(%r15), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x10c0
testl %eax, %eax
je 0x1e33
movq 0x38(%r15), %rax
testq %rax, %rax
jne 0x1b47
movl $0x50, %edi
callq 0x10b0
movq %rax, %r13
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %r14
movq %r14, (%rax)
movq %rbp, 0x8(%rax)
movl $0x1, %edi
movl $0x30, %esi
callq 0x1080
movq %rax, %rbx
movq %rax, 0x10(%r13)
movups 0x320b(%rip), %xmm0     # 0x4dc8
movups %xmm0, 0x8(%rax)
movups 0x3210(%rip), %xmm0     # 0x4dd8
movups %xmm0, 0x18(%rax)
movl $0x8, 0x4(%rax)
movl $0x40, %edi
callq 0x10b0
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x22c2
movq %rax, %rbp
movl $0x1, (%rbx)
movq (%r12), %rdi
testq %rdi, %rdi
je 0x1c03
callq 0x1130
jmp 0x1c05
xorl %eax, %eax
movq 0x28(%rsp), %rbx
movq %rax, (%rbp)
movq $0x0, 0x28(%r13)
movq %r14, 0x40(%r13)
movq %r14, %rdi
callq 0x1060
movl %eax, 0x48(%r13)
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x1c51
movq 0x18(%rax), %r12
movq 0x18(%r12), %rax
movq %r13, 0x10(%rax)
subq 0x20(%r12), %rax
movq %rax, 0x20(%r13)
leaq 0x18(%r13), %rax
movq %rax, 0x18(%r12)
jmp 0x1cc7
movq %r13, 0x8(%rbx)
movq $0x0, 0x20(%r13)
movl $0x1, %edi
movl $0x40, %esi
callq 0x1080
movq %rax, 0x18(%r13)
testq %rax, %rax
je 0x22c2
movq %rax, %r12
leaq 0x18(%r13), %rax
movq %rax, 0x18(%r12)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r12)
movq $0x18, 0x20(%r12)
movl $0x1, %edi
movl $0x200, %esi            # imm = 0x200
callq 0x1080
movq %rax, (%r12)
testq %rax, %rax
je 0x22c2
movl $0xa0111fe1, 0x38(%r12) # imm = 0xA0111FE1
movq %r13, 0x8(%rsp)
incl 0x10(%r12)
movq %r12, 0x18(%r13)
movl $0xfeedbeef, 0x4c(%r13) # imm = 0xFEEDBEEF
movq %r14, %rdi
callq 0x1060
movq %rax, %r12
cmpl $0xc, %r12d
movq %r14, %rbx
jb 0x1ded
movl $0x9e3779b9, %r15d      # imm = 0x9E3779B9
movl $0xfeedbeef, %r14d      # imm = 0xFEEDBEEF
movq %rbx, %rdi
movl $0x9e3779b9, %ebp       # imm = 0x9E3779B9
movsbl (%rbx), %eax
addl %ebp, %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 %r15d, %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
addl %r14d, %edx
movsbl 0x9(%rbx), %esi
shll $0x8, %esi
addl %edx, %esi
movsbl 0xa(%rbx), %r8d
shll $0x10, %r8d
movzbl 0xb(%rbx), %edx
shll $0x18, %edx
addl %r8d, %edx
addl %esi, %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, %ebp
shrl $0x3, %ebp
xorl %edx, %ebp
subl %eax, %esi
subl %ebp, %esi
movl %ebp, %r15d
shll $0xa, %r15d
xorl %esi, %r15d
subl %ebp, %eax
subl %r15d, %eax
movl %r15d, %r14d
shrl $0xf, %r14d
xorl %eax, %r14d
movl %r14d, 0x4c(%r13)
addq $0xc, %rbx
addl $-0xc, %r12d
cmpl $0xb, %r12d
ja 0x1d04
jmp 0x1e01
movl $0x9e3779b9, %ebp       # imm = 0x9E3779B9
movl $0xfeedbeef, %r14d      # imm = 0xFEEDBEEF
movl $0x9e3779b9, %r15d      # imm = 0x9E3779B9
movq %rbx, %rdi
callq 0x1060
addl %r14d, %eax
movl %eax, 0x4c(%r13)
decl %r12d
cmpl $0xa, %r12d
ja 0x214b
leaq 0x1233(%rip), %rdx      # 0x3054
movslq (%rdx,%r12,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rsp), %r14
jmp 0x1f46
movq 0x10(%r15), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %eax
leal 0x1(%rdi), %esi
cmpl %eax, %esi
movl $0x8, %edx
jbe 0x2154
testl %eax, %eax
leal (%rax,%rax), %eax
cmovel %edx, %eax
cmpl %eax, %esi
ja 0x1e4c
movl %eax, 0x4(%rcx)
movq 0x28(%rcx), %rdi
movl %eax, %esi
imulq 0x8(%rcx), %rsi
callq 0x10d0
movq 0x10(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, 0x28(%rcx)
testq %rax, %rax
movq 0x20(%rsp), %r13
je 0x22c2
movl (%rcx), %edi
leal 0x1(%rdi), %esi
jmp 0x215d
movq (%rsp), %r14
jmp 0x1f1b
movq (%rsp), %r14
jmp 0x1f30
movq (%rsp), %r14
jmp 0x1f25
movq (%rsp), %r14
jmp 0x1ef4
movq (%rsp), %r14
jmp 0x1f3b
movq (%rsp), %r14
jmp 0x1f0e
movq (%rsp), %r14
jmp 0x1f01
movzbl 0xa(%rbx), %ecx
shll $0x18, %ecx
addl %eax, %ecx
movl %ecx, 0x4c(%r13)
movl %ecx, %eax
movsbl 0x9(%rbx), %ecx
shll $0x10, %ecx
addl %eax, %ecx
movl %ecx, 0x4c(%r13)
movl %ecx, %eax
movq (%rsp), %r14
movsbl 0x8(%rbx), %ecx
shll $0x8, %ecx
addl %eax, %ecx
movl %ecx, 0x4c(%r13)
movl %ecx, %eax
movzbl 0x7(%rbx), %ecx
shll $0x18, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl 0x6(%rbx), %ecx
shll $0x10, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl 0x5(%rbx), %ecx
shll $0x8, %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movsbl 0x4(%rbx), %ecx
addl %r15d, %ecx
movl %ecx, %r15d
movzbl 0x3(%rbx), %ecx
shll $0x18, %ecx
addl %ebp, %ecx
movl %ecx, %ebp
movsbl 0x2(%rbx), %ecx
shll $0x10, %ecx
addl %ebp, %ecx
movl %ecx, %ebp
movsbl 0x1(%rbx), %ecx
shll $0x8, %ecx
addl %ebp, %ecx
movl %ecx, %ebp
movsbl (%rbx), %ecx
addl %ebp, %ecx
movl %ecx, %ebp
movq %r13, %rcx
addq $0x18, %rcx
subl %eax, %ebp
subl %r15d, %ebp
movl %eax, %edx
shrl $0xd, %edx
xorl %ebp, %edx
subl %eax, %r15d
subl %edx, %r15d
movl %edx, %esi
shll $0x8, %esi
xorl %r15d, %esi
subl %edx, %eax
subl %esi, %eax
movl %esi, %edi
shrl $0xd, %edi
xorl %eax, %edi
subl %esi, %edx
subl %edi, %edx
movl %edi, %eax
shrl $0xc, %eax
xorl %edx, %eax
subl %edi, %esi
subl %eax, %esi
movl %eax, %edx
shll $0x10, %edx
xorl %esi, %edx
subl %eax, %edi
subl %edx, %edi
movl %edx, %esi
shrl $0x5, %esi
xorl %edi, %esi
subl %edx, %eax
subl %esi, %eax
movl %esi, %edi
shrl $0x3, %edi
xorl %eax, %edi
subl %esi, %edx
subl %edi, %edx
movl %edi, %r8d
shll $0xa, %r8d
xorl %edx, %r8d
addl %r8d, %edi
subl %edi, %esi
shrl $0xf, %r8d
xorl %esi, %r8d
movl %r8d, 0x4c(%r13)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdx
movl 0x8(%rdx), %eax
decl %eax
andl %r8d, %eax
movq (%rdx), %rsi
shlq $0x4, %rax
movl 0x8(%rsi,%rax), %edx
incl %edx
movl %edx, 0x8(%rsi,%rax)
movq (%rsi,%rax), %rdi
movq %rdi, 0x38(%r13)
movq $0x0, 0x30(%r13)
testq %rdi, %rdi
je 0x1ffe
movq %rcx, 0x18(%rdi)
addq %rax, %rsi
movq %rcx, (%rsi)
movl 0xc(%rsi), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %edx
movq 0x20(%rsp), %r13
jb 0x21da
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rbx
cmpl $0x1, 0x34(%rbx)
je 0x21da
movl 0x8(%rbx), %r15d
leal (%r15,%r15), %r12d
movq %r12, %rsi
shlq $0x4, %rsi
movl $0x1, %edi
callq 0x1080
testq %rax, %rax
je 0x22c2
movq %rax, %r14
movl 0x10(%rbx), %eax
movb 0xc(%rbx), %cl
incb %cl
movl %eax, %esi
shrl %cl, %esi
decl %r12d
andl %r12d, %eax
cmpl $0x1, %eax
sbbl $-0x1, %esi
movl %esi, 0x28(%rbx)
movl $0x0, 0x2c(%rbx)
movq (%rbx), %rdi
testq %r15, %r15
je 0x20f0
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r8, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r9
testq %r9, %r9
je 0x20e8
movq 0x20(%r9), %r10
movl 0x34(%r9), %edx
andl %r12d, %edx
shlq $0x4, %rdx
leaq (%r14,%rdx), %r11
movl 0x8(%r14,%rdx), %eax
incl %eax
movl %eax, 0x8(%r14,%rdx)
cmpl %esi, %eax
jbe 0x20c5
incl %ecx
movl %ecx, 0x2c(%rbx)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r11)
movq $0x0, 0x18(%r9)
movq (%r11), %rax
movq %rax, 0x20(%r9)
testq %rax, %rax
je 0x20dd
movq %r9, 0x18(%rax)
movq %r9, (%r11)
movq %r10, %r9
testq %r10, %r10
jne 0x2095
incq %r8
cmpq %r15, %r8
jne 0x2085
callq 0x1030
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %r14, (%rax)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x213b
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq (%rsp), %r14
jb 0x21da
movl $0x1, 0x34(%rax)
jmp 0x21da
movl $0x0, 0x30(%rax)
movq (%rsp), %r14
jmp 0x21da
movq (%rsp), %r14
jmp 0x1f4d
movq 0x28(%rcx), %rax
movq 0x20(%rsp), %r13
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %r8
movl %edi, %edi
imulq %rdx, %rdi
addq %rax, %rdi
movl %esi, (%rcx)
movq %r12, %rsi
testq %r8, %r8
je 0x2187
callq *%r8
jmp 0x218c
movq 0x8(%rsp), %r8
jmp 0x1ac1
callq 0x10a0
movq 0x30(%rsp), %rdi
callq 0x1030
cmpl $0x0, 0x4(%rbp)
movq (%rsp), %r14
je 0x21d2
cmpq $0x0, 0x20(%rbp)
je 0x21c9
cmpl $0x0, (%rbp)
je 0x21c9
xorl %ebx, %ebx
movq 0x8(%rbp), %rdi
imulq %rbx, %rdi
addq 0x28(%rbp), %rdi
callq *0x20(%rbp)
incq %rbx
movl (%rbp), %eax
cmpq %rax, %rbx
jb 0x21af
movq 0x28(%rbp), %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
testl %r14d, %r14d
movq 0x28(%rsp), %rbx
jne 0x225b
movq 0x10(%rbx), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %eax
leal 0x1(%rdi), %esi
cmpl %eax, %esi
movl $0x8, %edx
jbe 0x2230
testl %eax, %eax
leal (%rax,%rax), %eax
cmovel %edx, %eax
cmpl %eax, %esi
ja 0x21f9
movl %eax, 0x4(%rcx)
movq 0x28(%rcx), %rdi
movl %eax, %esi
imulq 0x8(%rcx), %rsi
callq 0x10d0
movq 0x10(%rbx), %rcx
movq %rax, 0x28(%rcx)
testq %rax, %rax
je 0x22c2
movl (%rcx), %edi
leal 0x1(%rdi), %esi
jmp 0x2234
movq 0x28(%rcx), %rax
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %r8
movl %edi, %edi
imulq %rdx, %rdi
addq %rax, %rdi
movl %esi, (%rcx)
leaq 0x10(%rsp), %rsi
testq %r8, %r8
je 0x2256
callq *%r8
jmp 0x225b
callq 0x10a0
incl %r14d
movl (%rbx), %edx
movl 0x1c(%rsp), %eax
subl %edx, %eax
cmpl %eax, %r14d
jl 0x1842
cmpl $0x0, 0x4(%r13)
je 0x22ab
cmpq $0x0, 0x20(%r13)
je 0x22a2
cmpl $0x0, (%r13)
je 0x22a2
xorl %ebx, %ebx
movq 0x8(%r13), %rdi
imulq %rbx, %rdi
addq 0x28(%r13), %rdi
callq *0x20(%r13)
incq %rbx
movl (%r13), %eax
cmpq %rax, %rbx
jb 0x2286
movq 0x28(%r13), %rdi
callq 0x1030
movq %r13, %rdi
callq 0x1030
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1110