// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/arj.c
// Function: do_header_or_member
static int do_header_or_member(deark *c, lctx *d, i64 pos1, int expecting_archive_hdr,
	i64 *pbytes_consumed)
{
	i64 pos = pos1;
	i64 basic_hdr_size;
	i64 first_hdr_size;
	i64 first_hdr_endpos;
	i64 extra_data_len;
	i64 nbytes_avail;
	i64 n;
	i64 basic_hdr_endpos;
	i64 bytes_consumed;
	u32 basic_hdr_crc_reported;
	u32 basic_hdr_crc_calc;
	struct member_data *md = NULL;
	de_ucstring *flags_descr = NULL;
	int retval = 0;
	int saved_indent_level;
	u8 b;
	char namebuf[32];
	char tmpbuf[64];

	de_dbg_indent_save(c, &saved_indent_level);
	md = de_malloc(c, sizeof(struct member_data));

	md->hdr_id = (UI)dbuf_getu16le_p(d->inf, &pos);
	if(md->hdr_id!=0xea60) {
		de_err(c, "ARJ data not found at %"I64_FMT, pos1);
		goto done;
	}

	de_dbg(c, "block at %"I64_FMT, pos1);
	de_dbg_indent(c, 1);

	basic_hdr_size = dbuf_getu16le_p(d->inf, &pos);
	de_dbg(c, "basic header size: %"I64_FMT, basic_hdr_size);
	if(basic_hdr_size==0) {
		md->objtype = ARJ_OBJTYPE_EOA;
	}
	else {
		// Skip ahead to read some fields that can affect fields that appear
		// before them.
		md->archiver_ver_num = dbuf_getbyte(d->inf, pos1+5);
		md->file_type = dbuf_getbyte(d->inf, pos1+10);

		if(md->file_type==ARJ_FILETYPE_MAINHDR) {
			md->objtype = ARJ_OBJTYPE_MAINHDR;
		}
		else if(md->file_type==ARJ_FILETYPE_CHAPTERLABEL) {
			md->objtype = ARJ_OBJTYPE_CHAPTERLABEL;
		}
		else if(md->file_type<=4) {
			md->objtype = ARJ_OBJTYPE_MEMBERFILE;
		}
		else if(md->file_type==9 && md->archiver_ver_num==51) {
			md->objtype = ARJ_OBJTYPE_MEMBERFILE; // ARJZ with -t9 option
		}
		else {
			md->objtype = ARJ_OBJTYPE_UNKNOWN;
		}
	}
	de_dbg(c, "block type: %s", get_objtype_name(md->objtype));

	if(basic_hdr_size==0) {
		*pbytes_consumed = 4;
		retval = 2;
		goto done;
	}

	if(basic_hdr_size>ARJ_MAX_BASIC_HEADER_SIZE) {
		de_err(c, "Bad header size");
		goto done;
	}

	de_dbg(c, "basic header at %"I64_FMT, pos);
	de_dbg_indent(c, 1);

	de_dbg(c, "first header at %"I64_FMT, pos);
	de_dbg_indent(c, 1);

	basic_hdr_endpos = pos1 + 4 + basic_hdr_size;
	first_hdr_size = (i64)dbuf_getbyte_p(d->inf, &pos);
	de_dbg(c, "first header size: %"I64_FMT, first_hdr_size);
	first_hdr_endpos = pos1 + 4 + first_hdr_size;
	pos++; // md->archiver_ver_num, already read
	de_dbg(c, "archiver version: %u (%s)", (UI)md->archiver_ver_num,
		get_archiver_ver_name(md->archiver_ver_num, namebuf, sizeof(namebuf)));

	// Note:
	//  ver>=100 used by ARJ32 roughly corresponds to that number minus 91.
	//  ver=51 used by ARJZ probably corresponds to ver=6 or 7.
	md->supports_ANSIPAGE_flag = (u8)((md->archiver_ver_num>=9 && md->archiver_ver_num<=49) ||
		md->archiver_ver_num>=100);
	md->supports_chapters = (u8)((md->archiver_ver_num>=8 && md->archiver_ver_num<=49) ||
		md->archiver_ver_num>=100);
	md->has_encrver_field = md->supports_chapters;
	md->has_flags2_field = (u8)((md->archiver_ver_num>=11 && md->archiver_ver_num<=49) ||
		md->archiver_ver_num>=102);
	md->has_arch_mtime_field = (u8)(md->archiver_ver_num>=6);

	md->min_ver_to_extract = dbuf_getbyte_p(d->inf, &pos);
	de_dbg(c, "min ver to extract: %u", (UI)md->min_ver_to_extract);

	md->os = dbuf_getbyte_p(d->inf, &pos);
	de_dbg(c, "host OS: %u (%s)", (UI)md->os, get_host_os_name(md->os));

	if((md->os==ARJ_OS_UNIX || md->os==ARJ_OS_NEXT) &&
		(md->archiver_ver_num>=11 && md->archiver_ver_num<=49))
	{
		// Ref: Open Source ARJ, resource/en/readme.txt
		md->unix_timestamp_format = 1;
	}

	md->flags = dbuf_getbyte_p(d->inf, &pos);
	flags_descr = ucstring_create(c);
	get_flags_descr(md, md->flags, flags_descr);
	de_dbg(c, "flags: 0x%02x (%s)", (UI)md->flags, ucstring_getpsz_d(flags_descr));
	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		if(md->supports_ANSIPAGE_flag && (md->flags & 0x02)) {
			d->cv->ansipage_flag = 1;
		}
		if(md->flags & 0x40) {
			d->cv->is_secured = 1;
		}
		else if((!md->supports_ANSIPAGE_flag) && (md->flags & 0x02)) {
			d->cv->is_old_secured = 1;
		}
		if(md->flags & 0x08) {
			d->cv->arjprot_flag = 1;
		}
	}
	else if(md->objtype==ARJ_OBJTYPE_MEMBERFILE) {
		if(md->flags & 0x04) { // "VOLUME"
			md->cont_on_next_vol = 1;
		}
		if(md->flags & 0x08) { // "EXTFILE"
			// Note: ARJ's -jx option can be used to create files that use this flag,
			// but aren't actually part of a multi-volume archive. But -jx is mainly
			// intended to be used in conjuction with constructing/repairing multi-
			// volume archives.
			md->cont_from_prev_vol = 1;
		}
	}

	// Now we have enough information to choose a character encoding.
	md->input_encoding = d->input_encoding;
	if(md->input_encoding==DE_ENCODING_UNKNOWN) {
		if(d->cv->ansipage_flag) {
			md->input_encoding = DE_ENCODING_WINDOWS1252;
		}
		else {
			md->input_encoding = DE_ENCODING_CP437;
		}
	}

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		b = dbuf_getbyte_p(d->inf, &pos);
		if(d->cv->is_secured) {
			de_dbg(c, "security version: %u", (UI)b);
		}
	}
	else {
		md->method = dbuf_getbyte_p(d->inf, &pos);
		de_dbg(c, "cmpr method: %u", (UI)md->method);
	}

	pos++; // file_type already read
	de_dbg(c, "file type: %u (%s)", (UI)md->file_type, get_file_type_name(md, md->file_type));
	if(expecting_archive_hdr && md->file_type!=ARJ_FILETYPE_MAINHDR) {
		de_err(c, "Invalid or missing archive header");
		goto done;
	}
	if(md->objtype==ARJ_OBJTYPE_UNKNOWN) {
		de_err(c, "Unknown file type: %u", (UI)md->file_type);
		// (try to continue)
	}

	md->reserved1 = dbuf_getbyte_p(d->inf, &pos);
	de_dbg(c, "reserved: 0x%02x", (UI)md->reserved1);

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		read_arj_datetime(c, d, md, pos, &md->tmstamp[DE_TIMESTAMPIDX_CREATE], "archive creation");
		pos += 4;
	}
	else if(md->objtype==ARJ_OBJTYPE_CHAPTERLABEL) {
		read_arj_datetime(c, d, md, pos,  &md->tmstamp[DE_TIMESTAMPIDX_CREATE], "creation");
		pos += 4;
	}
	else {
		read_arj_datetime(c, d, md, pos, &md->tmstamp[DE_TIMESTAMPIDX_MODIFY], "mod");
		pos += 4;
	}

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		md->cmpr_len = 0;
		if(d->cv->is_old_secured) {
			n = dbuf_getu32le_p(d->inf, &pos);
			de_dbg(c, "archive size: %"I64_FMT, n); // This is a guess
		}
		else if(md->has_arch_mtime_field) {
			read_arj_datetime(c, d, md, pos, &md->tmstamp[DE_TIMESTAMPIDX_MODIFY], "archive mod");
			pos += 4;
		}
		else {
			pos += 4;
		}
	}
	else {
		// Assume this field always exists, except for the main header and EOA.
		// We need it just to parse the file.
		md->cmpr_len = dbuf_getu32le_p(d->inf, &pos);
		de_dbg(c, "compressed size: %"I64_FMT, md->cmpr_len);
	}

	if(md->objtype==ARJ_OBJTYPE_MAINHDR && d->cv->is_old_secured) {
		// This is a guess
		de_dbg(c, "security data: %s",
			de_render_hexbytes_from_dbuf(d->inf, pos, 12, tmpbuf, sizeof(tmpbuf)));
		pos += 12;
		goto at_offset_32;
	}

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		n = dbuf_getu32le_p(d->inf, &pos);
		if(d->cv->is_secured) {
			de_dbg(c, "archive size: %"I64_FMT, n);
		}
	}
	else if(md->objtype==ARJ_OBJTYPE_MEMBERFILE) {
		md->orig_len = dbuf_getu32le_p(d->inf, &pos);
		de_dbg(c, "original size: %"I64_FMT, md->orig_len);
	}
	else {
		pos += 4;
	}

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		n = dbuf_getu32le_p(d->inf, &pos);
		if(d->cv->is_secured) {
			d->cv->security_envelope_pos = n;
			de_dbg(c, "security envelope pos: %"I64_FMT, d->cv->security_envelope_pos);
		}
		else if(d->cv->arjprot_flag) {
			d->cv->arjprot_pos = n; // This is a guess
			de_dbg(c, "ARJPROT data pos: %"I64_FMT, d->cv->arjprot_pos);
		}
	}
	else {
		md->crc_reported = (u32)dbuf_getu32le_p(d->inf, &pos);
		de_dbg(c, "crc (reported): 0x%08x", (UI)md->crc_reported);
	}

	n = dbuf_getu16le_p(d->inf, &pos);
	de_dbg(c, "filespec pos in filename: %d", (int)n);

	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		n = dbuf_getu16le_p(d->inf, &pos);
		if(d->cv->is_secured) {
			d->cv->security_envelope_len = n;
			de_dbg(c, "security envelope len: %"I64_FMT, d->cv->security_envelope_len);
		}
	}
	else {
		de_ucstring *mode_descr;

		md->file_mode = (UI)dbuf_getu16le_p(d->inf, &pos);
		mode_descr = ucstring_create(c);
		if(md->os==ARJ_OS_DOS || md->os==ARJ_OS_OS2 || md->os==ARJ_OS_WIN95 || md->os==ARJ_OS_WIN32) {
			de_describe_dos_attribs(c, md->file_mode, mode_descr, 0);
		}
		else if(md->os==ARJ_OS_UNIX || md->os==ARJ_OS_NEXT) {
			ucstring_printf(mode_descr, DE_ENCODING_LATIN1, "octal %03o", md->file_mode);
			if((md->file_mode)&0111) {
				md->is_executable = 1;
			}
			else {
				md->is_nonexecutable = 1;
			}
		}
		else {
			ucstring_append_char(mode_descr, '?');
		}

		de_dbg(c, "access mode: 0x%02x (%s)", md->file_mode, ucstring_getpsz_d(mode_descr));
		ucstring_destroy(mode_descr);
	}

