// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/src/deark-user.c
// Function: de_run
int de_run(deark *c)
{
	dbuf *orig_ifile = NULL;
	dbuf *subfile = NULL;
	i64 subfile_size;
	struct deark_module_info *module_to_use = NULL;
	int module_was_autodetected = 0;
	int moddisp;
	int subdirs_opt;
	int keepdirentries_opt;
	int tmp_opt;
	de_module_params *mparams = NULL;
	de_ucstring *friendly_infn = NULL;

	if(c->serious_error_flag) goto done;

	if(c->modhelp_req && c->input_format_req) {
		do_modhelp(c);
		goto done;
	}

	if(c->extrlist_filename) {
		open_extrlist(c);
		if(c->serious_error_flag) goto done;
	}

	friendly_infn = ucstring_create(c);

	if(c->input_style==DE_INPUTSTYLE_STDIN) {
		ucstring_append_sz(friendly_infn, "[stdin]", DE_ENCODING_LATIN1);
	}
	else if(c->input_filename) {
		ucstring_append_sz(friendly_infn, c->input_filename, DE_ENCODING_UTF8);
	}
	else {
		de_internal_err_nonfatal(c, "Input file not set");
		c->serious_error_flag = 1;
		goto done;
	}

	de_register_modules(c);

	if(c->input_format_req) {
		module_to_use = de_get_module_by_id(c, c->input_format_req);
		if(!module_to_use) {
			de_err(c, "Unknown module \"%s\"", c->input_format_req);
			c->serious_error_flag = 1;
			goto done;
		}
	}

	if(c->slice_start_req_special!=0) {
		ucstring_append_sz(friendly_infn, "[special]", DE_ENCODING_LATIN1);
	}
	else if(c->slice_size_req_valid) {
		ucstring_printf(friendly_infn, DE_ENCODING_LATIN1, "[%"I64_FMT",%"I64_FMT"]",
			c->slice_start_req, c->slice_size_req);
	}
	else if(c->slice_start_req) {
		ucstring_printf(friendly_infn, DE_ENCODING_LATIN1, "[%"I64_FMT"]", c->slice_start_req);
	}
	if(c->mp_data && c->mp_data->count>0) {
		ucstring_printf(friendly_infn, DE_ENCODING_LATIN1, " (+%d more file%s)",
			c->mp_data->count, (c->mp_data->count==1 ? "" : "s"));
	}
	de_dbg(c, "Input file: %s", ucstring_getpsz_d(friendly_infn));

	if(c->input_style==DE_INPUTSTYLE_STDIN) {
		orig_ifile = dbuf_open_input_stdin(c);
	}
	else {
		orig_ifile = dbuf_open_input_file(c, c->input_filename);

		if(orig_ifile && orig_ifile->btype==DBUF_TYPE_FIFO) {
			// Only now do we know that the input "file" is a named pipe.
			// Set a flag to remember that the input filename does not
			// reflect the file format.
			c->suppress_detection_by_filename = 1;
		}
	}
	if(!orig_ifile) {
		goto done;
	}

	c->infile = orig_ifile;

	if(c->slice_start_req_special==1) {
		if(!do_special_overlay_startpos(c)) {
			de_err(c, "File not compatible with \"-start overlay\"");
			goto done;
		}
	}

	// If we are only supposed to look at a segment of the original file,
	// do that by creating a child dbuf, using dbuf_open_input_subfile().
	if(c->slice_start_req!=0 || c->slice_size_req_valid) {
		if(c->slice_start_req<0 || c->slice_size_req<0 ||
			(c->slice_start_req+c->slice_size_req > c->infile->len))
		{
			de_err(c, "File not compatible with given -start/-size options");
			goto done;
		}

		if(c->slice_size_req_valid)
			subfile_size = c->slice_size_req;
		else
			subfile_size = c->infile->len - c->slice_start_req;
		subfile = dbuf_open_input_subfile(c->infile, c->slice_start_req, subfile_size);
		c->infile = subfile;
	}

	if(!module_to_use) {
		int errflag;

		module_to_use = detect_module_for_file(c, &errflag);
		if(errflag) goto done;
		module_was_autodetected = 1;
	}

	if(!module_to_use) {
		if(c->infile->len==0)
			de_err(c, "Unknown or unsupported file format (empty file)");
		else
			de_err(c, "Unknown or unsupported file format");
		goto done;
	}

	if(c->modhelp_req && module_was_autodetected &&
		module_to_use->unique_id!=1) // id 1 == "unsupported"
	{
		do_modhelp_internal(c, module_to_use);
		goto done;
	}

	de_info(c, "Module: %s", module_to_use->id);

	if(c->mp_data && c->mp_data->count &&
		!(module_to_use->flags&DE_MODFLAG_MULTIPART))
	{
		de_err(c, "The %s module does not support multiple input files",
			module_to_use->id);
		c->serious_error_flag = 1;
		goto done;
	}

	if(module_was_autodetected && (module_to_use->flags&DE_MODFLAG_SECURITYWARNING)) {
		de_err(c, "The %s module has not been audited for security. There is a "
			"greater than average chance that it is unsafe to use with untrusted "
			"input files. Use \"-m %s\" to confirm that you want to use it.",
			module_to_use->id, module_to_use->id);
		c->serious_error_flag = 1;
		goto done;
	}

	if(module_was_autodetected && (module_to_use->flags&DE_MODFLAG_WARNPARSEONLY)) {
		de_warn(c, "The %s module can parse files, but does not generally support "
			"extracting data.", module_to_use->id);
	}
	if(module_to_use->flags&DE_MODFLAG_NONWORKING) {
		de_warn(c, "The %s module is considered to be incomplete, and may "
			"not work properly. Caveat emptor.",
			module_to_use->id);
	}

	if(c->identify_only) {
		// Stop here, unless we're using the "unsupported" module.
		if(module_to_use->unique_id!=1) {
			goto done;
		}
	}

	de_dbg2(c, "file size: %" I64_FMT "", c->infile->len);

	if(c->output_style==DE_OUTPUTSTYLE_ARCHIVE) {
		subdirs_opt = de_get_ext_option_bool(c, "archive:subdirs", -1);
		if(subdirs_opt<0) {
			// By default, for archive output, enable subdirs unless -o was used.
			if(!c->base_output_filename) {
				c->allow_subdirs = 1;
			}
		}
		else {
			c->allow_subdirs = subdirs_opt?1:0;
		}
	}

	keepdirentries_opt = de_get_ext_option_bool(c, "keepdirentries", -1);
	if(keepdirentries_opt<0) {
		// By default, only keep dir entries if there is some way that
		// files can be present in such a subdir.
		c->keep_dir_entries = (u8)(
			(c->output_style==DE_OUTPUTSTYLE_ARCHIVE) &&
			c->allow_subdirs &&
			(!c->base_output_filename));
	}
	else {
		c->keep_dir_entries = keepdirentries_opt?1:0;
	}

	if(c->output_style==DE_OUTPUTSTYLE_ARCHIVE) {
		const char *s_opt;

		s_opt = de_get_ext_option(c, "archive:timestamp");
		if(s_opt) {
			c->reproducible_output = 1;
			de_unix_time_to_timestamp(de_atoi64(s_opt), &c->reproducible_timestamp, 0x1);
			if(!c->reproducible_timestamp.is_valid) {
				// Timestamp out of range? Note: Supported range is
				//  -11644473599 ( 1601-01-01 00:00:01) through
				//  910692730085 (30828-09-14 02:48:05)
				c->reproducible_output = 0;
			}
		}
		else {
			if(de_get_ext_option(c, "archive:repro")) {
				c->reproducible_output = 1;
			}
		}
	}

	if(c->output_style==DE_OUTPUTSTYLE_DIRECT &&
		c->max_output_files > DE_DEFAULT_MAX_OUTPUT_FILES &&
		!c->list_mode && !c->user_set_max_output_files)
	{
		c->max_output_files = DE_DEFAULT_MAX_OUTPUT_FILES;
	}

	if(de_get_ext_option_bool(c, "oinfo", 0)) {
		c->enable_oinfo = 1;
	}

	tmp_opt = de_get_ext_option_bool(c, "wbuffer", -1);
	if(tmp_opt>0) {
		// For testing(?), enable wbuffer feature automatically in some cases.
		c->enable_wbuffer_test = 1;
	}
	else if(tmp_opt==0) {
		// Always disable wbuffer, even if a module wants to use it.
		c->disable_wbuffer = 1;
	}

	// If we're writing to a zip file, we normally defer creating that zip file
	// until we find a file to extract, so that we never create a zip file with
	// no member files.
	// But if the zip "file" is going to stdout, we'll make sure we produce zip
	// output, even if it has no member files.
	if(c->output_style==DE_OUTPUTSTYLE_ARCHIVE && c->archive_to_stdout) {
		if(!de_archive_initialize(c)) {
			goto done;
		}
	}

	if(c->list_mode) {
		if(de_get_ext_option_bool(c, "list:fileid", 0)) {
			c->list_mode_include_file_id = 1;
		}
	}

	if(c->modcodes_req) {
		if(!mparams)
			mparams = de_malloc(c, sizeof(de_module_params));
		// This is a hack, mainly for developer use. It lets the user set the
		// "module codes" string from the command line, so that some modules
		// can be run in special modes. For example, you can run the psd module
		// in its "tagged blocks" mode. (If that turns out to be useful, though,
		// it would be better to make it available via an "-opt" option, or
		// even a new module.)
		mparams->in_params.codes = c->modcodes_req;
	}

	if(module_was_autodetected)
		moddisp = DE_MODDISP_AUTODETECT;
	else
		moddisp = DE_MODDISP_EXPLICIT;

	if(!de_run_module(c, module_to_use, mparams, moddisp)) {
		goto done;
	}

	// The DE_MODFLAG_NOEXTRACT flag means the module is not expected to extract
	// any files.
	if(c->num_files_extracted==0 && c->error_count==0 &&
		!(module_to_use->flags&DE_MODFLAG_NOEXTRACT))
	{
		de_info(c, "No files found to extract!");
	}

done:
	if(c->extrlist_dbuf) { dbuf_close(c->extrlist_dbuf); c->extrlist_dbuf=NULL; }
	ucstring_destroy(friendly_infn);
	if(subfile) dbuf_close(subfile);
	if(orig_ifile) dbuf_close(orig_ifile);
	c->infile = NULL;
	de_free(c, mparams);
	return c->serious_error_flag ? 0 : 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x4c(%rdi)
je 0x1086c5
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x148(%rbx), %rdi
testq %rdi, %rdi
je 0x108678
callq 0xf0b13
movq $0x0, 0x148(%rbx)
movq %r14, %rdi
callq 0xf6bb0
testq %r13, %r13
je 0x10868d
movq %r13, %rdi
callq 0xf0b13
testq %r15, %r15
je 0x10869a
movq %r15, %rdi
callq 0xf0b13
movq $0x0, 0x18(%rbx)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe9752
xorl %eax, %eax
cmpb $0x0, 0x4c(%rbx)
sete %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0xf9(%rbx)
je 0x1086ef
cmpq $0x0, 0x58(%rbx)
je 0x1086ef
movq 0x1a0(%rbx), %rax
testq %rax, %rax
je 0x108798
movq %rbx, %rdi
callq *%rax
jmp 0x1087a9
cmpq $0x0, 0x168(%rbx)
je 0x10873f
cmpq $0x0, 0x148(%rbx)
jne 0x108735
leaq 0x43abb(%rip), %rsi     # 0x14c1c5
movq %rbx, %rdi
callq 0xea6cb
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movq 0x168(%rbx), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0xf0d34
movq %rax, 0x148(%rbx)
cmpb $0x0, 0x4c(%rbx)
jne 0x108651
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r14
cmpl $0x1, 0x84(%rbx)
jne 0x108764
leaq 0x4370f(%rip), %rsi     # 0x14be69
movq %r14, %rdi
movl $0x5, %edx
jmp 0x108779
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0x10889f
movq %r14, %rdi
movl $0x2, %edx
callq 0xf6a40
movq 0x1a0(%rbx), %rax
testq %rax, %rax
je 0x108816
movq %rbx, %rdi
callq *%rax
jmp 0x108827
leaq 0x436af(%rip), %rsi     # 0x14be4e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xea0a6
movq 0x58(%rbx), %rsi
movq %rbx, %rdi
callq 0xea48b
movq 0x58(%rbx), %r15
testq %rax, %rax
je 0x1087fa
movq %rax, %r14
movq (%rax), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x181a0
testl %eax, %eax
je 0x1087ea
leaq 0x439ca(%rip), %rsi     # 0x14c1a4
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9fc3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x108f2f
jmp 0x108651
leaq 0x43683(%rip), %rsi     # 0x14be84
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0x108654
leaq 0x43631(%rip), %rsi     # 0x14be4e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xea0a6
movq 0x58(%rbx), %rsi
testq %rsi, %rsi
je 0x10885a
movq %rbx, %rdi
callq 0xea48b
movq %rax, %r12
testq %rax, %rax
jne 0x10885d
movq 0x58(%rbx), %rdx
leaq 0x43639(%rip), %rsi     # 0x14be84
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x1088b3
xorl %r12d, %r12d
cmpb $0x0, 0x78(%rbx)
je 0x108879
leaq 0x4362e(%rip), %rsi     # 0x14be98
movq %r14, %rdi
movl $0x5, %edx
callq 0xf6a40
jmp 0x1088d7
cmpb $0x0, 0x79(%rbx)
movq 0x68(%rbx), %rcx
je 0x1088bc
movq 0x70(%rbx), %r8
leaq 0x43614(%rip), %rdx     # 0x14bea2
movq %r14, %rdi
movl $0x5, %esi
xorl %eax, %eax
callq 0xf6ab0
jmp 0x1088d7
leaq 0x435cb(%rip), %rsi     # 0x14be71
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xea1a2
movb $0x1, 0x4c(%rbx)
jmp 0x108a10
testq %rcx, %rcx
je 0x1088d7
leaq 0x1173e(%rip), %rdx     # 0x11a006
movq %r14, %rdi
movl $0x5, %esi
xorl %eax, %eax
callq 0xf6ab0
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x108911
movl (%rax), %ecx
testl %ecx, %ecx
jle 0x108911
cmpl $0x1, %ecx
leaq 0x3c2e0(%rip), %rax     # 0x144bd0
leaq 0xc3b9(%rip), %r8       # 0x114cb0
cmoveq %rax, %r8
leaq 0x435aa(%rip), %rdx     # 0x14beac
movq %r14, %rdi
movl $0x5, %esi
xorl %eax, %eax
callq 0xf6ab0
movq %r14, %rdi
callq 0xf7557
leaq 0x4359f(%rip), %rsi     # 0x14bebf
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpl $0x1, 0x84(%rbx)
jne 0x108943
movq %rbx, %rdi
callq 0xf1946
movq %rax, %r15
jmp 0x108965
movq 0x50(%rbx), %rsi
movq %rbx, %rdi
callq 0xf1717
testq %rax, %rax
je 0x108962
movq %rax, %r15
cmpl $0x7, (%rax)
jne 0x108965
movb $0x1, 0x7a(%rbx)
jmp 0x108965
xorl %r15d, %r15d
testq %r15, %r15
je 0x108a0d
movq %r15, 0x18(%rbx)
cmpb $0x1, 0x78(%rbx)
jne 0x108a42
leaq 0x12(%rsp), %r13
movl $0x2, %ecx
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xeeee8
movb (%r13), %al
movb 0x1(%r13), %cl
movl %eax, %edx
xorb $0x4d, %dl
movl %ecx, %esi
xorb $0x5a, %sil
orb %dl, %sil
je 0x1089b8
xorb $0x5a, %al
xorb $0x4d, %cl
orb %al, %cl
jne 0x108a79
movq 0x18(%rbx), %rdi
movl $0x2, %esi
callq 0xef1ca
movq %rax, %rbp
movq 0x18(%rbx), %rdi
movl $0x4, %esi
callq 0xef1ca
movq %rax, %r13
andl $0x7ff, %r13d           # imm = 0x7FF
testq %rbp, %rbp
je 0x108a15
cmpq $0x200, %rbp            # imm = 0x200
setl %al
testq %r13, %r13
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x108a79
shll $0x9, %r13d
addq %rbp, %r13
addq $-0x200, %r13           # imm = 0xFE00
jmp 0x108a19
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x108a8d
shll $0x9, %r13d
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
subq %r13, %rcx
js 0x108a79
leaq 0x437a8(%rip), %rsi     # 0x14c1d5
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xe93cf
movq %r13, 0x68(%rbx)
movb $0x1, 0x7a(%rbx)
movq 0x68(%rbx), %rsi
testq %rsi, %rsi
jne 0x108a51
cmpb $0x0, 0x79(%rbx)
je 0x108aad
testq %rsi, %rsi
js 0x108a70
movq 0x70(%rbx), %rdx
testq %rdx, %rdx
js 0x108a70
leaq (%rdx,%rsi), %rcx
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rax
cmpq %rax, %rcx
jle 0x108a94
leaq 0x43481(%rip), %rsi     # 0x14bef8
jmp 0x108a80
leaq 0x4344e(%rip), %rsi     # 0x14bece
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
xorl %ebp, %ebp
jmp 0x10865c
subq %rsi, %rax
cmpb $0x0, 0x79(%rbx)
cmoveq %rax, %rdx
callq 0xf1988
movq %rax, %r13
movq %rax, 0x18(%rbx)
jmp 0x108ab0
xorl %r13d, %r13d
testq %r12, %r12
je 0x108b26
xorl %ebp, %ebp
testq %r12, %r12
je 0x108bef
cmpb $0x0, 0xf9(%rbx)
sete %al
movl %ebp, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x108adf
cmpl $0x1, 0x34(%r12)
jne 0x108c03
movq (%r12), %rdx
leaq 0x43495(%rip), %rsi     # 0x14bf7f
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9ef5
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x108b4c
cmpl $0x0, (%rax)
je 0x108b4c
testb $0x40, 0x30(%r12)
jne 0x108b4c
movq (%r12), %rdx
leaq 0x43475(%rip), %rsi     # 0x14bf8a
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x108c45
leaq 0x14(%rsp), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x108e45
cmpl $0x0, (%rbp)
sete %bpl
jne 0x108a8d
movq %rax, %r12
jmp 0x108ab7
testb %bpl, %bpl
je 0x108b77
movl 0x30(%r12), %eax
testb $0x8, %al
jne 0x108c2b
testb $0x20, %al
je 0x108b77
movq (%r12), %rdx
leaq 0x4350e(%rip), %rsi     # 0x14c07b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9b27
testb $0x2, 0x30(%r12)
je 0x108b94
movq (%r12), %rdx
leaq 0x43540(%rip), %rsi     # 0x14c0ca
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9b27
cmpb $0x0, 0xf8(%rbx)
je 0x108ba9
cmpl $0x1, 0x34(%r12)
jne 0x108a8d
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
leaq 0xda96(%rip), %rsi      # 0x11664e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe93cf
cmpl $0x1, 0x7c(%rbx)
jne 0x108c5c
leaq 0x4354f(%rip), %rsi     # 0x14c122
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xea727
testl %eax, %eax
js 0x108c4e
setne %al
movb %al, 0x89(%rbx)
jmp 0x108c5c
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x108c13
leaq 0x4335b(%rip), %rsi     # 0x14bf5c
jmp 0x108c1a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x108f2f
jmp 0x108a8d
leaq 0x43312(%rip), %rsi     # 0x14bf2c
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x10865c
movq (%r12), %rcx
leaq 0x43388(%rip), %rsi     # 0x14bfbe
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rcx, %rdx
xorl %eax, %eax
callq 0xe9df7
movb $0x1, 0x4c(%rbx)
jmp 0x10865c
cmpq $0x0, 0x150(%rbx)
je 0x108e3e
leaq 0x434cf(%rip), %rsi     # 0x14c132
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xea727
testl %eax, %eax
js 0x108c79
setne %al
jmp 0x108c97
cmpl $0x1, 0x7c(%rbx)
jne 0x108c95
cmpb $0x0, 0x89(%rbx)
je 0x108c95
cmpq $0x0, 0x150(%rbx)
sete %al
jmp 0x108c97
xorl %eax, %eax
movb %al, 0xcf(%rbx)
cmpl $0x1, 0x7c(%rbx)
jne 0x108d07
leaq 0x43497(%rip), %rsi     # 0x14c141
movq %rbx, %rdi
callq 0xea6cb
testq %rax, %rax
je 0x108cec
movb $0x1, 0xdf(%rbx)
movq %rax, %rdi
callq 0xea786
leaq 0xe0(%rbx), %rsi
movq %rax, %rdi
movl $0x1, %edx
callq 0xeace2
cmpb $0x0, 0xe0(%rbx)
jne 0x108d07
movb $0x0, 0xdf(%rbx)
jmp 0x108d07
leaq 0x43460(%rip), %rsi     # 0x14c153
movq %rbx, %rdi
callq 0xea6cb
testq %rax, %rax
je 0x108d07
movb $0x1, 0xdf(%rbx)
cmpl $0x0, 0x7c(%rbx)
jne 0x108d35
cmpl $0x3e9, 0x9c(%rbx)      # imm = 0x3E9
jl 0x108d35
cmpb $0x0, 0x94(%rbx)
jne 0x108d35
cmpb $0x0, 0xa0(%rbx)
jne 0x108d35
movl $0x3e8, 0x9c(%rbx)      # imm = 0x3E8
leaq 0x78a3(%rip), %rsi      # 0x1105df
movq %rbx, %rdi
xorl %edx, %edx
callq 0xea727
testl %eax, %eax
je 0x108d51
movb $0x1, 0x96(%rbx)
leaq 0x43409(%rip), %rsi     # 0x14c161
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xea727
testl %eax, %eax
jle 0x108d72
movb $0x1, 0x12b(%rbx)
jmp 0x108d7b
jne 0x108d7b
movb $0x1, 0x12c(%rbx)
cmpl $0x1, 0x7c(%rbx)
jne 0x108d9a
cmpb $0x0, 0x88(%rbx)
je 0x108d9a
movq %rbx, %rdi
callq 0xebfea
testl %eax, %eax
je 0x108a8d
cmpb $0x0, 0x94(%rbx)
je 0x108dbf
leaq 0x433bf(%rip), %rsi     # 0x14c169
movq %rbx, %rdi
xorl %edx, %edx
callq 0xea727
testl %eax, %eax
je 0x108dbf
movb $0x1, 0x95(%rbx)
movl %ebp, 0xc(%rsp)
cmpq $0x0, 0x60(%rbx)
je 0x108de4
movl $0x70, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %rbp
movq 0x60(%rbx), %rax
movq %rax, (%rbp)
jmp 0x108de6
xorl %ebp, %ebp
movzbl 0xc(%rsp), %eax
movl $0x2, %ecx
subl %eax, %ecx
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0xea4af
testl %eax, %eax
je 0x10865c
cmpl $0x0, 0x3c(%rbx)
jne 0x10865c
cmpl $0x0, 0x48(%rbx)
jne 0x10865c
testb $0x4, 0x30(%r12)
jne 0x10865c
leaq 0x43346(%rip), %rsi     # 0x14c175
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9ef5
jmp 0x10865c
movb $0x1, %al
jmp 0x108be7