// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/arc.c
// Function: member_cb_main
static void member_cb_main(deark *c, lctx *d, struct member_parser_data *mpd)
{
	int saved_indent_level;
	i64 pos1 = mpd->member_pos;
	i64 pos = pos1;
	i64 hdrsize;
	i64 mod_time_raw, mod_date_raw;
	de_finfo *fi = NULL;
	struct member_data *md = NULL;
	int need_curpath_pop = 0;
	struct persistent_member_data *pmd = NULL;

	de_dbg_indent_save(c, &saved_indent_level);
	de_dbg(c, "member at %"I64_FMT, pos1);
	de_dbg_indent(c, 1);
	md = de_malloc(c, sizeof(struct member_data));
	md->c = c;
	md->d = d;

	if(mpd->nesting_level==0 && d->persistent_md && (mpd->member_idx < d->num_top_level_members)) {
		pmd = &d->persistent_md[mpd->member_idx];
		if(ucstring_isnonempty(pmd->comment)) {
			de_dbg(c, "file comment: \"%s\"", ucstring_getpsz_d(pmd->comment));
		}
		if(ucstring_isnonempty(pmd->path)) {
			de_dbg(c, "path: \"%s\"", ucstring_getpsz_d(pmd->path));
		}
	}

	pos++; // 'magic' byte, already read by the parser
	if(mpd->magic != d->sig_byte) {
		de_err(c, "Failed to find %s member at %"I64_FMT, d->fmtname, pos1);
		goto done;
	}

	if(d->fmt==FMT_ARCMAC && mpd->cmpr_meth_masked!=0) {
		do_arcmac_preheader(c, d, md, mpd->member_pos);
		pos += 59;
	}

	pos++; // compression ID, already read by the parser
	md->cmpr_meth = mpd->cmpr_meth;
	md->cmpr_meth_masked = mpd->cmpr_meth_masked;

	md->cmi = get_cmpr_meth_info(d, md->cmpr_meth);
	if(md->cmi && md->cmi->name) {
		md->cmpr_meth_name = md->cmi->name;
	}
	else {
		md->cmpr_meth_name = "?";
	}

	de_dbg(c, "cmpr meth: 0x%02x (%s)", (unsigned int)md->cmpr_meth, md->cmpr_meth_name);

	if(md->cmpr_meth_masked==0x00 || md->cmpr_meth==0x1f) {
		hdrsize = 2;
	}
	else {
		if(md->cmpr_meth_masked==0x01) {
			hdrsize = 25;
		}
		else {
			hdrsize = 29;
		}
		if(md->cmpr_meth>=128) {
			hdrsize += 12;
		}
	}
	if(mpd->member_len<hdrsize) {
		de_err(c, "Insufficient data for archive member at %"I64_FMT, pos1);
		goto done;
	}

	if(md->cmpr_meth_masked==0x00 || md->cmpr_meth==0x1f) { // end of archive/dir marker
		goto done;
	}

	md->fn = ucstring_create(c);
	dbuf_read_to_ucstring(c->infile, pos, 13, md->fn, DE_CONVFLAG_STOP_AT_NUL,
		d->input_encoding_for_filenames);
	de_dbg(c, "filename: \"%s\"", ucstring_getpsz_d(md->fn));
	pos += 13;

	pos += 4; // cmpr_size, already read by the parser
	md->cmpr_size = mpd->cmpr_data_len;
	de_dbg(c, "cmpr size: %"I64_FMT, md->cmpr_size);

	mod_date_raw = de_getu16le_p(&pos);
	mod_time_raw = de_getu16le_p(&pos);
	de_dos_datetime_to_timestamp(&md->arc_timestamp, mod_date_raw, mod_time_raw);
	md->arc_timestamp.tzcode = DE_TZCODE_LOCAL;
	dbg_timestamp(c, &md->arc_timestamp, ((d->fmt==FMT_SPARK) ? "timestamp (ARC)":"timestamp"));

	md->crc_reported = (u32)de_getu16le_p(&pos);
	de_dbg(c, "crc (reported): 0x%04x", (unsigned int)md->crc_reported);
	if((md->cmpr_meth_masked)==0x01) {
		md->orig_size = md->cmpr_size;
	}
	else {
		md->orig_size = de_getu32le_p(&pos);
		de_dbg(c, "orig size: %"I64_FMT, md->orig_size);
	}

	if(d->fmt == FMT_SPARK) {
		md->has_spark_attribs = 1;
		fmtutil_riscos_read_load_exec(c, c->infile, &md->rfa, pos);
		pos += 8;
		fmtutil_riscos_read_attribs_field(c, c->infile, &md->rfa, pos, 0);
		pos += 4;
	}

	md->cmpr_data_pos = mpd->cmpr_data_pos;

	de_strarray_push(d->curpath, md->fn);
	need_curpath_pop = 1;

	// TODO: Is it possible to distinguish between a subdirectory, and a Spark
	// member file that should always be extracted? Does a nonzero CRC mean
	// we should not recurse?
	if(d->fmt==FMT_SPARK && d->recurse_subdirs && md->rfa.file_type_known &&
		(md->rfa.file_type==0xddc) && md->cmpr_meth==0x82)
	{
		md->is_dir = 1;
	}
	else if(d->fmt==FMT_ARC && d->recurse_subdirs && md->cmpr_meth==0x1e) {
		md->is_dir = 1;
	}

	if(d->recurse_subdirs) {
		de_dbg(c, "is directory: %d", md->is_dir);
	}

	de_dbg(c, "file data at %"I64_FMT", len=%"I64_FMT, md->cmpr_data_pos, md->cmpr_size);

	// Extract...
	fi = de_finfo_create(c);
	fi->original_filename_flag = 1;

	if(md->rfa.mod_time.is_valid) {
		fi->timestamp[DE_TIMESTAMPIDX_MODIFY] = md->rfa.mod_time;
	}
	else if(md->arc_timestamp.is_valid) {
		fi->timestamp[DE_TIMESTAMPIDX_MODIFY] = md->arc_timestamp;
	}

	if(md->has_spark_attribs) {
		fi->has_riscos_data = 1;
		fi->riscos_attribs = md->rfa.attribs;
		fi->load_addr = md->rfa.load_addr;
		fi->exec_addr = md->rfa.exec_addr;
	}

	if(md->is_dir) {
		fi->is_directory = 1;
	}

	if(md->is_dir) {
		do_extract_member_dir(c, d, md, fi);

		// Nested subdirectory archives (ARC 6 "z" option, or Spark) have both a known
		// length (md->cmpr_size), and an end-of-archive marker. So there are two
		// ways to parse them:
		// 1) Recursively, meaning we trust the md->cmpr_size field (or maybe we should
		//    use orig_size instead?).
		// 2) As a flat sequence of members, meaning we trust that a nested archive
		//    will not have extra data after the end-of-archive marker.
		// Here, we use the recursive method.
		do_sequence_of_members(c, d, md->cmpr_data_pos, md->cmpr_size, mpd->nesting_level+1);
	}
	else if(md->cmpr_meth>=30 && md->cmpr_meth<=39) {
		de_warn(c, "Unknown control item type %d at %"I64_FMT, (int)md->cmpr_meth, pos1);
		goto done;
	}
	else if(md->cmpr_meth>=20 && md->cmpr_meth<=29) {
		do_info_item(c, d, md);
	}
	else if(d->fmt==FMT_ARCMAC && md->arcmac_advf) {
		do_extract_member_file_arcmac(c, d, md, fi);
	}
	else {
		do_extract_member_file(c, d, md, pmd, fi, md->cmpr_data_pos);
	}

done:
	if(need_curpath_pop) {
		de_strarray_pop(d->curpath);
	}
	if(fi) de_finfo_destroy(c, fi);
	if(md) {
		ucstring_destroy(md->fn);
		if(md->arcmac_fn) de_destroy_stringreaderdata(c, md->arcmac_fn);
		if(md->arcmac_advf) de_advfile_destroy(md->arcmac_advf);
		de_free(c, md);
	}
	de_dbg_indent_restore(c, saved_indent_level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdx), %r12
movq %r12, 0x10(%rsp)
leaq 0x50(%rsp), %rsi
callq 0xdebae
leaq 0x107d34(%rip), %rsi    # 0x12e86d
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movl $0xb8, %esi
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r14
movq %rbx, (%rax)
movq %r15, 0x8(%rax)
cmpl $0x0, (%r13)
jne 0x26be4
movq 0x58(%r15), %rax
testq %rax, %rax
je 0x26be2
movslq 0x4(%r13), %rcx
cmpq %rcx, 0x38(%r15)
jle 0x26be2
shlq $0x4, %rcx
leaq (%rax,%rcx), %rbp
movq (%rax,%rcx), %rdi
callq 0xeaf8a
testl %eax, %eax
je 0x26bb6
movq (%rbp), %rdi
callq 0xeb877
leaq 0xe0c47(%rip), %rsi     # 0x1077f0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x8(%rbp), %rdi
callq 0xeaf8a
testl %eax, %eax
je 0x26be4
movq 0x8(%rbp), %rdi
callq 0xeb877
leaq 0x110306(%rip), %rsi    # 0x136ed9
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
jmp 0x26be4
xorl %ebp, %ebp
movq 0x10(%rsp), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movb 0x8(%r13), %al
cmpb 0x24(%r15), %al
jne 0x26c25
movl (%r15), %eax
cmpl $0x3, %eax
movq %rbp, 0x28(%rsp)
jne 0x26e40
cmpb $0x0, 0xa(%r13)
je 0x26c42
cmpq $0x0, 0xb0(%r14)
je 0x26c4a
pushq $0x3
popq %rax
jmp 0x26e3c
movq 0x8(%r15), %rdx
leaq 0xe0bd3(%rip), %rsi     # 0x107803
movq %rbx, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x26f94
pushq $0x3
popq %rax
jmp 0x26e40
movq %r12, 0x20(%rsp)
movq 0x10(%r13), %rbp
movq %rbx, %rdi
callq 0xf07cc
movq %rax, 0xb0(%r14)
movb $0x1, 0x78(%rax)
leaq 0x2(%rbp), %rsi
movq 0x18(%rbx), %rdi
movl 0x18(%r15), %r9d
pushq $0x1f
popq %rcx
pushq $0x1
popq %r8
movq %rcx, %rdx
callq 0xe495c
movq %rax, 0xa8(%r14)
movq 0x18(%rax), %rdi
callq 0xeb877
leaq 0xe0c02(%rip), %rsi     # 0x10789a
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0xa8(%r14), %rax
movq 0x10(%rax), %rdx
testq %rdx, %rdx
je 0x26cc9
movq 0xb0(%r14), %rdi
movb $0x1, 0x79(%rdi)
movq 0x8(%rax), %rsi
callq 0xf0864
leaq 0x22(%rbp), %rsi
movq 0x18(%rbx), %rdi
leaq 0xa0(%rsp), %rdx
pushq $0x4
popq %rcx
xorl %r8d, %r8d
callq 0xe657c
leaq 0xb0(%rsp), %r12
leaq 0xe0bbd(%rip), %rsi     # 0x1078b0
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq 0xb0(%r14), %rax
movl -0x10(%r12), %ecx
movl %ecx, 0x90(%rax)
movq 0xb0(%r14), %rax
movb $0x1, %cl
movb %cl, 0x7b(%rax)
leaq 0x26(%rbp), %rsi
movq 0x18(%rbx), %rdi
leaq 0x58(%rsp), %rdx
pushq $0x4
popq %rcx
xorl %r8d, %r8d
callq 0xe657c
leaq 0x68(%rsp), %r12
leaq 0x1002d1(%rip), %rsi    # 0x127013
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq 0xb0(%r14), %rax
movl -0x10(%r12), %ecx
movl %ecx, 0x94(%rax)
movq 0xb0(%r14), %rax
movb $0x1, %cl
movb %cl, 0x7c(%rax)
addq $0x2a, %rbp
leaq 0x88(%rsp), %rsi
movq %rbp, (%rsi)
movq 0x18(%rbx), %rdi
movq %rsi, %rbp
callq 0xe3f6e
movq %rax, %r12
movzwl %r12w, %edx
leaq 0xe0b29(%rip), %rsi     # 0x1078bf
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0xb0(%r14), %rax
movw %r12w, 0x7e(%rax)
movb $0x1, %cl
movb %cl, 0x7d(%rax)
addq $0x6, (%rbp)
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xe40bf
movq %rax, 0x98(%r14)
leaq 0xe0b04(%rip), %rsi     # 0x1078d4
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xe40bf
movq %rax, 0xa0(%r14)
leaq 0xe0af0(%rip), %rsi     # 0x1078e7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x98(%r14), %rax
movq 0xb0(%r14), %rcx
testq %rax, %rax
setne 0x10(%rcx)
movq %rax, 0x18(%rcx)
movq 0xa0(%r14), %rax
testq %rax, %rax
setne 0x38(%rcx)
movq %rax, 0x40(%rcx)
movq 0x10(%rsp), %rcx
movl (%r15), %eax
movq 0x20(%rsp), %r12
addq $0x3b, %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movzbl 0x9(%r13), %edx
movb %dl, 0x10(%r14)
movb 0xa(%r13), %cl
movb %cl, 0x11(%r14)
xorl %ecx, %ecx
leaq 0x15a2fe(%rip), %rsi    # 0x181160
leaq 0xf8078(%rip), %rbp     # 0x11eee1
cmpq $0x1f8, %rcx            # imm = 0x1F8
je 0x26ef6
cmpl $0x2, %eax
je 0x26e90
cmpl $0x1, %eax
jne 0x26e87
testb $0x1, 0x4(%rcx,%rsi)
je 0x26eed
movb (%rcx,%rsi), %dil
movl %edi, %r8d
jmp 0x26ea6
movl 0x4(%rcx,%rsi), %r8d
testb $0x2, %r8b
je 0x26eed
movb (%rcx,%rsi), %dil
andb $-0x80, %r8b
orb %dil, %r8b
cmpb %dl, %r8b
jne 0x26eed
cmpb $0xa, %dil
jne 0x26f0d
movl 0x4(%rcx,%rsi), %edi
btl $0x8, %edi
jb 0x26ed8
btl $0x9, %edi
jae 0x26f0d
cmpb $0x2, 0x1c(%r15)
je 0x26f0d
cmpb $0x0, 0x27(%r15)
je 0x26eed
cmpb $0x0, 0x28(%r15)
jne 0x26eed
jmp 0x26f0d
cmpb $0x1, 0x1c(%r15)
je 0x26f0d
cmpb $0x0, 0x27(%r15)
jne 0x26eed
cmpb $0x0, 0x28(%r15)
jne 0x26f0d
addq $0x18, %rcx
jmp 0x26e69
leaq 0x18(%r14), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x18(%r14)
leaq 0xf7fd6(%rip), %rcx     # 0x11eee1
jmp 0x26f2a
leaq 0x18(%r14), %rax
movq %rax, 0x8(%rsp)
leaq (%rsi,%rcx), %rax
movq %rax, 0x18(%r14)
movq 0x8(%rcx,%rsi), %rcx
testq %rcx, %rcx
cmoveq %rbp, %rcx
movq %rcx, 0x20(%r14)
leaq 0xe08ee(%rip), %rsi     # 0x107823
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movb 0x11(%r14), %cl
testb %cl, %cl
je 0x26f58
movb 0x10(%r14), %al
cmpb $0x1f, %al
jne 0x26f61
cmpq $0x2, 0x18(%r13)
jl 0x26f80
jmp 0x26f94
cmpq $0x1, 0x18(%r13)
jle 0x26f80
jmp 0x26f94
xorl %edx, %edx
cmpb $0x1, %cl
setne %dl
shll $0x2, %edx
leaq 0x19(%rdx), %rcx
addq $0x25, %rdx
testb %al, %al
cmovnsq %rcx, %rdx
cmpq %rdx, 0x18(%r13)
jge 0x26feb
leaq 0xe08b3(%rip), %rsi     # 0x10783a
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xdf2a5
movq 0x48(%r14), %rdi
callq 0xeaf3c
movq 0xa8(%r14), %rsi
testq %rsi, %rsi
je 0x26fb1
movq %rbx, %rdi
callq 0xe4b94
movq 0xb0(%r14), %rdi
testq %rdi, %rdi
je 0x26fc2
callq 0xf0812
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
movl 0x50(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x20(%rsp)
movq %rbx, %rdi
callq 0xeac74
movq %rax, 0x48(%r14)
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %r12
movq (%r12), %rsi
movl 0x10(%r15), %r9d
pushq $0xd
popq %rdx
pushq $0x1
popq %r8
movq %rax, %rcx
callq 0xe4c9a
movq 0x48(%r14), %rdi
callq 0xeb877
leaq 0x107a32(%rip), %rsi    # 0x12ea5e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
addq $0x11, (%r12)
movq 0x28(%r13), %rdx
movq %rdx, 0x38(%r14)
leaq 0xed877(%rip), %rsi     # 0x1148c4
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3fc4
movq %rax, 0x18(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3fc4
movq %r15, %r12
leaq 0x50(%r14), %r15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
callq 0xe0110
movb $0x2, 0x51(%r14)
movq %r12, 0x40(%rsp)
cmpl $0x2, (%r12)
leaq 0xe07c5(%rip), %rax     # 0x107866
leaq 0x10f9eb(%rip), %r12    # 0x136a93
cmoveq %rax, %r12
leaq 0xa0(%rsp), %rsi
pushq $0x40
popq %rdx
movq %r15, 0x18(%rsp)
movq %r15, %rdi
movq %rsi, %r15
xorl %ecx, %ecx
callq 0xe0644
leaq 0x114de2(%rip), %rsi    # 0x13beb2
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe3fc4
movl %eax, 0x40(%r14)
leaq 0x1108e3(%rip), %rsi    # 0x1379dc
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpb $0x1, 0x11(%r14)
jne 0x27116
movq 0x38(%r14), %rax
movq %rax, 0x28(%r14)
jmp 0x2713c
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe40bf
movq %rax, 0x28(%r14)
leaq 0xe410b(%rip), %rsi     # 0x10b23a
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x40(%rsp), %r15
cmpl $0x2, (%r15)
jne 0x2718a
movb $0x1, 0x12(%r14)
movq 0x18(%rbx), %rsi
leaq 0x60(%r14), %r12
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0xed922
movq 0x10(%rsp), %rcx
addq $0x8, %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
movq %r12, %rdx
xorl %r8d, %r8d
callq 0xeda08
addq $0x4, 0x10(%rsp)
movq 0x20(%r13), %rax
movq %rax, 0x30(%r14)
movq 0x50(%r15), %rdi
movq 0x48(%r14), %rsi
callq 0xeb9f5
movl (%r15), %ecx
movl 0x20(%r15), %eax
cmpl $0x1, %ecx
je 0x271ce
cmpl $0x2, %ecx
jne 0x271ea
testl %eax, %eax
je 0x2720c
cmpb $0x0, 0x60(%r14)
je 0x271e4
cmpl $0xddc, 0x70(%r14)      # imm = 0xDDC
jne 0x271e4
cmpb $-0x7e, 0x10(%r14)
je 0x271d9
jmp 0x271e4
testl %eax, %eax
je 0x2720c
cmpb $0x1e, 0x10(%r14)
jne 0x271e4
movl $0x1, 0x90(%r14)
leaq 0x20(%r15), %r12
jmp 0x271f2
leaq 0x20(%r15), %r12
testl %eax, %eax
je 0x27210
movl 0x90(%r14), %edx
leaq 0xdff49(%rip), %rsi     # 0x107149
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
jmp 0x27210
leaq 0x20(%r15), %r12
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
leaq 0x10357c(%rip), %rsi    # 0x12a79b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
callq 0xdfd1a
movb $0x1, 0x8(%rax)
cmpb $0x0, 0x80(%r14)
je 0x27248
leaq 0x80(%r14), %rcx
jmp 0x27252
movq 0x18(%rsp), %rcx
cmpb $0x0, (%rcx)
je 0x27259
movups (%rcx), %xmm0
movups %xmm0, 0x18(%rax)
cmpb $0x0, 0x12(%r14)
je 0x27279
movb $0x1, 0x10(%rax)
movl 0x6c(%r14), %ecx
movl %ecx, 0xa0(%rax)
movq 0x64(%r14), %rcx
movq %rcx, 0xa4(%rax)
cmpl $0x0, 0x90(%r14)
je 0x272f9
movb $0x1, %cl
movb %cl, 0x9(%rax)
movq %rbx, %rdi
movq %rax, %rbp
callq 0xeac74
movq %rax, %r12
movq 0x50(%r15), %rdi
pushq $0x1
popq %rdx
movq %rax, %rsi
callq 0xeba55
movb $0x1, %al
movb %al, 0x9(%rbp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
pushq $0x1
popq %rcx
callq 0xdfd55
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %rdi
callq 0xe5591
movq %r12, %rdi
callq 0xeaf3c
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
movl (%r13), %r8d
incl %r8d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x26977
jmp 0x27983
movzbl 0x10(%r14), %edx
leal -0x1e(%rdx), %ecx
cmpb $0x9, %cl
ja 0x27324
movq %rax, %rbp
leaq 0xe0566(%rip), %rsi     # 0x107876
movq %rbx, %rdi
movq 0x20(%rsp), %rcx
xorl %eax, %eax
callq 0xdf05a
jmp 0x27983
addb $-0x14, %dl
cmpb $0x9, %dl
movq %rax, 0x30(%rsp)
ja 0x27523
movq 0x30(%r14), %r12
leaq 0xa0(%rsp), %rax
movq %r12, (%rax)
movq 0x38(%r14), %rax
addq %r12, %rax
movq %rax, 0x20(%rsp)
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
movzbl 0x10(%r14), %edx
movq 0x30(%r14), %rcx
movq 0x38(%r14), %r8
leaq 0xe06aa(%rip), %rsi     # 0x107a1b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
leaq 0x159fd3(%rip), %r13    # 0x181360
movq %r12, %r15
leaq 0x3(%r12), %rax
movq %rax, 0x28(%rsp)
cmpq 0x20(%rsp), %rax
leaq 0xa0(%rsp), %r12
jg 0x2758f
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3fc4
cmpq $0x3, %rax
jl 0x2758f
leaq (%rax,%r15), %rcx
cmpq 0x20(%rsp), %rcx
jg 0x2758f
movq %rax, 0x8(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movb 0x10(%r14), %cl
xorl %r12d, %r12d
cmpq $0xd8, %r12
je 0x2740b
cmpb %cl, (%r12,%r13)
jne 0x27405
cmpb %al, 0x1(%r12,%r13)
je 0x27419
addq $0x18, %r12
jmp 0x273ef
movq $0x0, 0x48(%rsp)
movq %rbp, %rcx
jmp 0x2742e
leaq (%r12,%r13), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%r12,%r13), %rcx
testq %rcx, %rcx
cmoveq %rbp, %rcx
movq 0x8(%rsp), %rsi
addq $-0x3, %rsi
movzbl %al, %edx
movq %rsi, 0x8(%rsp)
movq %rsi, (%rsp)
movq %rbx, %rdi
leaq 0xe05f6(%rip), %rsi     # 0x107a43
movq %rcx, 0x38(%rsp)
movq %r15, %r8
movq 0x28(%rsp), %r9
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
cmpq $0xd8, %r12
je 0x27480
movq 0x48(%rsp), %rax
testb $0x1, 0x4(%rax)
jne 0x274a8
movq 0x18(%rbx), %rsi
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq 0x28(%rsp), %rdx
movq 0x8(%rsp), %rcx
xorl %r9d, %r9d
callq 0xded3a
jmp 0x27506
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r15
movq 0x18(%rbx), %rdi
movq 0x40(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, (%rsp)
movl $0x800, %ecx            # imm = 0x800
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %r8
pushq $0x1
popq %r9
callq 0xe4ced
movq %r15, %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0xf79cb(%rip), %rsi     # 0x11eeba
movq 0x38(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq %r15, %rdi
callq 0xeaf3c
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rsp), %r12
movq %r12, 0xa0(%rsp)
jmp 0x2738d
leaq 0x48(%r14), %r13
cmpl $0x3, (%r15)
jne 0x275aa
cmpq $0x0, 0xb0(%r14)
je 0x275aa
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x27619
cmpq $0x0, 0x10(%rax)
je 0x27619
movq 0x98(%r14), %rax
movq 0xa0(%r14), %rcx
testq %rax, %rax
je 0x278b9
testq %rcx, %rcx
je 0x278b7
leaq 0xe058b(%rip), %rsi     # 0x107b15
jmp 0x27965
movl 0x58(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq 0x30(%rsp), %rbp
movq 0x40(%rsp), %r15
jmp 0x27983
movq %r13, 0x18(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x54(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
movq %rbx, %rdi
callq 0xeac74
movq %rax, %rbp
movq 0x28(%rsp), %r13
testq %r13, %r13
je 0x27656
movq 0x8(%r13), %rdi
callq 0xeaf8a
testl %eax, %eax
je 0x27656
movq 0x8(%r13), %rsi
movq %rbp, %rdi
callq 0xead71
movq 0x10(%rbp), %rax
testq %rax, %rax
jle 0x27656
movq 0x8(%rbp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x27644
cmpl $0x5c, (%rcx,%rdx,4)
jne 0x27614
movl $0x2f, (%rcx,%rdx,4)
incq %rdx
jmp 0x27602
movq 0x48(%r14), %rdi
callq 0xeb877
movzbl 0x10(%r14), %ecx
movq 0x20(%r14), %r8
leaq 0xe04b0(%rip), %rsi     # 0x107ae2
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x2796f
cmpl $0x2f, -0x4(%rcx,%rax,4)
je 0x27656
pushq $0x2f
popq %rsi
movq %rbp, %rdi
callq 0xeada5
movq %r12, 0x28(%rsp)
movq 0x50(%r15), %rdi
pushq $0x1
popq %rdx
movq %rbp, %rsi
callq 0xeba55
movq %r14, %r12
addq $0x60, %r12
cmpb $0x0, 0x60(%r14)
movq 0x30(%rsp), %r13
je 0x27698
movl 0x90(%r14), %r8d
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
xorl %r9d, %r9d
callq 0xeda93
movq %r12, 0x48(%rsp)
pushq $0x1
popq %r12
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl %r12d, %ecx
callq 0xdfd55
movq %rbx, %rdi
movl %r12d, %esi
callq 0xdeba7
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x27799
cmpq $0x0, 0x10(%rax)
je 0x27799
movq %rbp, 0x38(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movq 0x30(%rsp), %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %r13
movq %rax, %rdi
callq 0xe589c
movq 0x48(%r15), %rdx
leaq 0xbebbc(%rip), %rsi     # 0xe62c1
movq %r13, %rdi
callq 0xe629a
movq 0x48(%r15), %rdi
callq 0xe0e44
leaq 0x58(%rsp), %rbp
leaq 0x88(%rsp), %r12
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0xee7ee
movq 0x18(%rbx), %rax
movq %rax, (%rbp)
movq 0x20(%rsp), %rsi
movq %rsi, 0x8(%rbp)
movq 0x38(%r14), %rcx
movq %rcx, 0x10(%rbp)
movq %r13, 0x8(%rsp)
movq %r13, (%r12)
movb $0x1, 0x8(%r12)
movq 0x28(%r14), %rdx
movq %rdx, 0x10(%r12)
addq %rsi, %rcx
cmpq 0x18(%rax), %rcx
jle 0x277da
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0xeb877
leaq 0xe03e6(%rip), %rsi     # 0x107b6d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x2784c
movq %rbp, %r12
cmpb $0xa, 0x10(%r14)
jne 0x277ac
leaq 0xe021b(%rip), %rbp     # 0x1079c5
jmp 0x277b0
movq 0x20(%r14), %rbp
movq 0x48(%r14), %rdi
callq 0xeb877
movzbl 0x10(%r14), %ecx
leaq 0xe031d(%rip), %rsi     # 0x107ae2
xorl %r13d, %r13d
movq %rbx, %rdi
movq %rax, %rdx
movq %rbp, %r8
xorl %eax, %eax
callq 0xdf2a5
jmp 0x27856
movq 0x18(%r14), %rax
leaq 0x58(%rsp), %rcx
leaq 0x88(%rsp), %rbp
leaq 0xa0(%rsp), %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %r8
movq %r13, %r9
callq *0x10(%rax)
movq (%rbp), %rdi
callq 0xe58e8
cmpl $0x0, (%r13)
je 0x2786f
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0xeb877
movq %rax, %r12
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0xee7bc
leaq 0xdf981(%rip), %rsi     # 0x1071bd
movq %rbx, %rdi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdf2a5
movq 0x38(%rsp), %r12
movq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0xe5591
movq %r12, %rdi
callq 0xeaf3c
movl 0x54(%rsp), %esi
jmp 0x27976
movq 0x48(%r15), %rdi
callq 0xe0e95
movl %eax, 0x44(%r14)
leaq 0xe09d4(%rip), %rsi     # 0x108257
xorl %ebp, %ebp
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl 0x40(%r14), %eax
testl %eax, %eax
movq 0x8(%rsp), %r13
jne 0x279d0
movq 0x28(%rsp), %rcx
cmpl $0x0, (%rcx)
je 0x279a5
xorl %ebp, %ebp
jmp 0x279d0
xorl %ecx, %ecx
addq %rax, %rcx
cmpq 0x28(%r14), %rcx
jne 0x2795e
movq 0xa8(%r14), %rax
testq %rax, %rax
je 0x278ea
movq 0x18(%rax), %rdi
callq 0xeaf8a
testl %eax, %eax
je 0x278ea
movq 0xa8(%r14), %r13
addq $0x18, %r13
movq 0xb0(%r14), %rax
movq 0x68(%rax), %rdi
movq (%r13), %rsi
callq 0xead71
movq 0xb0(%r14), %rax
movb $0x1, 0x79(%rax)
movq 0x20(%rax), %rax
movq 0x30(%rsp), %rcx
movups 0x18(%rcx), %xmm0
movups %xmm0, 0x18(%rax)
movq 0xb0(%r14), %rax
movq %r14, 0x8(%rax)
leaq 0x321(%rip), %rcx       # 0x27c4d
movq %rcx, 0x60(%rax)
leaq 0xbe98a(%rip), %rcx     # 0xe62c1
movq %rcx, 0x30(%rax)
movq 0x48(%r15), %rdi
movq %rdi, 0x28(%rax)
movq %rcx, 0x58(%rax)
movq %rdi, 0x50(%rax)
callq 0xe0e44
movq 0xb0(%r14), %rdi
callq 0xf08e8
jmp 0x2796f
leaq 0xe01d4(%rip), %rsi     # 0x107b39
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
movl 0xa0(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq 0x30(%rsp), %rbp
movq 0x50(%r15), %rdi
callq 0xeb9bd
testq %rbp, %rbp
je 0x26f94
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xdfd24
jmp 0x26f94
movq 0x48(%rsp), %rcx
cmpb $0x0, (%rcx)
je 0x279c4
cmpl $0xddc, 0x70(%r14)      # imm = 0xDDC
jne 0x279c4
cmpb $-0x7e, 0x10(%r14)
sete %bpl
jmp 0x279c6
xorl %ebp, %ebp
movq 0x40(%rsp), %r15
movq 0x8(%rsp), %r13
testb %bpl, %bpl
jne 0x27a0a
cmpl %eax, 0x44(%r14)
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %rax
je 0x27856
movq (%rax), %rdi
callq 0xeb877
leaq 0xe01c4(%rip), %rsi     # 0x107bbc
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x27856
movq 0x38(%rsp), %r12
jmp 0x27856