at_offset_32:

	b = dbuf_getbyte_p(d->inf, &pos); // first chapter / encryption ver / host data (byte1) / unused
	if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
		if(md->has_encrver_field) {
			de_dbg(c, "encryption ver: %u", (UI)b);
			// We expect the GARBLED flag to be set in the main header when this field
			// is meaningful, but I don't think ARJ requires that.
			d->cv->encryption_ver = b;
		}
	}
	else {
		if(md->supports_chapters) {
			de_dbg(c, "first chapter: %u", (UI)b);
		}
	}

	b = dbuf_getbyte_p(d->inf, &pos); // last chapter / host data (byte2) / unused
	if(md->supports_chapters) {
		de_dbg(c, "last chapter: %u", (UI)b);
	}

	extra_data_len = first_hdr_endpos - pos;
	de_dbg(c, "extra data at %"I64_FMT", len=%"I64_FMT, pos, extra_data_len);
	if(extra_data_len>0) {
		de_dbg_indent(c, 1);

		if(md->objtype==ARJ_OBJTYPE_MAINHDR) {
			if(extra_data_len>=1) {
				b = dbuf_getbyte_p(d->inf, &pos);
				if(md->flags & 0x08) {
					de_dbg(c, "protection factor: %u", (UI)b);
				}
			}
			if(extra_data_len>=2) {
				b = dbuf_getbyte_p(d->inf, &pos);
				if(md->has_flags2_field) {
					de_dbg(c, "flags (2nd set): 0x%02x", (UI)b);
				}
			}
		}
		else if(md->objtype==ARJ_OBJTYPE_MEMBERFILE) {
			if(extra_data_len>=4) {
				md->extfile_pos = dbuf_getu32le_p(d->inf, &pos);
				de_dbg(c, "ext. file pos: %"I64_FMT, md->extfile_pos);
			}
			if(extra_data_len>=12) {
				read_arj_datetime(c, d, md, pos, &md->tmstamp[DE_TIMESTAMPIDX_ACCESS], "access");
				pos += 4;
				read_arj_datetime(c, d, md, pos, &md->tmstamp[DE_TIMESTAMPIDX_CREATE], "create");
				pos += 4;
			}
			if(extra_data_len>=16) {
				n = dbuf_getu32le_p(d->inf, &pos);
				de_dbg(c, "ext. orig size: %"I64_FMT, n);
			}
		}

		de_dbg_indent(c, -1);
	}

	de_dbg_indent(c, -1);
	pos = first_hdr_endpos; // Now at the offset of the filename field
	nbytes_avail = basic_hdr_endpos - pos;
	de_dbg(c, "filename/comment area at %"I64_FMT", len=%"I64_FMT, pos, nbytes_avail);
	de_dbg_indent(c, 1);
	md->name_srd = dbuf_read_string(d->inf, pos, nbytes_avail, 256, DE_CONVFLAG_STOP_AT_NUL,
		md->input_encoding);
	if(!(md->flags & 0x10)) {
		// "PATHSYM" flag missing, need to convert '\' to '/'
		fixup_path(md->name_srd->str);
	}
	de_dbg(c, "filename: \"%s\"", ucstring_getpsz_d(md->name_srd->str));

	if(md->name_srd->found_nul) {
		pos += md->name_srd->bytes_consumed;
		nbytes_avail = basic_hdr_endpos - pos;
		handle_comment(c, d, md, pos, nbytes_avail);
	}
	de_dbg_indent(c, -1);

	de_dbg_indent(c, -1);
	pos = basic_hdr_endpos; // Now at the offset just after the 'comment' field
	basic_hdr_crc_reported = (u32)dbuf_getu32le_p(d->inf, &pos);
	de_dbg(c, "basic hdr crc (reported): 0x%08x", (UI)basic_hdr_crc_reported);

	de_crcobj_reset(d->crco);
	de_crcobj_addslice(d->crco, d->inf, pos1+4, basic_hdr_size);
	basic_hdr_crc_calc = de_crcobj_getval(d->crco);
	de_dbg(c, "basic hdr crc (calculated): 0x%08x", (UI)basic_hdr_crc_calc);
	if(basic_hdr_crc_calc != basic_hdr_crc_reported) {
		de_warn(c, "Header CRC check failed");
	}

	if(!do_extended_headers(c, d, md, pos, &bytes_consumed)) {
		de_err(c, "Bad extended headers - can't continue");
		goto done;
	}
	pos += bytes_consumed;

	md->is_dir = (md->file_type==ARJ_FILETYPE_DIR);

	md->cmpr_pos = pos;
	if(md->objtype==ARJ_OBJTYPE_MEMBERFILE) {
		de_dbg(c, "compressed data at %"I64_FMT, md->cmpr_pos);
		de_dbg_indent(c, 1);
		extract_member_file(c, d, md);
		de_dbg_indent(c, -1);
	}
	pos += md->cmpr_len;

	*pbytes_consumed = pos - pos1;
	retval = 1;

