// File: /workspace/github_c_makefile_star2_O3/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 $0xa8, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdx), %r13
movq %r13, (%rsp)
leaq 0x14(%rsp), %rsi
callq 0xe8a1c
leaq 0x1145f3(%rip), %rsi    # 0x13bb5d
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl $0xb8, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r14
movq %rbx, (%rax)
movq %r15, 0x8(%rax)
cmpl $0x0, (%r12)
jne 0x27618
movq 0x58(%r15), %rax
testq %rax, %rax
je 0x27616
movslq 0x4(%r12), %rcx
cmpq %rcx, 0x38(%r15)
jle 0x27616
shlq $0x4, %rcx
leaq (%rax,%rcx), %rbp
movq (%rax,%rcx), %rdi
callq 0xf67a3
testl %eax, %eax
je 0x275ea
movq (%rbp), %rdi
callq 0xf70f6
leaq 0xed29e(%rip), %rsi     # 0x11487b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x8(%rbp), %rdi
callq 0xf67a3
testl %eax, %eax
je 0x27618
movq 0x8(%rbp), %rdi
callq 0xf70f6
leaq 0x11cd22(%rip), %rsi    # 0x144329
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
jmp 0x27618
xorl %ebp, %ebp
movq (%rsp), %rcx
incq %rcx
movq %rcx, (%rsp)
movb 0x8(%r12), %al
cmpb 0x24(%r15), %al
jne 0x2785b
movl (%r15), %eax
cmpl $0x3, %eax
jne 0x2787d
cmpb $0x0, 0xa(%r12)
je 0x27878
movl $0x3, %eax
cmpq $0x0, 0xb0(%r14)
jne 0x27855
movq %rbp, 0x8(%rsp)
movq 0x10(%r12), %rbp
movq %rbx, %rdi
callq 0xfc498
movq %rax, 0xb0(%r14)
movb $0x1, 0x78(%rax)
leaq 0x2(%rbp), %rsi
movq 0x18(%rbx), %rdi
movl 0x18(%r15), %r9d
movl $0x1f, %edx
movl $0x1f, %ecx
movl $0x1, %r8d
callq 0xef87c
movq %rax, 0xa8(%r14)
movq 0x18(%rax), %rdi
callq 0xf70f6
leaq 0xed273(%rip), %rsi     # 0x114925
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0xa8(%r14), %rax
movq 0x10(%rax), %rdx
testq %rdx, %rdx
je 0x276e3
movq 0xb0(%r14), %rdi
movb $0x1, 0x79(%rdi)
movq 0x8(%rax), %rsi
callq 0xfc530
leaq 0x22(%rbp), %rsi
movq 0x18(%rbx), %rdi
leaq 0x30(%rsp), %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1762
leaq 0x40(%rsp), %rdx
leaq 0xed232(%rip), %rsi     # 0x11493b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0xb0(%r14), %rax
leaq 0x40(%rsp), %rcx
movl -0x10(%rcx), %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 0x78(%rsp), %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1762
leaq 0x88(%rsp), %rdx
leaq 0x10cb8e(%rip), %rsi    # 0x1342eb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0xb0(%r14), %rax
leaq 0x88(%rsp), %rcx
movl -0x10(%rcx), %ecx
movl %ecx, 0x94(%rax)
movq 0xb0(%r14), %rax
movb $0x1, %cl
movb %cl, 0x7c(%rax)
addq $0x2a, %rbp
leaq 0x28(%rsp), %rsi
movq %rbp, (%rsi)
movq 0x18(%rbx), %rdi
callq 0xeeb91
movq %rax, %rbp
movzwl %bp, %edx
leaq 0xed19d(%rip), %rsi     # 0x11494a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0xb0(%r14), %rax
movw %bp, 0x7e(%rax)
movb $0x1, %cl
movb %cl, 0x7d(%rax)
leaq 0x28(%rsp), %rsi
addq $0x6, (%rsi)
movq 0x18(%rbx), %rdi
movq %rsi, %rbp
callq 0xeed83
movq %rax, 0x98(%r14)
leaq 0xed175(%rip), %rsi     # 0x11495f
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xeed83
movq %rax, 0xa0(%r14)
leaq 0xed161(%rip), %rsi     # 0x114972
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
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 (%rsp), %rcx
movl (%r15), %eax
movq 0x8(%rsp), %rbp
addq $0x3b, %rcx
jmp 0x2787d
movq 0x8(%r15), %rdx
leaq 0xed028(%rip), %rsi     # 0x11488e
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9295
jmp 0x27d42
movl $0x3, %eax
incq %rcx
movq %rcx, (%rsp)
movzbl 0x9(%r12), %edx
movb %dl, 0x10(%r14)
movb 0xa(%r12), %cl
movb %cl, 0x11(%r14)
xorl %ecx, %ecx
leaq 0x156880(%rip), %rsi    # 0x17e120
cmpl $0x2, %eax
je 0x278ba
cmpl $0x1, %eax
jne 0x278b1
testb $0x1, 0x4(%rcx,%rsi)
je 0x27917
movb (%rcx,%rsi), %dil
movl %edi, %r8d
jmp 0x278d0
movl 0x4(%rcx,%rsi), %r8d
testb $0x2, %r8b
je 0x27917
movb (%rcx,%rsi), %dil
andb $-0x80, %r8b
orb %dil, %r8b
cmpb %dl, %r8b
jne 0x27917
cmpb $0xa, %dil
jne 0x27932
movl 0x4(%rcx,%rsi), %edi
btl $0x8, %edi
jb 0x27902
btl $0x9, %edi
jae 0x27932
cmpb $0x2, 0x1c(%r15)
je 0x27932
cmpb $0x0, 0x27(%r15)
je 0x27917
cmpb $0x0, 0x28(%r15)
jne 0x27917
jmp 0x27932
cmpb $0x1, 0x1c(%r15)
je 0x27932
cmpb $0x0, 0x27(%r15)
jne 0x27917
cmpb $0x0, 0x28(%r15)
jne 0x27932
addq $0x18, %rcx
cmpq $0x1f8, %rcx            # imm = 0x1F8
jne 0x278a0
movq $0x0, 0x18(%r14)
jmp 0x27944
leaq (%rsi,%rcx), %rax
movq %rax, 0x18(%r14)
movq 0x8(%rcx,%rsi), %rcx
testq %rcx, %rcx
jne 0x2794b
leaq 0x104806(%rip), %rcx    # 0x12c151
movq %rcx, 0x20(%r14)
leaq 0xecf58(%rip), %rsi     # 0x1148ae
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movb 0x11(%r14), %cl
testb %cl, %cl
je 0x2797d
movb 0x10(%r14), %al
cmpb $0x1f, %al
jne 0x2798a
cmpq $0x2, 0x18(%r12)
jl 0x279aa
jmp 0x27d42
cmpq $0x1, 0x18(%r12)
jle 0x279aa
jmp 0x27d42
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(%r12)
jge 0x279c3
leaq 0xecf14(%rip), %rsi     # 0x1148c5
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xe9295
jmp 0x27d42
movq %r13, 0x20(%rsp)
movq %rbp, 0x8(%rsp)
movq %rbx, %rdi
callq 0xf6410
movq %rax, 0x48(%r14)
movq 0x18(%rbx), %rdi
movq %rsp, %r13
movq (%r13), %rsi
movl 0x10(%r15), %r9d
movl $0xd, %edx
movq %rax, %rcx
movl $0x1, %r8d
callq 0xefbd7
movq 0x48(%r14), %rdi
callq 0xf70f6
leaq 0x114343(%rip), %rsi    # 0x13bd4e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
addq $0x11, (%r13)
movq 0x28(%r12), %rdx
movq %rdx, 0x38(%r14)
leaq 0xf9f87(%rip), %rsi     # 0x1219b4
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeebeb
movq %rax, %rbp
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeebeb
leaq 0x50(%r14), %r13
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xea92a
movb $0x2, 0x51(%r14)
cmpl $0x2, (%r15)
leaq 0xece7d(%rip), %rax     # 0x1148f1
leaq 0x11c468(%rip), %rbp    # 0x143ee3
cmoveq %rax, %rbp
leaq 0x30(%rsp), %rsi
movl $0x40, %edx
movq %r13, 0x18(%rsp)
movq %r13, %rdi
movq %rsi, %r13
xorl %ecx, %ecx
callq 0xeaf46
leaq 0x1218e0(%rip), %rsi    # 0x149382
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %rsp, %rsi
callq 0xeebeb
movl %eax, 0x40(%r14)
leaq 0x11d363(%rip), %rsi    # 0x144e2c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x1, 0x11(%r14)
jne 0x27ae6
movq 0x38(%r14), %rax
movq %rax, 0x28(%r14)
jmp 0x27b0a
movq 0x18(%rbx), %rdi
movq %rsp, %rsi
callq 0xeed83
movq %rax, 0x28(%r14)
leaq 0xf082d(%rip), %rsi     # 0x11832a
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, (%r15)
movq 0x20(%rsp), %r13
jne 0x27b54
movb $0x1, 0x12(%r14)
movq 0x18(%rbx), %rsi
leaq 0x60(%r14), %rbp
movq (%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xf9284
movq (%rsp), %rcx
addq $0x8, %rcx
movq %rcx, (%rsp)
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
xorl %r8d, %r8d
callq 0xf9370
addq $0x4, (%rsp)
movq 0x20(%r12), %rax
movq %rax, 0x30(%r14)
movq 0x50(%r15), %rdi
movq 0x48(%r14), %rsi
callq 0xf72a4
movl (%r15), %ecx
movl 0x20(%r15), %eax
cmpl $0x1, %ecx
je 0x27b99
cmpl $0x2, %ecx
jne 0x27bb1
testl %eax, %eax
je 0x27bcd
cmpb $0x0, 0x60(%r14)
je 0x27bb5
cmpl $0xddc, 0x70(%r14)      # imm = 0xDDC
jne 0x27bb5
cmpb $-0x7e, 0x10(%r14)
je 0x27ba4
jmp 0x27bb5
testl %eax, %eax
je 0x27bcd
cmpb $0x1e, 0x10(%r14)
jne 0x27bb5
movl $0x1, 0x90(%r14)
jmp 0x27bb5
testl %eax, %eax
je 0x27bcd
movl 0x90(%r14), %edx
leaq 0xec5e6(%rip), %rsi     # 0x1141a9
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
leaq 0x10fe9f(%rip), %rsi    # 0x137a7b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xea504
movq %rax, %rbp
movb $0x1, 0x8(%rax)
cmpb $0x0, 0x80(%r14)
je 0x27c08
movq %r14, %rax
subq $-0x80, %rax
jmp 0x27c12
movq 0x18(%rsp), %rax
cmpb $0x0, (%rax)
je 0x27c19
movups (%rax), %xmm0
movups %xmm0, 0x18(%rbp)
cmpb $0x0, 0x12(%r14)
je 0x27c39
movb $0x1, 0x10(%rbp)
movl 0x6c(%r14), %eax
movl %eax, 0xa0(%rbp)
movq 0x64(%r14), %rax
movq %rax, 0xa4(%rbp)
cmpl $0x0, 0x90(%r14)
je 0x27cb7
movb $0x1, %al
movb %al, 0x9(%rbp)
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r13
movq 0x50(%r15), %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0xf730d
movb $0x1, %al
movb %al, 0x9(%rbp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0xea53f
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, %rdi
callq 0xf052b
movq %r13, %rdi
callq 0xf6753
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
movl (%r12), %r8d
incl %r8d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x273ed
jmp 0x27d2e
movzbl 0x10(%r14), %edx
leal -0x1e(%rdx), %eax
cmpb $0x9, %al
ja 0x27cd9
leaq 0xecc37(%rip), %rsi     # 0x114901
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8faa
jmp 0x27d2e
addb $-0x14, %dl
cmpb $0x9, %dl
ja 0x27cf1
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x27d99
jmp 0x27d2e
cmpl $0x3, (%r15)
jne 0x27d14
cmpq $0x0, 0xb0(%r14)
je 0x27d14
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x27fb9
jmp 0x27d2e
movq 0x30(%r14), %r9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
movq %rbp, %r8
callq 0x28101
movq 0x50(%r15), %rdi
callq 0xf7267
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xea50e
movq 0x48(%r14), %rdi
callq 0xf6753
movq 0xa8(%r14), %rsi
testq %rsi, %rsi
je 0x27d5f
movq %rbx, %rdi
callq 0xefaca
movq 0xb0(%r14), %rdi
testq %rdi, %rdi
je 0x27d70
callq 0xfc4de
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
movl 0x14(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq