// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x4c(%rdi)
je 0xfb7cc
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x148(%rbx), %rdi
testq %rdi, %rdi
je 0xfb782
callq 0xe5591
andq $0x0, 0x148(%rbx)
movq %r14, %rdi
callq 0xeaf3c
testq %r12, %r12
je 0xfb797
movq %r12, %rdi
callq 0xe5591
testq %r15, %r15
je 0xfb7a4
movq %r15, %rdi
callq 0xe5591
andq $0x0, 0x18(%rbx)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xded32
xorl %eax, %eax
cmpb $0x0, 0x4c(%rbx)
sete %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0xf9(%rbx)
je 0xfb839
cmpq $0x0, 0x58(%rbx)
je 0xfb839
movq %rbx, %rdi
callq 0xfb704
movq 0x58(%rbx), %rsi
movq %rbx, %rdi
callq 0xdf865
movq 0x58(%rbx), %r15
testq %rax, %rax
je 0xfb8e6
movq %rax, %r14
movq (%rax), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x181a0
testl %eax, %eax
je 0xfb829
leaq 0x43aab(%rip), %rsi     # 0x13f2c4
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xdf42e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xfbfd9
jmp 0xfb75e
cmpq $0x0, 0x168(%rbx)
je 0xfb851
cmpq $0x0, 0x148(%rbx)
je 0xfb902
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r14
cmpl $0x1, 0x84(%rbx)
jne 0xfb870
leaq 0x4371d(%rip), %rsi     # 0x13ef89
pushq $0x5
jmp 0xfb87f
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0xfb965
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0xeae42
movq %rbx, %rdi
callq 0xfb704
movq 0x58(%rbx), %rsi
testq %rsi, %rsi
je 0xfb8c6
movq %rbx, %rdi
callq 0xdf865
movq %rax, %r13
testq %rax, %rax
jne 0xfb8c9
movq 0x58(%rbx), %rdx
leaq 0x436f0(%rip), %rsi     # 0x13efa4
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xfb979
xorl %r13d, %r13d
cmpb $0x0, 0x78(%rbx)
je 0xfb941
leaq 0x436e2(%rip), %rsi     # 0x13efb8
pushq $0x5
popq %rdx
movq %r14, %rdi
callq 0xeae42
jmp 0xfb99b
leaq 0x436b7(%rip), %rsi     # 0x13efa4
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xdf2a5
jmp 0xfb761
leaq 0x439dc(%rip), %rsi     # 0x13f2e5
movq %rbx, %rdi
callq 0xdfa87
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movq 0x168(%rbx), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0xe579c
movq %rax, 0x148(%rbx)
cmpb $0x0, 0x4c(%rbx)
jne 0xfb75e
jmp 0xfb851
cmpb $0x0, 0x79(%rbx)
movq 0x68(%rbx), %rcx
je 0xfb982
movq 0x70(%rbx), %r8
leaq 0x4366c(%rip), %rdx     # 0x13efc2
pushq $0x5
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0xeae8b
jmp 0xfb99b
leaq 0x43625(%rip), %rsi     # 0x13ef91
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf5b8
movb $0x1, 0x4c(%rbx)
jmp 0xfbacb
testq %rcx, %rcx
je 0xfb99b
leaq 0x116a8(%rip), %rdx     # 0x10d036
pushq $0x5
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0xeae8b
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0xfb9d3
movl (%rax), %ecx
testl %ecx, %ecx
jle 0xfb9d3
cmpl $0x1, %ecx
leaq 0x3c2ac(%rip), %rax     # 0x137c60
leaq 0xc345(%rip), %r8       # 0x107d00
cmoveq %rax, %r8
leaq 0x43606(%rip), %rdx     # 0x13efcc
pushq $0x5
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0xeae8b
movq %r14, %rdi
callq 0xeb877
leaq 0x435fd(%rip), %rsi     # 0x13efdf
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpl $0x1, 0x84(%rbx)
jne 0xfba0d
movq %rbx, %rdi
callq 0xe6225
movq %rax, %r15
testq %rax, %rax
jne 0xfba2e
jmp 0xfbac8
movq 0x50(%rbx), %rsi
movq %rbx, %rdi
callq 0xe600b
testq %rax, %rax
je 0xfbac8
movq %rax, %r15
cmpl $0x7, (%rax)
jne 0xfba2e
movb $0x1, 0x7a(%rbx)
movq %r15, 0x18(%rbx)
cmpb $0x1, 0x78(%rbx)
jne 0xfbad0
leaq 0x16(%rsp), %r12
pushq $0x2
popq %rcx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xe3cb7
movb (%r12), %al
movb 0x1(%r12), %cl
movl %eax, %edx
xorb $0x4d, %dl
movl %ecx, %esi
xorb $0x5a, %sil
orb %dl, %sil
je 0xfba77
xorb $0x5a, %al
xorb $0x4d, %cl
orb %al, %cl
jne 0xfbb0c
movq 0x18(%rbx), %rdi
pushq $0x2
popq %rsi
callq 0xe3fa3
movq %rax, %rbp
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3fa3
movq %rax, %r12
andl $0x7ff, %r12d           # imm = 0x7FF
testq %rbp, %rbp
je 0xfbad6
cmpq $0x200, %rbp            # imm = 0x200
setl %al
testq %r12, %r12
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xfbb0c
shll $0x9, %r12d
addq %rbp, %r12
addq $-0x200, %r12           # imm = 0xFE00
jmp 0xfbada
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0xfbb49
movq 0x68(%rbx), %r12
jmp 0xfbb03
shll $0x9, %r12d
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
subq %r12, %rcx
js 0xfbb0c
leaq 0x43807(%rip), %rsi     # 0x13f2f5
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xde9f1
movq %r12, 0x68(%rbx)
movb $0x1, 0x7a(%rbx)
testq %r12, %r12
je 0xfbb15
jns 0xfbb1b
jmp 0xfbb35
leaq 0x434db(%rip), %rsi     # 0x13efee
jmp 0xfbb3c
cmpb $0x0, 0x79(%rbx)
je 0xfbb6c
movq 0x70(%rbx), %rdx
testq %rdx, %rdx
js 0xfbb35
leaq (%rdx,%r12), %rcx
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rax
cmpq %rax, %rcx
jle 0xfbb50
leaq 0x434dc(%rip), %rsi     # 0x13f018
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
xorl %ebp, %ebp
jmp 0xfb769
subq %r12, %rax
cmpb $0x0, 0x79(%rbx)
cmoveq %rax, %rdx
movq %r12, %rsi
callq 0xe6248
movq %rax, %r12
movq %rax, 0x18(%rbx)
jmp 0xfbb6f
xorl %r12d, %r12d
movq %r13, %rbp
testq %r13, %r13
je 0xfbc42
movq (%rbp), %rdx
leaq 0x43519(%rip), %rsi     # 0x13f09f
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf37f
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0xfbbc0
cmpl $0x0, (%rax)
je 0xfbbc0
testb $0x40, 0x30(%rbp)
jne 0xfbbc0
movq (%rbp), %rdx
leaq 0x434fb(%rip), %rsi     # 0x13f0aa
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xfbd88
testq %r13, %r13
je 0xfbd45
testb $0x2, 0x30(%rbp)
je 0xfbbe4
movq (%rbp), %rdx
leaq 0x43610(%rip), %rsi     # 0x13f1ea
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf05a
cmpb $0x0, 0xf8(%rbx)
je 0xfbbf7
cmpl $0x1, 0x34(%rbp)
jne 0xfbb49
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
leaq 0xda68(%rip), %rsi      # 0x10966e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde9f1
cmpl $0x1, 0x7c(%rbx)
jne 0xfbdc4
leaq 0x43621(%rip), %rsi     # 0x13f242
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0xdfae5
testl %eax, %eax
js 0xfbdb6
setne %al
movb %al, 0x89(%rbx)
jmp 0xfbdc4
movq %r13, 0x20(%rsp)
movq %r14, 0x18(%rsp)
movq 0x28(%rbx), %rax
testq %rax, %rax
jne 0xfbc64
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0xdecaf
movq %rax, 0x28(%rbx)
andl $0x0, (%rax)
movl 0x48(%rbx), %eax
movl %eax, 0x10(%rsp)
xorl %ebp, %ebp
movl $0x110, %esi            # imm = 0x110
xorl %r13d, %r13d
xorl %r14d, %r14d
movq $0x0, 0x8(%rsp)
movslq 0x1a8(%rbx), %rax
cmpq %rax, %r14
jge 0xfbd01
movq 0x1b0(%rbx), %rcx
movq 0x20(%rcx,%r13), %rax
testq %rax, %rax
je 0xfbcf8
movl 0x30(%rcx,%r13), %ecx
andl %esi, %ecx
cmpl $0x100, %ecx            # imm = 0x100
je 0xfbcf8
movq %rbx, %rdi
callq *%rax
movl 0x10(%rsp), %ecx
cmpl %ecx, 0x48(%rbx)
jg 0xfbdac
movq 0x1b0(%rbx), %rcx
testb $0x1, 0x31(%rcx,%r13)
jne 0xfbcf3
movq 0x28(%rbx), %rdx
cmpl (%rdx), %eax
movl $0x110, %esi            # imm = 0x110
jle 0xfbcf8
movl %eax, (%rdx)
cmpl $0x63, %eax
jg 0xfbfce
addq %r13, %rcx
movq %rcx, 0x8(%rsp)
jmp 0xfbcf8
movl $0x110, %esi            # imm = 0x110
incq %r14
addq $0x48, %r13
jmp 0xfbc84
movq 0x8(%rsp), %rbp
testq %rbp, %rbp
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %r13
je 0xfbd91
testq %r13, %r13
jne 0xfbb7b
cmpb $0x0, 0xf9(%rbx)
je 0xfbb7b
cmpl $0x1, 0x34(%rbp)
je 0xfbb7b
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xfbfd9
jmp 0xfbb49
movl 0x30(%rbp), %eax
testb $0x8, %al
jne 0xfbd6e
testb $0x20, %al
je 0xfbbc9
movq (%rbp), %rdx
leaq 0x4343c(%rip), %rsi     # 0x13f19b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf05a
jmp 0xfbbc9
movq (%rbp), %rcx
leaq 0x43365(%rip), %rsi     # 0x13f0de
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rcx, %rdx
xorl %eax, %eax
callq 0xdf2a5
movb $0x1, 0x4c(%rbx)
jmp 0xfb769
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0xfbfaf
leaq 0x432d5(%rip), %rsi     # 0x13f07c
jmp 0xfbfb6
movq 0x18(%rsp), %r14
jmp 0xfb769
cmpq $0x0, 0x150(%rbx)
je 0xfbfc7
leaq 0x43487(%rip), %rsi     # 0x13f252
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0xdfae5
testl %eax, %eax
js 0xfbde6
setne 0xcf(%rbx)
movl 0x7c(%rbx), %eax
jmp 0xfbe0c
movl 0x7c(%rbx), %eax
cmpl $0x1, %eax
jne 0xfbe04
cmpb $0x0, 0x89(%rbx)
je 0xfbe04
cmpq $0x0, 0x150(%rbx)
sete %cl
jmp 0xfbe06
xorl %ecx, %ecx
movb %cl, 0xcf(%rbx)
cmpl $0x1, %eax
jne 0xfbe76
leaq 0x43449(%rip), %rsi     # 0x13f261
movq %rbx, %rdi
callq 0xdfa87
testq %rax, %rax
je 0xfbe58
movb $0x1, 0xdf(%rbx)
movq %rax, %rdi
callq 0xdfb3b
leaq 0xe0(%rbx), %rsi
pushq $0x1
popq %rdx
movq %rax, %rdi
callq 0xe002e
cmpb $0x0, 0xe0(%rbx)
jne 0xfbe73
movb $0x0, 0xdf(%rbx)
jmp 0xfbe73
leaq 0x43414(%rip), %rsi     # 0x13f273
movq %rbx, %rdi
callq 0xdfa87
testq %rax, %rax
je 0xfbe73
movb $0x1, 0xdf(%rbx)
movl 0x7c(%rbx), %eax
testl %eax, %eax
jne 0xfbea2
cmpl $0x3e9, 0x9c(%rbx)      # imm = 0x3E9
jl 0xfbea2
cmpb $0x0, 0x94(%rbx)
jne 0xfbea2
cmpb $0x0, 0xa0(%rbx)
jne 0xfbea2
movl $0x3e8, 0x9c(%rbx)      # imm = 0x3E8
leaq 0x7722(%rip), %rsi      # 0x1035cb
movq %rbx, %rdi
xorl %edx, %edx
callq 0xdfae5
testl %eax, %eax
je 0xfbebe
movb $0x1, 0x96(%rbx)
leaq 0x433bc(%rip), %rsi     # 0x13f281
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0xdfae5
testl %eax, %eax
jle 0xfbedd
movb $0x1, 0x12b(%rbx)
jmp 0xfbee6
jne 0xfbee6
movb $0x1, 0x12c(%rbx)
cmpl $0x1, 0x7c(%rbx)
jne 0xfbf05
cmpb $0x0, 0x88(%rbx)
je 0xfbf05
movq %rbx, %rdi
callq 0xe0fde
testl %eax, %eax
je 0xfbb49
cmpb $0x0, 0x94(%rbx)
je 0xfbf2a
leaq 0x43374(%rip), %rsi     # 0x13f289
movq %rbx, %rdi
xorl %edx, %edx
callq 0xdfae5
testl %eax, %eax
je 0xfbf2a
movb $0x1, 0x95(%rbx)
movq %rbp, 0x8(%rsp)
pushq $0x2
popq %rcx
cmpq $0x0, 0x60(%rbx)
je 0xfbf55
pushq $0x70
popq %rsi
movq %rbx, %rdi
movl %ecx, %ebp
callq 0xdecaf
movl %ebp, %ecx
movq %rax, %rbp
movq 0x60(%rbx), %rax
movq %rax, (%rbp)
jmp 0xfbf57
xorl %ebp, %ebp
cmpq $0x1, %r13
sbbl $0x0, %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0xdf885
testl %eax, %eax
je 0xfb769
cmpl $0x0, 0x3c(%rbx)
jne 0xfb769
cmpl $0x0, 0x48(%rbx)
jne 0xfb769
movq 0x8(%rsp), %rax
testb $0x4, 0x30(%rax)
jne 0xfb769
leaq 0x432f5(%rip), %rsi     # 0x13f295
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf37f
jmp 0xfb769
leaq 0x43096(%rip), %rsi     # 0x13f04c
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xfb769
movb $0x1, %al
jmp 0xfbc37
addq %r13, %rcx
movq %rcx, %rbp
jmp 0xfbd06