done:
	ucstring_destroy(flags_descr);
	if(md) {
		de_destroy_stringreaderdata(c, md->name_srd);
		de_free(c, md);
	}
	de_dbg_indent_restore(c, saved_indent_level);
	return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movl $0x0, -0x8c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x15b580
movq -0x8(%rbp), %rdi
movl $0xa0, %esi
callq 0x15b780
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1652c0
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x80(%rbp), %rax
cmpl $0xea60, 0x4(%rax)      # imm = 0xEA60
je 0x48216
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x15bb6c(%rip), %rsi    # 0x1a3d76
movb $0x0, %al
callq 0x15bfb0
jmp 0x493ce
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x174bd4(%rip), %rsi    # 0x1bcdf9
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq 0x15bb33(%rip), %rsi    # 0x1a3d90
movb $0x0, %al
callq 0x15b0d0
cmpq $0x0, -0x38(%rbp)
jne 0x4827b
movq -0x80(%rbp), %rax
movl $0x68, 0x8(%rax)
jmp 0x4833d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
addq $0x5, %rsi
callq 0x165060
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0xd(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
addq $0xa, %rsi
callq 0x165060
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x13(%rax)
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x2, %eax
jne 0x482cf
movq -0x80(%rbp), %rax
movl $0x64, 0x8(%rax)
jmp 0x4833b
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x5, %eax
jne 0x482e9
movq -0x80(%rbp), %rax
movl $0x66, 0x8(%rax)
jmp 0x48339
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x4, %eax
jg 0x48303
movq -0x80(%rbp), %rax
movl $0x65, 0x8(%rax)
jmp 0x48337
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x9, %eax
jne 0x4832a
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x33, %eax
jne 0x4832a
movq -0x80(%rbp), %rax
movl $0x65, 0x8(%rax)
jmp 0x48335
movq -0x80(%rbp), %rax
movl $0x67, 0x8(%rax)
jmp 0x48337
jmp 0x48339
jmp 0x4833b
jmp 0x4833d
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x80(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x49570
movq -0x110(%rbp), %rdi
movq %rax, %rdx
leaq 0x15ba42(%rip), %rsi    # 0x1a3da7
movb $0x0, %al
callq 0x15b0d0
cmpq $0x0, -0x38(%rbp)
jne 0x4838d
movq -0x28(%rbp), %rax
movq $0x4, (%rax)
movl $0x2, -0x8c(%rbp)
jmp 0x493ce
cmpq $0xa28, -0x38(%rbp)     # imm = 0xA28
jle 0x483ae
movq -0x8(%rbp), %rdi
leaq 0x15ba14(%rip), %rsi    # 0x1a3db6
movb $0x0, %al
callq 0x15bfb0
jmp 0x493ce
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x15ba09(%rip), %rsi    # 0x1a3dc6
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x15b9f9(%rip), %rsi    # 0x1a3dda
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x18(%rbp), %rax
addq $0x4, %rax
addq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movzbl %al, %eax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x15b9c2(%rip), %rsi    # 0x1a3dee
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
addq $0x4, %rax
addq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
movl %eax, -0x114(%rbp)
movq -0x80(%rbp), %rax
movb 0xd(%rax), %al
leaq -0xc0(%rbp), %rsi
movl $0x20, %edx
movzbl %al, %edi
callq 0x49600
movq -0x120(%rbp), %rdi
movl -0x114(%rbp), %edx
movq %rax, %rcx
leaq 0x15b96b(%rip), %rsi    # 0x1a3e05
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x9, %eax
jl 0x484c3
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
movb %al, -0x121(%rbp)
jle 0x484d7
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x64, %eax
setge %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x15(%rax)
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x8, %eax
jl 0x4850d
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
movb %al, -0x122(%rbp)
jle 0x48521
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x64, %eax
setge %al
movb %al, -0x122(%rbp)
movb -0x122(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x16(%rax)
movq -0x80(%rbp), %rax
movb 0x16(%rax), %cl
movq -0x80(%rbp), %rax
movb %cl, 0x17(%rax)
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0xb, %eax
jl 0x48565
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
movb %al, -0x123(%rbp)
jle 0x48579
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x66, %eax
setge %al
movb %al, -0x123(%rbp)
movb -0x123(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x18(%rax)
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x6, %eax
setge %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x19(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0xe(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movzbl 0xe(%rax), %edx
leaq 0x15b84a(%rip), %rsi    # 0x1a3e1f
movb $0x0, %al
callq 0x15b0d0
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0xf(%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
movl %eax, -0x128(%rbp)
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %edi
callq 0x496e0
movq -0x130(%rbp), %rdi
movl -0x128(%rbp), %edx
movq %rax, %rcx
leaq 0x15b804(%rip), %rsi    # 0x1a3e36
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x2, %eax
je 0x48653
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x8, %eax
jne 0x48675
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0xb, %eax
jl 0x48675
movq -0x80(%rbp), %rax
movzbl 0xd(%rax), %eax
cmpl $0x31, %eax
jg 0x48675
movq -0x80(%rbp), %rax
movb $0x1, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x11(%rax)
movq -0x8(%rbp), %rdi
callq 0x1711d0
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x80(%rbp), %rax
movb 0x11(%rax), %al
movq -0x88(%rbp), %rdx
movzbl %al, %esi
callq 0x49720
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
movl %eax, -0x134(%rbp)
movq -0x88(%rbp), %rdi
callq 0x172650
movq -0x140(%rbp), %rdi
movl -0x134(%rbp), %edx
movq %rax, %rcx
leaq 0x1716f2(%rip), %rsi    # 0x1b9de6
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48796
movq -0x80(%rbp), %rax
movzbl 0x15(%rax), %eax
cmpl $0x0, %eax
je 0x48732
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x48732
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x18(%rax)
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x48750
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x19(%rax)
jmp 0x48778
movq -0x80(%rbp), %rax
cmpb $0x0, 0x15(%rax)
jne 0x48776
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x48776
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x1a(%rax)
jmp 0x48778
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x48794
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x1b(%rax)
jmp 0x487d4
movq -0x80(%rbp), %rax
cmpl $0x65, 0x8(%rax)
jne 0x487d2
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x487b8
movq -0x80(%rbp), %rax
movb $0x1, 0x1a(%rax)
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x487d0
movq -0x80(%rbp), %rax
movb $0x1, 0x1b(%rax)
jmp 0x487d2
jmp 0x487d4
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x80(%rbp), %rax
movl %ecx, (%rax)
movq -0x80(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x48810
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x18(%rax)
je 0x48804
movq -0x80(%rbp), %rax
movl $0x9, (%rax)
jmp 0x4880e
movq -0x80(%rbp), %rax
movl $0xd, (%rax)
jmp 0x48810
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48859
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, -0x91(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x19(%rax)
je 0x48857
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b5f7(%rip), %rsi    # 0x1a3e47
movb $0x0, %al
callq 0x15b0d0
jmp 0x4888c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x12(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movzbl 0x12(%rax), %edx
leaq 0x15b5d7(%rip), %rsi    # 0x1a3e5c
movb $0x0, %al
callq 0x15b0d0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
movl %eax, -0x144(%rbp)
movq -0x80(%rbp), %rdi
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %esi
callq 0x498d0
movq -0x150(%rbp), %rdi
movl -0x144(%rbp), %edx
movq %rax, %rcx
leaq 0x15b593(%rip), %rsi    # 0x1a3e6c
movb $0x0, %al
callq 0x15b0d0
cmpl $0x0, -0x1c(%rbp)
je 0x4890a
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x2, %eax
je 0x4890a
movq -0x8(%rbp), %rdi
leaq 0x15b581(%rip), %rsi    # 0x1a3e7f
movb $0x0, %al
callq 0x15bfb0
jmp 0x493ce
movq -0x80(%rbp), %rax
cmpl $0x67, 0x8(%rax)
jne 0x4892e
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %edx
leaq 0x15b57a(%rip), %rsi    # 0x1a3ea1
movb $0x0, %al
callq 0x15bfb0
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x14(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movzbl 0x14(%rax), %edx
leaq 0x15b55d(%rip), %rsi    # 0x1a3eb7
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x489a1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
addq $0x10, %r8
leaq 0x15b53a(%rip), %r9     # 0x1a3ec8
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48a13
movq -0x80(%rbp), %rax
cmpl $0x66, 0x8(%rax)
jne 0x489e1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
addq $0x10, %r8
leaq 0x15b502(%rip), %r9     # 0x1a3ed0
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48a11
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
leaq 0x15b4f3(%rip), %r9     # 0x1a3ef3
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48a13
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48ab3
movq -0x80(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x1a(%rax)
je 0x48a67
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rdx
leaq 0x15b47b(%rip), %rsi    # 0x1a3ed9
movb $0x0, %al
callq 0x15b0d0
jmp 0x48ab1
movq -0x80(%rbp), %rax
cmpb $0x0, 0x19(%rax)
je 0x48aa3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
leaq 0x15b45b(%rip), %r9     # 0x1a3eeb
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48aaf
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48ab1
jmp 0x48ae8
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x30(%rax), %rdx
leaq 0x16146a(%rip), %rsi    # 0x1a9f4b
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48b59
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0x1a(%rax), %eax
cmpl $0x0, %eax
je 0x48b59
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rsi
leaq -0x100(%rbp), %rcx
movl $0xc, %edx
movl $0x40, %r8d
callq 0x15b6f0
movq -0x158(%rbp), %rdi
movq %rax, %rdx
leaq 0x15b3b6(%rip), %rsi    # 0x1a3ef7
movb $0x0, %al
callq 0x15b0d0
movq -0x30(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x30(%rbp)
jmp 0x48e82
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48b9d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x19(%rax)
je 0x48b9b
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rdx
leaq 0x15b345(%rip), %rsi    # 0x1a3ed9
movb $0x0, %al
callq 0x15b0d0
jmp 0x48bec
movq -0x80(%rbp), %rax
cmpl $0x65, 0x8(%rax)
jne 0x48bde
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x38(%rax), %rdx
leaq 0x15b334(%rip), %rsi    # 0x1a3f09
movb $0x0, %al
callq 0x15b0d0
jmp 0x48bea
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x48bec
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48c8c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x19(%rax)
je 0x48c4c
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rdx
leaq 0x15b2d9(%rip), %rsi    # 0x1a3f1c
movb $0x0, %al
callq 0x15b0d0
jmp 0x48c8a
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x1b(%rax)
je 0x48c88
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %rdx
leaq 0x15b2b6(%rip), %rsi    # 0x1a3f37
movb $0x0, %al
callq 0x15b0d0
jmp 0x48c8a
jmp 0x48cbe
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x24(%rax), %edx
leaq 0x1870e1(%rip), %rsi    # 0x1cfd98
movb $0x0, %al
callq 0x15b0d0
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rax
movl %eax, %edx
leaq 0x15b26a(%rip), %rsi    # 0x1a3f4d
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48d49
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x0, 0x19(%rax)
je 0x48d44
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rdx
leaq 0x15b22d(%rip), %rsi    # 0x1a3f6a
movb $0x0, %al
callq 0x15b0d0
jmp 0x48e80
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1652c0
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x8(%rbp), %rdi
callq 0x1711d0
movq %rax, -0x108(%rbp)
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x0, %eax
je 0x48da6
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x5, %eax
je 0x48da6
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0xa, %eax
je 0x48da6
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0xb, %eax
jne 0x48dc1
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x20(%rax), %esi
movq -0x108(%rbp), %rdx
xorl %ecx, %ecx
callq 0x15d9f0
jmp 0x48e32
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x2, %eax
je 0x48ddb
movq -0x80(%rbp), %rax
movzbl 0xf(%rax), %eax
cmpl $0x8, %eax
jne 0x48e1f
movq -0x108(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x20(%rax), %ecx
movl $0x5, %esi
leaq 0x15b190(%rip), %rdx    # 0x1a3f85
movb $0x0, %al
callq 0x171660
movq -0x80(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x49, %eax
cmpl $0x0, %eax
je 0x48e15
movq -0x80(%rbp), %rax
movb $0x1, 0x1d(%rax)
jmp 0x48e1d
movq -0x80(%rbp), %rax
movb $0x1, 0x1e(%rax)
jmp 0x48e30
movq -0x108(%rbp), %rdi
movl $0x3f, %esi
callq 0x1714c0
jmp 0x48e32
movq -0x8(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x80(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x15c(%rbp)
movq -0x108(%rbp), %rdi
callq 0x172650
movq -0x168(%rbp), %rdi
movl -0x15c(%rbp), %edx
movq %rax, %rcx
leaq 0x15b123(%rip), %rsi    # 0x1a3f90
movb $0x0, %al
callq 0x15b0d0
movq -0x108(%rbp), %rdi
callq 0x171750
jmp 0x48e82
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, -0x91(%rbp)
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x48ed8
movq -0x80(%rbp), %rax
cmpb $0x0, 0x17(%rax)
je 0x48ed6
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b0eb(%rip), %rsi    # 0x1a3fa9
movb $0x0, %al
callq 0x15b0d0
movb -0x91(%rbp), %cl
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movb %cl, 0x1c(%rax)
jmp 0x48efd
movq -0x80(%rbp), %rax
cmpb $0x0, 0x16(%rax)
je 0x48efb
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b0c8(%rip), %rsi    # 0x1a3fbc
movb $0x0, %al
callq 0x15b0d0
jmp 0x48efd
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, -0x91(%rbp)
movq -0x80(%rbp), %rax
cmpb $0x0, 0x16(%rax)
je 0x48f36
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b09f(%rip), %rsi    # 0x1a3fce
movb $0x0, %al
callq 0x15b0d0
movq -0x48(%rbp), %rax
subq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x50(%rbp), %rcx
leaq 0x15b08a(%rip), %rsi    # 0x1a3fdf
movb $0x0, %al
callq 0x15b0d0
cmpq $0x0, -0x50(%rbp)
jle 0x4910e
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x80(%rbp), %rax
cmpl $0x64, 0x8(%rax)
jne 0x49012
cmpq $0x1, -0x50(%rbp)
jl 0x48fcb
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, -0x91(%rbp)
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x48fc9
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b038(%rip), %rsi    # 0x1a3ffa
movb $0x0, %al
callq 0x15b0d0
jmp 0x48fcb
cmpq $0x2, -0x50(%rbp)
jl 0x4900d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165170
movb %al, -0x91(%rbp)
movq -0x80(%rbp), %rax
cmpb $0x0, 0x18(%rax)
je 0x4900b
movq -0x8(%rbp), %rdi
movzbl -0x91(%rbp), %edx
leaq 0x15b00c(%rip), %rsi    # 0x1a4010
movb $0x0, %al
callq 0x15b0d0
jmp 0x4900d
jmp 0x49100
movq -0x80(%rbp), %rax
cmpl $0x65, 0x8(%rax)
jne 0x490fe
cmpq $0x4, -0x50(%rbp)
jl 0x4905c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x28(%rax), %rdx
leaq 0x15afd3(%rip), %rsi    # 0x1a4028
movb $0x0, %al
callq 0x15b0d0
cmpq $0xc, -0x50(%rbp)
jl 0x490cb
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
addq $0x20, %r8
leaq 0x15840e(%rip), %r9     # 0x1a1494
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %r8
addq $0x48, %r8
addq $0x10, %r8
leaq 0x15af81(%rip), %r9     # 0x1a403b
callq 0x49980
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
cmpq $0x10, -0x50(%rbp)
jl 0x490fc
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rdx
leaq 0x15af4d(%rip), %rsi    # 0x1a4042
movb $0x0, %al
callq 0x15b0d0
jmp 0x490fe
jmp 0x49100
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x68(%rbp), %rax
subq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x58(%rbp), %rcx
leaq 0x15af13(%rip), %rsi    # 0x1a4056
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x80(%rbp), %rax
movl (%rax), %r9d
movl $0x100, %ecx            # imm = 0x100
movl $0x1, %r8d
callq 0x1664c0
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x80(%rbp), %rax
movzbl 0x11(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x491b0
movq -0x80(%rbp), %rax
movq 0x98(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x49a90
movq -0x8(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x80(%rbp), %rax
movq 0x98(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x172650
movq -0x170(%rbp), %rdi
movq %rax, %rdx
leaq 0x17e3a3(%rip), %rsi    # 0x1c7583
movb $0x0, %al
callq 0x15b0d0
movq -0x80(%rbp), %rax
movq 0x98(%rax), %rax
cmpl $0x0, 0x34(%rax)
je 0x49233
movq -0x80(%rbp), %rax
movq 0x98(%rax), %rax
movq (%rax), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x68(%rbp), %rax
subq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x58(%rbp), %r8
callq 0x49af0
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x165580
movl %eax, -0x74(%rbp)
movq -0x8(%rbp), %rdi
movl -0x74(%rbp), %edx
leaq 0x15ae04(%rip), %rsi    # 0x1a407c
movb $0x0, %al
callq 0x15b0d0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x15f250
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
addq $0x4, %rdx
movq -0x38(%rbp), %rcx
callq 0x15f500
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x15f340
movl %eax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl -0x78(%rbp), %edx
leaq 0x15add3(%rip), %rsi    # 0x1a409d
movb $0x0, %al
callq 0x15b0d0
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
je 0x492eb
movq -0x8(%rbp), %rdi
leaq 0x15addc(%rip), %rsi    # 0x1a40c0
movb $0x0, %al
callq 0x15bc10
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x49c20
cmpl $0x0, %eax
jne 0x49320
movq -0x8(%rbp), %rdi
leaq 0x15adc4(%rip), %rsi    # 0x1a40d8
movb $0x0, %al
callq 0x15bfb0
jmp 0x493ce
movq -0x70(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x80(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl $0x3, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movb %cl, 0x1c(%rax)
movq -0x30(%rbp), %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x80(%rbp), %rax
cmpl $0x65, 0x8(%rax)
jne 0x493a5
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x40(%rax), %rdx
leaq 0x174872(%rip), %rsi    # 0x1bdbe3
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x49e10
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x80(%rbp), %rax
movq 0x30(%rax), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
subq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x8c(%rbp)
movq -0x88(%rbp), %rdi
callq 0x171750
cmpq $0x0, -0x80(%rbp)
je 0x49402
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x98(%rax), %rsi
callq 0x166830
movq -0x8(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x15b820
movq -0x8(%rbp), %rdi
movl -0x90(%rbp), %esi
callq 0x15b5a0
movl -0x8c(%rbp), %eax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq