// File: /workspace/github_c_makefile_star2_O1/lh3[P]bgt/vcf.c
// Function: vcf_parse1
int vcf_parse1(kstring_t *s, const bcf_hdr_t *h, bcf1_t *v)
{
	int i = 0;
	char *p, *q, *r, *t;
	fmt_aux_t *fmt = 0;
	kstring_t *str, *mem = (kstring_t*)&h->mem;
	khint_t k;
	ks_tokaux_t aux;

	mem->l = v->shared.l = v->indiv.l = 0;
	str = &v->shared;
	v->n_fmt = 0;
	v->unpacked = 0;
	v->unpack_ptr = NULL;
	memset(&aux, 0, sizeof(ks_tokaux_t));
	for (p = kstrtok(s->s, "\t", &aux), i = 0; p; p = kstrtok(0, 0, &aux), ++i) {
		q = (char*)aux.p;
		*q = 0;
		if (i == 0) { // CHROM
			vdict_t *d = (vdict_t*)h->dict[BCF_DT_CTG];
			k = kh_get(vdict, d, p);
			if (k == kh_end(d)) {
				if (hts_verbose >= 2)
					fprintf(stderr, "[W::%s] can't find '%s' in the sequence dictionary\n", __func__, p);
				return 0;
			} else v->rid = kh_val(d, k).id;
		} else if (i == 1) { // POS
			v->pos = atoi(p) - 1;
		} else if (i == 2) { // ID
			if (strcmp(p, ".")) bcf_enc_vchar(str, q - p, p);
			else bcf_enc_size(str, 0, BCF_BT_CHAR);
		} else if (i == 3) { // REF
			bcf_enc_vchar(str, q - p, p);
			v->n_allele = 1, v->rlen = q - p;
		} else if (i == 4) { // ALT
			if (strcmp(p, ".")) {
				for (r = t = p;; ++r) {
					if (*r == ',' || *r == 0) {
						bcf_enc_vchar(str, r - t, t);
						t = r + 1;
						++v->n_allele;
					}
					if (r == q) break;
				}
			}
		} else if (i == 5) { // QUAL
			if (strcmp(p, ".")) v->qual = atof(p);
			else memcpy(&v->qual, &bcf_float_missing, 4);
		} else if (i == 6) { // FILTER
			if (strcmp(p, ".")) {
				int32_t *a;
				int n_flt = 1, i;
				ks_tokaux_t aux1;
				vdict_t *d = (vdict_t*)h->dict[BCF_DT_ID];
				// count the number of filters
				if (*(q-1) == ';') *(q-1) = 0;
				for (r = p; *r; ++r)
					if (*r == ';') ++n_flt;
				a = (int32_t*)alloca(n_flt * 4);
				// add filters
				for (t = kstrtok(p, ";", &aux1), i = 0; t; t = kstrtok(0, 0, &aux1)) {
					*(char*)aux1.p = 0;
					k = kh_get(vdict, d, t);
					if (k == kh_end(d)) { // not defined
						if (hts_verbose >= 2) fprintf(stderr, "[W::%s] undefined FILTER '%s'\n", __func__, t);
					} else a[i++] = kh_val(d, k).id;
				}
				n_flt = i;
				bcf_enc_vint(str, n_flt, a, -1);
			} else bcf_enc_vint(str, 0, 0, -1);
		} else if (i == 7) { // INFO
			char *key;
			vdict_t *d = (vdict_t*)h->dict[BCF_DT_ID];
			v->n_info = 0;
			if (strcmp(p, ".")) {
				if (*(q-1) == ';') *(q-1) = 0;
				for (r = key = p;; ++r) {
					int c;
					char *val, *end;
					if (*r != ';' && *r != '=' && *r != 0) continue;
					val = end = 0;
					c = *r; *r = 0;
					if (c == '=') {
						val = r + 1;
						for (end = val; *end != ';' && *end != 0; ++end);
						c = *end; *end = 0;
					} else end = r;
					k = kh_get(vdict, d, key);
					if (k == kh_end(d) || kh_val(d, k).info[BCF_HL_INFO] == 15) { // not defined in the header
						if (hts_verbose >= 2) fprintf(stderr, "[W::%s] undefined INFO '%s'\n", __func__, key);
					} else { // defined in the header
						uint32_t y = kh_val(d, k).info[BCF_HL_INFO];
						++v->n_info;
						bcf_enc_int1(str, kh_val(d, k).id);
						if (val == 0) {
							bcf_enc_size(str, 0, BCF_BT_NULL);
						} else if ((y>>4&0xf) == BCF_HT_FLAG || (y>>4&0xf) == BCF_HT_STR) { // if Flag has a value, treat it as a string
							bcf_enc_vchar(str, end - val, val);
						} else { // int/float value/array
							int i, n_val;
							char *t;
							for (t = val, n_val = 1; *t; ++t) // count the number of values
								if (*t == ',') ++n_val;
							if ((y>>4&0xf) == BCF_HT_INT) {
								int32_t *z;
								z = (int32_t*)alloca(n_val<<2);
								for (i = 0, t = val; i < n_val; ++i, ++t)
									z[i] = strtol(t, &t, 10);
								bcf_enc_vint(str, n_val, z, -1);
								if (strcmp(key, "END") == 0) v->rlen = z[0] - v->pos;
							} else if ((y>>4&0xf) == BCF_HT_REAL) {
								float *z;
								z = (float*)alloca(n_val<<2);
								for (i = 0, t = val; i < n_val; ++i, ++t)
									z[i] = strtod(t, &t);
								bcf_enc_vfloat(str, n_val, z);
							}
						}
					}
					if (c == 0) break;
					r = end;
					key = r + 1;
				}
			}
		} else if (i == 8) { // FORMAT
			int j, l, m, g;
			ks_tokaux_t aux1;
			vdict_t *d = (vdict_t*)h->dict[BCF_DT_ID];
			char *end = s->s + s->l;
			// count the number of format fields
			for (r = p, v->n_fmt = 1; *r; ++r)
				if (*r == ':') ++v->n_fmt;
			fmt = (fmt_aux_t*)alloca(v->n_fmt * sizeof(fmt_aux_t));
			// get format information from the dictionary
			for (j = 0, t = kstrtok(p, ":", &aux1); t; t = kstrtok(0, 0, &aux1), ++j) {
				*(char*)aux1.p = 0;
				k = kh_get(vdict, d, t);
				if (k == kh_end(d) || kh_val(d, k).info[BCF_HL_FMT] == 15) {
					if (hts_verbose >= 2)
						fprintf(stderr, "[W::%s] FORMAT '%s' is not defined in the header\n", __func__, t);
					v->n_fmt = 0;
					break;
				} else {
					fmt[j].max_l = fmt[j].max_m = fmt[j].max_g = 0;
					fmt[j].key = kh_val(d, k).id;
					fmt[j].is_gt = !strcmp(t, "GT");
					fmt[j].y = h->id[0][fmt[j].key].val->info[BCF_HL_FMT];
				}
			}
			// compute max
			for (r = q + 1, j = 0, m = l = g = 1, v->n_sample = 0;; ++r, ++l) {
				if (*r == '\t') *r = 0;
				if (*r == ':' || *r == '\0') { // end of a sample
					if (fmt[j].max_m < m) fmt[j].max_m = m;
					if (fmt[j].max_l < l - 1) fmt[j].max_l = l - 1;
					if (fmt[j].is_gt && fmt[j].max_g < g) fmt[j].max_g = g;
					l = 0, m = g = 1;
					if (*r) ++j;
					else j = 0, ++v->n_sample;
				} else if (*r == ',') ++m;
				else if (*r == '|' || *r == '/') ++g;
				if (r == end) break;
			}
			// allocate memory for arrays
			for (j = 0; j < v->n_fmt; ++j) {
				fmt_aux_t *f = &fmt[j];
				if ((f->y>>4&0xf) == BCF_HT_STR) {
					f->size = f->is_gt? f->max_g << 2 : f->max_l;
				} else if ((f->y>>4&0xf) == BCF_HT_REAL || (f->y>>4&0xf) == BCF_HT_INT) {
					f->size = f->max_m << 2;
				} else abort(); // I do not know how to do with Flag in the genotype fields
				align_mem(mem);
				f->offset = mem->l;
				ks_resize(mem, mem->l + v->n_sample * f->size);
				mem->l += v->n_sample * f->size;
			}
			for (j = 0; j < v->n_fmt; ++j)
				fmt[j].buf = (uint8_t*)mem->s + fmt[j].offset;
			// fill the sample fields; at beginning of the loop, t points to the first char of an individual field (i.e. a field after FORMAT)
			for (t = q + 1, j = m = 0;; ++t) { // j-th fmt, m-th sample
				fmt_aux_t *z = &fmt[j];
				if ((z->y>>4&0xf) == BCF_HT_STR) {
					if (z->is_gt) { // genotypes
						int32_t is_phased = 0, *x = (int32_t*)(z->buf + z->size * m);
						for (l = 0;; ++t) {
							if (*t == '.') ++t, x[l++] = is_phased;
							else x[l++] = (strtol(t, &t, 10) + 1) << 1 | is_phased;
							is_phased = (*t == '|');
							if (*t == ':' || *t == 0) break;
						}
						for (; l < z->size>>2; ++l) x[l] = bcf_int32_end;
					} else {
						char *x = (char*)z->buf + z->size * m;
						for (r = t, l = 0; *t != ':' && *t; ++t) x[l++] = *t;
						for (; l < z->size; ++l) x[l] = 0;
					}
				} else if ((z->y>>4&0xf) == BCF_HT_INT) {
					int32_t *x = (int32_t*)(z->buf + z->size * m);
					for (l = 0;; ++t) {
						if (*t == '.') x[l++] = bcf_int32_missing, ++t; // ++t to skip "."
						else x[l++] = strtol(t, &t, 10);
						if (*t == ':' || *t == 0) break;
					}
					for (; l < z->size>>2; ++l) x[l] = bcf_int32_end;
				} else if ((z->y>>4&0xf) == BCF_HT_REAL) {
					float *x = (float*)(z->buf + z->size * m);
					for (l = 0;; ++t) {
						if (*t == '.' && !isdigit(t[1])) *(int32_t*)&x[l++] = bcf_float_missing, ++t; // ++t to skip "."
						else x[l++] = strtod(t, &t);
						if (*t == ':' || *t == 0) break;
					}
					for (; l < z->size>>2; ++l) *(int32_t*)(x+l) = bcf_float_end;
				} else abort(); // unknown type
				if (*t == 0) { // now we are at the end of the individual field
					// Write end-of-vector values to the rest of FORMAT in the field. This happens if the entire field is missing.
					for (++j; j < v->n_fmt; ++j) {
						z = &fmt[j];
						if ((z->y>>4&0xf) == BCF_HT_STR) {
							if (z->is_gt) {
								int32_t *x = (int32_t*)(z->buf + z->size * m);
								for (l = 0; l != z->size>>2; ++l) x[l] = bcf_int32_end;
							} else {
								char *x = (char*)z->buf + z->size * m;
								for (l = 0; l != z->size; ++l) x[l] = 0;
							}
						} else if ((z->y>>4&0xf) == BCF_HT_INT) {
							int32_t *x = (int32_t*)(z->buf + z->size * m);
							for (l = 0; l != z->size>>2; ++l) x[l] = bcf_int32_end;
						} else if ((z->y>>4&0xf) == BCF_HT_REAL) {
							float *x = (float*)(z->buf + z->size * m);
							for (l = 0; l != z->size>>2; ++l) *(int32_t*)(x+l) = bcf_float_end;
						}
					}
					if (t == end) break;
					++m, j = 0;
				} else if (*t == ':') ++j;
			}
			break;
		}
	}
	// write individual genotype information
	str = &v->indiv;
	if (v->n_sample > 0) {
		for (i = 0; i < v->n_fmt; ++i) {
			fmt_aux_t *z = &fmt[i];
			bcf_enc_int1(str, z->key);
			if ((z->y>>4&0xf) == BCF_HT_STR && !z->is_gt) {
				bcf_enc_size(str, z->size, BCF_BT_CHAR);
				kputsn((char*)z->buf, z->size * v->n_sample, str);
			} else if ((z->y>>4&0xf) == BCF_HT_INT || z->is_gt) {
				bcf_enc_vint(str, (z->size>>2) * v->n_sample, (int32_t*)z->buf, z->size>>2);
			} else {
				bcf_enc_size(str, z->size>>2, BCF_BT_FLOAT);
				kputsn((char*)z->buf, z->size * v->n_sample, str);
			}
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, %r12
xorl %eax, %eax
movq %rax, 0x30(%rdx)
movq %rax, 0x18(%rdx)
movq %rax, 0x50(%rsi)
movb $0x0, 0x14(%rdx)
movl $0x0, 0x88(%rdx)
movq %rax, 0x90(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movaps %xmm0, -0x100(%rbp)
movq 0x10(%rdi), %rax
testq %rax, %rax
jne 0xd69c
testb $0x1, -0x100(%rbp)
jne 0xd6f3
movq $0x9, -0xe0(%rbp)
testq %rax, %rax
je 0xd6c0
decq %rax
movq %rax, -0xd8(%rbp)
movl $0x0, -0xdc(%rbp)
movq -0xd8(%rbp), %rax
leaq 0x1(%rax), %r13
movzbl 0x1(%rax), %ecx
incq %rax
cmpl $0x9, %ecx
je 0xd6db
testl %ecx, %ecx
jne 0xd6cb
movq %rax, -0xd8(%rbp)
cmpb $0x0, (%rax)
jne 0xd6f6
movl $0x1, -0xdc(%rbp)
jmp 0xd6f6
xorl %r13d, %r13d
movq $0x0, -0x48(%rbp)
testq %r13, %r13
je 0xe23e
movq %rdi, -0x108(%rbp)
movq %rsi, -0x88(%rbp)
leaq 0x18(%r12), %rax
movq %rax, -0x58(%rbp)
xorl %eax, %eax
movq %r12, -0x60(%rbp)
movq -0xd8(%rbp), %r15
movb $0x0, (%r15)
movl %eax, -0xa0(%rbp)
cmpl $0x8, %eax
ja 0xe1ab
movl -0xa0(%rbp), %eax
leaq 0x11a6d(%rip), %rcx     # 0x1f1b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x88(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x38(%rbp)
movl (%rax), %ebx
testl %ebx, %ebx
movq %r13, -0x40(%rbp)
je 0xe07a
movsbl (%r13), %r12d
testl %r12d, %r12d
je 0xe0a9
movb 0x1(%r13), %al
testb %al, %al
je 0xe0ac
leaq 0x2(%r13), %rcx
movl %r12d, %edx
shll $0x5, %edx
subl %r12d, %edx
movsbl %al, %r12d
addl %edx, %r12d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd78f
jmp 0xe0ac
movq %r13, %rdi
leaq 0x11c26(%rip), %rsi     # 0x1f3dd
callq 0x2230
testl %eax, %eax
je 0xe1ab
movq %r13, -0x30(%rbp)
leaq 0x1(%r13), %r14
movl %r13d, %ebx
movzbl -0x1(%r14), %eax
cmpl $0x2c, %eax
je 0xd7dd
testl %eax, %eax
jne 0xd81b
movl %ebx, %esi
subl %r13d, %esi
movq -0x58(%rbp), %rdi
movq %r13, %rdx
callq 0xce10
movq %r14, -0x30(%rbp)
movq 0x10(%r12), %rax
leal 0x10000(%rax), %ecx
andl $0xffff0000, %ecx       # imm = 0xFFFF0000
movabsq $-0xffff0001, %rdx      # imm = 0xFFFFFFFF0000FFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, 0x10(%r12)
movq %r14, %r13
leaq 0x1(%r14), %rax
decq %r14
incl %ebx
cmpq %r15, %r14
movq %rax, %r14
jne 0xd7cf
jmp 0xe1ab
movq %r13, %rdi
leaq 0x11ba2(%rip), %rsi     # 0x1f3dd
callq 0x2230
testl %eax, %eax
je 0xdff9
subl %r13d, %r15d
movq -0x58(%rbp), %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0xce10
jmp 0xe1ab
subl %r13d, %r15d
movq -0x58(%rbp), %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0xce10
movq 0x10(%r12), %rax
movabsq $-0xffff0001, %rcx      # imm = 0xFFFFFFFF0000FFFF
andq %rcx, %rax
orq $0x10000, %rax          # imm = 0x10000
movq %rax, 0x10(%r12)
movl %r15d, 0x8(%r12)
jmp 0xe1ab
movq -0x88(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x38(%rbp)
andq $-0x10000, 0x10(%r12)   # imm = 0xFFFF0000
movq %r13, %rdi
leaq 0x11b23(%rip), %rsi     # 0x1f3dd
callq 0x2230
testl %eax, %eax
je 0xe1ab
cmpb $0x3b, -0x1(%r15)
jne 0xd8d3
movb $0x0, -0x1(%r15)
movq %r13, %r15
movzbl (%r15), %r14d
xorl %eax, %eax
cmpq $0x3d, %r14
ja 0xda7a
movabsq $0x2800000000000001, %rcx # imm = 0x2800000000000001
btq %r14, %rcx
jae 0xda7a
movb $0x0, (%r15)
cmpb $0x3d, %r14b
jne 0xd923
leaq 0x1(%r15), %rcx
movq %rcx, -0x98(%rbp)
movzbl (%rcx), %r14d
testl %r14d, %r14d
je 0xd933
cmpl $0x3b, %r14d
je 0xd933
incq %rcx
jmp 0xd90f
movq %r15, %rcx
movq $0x0, -0x98(%rbp)
jmp 0xd936
movb $0x0, (%rcx)
movq -0x38(%rbp), %rax
movl (%rax), %eax
testl %eax, %eax
movq %rcx, -0x80(%rbp)
je 0xd980
movq %rax, -0x50(%rbp)
movsbl (%r13), %ebx
testl %ebx, %ebx
movq %r13, -0x40(%rbp)
movq %r15, -0x78(%rbp)
movq %r14, -0x68(%rbp)
je 0xd988
movb 0x1(%r13), %al
testb %al, %al
je 0xd98a
leaq 0x2(%r13), %rcx
movl %ebx, %edx
shll $0x5, %edx
subl %ebx, %edx
movsbl %al, %ebx
addl %edx, %ebx
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd969
jmp 0xd98a
xorl %r12d, %r12d
jmp 0xda36
xorl %ebx, %ebx
movq -0x50(%rbp), %rax
leal -0x1(%rax), %r13d
movl %ebx, %esi
andl %r13d, %esi
movl %ebx, %eax
shrl $0x3, %eax
shll $0x3, %ebx
xorl %eax, %ebx
orl $0x1, %ebx
andl %r13d, %ebx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movl %esi, %r12d
movl %esi, -0x70(%rbp)
movq %rdi, -0x90(%rbp)
movl %r12d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %r15d
leal (%r12,%r12), %r14d
andl $0x1e, %r14d
movl %r15d, %eax
movl %r14d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xda18
testb $0x1, %al
jne 0xda04
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
movl -0x70(%rbp), %esi
testl %eax, %eax
je 0xda18
addl %ebx, %r12d
andl %r13d, %r12d
cmpl %esi, %r12d
jne 0xd9bc
movq -0x50(%rbp), %rax
movl %eax, %r12d
jmp 0xda2a
movl %r14d, %ecx
shrl %cl, %r15d
testb $0x3, %r15b
movq -0x50(%rbp), %rax
cmovnel %eax, %r12d
movq -0x40(%rbp), %r13
movq -0x78(%rbp), %r15
movq -0x68(%rbp), %r14
cmpl %eax, %r12d
je 0xda53
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rcx
movl %r12d, %eax
shlq $0x4, %rax
movl 0x4(%rcx,%rax), %ebx
cmpl $0xf, %ebx
jne 0xda8a
leaq 0x187f6(%rip), %rax     # 0x26250
cmpl $0x2, (%rax)
movq -0x60(%rbp), %r12
jge 0xdc5b
testb %r14b, %r14b
je 0xda78
movq -0x80(%rbp), %r15
leaq 0x1(%r15), %r13
xorl %eax, %eax
jmp 0xda7a
movb $0x1, %al
incq %r15
testb %al, %al
je 0xd8d6
jmp 0xe1ab
movq -0x60(%rbp), %r12
incw 0x10(%r12)
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl 0xc(%rcx,%rax), %esi
movq -0x58(%rbp), %rdi
callq 0xc9cd
movq -0x98(%rbp), %rdx
testq %rdx, %rdx
je 0xdadb
shrl $0x4, %ebx
andl $0xf, %ebx
cmpl $0x3, %ebx
je 0xdac8
testl %ebx, %ebx
jne 0xdb64
movq -0x80(%rbp), %rax
movl %eax, %esi
subl %edx, %esi
movq -0x58(%rbp), %rdi
callq 0xce10
jmp 0xda67
movq 0x18(%r12), %rax
incq %rax
cmpq 0x20(%r12), %rax
jb 0xdb32
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x20(%r12)
movq 0x28(%r12), %rdi
callq 0x2330
movq %rax, 0x28(%r12)
movq 0x18(%r12), %rax
movq 0x28(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%r12)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x18(%r12), %rax
movq 0x28(%r12), %rcx
movq $0x0, -0x48(%rbp)
movb %dl, (%rcx,%rax)
jmp 0xda67
movq %r14, -0x68(%rbp)
movl $0x1, %r14d
movq %rdx, %rax
movq %rax, -0xd0(%rbp)
movzbl (%rax), %ecx
cmpl $0x2c, %ecx
je 0xdb86
testl %ecx, %ecx
jne 0xdb89
jmp 0xdb8e
incl %r14d
incq %rax
jmp 0xdb71
cmpl $0x2, %ebx
je 0xdc82
cmpl $0x1, %ebx
movq -0x98(%rbp), %rdi
jne 0xdd0b
movq %r15, -0x78(%rbp)
leal (,%r14,4), %eax
cltq
movq %rsp, %rcx
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, %rsp
movq %rdi, -0xd0(%rbp)
testl %r14d, %r14d
leaq -0xd0(%rbp), %rbx
jle 0xdc14
movl %r14d, %eax
movq %rax, -0x70(%rbp)
xorl %r15d, %r15d
movq %rbx, %rsi
movq %rcx, %r12
movl $0xa, %edx
callq 0x2270
movq %r12, %rcx
movl %eax, (%r12,%r15,4)
incq %r15
movq -0xd0(%rbp), %rdi
incq %rdi
movq %rdi, -0xd0(%rbp)
cmpq %r15, -0x70(%rbp)
jne 0xdbe3
movq -0x58(%rbp), %rdi
movl %r14d, %esi
movq %rcx, %rbx
movq %rcx, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xc356
movq %r13, %rdi
leaq 0x117e6(%rip), %rsi     # 0x1f41b
callq 0x2230
testl %eax, %eax
movq -0x60(%rbp), %r12
movq -0x78(%rbp), %r15
jne 0xdd0b
movl (%rbx), %eax
subl 0x4(%r12), %eax
movl %eax, 0x8(%r12)
jmp 0xdd0b
movq 0x18396(%rip), %rax     # 0x25ff8
movq (%rax), %rdi
leaq 0x11792(%rip), %rsi     # 0x1f3fe
leaq 0x1175f(%rip), %rdx     # 0x1f3d2
movq %r13, %rcx
xorl %eax, %eax
callq 0x2250
jmp 0xda67
movq %r15, -0x78(%rbp)
leal (,%r14,4), %eax
cltq
movq %rsp, %rdx
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %rdx
movq %rdx, %rsp
movq -0x98(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
testl %r14d, %r14d
leaq -0xd0(%rbp), %rbx
jle 0xdcf7
movl %r14d, %eax
movq %rax, -0x70(%rbp)
xorl %r15d, %r15d
movq %rbx, %rsi
movq %rdx, %r12
callq 0x2100
movq %r12, %rdx
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%r15,4)
incq %r15
movq -0xd0(%rbp), %rdi
incq %rdi
movq %rdi, -0xd0(%rbp)
cmpq %r15, -0x70(%rbp)
jne 0xdcc5
movq -0x58(%rbp), %rdi
movl %r14d, %esi
callq 0xcd71
movq -0x60(%rbp), %r12
movq -0x78(%rbp), %r15
movq -0x68(%rbp), %r14
jmp 0xda67
movq %r13, %rdi
callq 0x23e0
decl %eax
movl %eax, 0x4(%r12)
jmp 0xe1ab
movq %r13, %rdi
leaq 0x116ab(%rip), %rsi     # 0x1f3dd
callq 0x2230
testl %eax, %eax
je 0xe082
movq %r13, %rdi
callq 0x2120
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%r12)
jmp 0xe1ab
movq %r13, %rdi
leaq 0x1167c(%rip), %rsi     # 0x1f3dd
callq 0x2230
testl %eax, %eax
je 0xe092
movq -0x88(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x38(%rbp)
cmpb $0x3b, -0x1(%r15)
jne 0xdd89
movb $0x0, -0x1(%r15)
movl $0x1, %eax
movq %r13, %rcx
movzbl (%rcx), %edx
cmpl $0x3b, %edx
je 0xdd9f
testl %edx, %edx
jne 0xdda1
jmp 0xdda6
incl %eax
incq %rcx
jmp 0xdd91
shll $0x2, %eax
cltq
movq %rsp, %rcx
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, -0x68(%rbp)
movq %rcx, %rsp
movq $0x3b, -0xb0(%rbp)
leaq -0x1(%r13), %rax
movq %rax, -0xa8(%rbp)
movzbl 0x1(%rax), %ecx
incq %rax
cmpl $0x3b, %ecx
je 0xdde6
testl %ecx, %ecx
jne 0xddd6
movq %rax, -0xa8(%rbp)
cmpb $0x0, (%rax)
jne 0xddfc
movl $0x1, -0xac(%rbp)
movq %r13, -0x30(%rbp)
movl $0x0, -0x80(%rbp)
movq -0xa8(%rbp), %rax
movb $0x0, (%rax)
movq -0x38(%rbp), %rax
movl (%rax), %esi
movl $0x0, %r15d
testl %esi, %esi
je 0xdf06
movsbl (%r13), %r12d
testl %r12d, %r12d
movq %r13, -0x40(%rbp)
je 0xde5a
movb 0x1(%r13), %al
testb %al, %al
je 0xde5d
leaq 0x2(%r13), %rcx
movl %r12d, %edx
shll $0x5, %edx
subl %r12d, %edx
movsbl %al, %r12d
addl %edx, %r12d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xde3f
jmp 0xde5d
xorl %r12d, %r12d
movq %rsi, -0x50(%rbp)
leal -0x1(%rsi), %r14d
movl %r12d, %esi
andl %r14d, %esi
movl %r12d, %eax
shrl $0x3, %eax
shll $0x3, %r12d
xorl %eax, %r12d
orl $0x1, %r12d
andl %r14d, %r12d
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movl %esi, %r15d
movl %esi, -0x70(%rbp)
movq %rdi, -0x90(%rbp)
movl %r15d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %ebx
leal (%r15,%r15), %r13d
andl $0x1e, %r13d
movl %ebx, %eax
movl %r13d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xdeee
testb $0x1, %al
jne 0xdeda
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
movl -0x70(%rbp), %esi
testl %eax, %eax
je 0xdeee
addl %r12d, %r15d
andl %r14d, %r15d
cmpl %esi, %r15d
jne 0xde94
movq -0x50(%rbp), %rsi
movl %esi, %r15d
jmp 0xdefe
movl %r13d, %ecx
shrl %cl, %ebx
testb $0x3, %bl
movq -0x50(%rbp), %rsi
cmovnel %esi, %r15d
movq -0x60(%rbp), %r12
movq -0x40(%rbp), %r13
cmpl %esi, %r15d
jne 0xdf3b
leaq 0x1833e(%rip), %rax     # 0x26250
cmpl $0x2, (%rax)
jl 0xdf60
movq 0x180da(%rip), %rax     # 0x25ff8
movq (%rax), %rdi
leaq 0x114b7(%rip), %rsi     # 0x1f3df
leaq 0x114a3(%rip), %rdx     # 0x1f3d2
movq %r13, %rcx
xorl %eax, %eax
callq 0x2250
jmp 0xdf60
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl %r15d, %ecx
shlq $0x4, %rcx
movl 0xc(%rax,%rcx), %eax
movl -0x80(%rbp), %edx
movslq %edx, %rcx
incl %edx
movl %edx, -0x80(%rbp)
movq -0x68(%rbp), %rdx
movl %eax, (%rdx,%rcx,4)
cmpl $0x0, -0xac(%rbp)
je 0xdf6e
xorl %r13d, %r13d
jmp 0xdfdc
movl -0xb0(%rbp), %ecx
movq -0xa8(%rbp), %rax
leaq 0x1(%rax), %r13
testl %ecx, %ecx
js 0xdf94
movsbl 0x1(%rax), %edx
incq %rax
testl %edx, %edx
je 0xdfc6
cmpl %edx, %ecx
jne 0xdf83
jmp 0xdfc6
movb (%r13), %cl
movq %r13, %rax
testb %cl, %cl
je 0xdfc6
movq %r13, %rax
movsbl %cl, %ecx
movzbl %cl, %edx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq -0xd0(%rbp,%rcx,8), %rcx
btq %rdx, %rcx
jb 0xdfc6
movb 0x1(%rax), %cl
incq %rax
testb %cl, %cl
jne 0xdfa2
movq %rax, -0xa8(%rbp)
cmpb $0x0, (%rax)
jne 0xdfdc
movl $0x1, -0xac(%rbp)
movq %r13, -0x30(%rbp)
testq %r13, %r13
jne 0xde07
movq -0x58(%rbp), %rdi
movl -0x80(%rbp), %esi
movq -0x68(%rbp), %rdx
jmp 0xe09a
movq 0x18(%r12), %rax
incq %rax
cmpq 0x20(%r12), %rax
jb 0xe050
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x20(%r12)
movq 0x28(%r12), %rdi
callq 0x2330
movq %rax, 0x28(%r12)
movq 0x18(%r12), %rax
movq 0x28(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%r12)
movb $0x7, (%rcx,%rax)
movq 0x18(%r12), %rax
movq 0x28(%r12), %rcx
movb $0x0, (%rcx,%rax)
jmp 0xe1ab
xorl %r13d, %r13d
jmp 0xe155
movl 0x182f8(%rip), %eax     # 0x26380
movl %eax, 0xc(%r12)
jmp 0xe1ab
movq -0x58(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xc356
jmp 0xe1ab
xorl %r12d, %r12d
movq %rbx, -0x50(%rbp)
leal -0x1(%rbx), %r15d
movl %r12d, %esi
andl %r15d, %esi
movl %r12d, %eax
shrl $0x3, %eax
shll $0x3, %r12d
xorl %eax, %r12d
orl $0x1, %r12d
andl %r15d, %r12d
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movl %esi, %r13d
movl %esi, -0x70(%rbp)
movq %rdi, -0x90(%rbp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %ebx
leal (,%r13,2), %r14d
andl $0x1e, %r14d
movl %ebx, %eax
movl %r14d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xe141
testb $0x1, %al
jne 0xe12d
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
movl -0x70(%rbp), %esi
testl %eax, %eax
je 0xe141
addl %r12d, %r13d
andl %r15d, %r13d
cmpl %esi, %r13d
jne 0xe0e3
movq -0x50(%rbp), %rbx
movl %ebx, %r13d
jmp 0xe151
movl %r14d, %ecx
shrl %cl, %ebx
testb $0x3, %bl
movq -0x50(%rbp), %rbx
cmovnel %ebx, %r13d
movq -0x60(%rbp), %r12
cmpl %ebx, %r13d
jne 0xe18b
leaq 0x180ef(%rip), %rax     # 0x26250
cmpl $0x2, (%rax)
jl 0xe1a2
movq 0x17e8b(%rip), %rax     # 0x25ff8
movq (%rax), %rdi
leaq 0x11227(%rip), %rsi     # 0x1f39e
leaq 0x11254(%rip), %rdx     # 0x1f3d2
movq -0x40(%rbp), %rcx
xorl %eax, %eax
callq 0x2250
jmp 0xe1a2
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl %r13d, %ecx
shlq $0x4, %rcx
movl 0xc(%rax,%rcx), %eax
movl %eax, (%r12)
cmpl %ebx, %r13d
je 0xe464
cmpl $0x0, -0xdc(%rbp)
je 0xe1bf
xorl %r13d, %r13d
movl -0xa0(%rbp), %eax
jmp 0xe233
movl -0xe0(%rbp), %ecx
movq -0xd8(%rbp), %rax
leaq 0x1(%rax), %r13
testl %ecx, %ecx
js 0xe1e5
movsbl 0x1(%rax), %edx
incq %rax
testl %edx, %edx
je 0xe217
cmpl %edx, %ecx
jne 0xe1d4
jmp 0xe217
movb (%r13), %cl
movq %r13, %rax
testb %cl, %cl
je 0xe217
movq %r13, %rax
movsbl %cl, %ecx
movzbl %cl, %edx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq -0x100(%rbp,%rcx,8), %rcx
btq %rdx, %rcx
jb 0xe217
movb 0x1(%rax), %cl
incq %rax
testb %cl, %cl
jne 0xe1f3
movq %rax, -0xd8(%rbp)
cmpb $0x0, (%rax)
movl -0xa0(%rbp), %eax
jne 0xe233
movl $0x1, -0xdc(%rbp)
incl %eax
testq %r13, %r13
jne 0xd724
movabsq $0xffffffffff, %rax     # imm = 0xFFFFFFFFFF
incq %rax
cmpq %rax, 0x10(%r12)
jb 0xe464
cmpb $0x0, 0x14(%r12)
je 0xe464
leaq 0x30(%r12), %r14
addq $0x18, -0x48(%rbp)
xorl %ebx, %ebx
movl $0xf0, %r13d
movq -0x48(%rbp), %r15
movl -0x18(%r15), %esi
movq %r14, %rdi
callq 0xc9cd
movl -0x4(%r15), %eax
andl %r13d, %eax
cmpl $0x10, %eax
je 0xe428
cmpl $0x30, %eax
jne 0xe363
movq -0x48(%rbp), %r15
testb $0x1, -0x8(%r15)
jne 0xe35a
movl -0x10(%r15), %esi
movq %r14, %rdi
movl $0x7, %edx
callq 0xc692
movq (%r15), %r13
movslq -0x10(%r15), %rax
movq 0x10(%r12), %r15
movq 0x30(%r12), %rcx
shrq $0x28, %r15
imulq %rax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x38(%r12), %rax
jb 0xe32c
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%r12)
movq 0x40(%r12), %rdi
callq 0x2330
movq %rax, 0x40(%r12)
movq 0x40(%r12), %rdi
addq 0x30(%r12), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2280
addq 0x30(%r12), %r15
movq %r15, 0x30(%r12)
movq 0x40(%r12), %rax
movb $0x0, (%rax,%r15)
jmp 0xe41c
cmpl $0x10, %eax
je 0xe428
movq -0x48(%rbp), %rax
testb $0x1, -0x8(%rax)
jne 0xe428
movq -0x48(%rbp), %r15
movl -0x10(%r15), %esi
sarl $0x2, %esi
movq %r14, %rdi
movl $0x5, %edx
callq 0xc692
movq %r12, %r13
movq (%r15), %r12
movslq -0x10(%r15), %rax
movq 0x10(%r13), %r15
movq 0x30(%r13), %rcx
shrq $0x28, %r15
imulq %rax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x38(%r13), %rax
jb 0xe3f5
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%r13)
movq 0x40(%r13), %rdi
callq 0x2330
movq %rax, 0x40(%r13)
movq 0x40(%r13), %rdi
addq 0x30(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2280
addq 0x30(%r13), %r15
movq %r15, 0x30(%r13)
movq 0x40(%r13), %rax
movb $0x0, (%rax,%r15)
movq %r13, %r12
movq -0x48(%rbp), %r15
movl $0xf0, %r13d
jmp 0xe44a
movq -0x48(%rbp), %r15
movl -0x10(%r15), %ecx
sarl $0x2, %ecx
movq 0x10(%r12), %rsi
shrq $0x28, %rsi
imull %ecx, %esi
movq (%r15), %rdx
movq %r14, %rdi
callq 0xc356
incq %rbx
movzbl 0x14(%r12), %eax
addq $0x20, %r15
movq %r15, -0x48(%rbp)
cmpq %rax, %rbx
jb 0xe274
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0xff00000000, %rax     # imm = 0xFF00000000
movabsq $0x100000000, %rdx      # imm = 0x100000000
movq -0x88(%rbp), %rcx
movq 0x30(%rcx), %r10
movq -0x108(%rbp), %rsi
movq (%rsi), %rcx
movq 0x10(%rsi), %rsi
movq %rsi, -0x68(%rbp)
movq 0x10(%r12), %rsi
movabsq $-0xff00000001, %rdi    # imm = 0xFFFFFF00FFFFFFFF
andq %rdi, %rsi
btsq $0x20, %rsi
movq %rsi, 0x10(%r12)
movq %r13, %rsi
movabsq $-0xff00000001, %r9     # imm = 0xFFFFFF00FFFFFFFF
movzbl (%rsi), %edi
cmpl $0x3a, %edi
je 0xe4dd
testl %edi, %edi
jne 0xe4f4
jmp 0xe4f9
movq 0x10(%r12), %rdi
leaq (%rdi,%rdx), %r8
andq %rax, %r8
andq %r9, %rdi
orq %r8, %rdi
movq %rdi, 0x10(%r12)
incq %rsi
jmp 0xe4cf
addq %rcx, -0x68(%rbp)
movq 0x10(%r12), %rax
shrq $0x1b, %rax
movq %rsp, %rcx
andl $0x1fe0, %eax           # imm = 0x1FE0
subq %rax, %rcx
movq %rcx, -0x48(%rbp)
movq %rcx, %rsp
movq $0x3a, -0xb0(%rbp)
leaq -0x1(%r13), %rax
movq %rax, -0xa8(%rbp)
movzbl 0x1(%rax), %ecx
incq %rax
cmpl $0x3a, %ecx
je 0xe53e
testl %ecx, %ecx
jne 0xe52e
movq %rax, -0xa8(%rbp)
cmpb $0x0, (%rax)
jne 0xe554
movl $0x1, -0xac(%rbp)
movq %r13, -0x30(%rbp)
movl -0xb0(%rbp), %eax
movl %eax, -0x98(%rbp)
movl -0xac(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0xa8(%rbp), %rdx
movq $0x0, -0xa0(%rbp)
movq %r15, -0x50(%rbp)
movq %r10, -0x38(%rbp)
movq %r13, -0x40(%rbp)
movq %rdx, -0x80(%rbp)
movb $0x0, (%rdx)
movl (%r10), %esi
movl $0x0, %r13d
testl %esi, %esi
je 0xe684
movq -0x40(%rbp), %rcx
movsbl (%rcx), %r15d
testl %r15d, %r15d
je 0xe5d6
movb 0x1(%rcx), %al
testb %al, %al
je 0xe5d9
addq $0x2, %rcx
movl %r15d, %edx
shll $0x5, %edx
subl %r15d, %edx
movsbl %al, %r15d
addl %edx, %r15d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xe5bb
jmp 0xe5d9
xorl %r15d, %r15d
movq %rsi, -0x58(%rbp)
leal -0x1(%rsi), %ebx
movl %r15d, %esi
andl %ebx, %esi
movl %r15d, %eax
shrl $0x3, %eax
shll $0x3, %r15d
xorl %eax, %r15d
orl $0x1, %r15d
andl %ebx, %r15d
movq 0x10(%r10), %rdi
movl %esi, %r13d
movl %esi, -0x70(%rbp)
movq %rdi, -0x90(%rbp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %r12d
leal (,%r13,2), %r14d
andl $0x1e, %r14d
movl %r12d, %eax
movl %r14d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xe66a
testb $0x1, %al
jne 0xe656
movq 0x18(%r10), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
movl -0x70(%rbp), %esi
movq -0x38(%rbp), %r10
testl %eax, %eax
je 0xe66a
addl %r15d, %r13d
andl %ebx, %r13d
cmpl %esi, %r13d
jne 0xe60a
movq -0x58(%rbp), %rsi
movl %esi, %r13d
jmp 0xe67c
movl %r14d, %ecx
shrl %cl, %r12d
testb $0x3, %r12b
movq -0x58(%rbp), %rsi
cmovnel %esi, %r13d
movq -0x60(%rbp), %r12
movq -0x50(%rbp), %r15
cmpl %esi, %r13d
je 0xe7ad
movq 0x20(%r10), %rcx
movl %r13d, %eax
shlq $0x4, %rax
cmpl $0xf, 0x8(%rcx,%rax)
je 0xe7ad
movq -0xa0(%rbp), %r14
shlq $0x5, %r14
movq -0x48(%rbp), %r13
movl $0x0, 0x4(%r13,%r14)
andl $0x1, 0x10(%r13,%r14)
movq 0x20(%r10), %rcx
movslq 0xc(%rcx,%rax), %r15
movl %r15d, (%r13,%r14)
movq -0x40(%rbp), %rdi
leaq 0xfbe6(%rip), %rsi      # 0x1e2c0
callq 0x2230
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, 0x10(%r13,%r14)
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rax
shlq $0x4, %r15
movq 0x8(%rax,%r15), %rax
movl 0x8(%rax), %eax
movl %eax, 0x14(%r13,%r14)
cmpl $0x0, -0x78(%rbp)
je 0xe71e
xorl %r13d, %r13d
movq -0x50(%rbp), %r15
movq -0x38(%rbp), %r10
movq -0x80(%rbp), %rdx
jmp 0xe797
movq -0x80(%rbp), %rdx
leaq 0x1(%rdx), %r13
movl -0x98(%rbp), %ecx
testl %ecx, %ecx
movq -0x38(%rbp), %r10
js 0xe745
movsbl 0x1(%rdx), %eax
incq %rdx
testl %eax, %eax
je 0xe776
cmpl %eax, %ecx
jne 0xe734
jmp 0xe776
movb (%r13), %al
movq %r13, %rdx
testb %al, %al
je 0xe776
movq %r13, %rdx
movsbl %al, %eax
movzbl %al, %ecx
sarl $0x6, %eax
cltq
movq -0xd0(%rbp,%rax,8), %rax
btq %rcx, %rax
jb 0xe776
movb 0x1(%rdx), %al
incq %rdx
testb %al, %al
jne 0xe753
movq %rdx, -0xa8(%rbp)
cmpb $0x0, (%rdx)
movq -0x50(%rbp), %r15
jne 0xe797
movl $0x1, -0xac(%rbp)
movl $0x1, -0x78(%rbp)
movq %r13, -0x30(%rbp)
incq -0xa0(%rbp)
testq %r13, %r13
jne 0xe587
jmp 0xe7cc
leaq 0x17a9c(%rip), %rax     # 0x26250
cmpl $0x2, (%rax)
jge 0xee3a
movabsq $-0xff00000001, %rax    # imm = 0xFFFFFF00FFFFFFFF
andq %rax, 0x10(%r12)
movabsq $0xffffffffff, %rax     # imm = 0xFFFFFFFFFF
andq %rax, 0x10(%r12)
incq %r15
movl $0x1, %edi
xorl %edx, %edx
movabsq $-0x10000000000, %rax   # imm = 0xFFFFFF0000000000
movl $0x1, %r8d
movl $0x1, %esi
movq %r15, %rcx
movq -0x68(%rbp), %rbx
movq -0x48(%rbp), %r11
cmpb $0x9, (%rcx)
jne 0xe80d
movb $0x0, (%rcx)
movzbl (%rcx), %r9d
cmpl $0x2e, %r9d
jle 0xe82e
cmpl $0x2f, %r9d
je 0xe845
cmpl $0x7c, %r9d
je 0xe845
cmpl $0x3a, %r9d
je 0xe84c
jmp 0xe8f5
testl %r9d, %r9d
je 0xe84c
cmpl $0x2c, %r9d
jne 0xe8f5
incl %r8d
jmp 0xe8f5
incl %esi
jmp 0xe8f5
movslq %edx, %r10
shlq $0x5, %r10
leaq (%r11,%r10), %r9
cmpl %r8d, 0x4(%r11,%r10)
jge 0xe862
movl %r8d, 0x4(%r9)
movl 0x10(%r9), %r8d
movl %r8d, %r10d
shrl $0x10, %r10d
decl %edi
cmpl %edi, %r10d
jge 0xe882
shll $0x10, %edi
movzwl %r8w, %r8d
orl %edi, %r8d
movl %r8d, 0x10(%r9)
movl 0x10(%r9), %edi
testb $0x1, %dil
je 0xe8b1
movl %edi, %r8d
shrl %r8d
andl $0x7fff, %r8d           # imm = 0x7FFF
cmpl %esi, %r8d
jge 0xe8b1
andl $0x7fff, %esi           # imm = 0x7FFF
andl $0xffff0001, %edi       # imm = 0xFFFF0001
leal (%rdi,%rsi,2), %esi
movl %esi, 0x10(%r9)
cmpb $0x0, (%rcx)
je 0xe8c0
incl %edx
movl $0x1, %r8d
jmp 0xe8ee
movq 0x10(%r12), %rdx
movq %rdx, %rsi
andq %rax, %rsi
movabsq $0xffffffffff, %rdi     # imm = 0xFFFFFFFFFF
orq %rdi, %rsi
andq %rdi, %rdx
addq %rsi, %rdx
incq %rdx
movq %rdx, 0x10(%r12)
movl $0x1, %r8d
xorl %edx, %edx
xorl %edi, %edi
movl $0x1, %esi
cmpq %rbx, %rcx
je 0xe904
incq %rcx
incl %edi
jmp 0xe805
movzbl 0x14(%r12), %eax
testl %eax, %eax
je 0xea9f
movq -0x48(%rbp), %rax
leaq 0x14(%rax), %rbx
xorl %r13d, %r13d
movq %r15, -0x50(%rbp)
movq -0x88(%rbp), %r14
movl (%rbx), %eax
shrl $0x4, %eax
andl $0xf, %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0xe940
movl -0x10(%rbx), %eax
shll $0x2, %eax
jmp 0xe960
cmpl $0x3, %eax
jne 0xee62
movl -0x4(%rbx), %ecx
leal (%rcx,%rcx), %edx
andl $0x1fffc, %edx          # imm = 0x1FFFC
movl %ecx, %eax
shrl $0x10, %eax
testb $0x1, %cl
cmovnel %edx, %eax
movl %eax, -0xc(%rbx)
movq 0x50(%r14), %rax
testb $0x7, %al
je 0xea02
movq $0x0, -0x110(%rbp)
leal 0x7(%rax), %ecx
andl $-0x8, %ecx
subl %eax, %ecx
movslq %ecx, %r15
addq %r15, %rax
incq %rax
cmpq 0x58(%r14), %rax
jb 0xe9d6
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x58(%r14)
movq 0x60(%r14), %rdi
callq 0x2330
movq %rax, 0x60(%r14)
movq 0x60(%r14), %rdi
addq 0x50(%r14), %rdi
leaq -0x110(%rbp), %rsi
movq %r15, %rdx
callq 0x2280
addq 0x50(%r14), %r15
movq %r15, 0x50(%r14)
movq 0x60(%r14), %rax
movb $0x0, (%rax,%r15)
movq -0x50(%rbp), %r15
movq 0x50(%r14), %rcx
movl %ecx, -0x8(%rbx)
movq 0x10(%r12), %rdx
shrq $0x28, %rdx
movslq -0xc(%rbx), %rax
imulq %rdx, %rax
addq %rcx, %rax
cmpq %rax, 0x58(%r14)
jae 0xea6b
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x58(%r14)
movq 0x60(%r14), %rdi
callq 0x2330
movq %rax, 0x60(%r14)
movq 0x10(%r12), %rax
shrq $0x28, %rax
movslq -0xc(%rbx), %rcx
imulq %rax, %rcx
addq %rcx, 0x50(%r14)
incq %r13
movq 0x10(%r12), %rax
shrq $0x20, %rax
movzbl %al, %ecx
addq $0x20, %rbx
cmpq %rcx, %r13
jb 0xe928
movzbl %al, %eax
testl %eax, %eax
movq -0x48(%rbp), %rdi
je 0xeacd
movq -0x88(%rbp), %rcx
movq 0x60(%rcx), %rcx
shll $0x5, %eax
xorl %edx, %edx
movslq 0xc(%rdi,%rdx), %rsi
addq %rcx, %rsi
movq %rsi, 0x18(%rdi,%rdx)
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0xeab7
xorl %r13d, %r13d
xorl %r8d, %r8d
movq %r15, -0x30(%rbp)
movslq %r13d, %rax
shlq $0x5, %rax
movq -0x48(%rbp), %rcx
leaq (%rcx,%rax), %r12
movl 0x14(%rcx,%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x1, %eax
movl %r8d, -0x40(%rbp)
je 0xebe7
cmpl $0x2, %eax
je 0xeb4c
cmpl $0x3, %eax
jne 0xee62
movl 0x8(%r12), %eax
imull %r8d, %eax
movslq %eax, %r15
addq 0x18(%r12), %r15
testb $0x1, 0x10(%r12)
jne 0xec62
movq -0x30(%rbp), %rcx
xorl %eax, %eax
movzbl (%rcx,%rax), %edx
testl %edx, %edx
je 0xee0c
cmpl $0x3a, %edx
je 0xee0c
movb %dl, (%r15,%rax)
incq %rax
jmp 0xeb2e
movl 0x8(%r12), %eax
imull %r8d, %eax
movslq %eax, %rbx
addq 0x18(%r12), %rbx
movl $0x1, %r14d
movq -0x30(%rbp), %r15
cmpb $0x2e, (%r15)
jne 0xeb95
callq 0x2460
movq (%rax), %rax
movsbq 0x1(%r15), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xeb95
incq %r15
movl 0x177f6(%rip), %eax     # 0x26380
movl %eax, -0x4(%rbx,%r14,4)
movq %r15, -0x30(%rbp)
jmp 0xebac
movq %r15, %rdi
leaq -0x30(%rbp), %rsi
callq 0x2100
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x4(%rbx,%r14,4)
movq -0x30(%rbp), %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0xebd5
cmpl $0x3a, %ecx
je 0xebd5
incq %rax
movq %rax, -0x30(%rbp)
incq %r14
jmp 0xeb63
movl 0x177b6(%rip), %eax     # 0x26384
movl %eax, (%rbx,%r14,4)
incq %r14
movl 0x8(%r12), %eax
sarl $0x2, %eax
cmpl %r14d, %eax
jg 0xebc8
jmp 0xecd4
movl 0x8(%r12), %eax
imull %r8d, %eax
movslq %eax, %rbx
addq 0x18(%r12), %rbx
movl $0x1, %r14d
movq -0x30(%rbp), %rdi
cmpb $0x2e, (%rdi)
jne 0xec19
movl $0x80000000, -0x4(%rbx,%r14,4) # imm = 0x80000000
incq %rdi
movq %rdi, -0x30(%rbp)
jmp 0xec2c
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x2270
movl %eax, -0x4(%rbx,%r14,4)
movq -0x30(%rbp), %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0xec53
cmpl $0x3a, %ecx
je 0xec53
incq %rax
movq %rax, -0x30(%rbp)
incq %r14
jmp 0xebfe
movl $0x80000001, (%rbx,%r14,4) # imm = 0x80000001
incq %r14
movl 0x8(%r12), %eax
sarl $0x2, %eax
cmpl %r14d, %eax
jg 0xec48
jmp 0xecd4
xorl %r14d, %r14d
movl $0x1, %ebx
movq -0x30(%rbp), %rdi
cmpb $0x2e, (%rdi)
jne 0xec7c
incq %rdi
movq %rdi, -0x30(%rbp)
jmp 0xec92
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x2270
leal (%r14,%rax,2), %r14d
addl $0x2, %r14d
movl %r14d, -0x4(%r15,%rbx,4)
movq -0x30(%rbp), %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0xecc8
cmpl $0x3a, %ecx
je 0xecc8
xorl %r14d, %r14d
cmpb $0x7c, %cl
sete %r14b
incq %rax
movq %rax, -0x30(%rbp)
incq %rbx
jmp 0xec6a
movl $0x80000001, (%r15,%rbx,4) # imm = 0x80000001
incq %rbx
movl 0x8(%r12), %eax
sarl $0x2, %eax
cmpl %ebx, %eax
jg 0xecbd
movq -0x30(%rbp), %r15
movzbl (%r15), %ecx
movb $0x1, %al
cmpl $0x3a, %ecx
je 0xedff
testl %ecx, %ecx
movq -0x60(%rbp), %r12
movl -0x40(%rbp), %r8d
jne 0xee2a
incl %r13d
movzbl 0x14(%r12), %ecx
cmpl %ecx, %r13d
jge 0xedf1
movslq %r13d, %r13
movq %r13, %rdx
shlq $0x5, %rdx
movq -0x48(%rbp), %rsi
leaq (%rsi,%rdx), %rcx
movl 0x14(%rsi,%rdx), %edx
shrl $0x4, %edx
andl $0xf, %edx
cmpl $0x1, %edx
je 0xed97
cmpl $0x2, %edx
je 0xed69
cmpl $0x3, %edx
jne 0xeddf
movl 0x8(%rcx), %esi
movl %esi, %edx
imull %r8d, %edx
movslq %edx, %rdx
addq 0x18(%rcx), %rdx
testb $0x1, 0x10(%rcx)
jne 0xedc3
testl %esi, %esi
je 0xeddf
xorl %esi, %esi
movb $0x0, (%rdx,%rsi)
incq %rsi
movl 0x8(%rcx), %edi
cmpq %rdi, %rsi
jne 0xed58
jmp 0xeddf
movl 0x8(%rcx), %edx
cmpl $0x4, %edx
jb 0xeddf
imull %r8d, %edx
movslq %edx, %rdx
addq 0x18(%rcx), %rdx
xorl %esi, %esi
movl 0x17600(%rip), %edi     # 0x26384
movl %edi, (%rdx,%rsi,4)
incq %rsi
movl 0x8(%rcx), %edi
sarl $0x2, %edi
cmpq %rdi, %rsi
jne 0xed7e
jmp 0xeddf
movl 0x8(%rcx), %edx
cmpl $0x4, %edx
jb 0xeddf
imull %r8d, %edx
movslq %edx, %rdx
addq 0x18(%rcx), %rdx
xorl %esi, %esi
movl $0x80000001, (%rdx,%rsi,4) # imm = 0x80000001
incq %rsi
movl 0x8(%rcx), %edi
sarl $0x2, %edi
cmpq %rdi, %rsi
jne 0xedac
jmp 0xeddf
cmpl $0x4, %esi
jb 0xeddf
xorl %esi, %esi
movl $0x80000001, (%rdx,%rsi,4) # imm = 0x80000001
incq %rsi
movl 0x8(%rcx), %edi
sarl $0x2, %edi
cmpq %rdi, %rsi
jne 0xedca
incq %r13
movzbl 0x14(%r12), %ecx
cmpq %rcx, %r13
jl 0xed0c
cmpq -0x68(%rbp), %r15
je 0xee28
incl %r8d
xorl %r13d, %r13d
jmp 0xee2a
incl %r13d
movq -0x60(%rbp), %r12
movl -0x40(%rbp), %r8d
jmp 0xee2a
addq %rax, %rcx
movq %rcx, -0x30(%rbp)
cmpl %eax, 0x8(%r12)
jle 0xecd4
movb $0x0, (%r15,%rax)
incq %rax
jmp 0xee13
xorl %eax, %eax
incq %r15
testb %al, %al
jne 0xead3
jmp 0xe23e
movq 0x171b7(%rip), %rax     # 0x25ff8
movq (%rax), %rdi
leaq 0x105d4(%rip), %rsi     # 0x1f41f
leaq 0x10580(%rip), %rdx     # 0x1f3d2
movq -0x40(%rbp), %rcx
xorl %eax, %eax
callq 0x2250
jmp 0xe7bd
callq 0x2070