// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rsi, %rax
movq %rdi, %rbp
leaq 0x191b(%rip), %rsi      # 0x30ac
movq %rax, %rdi
callq 0x1348
movq %rax, %r13
movl (%rax), %ecx
movl (%rbp), %edx
cmpl %edx, %ecx
jge 0x17e1
cmpl $0x0, 0x4(%r13)
je 0x228a
cmpq $0x0, 0x20(%r13)
je 0x2281
xorl %ebx, %ebx
movl %ecx, %eax
cmpq %rax, %rbx
jae 0x2281
movq 0x8(%r13), %rdi
imulq %rbx, %rdi
addq 0x28(%r13), %rdi
callq *0x20(%r13)
incq %rbx
movl (%r13), %ecx
jmp 0x17bd
xorl %ebx, %ebx
movq %r13, 0x28(%rsp)
movl %ecx, 0x34(%rsp)
movq %rbp, 0x20(%rsp)
movl %ecx, %eax
subl %edx, %eax
cmpl %eax, %ebx
jge 0x2253
addl %ebx, %edx
movq %r13, %rdi
movl %ebx, %esi
callq 0x14c7
movq %rax, %r12
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
leaq 0x1895(%rip), %rdx      # 0x30b0
callq 0x162c
movslq (%rbp), %rax
movslq %ebx, %rcx
addq %rax, %rcx
cmpl (%r13), %ecx
movq %rbx, 0x40(%rsp)
jae 0x1840
imulq 0x8(%r13), %rcx
addq 0x28(%r13), %rcx
jmp 0x1842
xorl %ecx, %ecx
movq %rcx, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq 0x8(%rbp), %rax
movq 0x38(%rsp), %rbp
testq %rax, %rax
je 0x1b35
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0x1060
leaq 0xb(%rbp), %rcx
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl %eax, %r8d
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
cmpl $0xc, %r8d
jb 0x1994
movsbl -0xb(%rcx), %r10d
movsbl -0xa(%rcx), %r9d
shll $0x8, %r9d
movsbl -0x9(%rcx), %r14d
shll $0x10, %r14d
movzbl -0x8(%rcx), %r11d
shll $0x18, %r11d
addl %r14d, %r11d
movsbl -0x7(%rcx), %r14d
movsbl -0x6(%rcx), %r15d
shll $0x8, %r15d
movsbl -0x5(%rcx), %ebx
shll $0x10, %ebx
movzbl -0x4(%rcx), %r13d
shll $0x18, %r13d
addl %ebx, %r13d
addl %r14d, %esi
addl %r15d, %esi
addl %r13d, %esi
movsbl -0x3(%rcx), %ebx
movsbl -0x2(%rcx), %r14d
shll $0x8, %r14d
movsbl -0x1(%rcx), %r15d
shll $0x10, %r15d
movzbl (%rcx), %r13d
shll $0x18, %r13d
addl %r15d, %r13d
addl %ebx, %edx
addl %r14d, %edx
addl %r13d, %edx
addl %r10d, %edi
addl %r9d, %edi
addl %r11d, %edi
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
addl $-0xc, %r8d
addq $0xc, %rcx
jmp 0x1882
addl %eax, %edx
decl %r8d
cmpl $0xa, %r8d
ja 0x2249
leaq 0x167e(%rip), %r9       # 0x3028
movslq (%r9,%r8,4), %rax
addq %r9, %rax
jmpq *%rax
movq 0x8(%rsp), %r8
jmp 0x1a5e
movq 0x8(%rsp), %r8
jmp 0x1a35
movq 0x8(%rsp), %r8
jmp 0x1a48
movq 0x8(%rsp), %r8
jmp 0x1a3d
movq 0x8(%rsp), %r8
jmp 0x1a14
movq 0x8(%rsp), %r8
jmp 0x1a53
movq 0x8(%rsp), %r8
jmp 0x1a2a
movq 0x8(%rsp), %r8
jmp 0x1a1f
movzbl -0x1(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x2(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movq 0x8(%rsp), %r8
movsbl -0x3(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movzbl -0x4(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x5(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x6(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x7(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
movzbl -0x8(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0x9(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0xa(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0xb(%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), %rbx
movl 0x8(%rbx), %eax
decl %eax
andl %edx, %eax
movq (%rbx), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r15
testq %r15, %r15
je 0x1ae8
subq 0x20(%rbx), %r15
jmp 0x1aeb
xorl %r15d, %r15d
movq %r15, 0x18(%rsp)
testq %r15, %r15
je 0x1b35
movl 0x48(%r15), %r14d
movq %rbp, %rdi
callq 0x1060
cmpq %r14, %rax
jne 0x1b1d
movq 0x40(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x10d0
testl %eax, %eax
je 0x1e03
movq 0x38(%r15), %rax
movl $0x0, %r15d
testq %rax, %rax
je 0x1aeb
subq 0x20(%rbx), %rax
movq %rax, %r15
jmp 0x1aeb
pushq $0x50
popq %rdi
callq 0x10c0
movq %rax, %r14
movq %rax, 0x18(%rsp)
movq %rbp, (%rax)
movq %r12, 0x8(%rax)
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x1090
movq %rax, %r12
movq %rax, 0x10(%r14)
movups 0x3263(%rip), %xmm0     # 0x4dc8
movups %xmm0, 0x8(%rax)
movups 0x3268(%rip), %xmm0     # 0x4dd8
movups %xmm0, 0x18(%rax)
movl $0x8, 0x4(%rax)
pushq $0x40
popq %rdi
callq 0x10c0
movq %rax, 0x28(%r12)
testq %rax, %rax
je 0x22c0
movl $0x1, (%r12)
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x2b79
movq 0x18(%rsp), %rbp
movq (%rbp), %r15
movq 0x20(%rsp), %r14
movq 0x8(%r14), %rbx
andq $0x0, 0x28(%rbp)
movq %r15, 0x40(%rbp)
movq %r15, %rdi
callq 0x1060
movl %eax, 0x48(%rbp)
testq %rbx, %rbx
je 0x1bfb
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
movq %rbp, 0x10(%rcx)
subq 0x20(%rax), %rcx
movq %rcx, 0x20(%rbp)
leaq 0x18(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq 0x18(%rbx), %rax
movq %rbx, 0x10(%rsp)
jmp 0x1c89
movq %rbp, 0x8(%r14)
andq $0x0, 0x20(%rbp)
pushq $0x40
popq %rdi
callq 0x10c0
movq %rax, 0x18(%rbp)
testq %rax, %rax
je 0x22c0
leaq 0x18(%rbp), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq (%rbx), %r14
movq %rbx, 0x18(%r14)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r14)
movq $0x18, 0x20(%r14)
movl $0x200, %edi            # imm = 0x200
callq 0x10c0
movq %rax, (%r14)
testq %rax, %rax
je 0x22c0
movq %rbp, 0x10(%rsp)
movl $0x200, %edx            # imm = 0x200
movq %rax, %rdi
xorl %esi, %esi
callq 0x1080
movq (%rbx), %rax
movl $0xa0111fe1, 0x38(%rax) # imm = 0xA0111FE1
movq 0x18(%rsp), %rbp
movq (%rbp), %r15
incl 0x10(%rax)
leaq 0x18(%rbp), %rcx
movq %rcx, 0x8(%rsp)
movq %rax, 0x18(%rbp)
movl $0xfeedbeef, 0x4c(%rbp) # imm = 0xFEEDBEEF
movq %r15, %rdi
callq 0x1060
movq %rax, %r13
movq %r15, %rdi
leaq 0xb(%r15), %rbx
movl $0x9e3779b9, %r15d      # imm = 0x9E3779B9
movl $0xfeedbeef, %r12d      # imm = 0xFEEDBEEF
movl $0x9e3779b9, %r14d      # imm = 0x9E3779B9
cmpl $0xc, %r13d
jb 0x1dcb
movsbl -0xb(%rbx), %ecx
movsbl -0xa(%rbx), %eax
shll $0x8, %eax
movsbl -0x9(%rbx), %esi
shll $0x10, %esi
movzbl -0x8(%rbx), %edx
shll $0x18, %edx
addl %esi, %edx
movsbl -0x7(%rbx), %esi
movsbl -0x6(%rbx), %r10d
shll $0x8, %r10d
movsbl -0x5(%rbx), %r8d
shll $0x10, %r8d
movzbl -0x4(%rbx), %r9d
shll $0x18, %r9d
addl %r8d, %r9d
addl %esi, %r14d
addl %r10d, %r14d
addl %r9d, %r14d
movsbl -0x3(%rbx), %esi
movsbl -0x2(%rbx), %r9d
shll $0x8, %r9d
addl %esi, %r9d
movsbl -0x1(%rbx), %esi
shll $0x10, %esi
movzbl (%rbx), %r8d
shll $0x18, %r8d
addl %r12d, %esi
addl %r9d, %esi
addl %r8d, %esi
addl %ecx, %r15d
addl %eax, %r15d
addl %edx, %r15d
subl %r14d, %r15d
subl %esi, %r15d
movl %esi, %eax
shrl $0xd, %eax
xorl %r15d, %eax
subl %esi, %r14d
subl %eax, %r14d
movl %eax, %ecx
shll $0x8, %ecx
xorl %r14d, %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, %r15d
shrl $0x3, %r15d
xorl %esi, %r15d
subl %ecx, %eax
subl %r15d, %eax
movl %r15d, %r14d
shll $0xa, %r14d
xorl %eax, %r14d
subl %r15d, %ecx
subl %r14d, %ecx
movl %r14d, %r12d
shrl $0xf, %r12d
xorl %ecx, %r12d
movl %r12d, 0x4c(%rbp)
addl $-0xc, %r13d
addq $0xc, %rbx
jmp 0x1cc4
callq 0x1060
addl %eax, %r12d
movl %r12d, 0x4c(%rbp)
decl %r13d
cmpl $0xa, %r13d
ja 0x223a
leaq 0x1269(%rip), %rcx      # 0x3054
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fd7
movq 0x10(%r15), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %edx
incl %eax
cmpl %edx, %eax
jbe 0x1e30
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rbp
pushq $0x8
popq %rsi
cmpl %edx, %eax
jbe 0x1e3c
testl %edx, %edx
leal (%rdx,%rdx), %edx
cmovel %esi, %edx
movl %edx, 0x4(%rcx)
jmp 0x1e1f
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rbp
jmp 0x1e62
movq 0x28(%rcx), %rdi
movl %edx, %esi
imulq 0x8(%rcx), %rsi
callq 0x10e0
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, 0x28(%rcx)
testq %rax, %rax
je 0x22c0
movq 0x18(%rcx), %rax
movq 0x8(%rcx), %rdx
movl (%rcx), %edi
leal 0x1(%rdi), %esi
imulq %rdx, %rdi
addq 0x28(%rcx), %rdi
movl %esi, (%rcx)
testq %rax, %rax
je 0x1e87
movq 0x10(%rsp), %rsi
callq *%rax
jmp 0x1e91
movq 0x10(%rsp), %rsi
callq 0x10b0
movq 0x38(%rsp), %rdi
callq 0x1030
cmpl $0x0, 0x4(%r12)
je 0x1ed8
cmpq $0x0, 0x20(%r12)
je 0x1ece
xorl %ebx, %ebx
movl (%r12), %eax
cmpq %rax, %rbx
jae 0x1ece
movq 0x8(%r12), %rdi
imulq %rbx, %rdi
addq 0x28(%r12), %rdi
callq *0x20(%r12)
incq %rbx
jmp 0x1ead
movq 0x28(%r12), %rdi
callq 0x1030
movq %r12, %rdi
callq 0x1030
jmp 0x21b5
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fa6
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fbd
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fb0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1f7f
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fca
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1f99
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1f8c
movzbl -0x1(%rbx), %eax
shll $0x18, %eax
addl %r12d, %eax
movl %eax, 0x4c(%rbp)
movl %eax, %r12d
movsbl -0x2(%rbx), %eax
shll $0x10, %eax
addl %r12d, %eax
movl %eax, 0x4c(%rbp)
movl %eax, %r12d
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
movsbl -0x3(%rbx), %eax
shll $0x8, %eax
addl %r12d, %eax
movl %eax, 0x4c(%rbp)
movl %eax, %r12d
movzbl -0x4(%rbx), %eax
shll $0x18, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0x5(%rbx), %eax
shll $0x10, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0x6(%rbx), %eax
shll $0x8, %eax
addl %r14d, %eax
movl %eax, %r14d
movsbl -0x7(%rbx), %eax
addl %r14d, %eax
movl %eax, %r14d
movzbl -0x8(%rbx), %eax
shll $0x18, %eax
addl %r15d, %eax
movl %eax, %r15d
movsbl -0x9(%rbx), %eax
shll $0x10, %eax
addl %r15d, %eax
movl %eax, %r15d
movsbl -0xa(%rbx), %eax
shll $0x8, %eax
addl %r15d, %eax
movl %eax, %r15d
movsbl -0xb(%rbx), %eax
addl %r15d, %eax
movl %eax, %r15d
subl %r14d, %r15d
subl %r12d, %r15d
movl %r12d, %eax
shrl $0xd, %eax
xorl %r15d, %eax
subl %r12d, %r14d
subl %eax, %r14d
movl %eax, %ecx
shll $0x8, %ecx
xorl %r14d, %ecx
subl %eax, %r12d
subl %ecx, %r12d
movl %ecx, %edx
shrl $0xd, %edx
xorl %r12d, %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, 0x4c(%rbp)
movq 0x18(%rdi), %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, 0x38(%rbp)
andq $0x0, 0x30(%rbp)
testq %rsi, %rsi
je 0x2081
movq %r8, 0x18(%rsi)
addq %rax, %rcx
movq %r8, (%rcx)
imull $0xa, 0xc(%rcx), %eax
addl $0xa, %eax
cmpl %eax, %edx
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rbp
jb 0x21b5
movq 0x18(%rsp), %rbx
movq 0x18(%rbx), %rax
cmpl $0x1, 0x34(%rax)
je 0x21b5
movl 0x8(%rax), %esi
addl %esi, %esi
shlq $0x4, %rsi
pushq $0x1
popq %rdi
callq 0x1090
testq %rax, %rax
je 0x22c0
movq %rax, %r12
movq 0x18(%rbx), %rsi
movl 0x10(%rsi), %r8d
movb 0xc(%rsi), %cl
incb %cl
movl 0x8(%rsi), %r9d
leal -0x1(,%r9,2), %r10d
movl %r10d, %eax
andl %r8d, %eax
shrl %cl, %r8d
cmpl $0x1, %eax
sbbl $-0x1, %r8d
movl %r8d, 0x28(%rsi)
andl $0x0, 0x2c(%rsi)
movq (%rsi), %rdi
xorl %ecx, %ecx
xorl %r11d, %r11d
cmpq %r9, %r11
je 0x2171
movq %r11, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %rbx
testq %rbx, %rbx
je 0x216c
movq 0x20(%rbx), %r14
movl 0x34(%rbx), %edx
andl %r10d, %edx
shlq $0x4, %rdx
leaq (%r12,%rdx), %r15
movl 0x8(%r12,%rdx), %eax
incl %eax
movl %eax, 0x8(%r12,%rdx)
cmpl %r8d, %eax
jbe 0x214f
incl %ecx
movl %ecx, 0x2c(%rsi)
xorl %edx, %edx
divl %r8d
movl %eax, 0xc(%r15)
andq $0x0, 0x18(%rbx)
movq (%r15), %rax
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x2164
movq %rbx, 0x18(%rax)
movq %rbx, (%r15)
movq %r14, %rbx
jmp 0x2119
incq %r11
jmp 0x2109
callq 0x1030
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %r12, (%rax)
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x21b1
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
jb 0x21b5
movl $0x1, 0x34(%rax)
jmp 0x21b5
andl $0x0, 0x30(%rax)
movq 0x40(%rsp), %rbx
testl %ebx, %ebx
pushq $0x8
popq %rsi
jne 0x222c
movq 0x10(%rbp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %edx
incl %eax
cmpl %edx, %eax
jbe 0x2202
cmpl %edx, %eax
jbe 0x21e1
testl %edx, %edx
leal (%rdx,%rdx), %edx
cmovel %esi, %edx
movl %edx, 0x4(%rcx)
jmp 0x21d0
movq 0x28(%rcx), %rdi
movl %edx, %esi
imulq 0x8(%rcx), %rsi
callq 0x10e0
movq 0x10(%rbp), %rcx
movq %rax, 0x28(%rcx)
testq %rax, %rax
je 0x22c0
movq 0x18(%rcx), %rax
movq 0x8(%rcx), %rdx
movl (%rcx), %edi
leal 0x1(%rdi), %esi
imulq %rdx, %rdi
addq 0x28(%rcx), %rdi
movl %esi, (%rcx)
leaq 0x18(%rsp), %rsi
testq %rax, %rax
je 0x2227
callq *%rax
jmp 0x222c
callq 0x10b0
incl %ebx
movl (%rbp), %edx
movl 0x34(%rsp), %ecx
jmp 0x17f1
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
jmp 0x1fe1
movq 0x8(%rsp), %r8
jmp 0x1a66
cmpl $0x0, 0x4(%r13)
je 0x22a9
cmpq $0x0, 0x20(%r13)
je 0x22a0
xorl %ebx, %ebx
movl (%r13), %eax
cmpq %rax, %rbx
jae 0x22a0
movq 0x8(%r13), %rdi
imulq %rbx, %rdi
addq 0x28(%r13), %rdi
callq *0x20(%r13)
incq %rbx
jmp 0x2263
movq 0x28(%r13), %rdi
callq 0x1030
movq %r13, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movq 0x28(%r13), %rdi
callq 0x1030
movq %r13, %rdi
callq 0x1030
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdi
callq 0x1120