// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/stuffit.c
// Function: do_v5_member_header
static int do_v5_member_header(deark *c, lctx *d, struct member_data *md, i64 pos1)
{
	i64 pos = pos1;
	i64 fnlen, fnlen_sanitized;
	i64 n;
	i64 hdrsize;
	i64 hdr_endpos;
	u32 hdr_crc_reported;
	u32 hdr_crc_calc;
	u8 flags;
	de_ucstring *descr = NULL;
	int saved_indent_level;
	int retval = 0;
	char timestamp_buf[64];

	de_dbg_indent_save(c, &saved_indent_level);
	if(pos1==0) goto done;

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

	n = de_getu32be_p(&pos);
	if(n!=0xa5a5a5a5) {
		de_err(c, "Expected member not found at %"I64_FMT, pos1);
		goto done;
	}

	descr = ucstring_create(c);

	pos++; // ver?
	pos++; // ?
	hdrsize = de_getu16be_p(&pos);
	hdr_endpos = pos1 + hdrsize;
	de_dbg(c, "base header at %"I64_FMT", len=%"I64_FMT, pos1, hdrsize);
	de_dbg_indent(c, 1);
	if(hdrsize<48 || hdrsize>2000) {
		de_err(c, "Bad header");
		goto done;
	}

	// calculate actual header crc
	de_crcobj_reset(d->crco_hdr);
	de_crcobj_addslice(d->crco_hdr, c->infile, pos1, 32);
	de_crcobj_addzeroes(d->crco_hdr, 2);
	de_crcobj_addslice(d->crco_hdr, c->infile, pos1+34, hdrsize-34);
	hdr_crc_calc = de_crcobj_getval(d->crco_hdr);

	pos++; // ?
	flags = de_getbyte_p(&pos);
	ucstring_empty(descr);
	if(flags & 0x40) {
		md->is_folder = 1;
		ucstring_append_flags_item(descr, "folder");
	}
	if(flags & 0x20) {
		md->dfork.is_encrypted = 1;
		md->rfork.is_encrypted = 1;
		ucstring_append_flags_item(descr, "encrypted");
	}
	de_dbg(c, "flags: 0x%02x (%s)", (UI)flags, ucstring_getpsz_d(descr));

	n = de_getu32be_p(&pos);
	de_mac_time_to_timestamp(n, &md->create_time);
	de_timestamp_to_string(&md->create_time, timestamp_buf, sizeof(timestamp_buf), 0);
	de_dbg(c, "create time: %"I64_FMT" (%s)", n, timestamp_buf);
	md->advf->mainfork.fi->timestamp[DE_TIMESTAMPIDX_CREATE] = md->create_time;

	n = de_getu32be_p(&pos);
	de_mac_time_to_timestamp(n, &md->mod_time);
	de_timestamp_to_string(&md->mod_time, timestamp_buf, sizeof(timestamp_buf), 0);
	de_dbg(c, "mod time: %"I64_FMT" (%s)", n, timestamp_buf);
	md->advf->mainfork.fi->timestamp[DE_TIMESTAMPIDX_MODIFY] = md->mod_time;

	n = de_getu32be_p(&pos);
	de_dbg(c, "prev: %"I64_FMT, n);
	md->v5_next_member_pos = de_getu32be_p(&pos);
	de_dbg(c, "next: %"I64_FMT, md->v5_next_member_pos);
	retval = 1;

	// at offset 26
	n = de_getu32be_p(&pos);
	de_dbg(c, "parent: %"I64_FMT, n);

	fnlen = de_getu16be_p(&pos);
	de_dbg(c, "filename len: %u", (UI)fnlen);
	fnlen_sanitized = de_min_int(fnlen, 1024);

	hdr_crc_reported = (u32)de_getu16be_p(&pos);
	de_dbg(c, "header crc (reported): 0x%04x", (UI)hdr_crc_reported);
	de_dbg(c, "header crc (calculated): 0x%04x", (UI)hdr_crc_calc);
	if(hdr_crc_reported != hdr_crc_calc) {
		de_warn(c, "Bad header CRC (reported 0x%04x, calculated 0x%04x)", (UI)hdr_crc_reported,
			(UI)hdr_crc_calc);
	}

	// at offset 34
	if(md->is_folder) {
		md->v5_first_entry_pos = de_getu32be_p(&pos);
		de_dbg(c, "offset of first entry: %"I64_FMT, md->v5_first_entry_pos);

		n = de_getu32be_p(&pos);
		de_dbg(c, "folder size: %"I64_FMT, n);

		pos += 2; // data fork old crc16
		pos += 2; // ?

		md->v5_num_files_in_folder = de_getu16be_p(&pos);
		de_dbg(c, "number of files: %"I64_FMT, md->v5_num_files_in_folder);
	}
	else {
		md->dfork.unc_len = de_getu32be_p(&pos);
		de_dbg(c, "data fork uncmpr len: %"I64_FMT, md->dfork.unc_len);
		// at offset 38
		md->dfork.cmpr_len = de_getu32be_p(&pos);
		de_dbg(c, "data fork cmpr len: %"I64_FMT, md->dfork.cmpr_len);

		md->dfork.crc_reported = (u32)de_getu16be_p(&pos);
		de_dbg(c, "data fork old crc (reported): 0x%04x", (UI)md->dfork.crc_reported);

		pos += 2; // ?

		md->dfork.cmpr_meth_etc = de_getbyte_p(&pos);
		ucstring_empty(descr);
		decode_cmpr_meth(c, d, &md->dfork, descr);
		de_dbg(c, "data fork cmpr meth: %u (%s)", (unsigned int)md->dfork.cmpr_meth_etc,
			ucstring_getpsz(descr));

		// at offset 47
		n = (i64)de_getbyte_p(&pos);
		de_dbg(c, "data fork passwd len: %u", (UI)n);
		pos += n;
	}

	md->fname = dbuf_read_string(c->infile, pos, fnlen_sanitized, fnlen_sanitized, 0, d->input_encoding);
	de_dbg(c, "filename: \"%s\"", ucstring_getpsz_d(md->fname->str));
	de_strarray_push(d->curpath, md->fname->str);
	md->v5_need_strarray_pop = 1;
	pos += fnlen;

	if(hdr_endpos-pos >= 5) {
		n = de_getu16be_p(&pos); // comment len
		pos += 2;
		if(pos + n <= hdr_endpos) {
			do_v5_comment(c, d, md, pos, n);
		}
	}

	de_dbg_indent(c, -1); // end of first part of header

	pos = hdr_endpos;

	if(!md->is_folder) {
		UI flags2;

		flags2 = (UI)de_getu16be_p(&pos);
		de_dbg(c, "flags2: 0x%04x", flags2);
		pos += 2; // ?

		dbuf_read_fourcc(c->infile, pos, &md->filetype, 4, 0x0);
		de_dbg(c, "filetype: '%s'", md->filetype.id_dbgstr);
		de_memcpy(md->advf->typecode, md->filetype.bytes, 4);
		md->advf->has_typecode = 1;
		pos += 4;
		dbuf_read_fourcc(c->infile, pos, &md->creator, 4, 0x0);
		de_dbg(c, "creator: '%s'", md->creator.id_dbgstr);
		de_memcpy(md->advf->creatorcode, md->creator.bytes, 4);
		md->advf->has_creatorcode = 1;
		pos += 4;

		md->finder_flags = (unsigned int)de_getu16be_p(&pos);
		de_dbg(c, "finder flags: 0x%04x", md->finder_flags);
		md->advf->finderflags = (u16)md->finder_flags;
		md->advf->has_finderflags = 1;

		pos += 22; // ?

		if(flags2 & 0x0001) {
			md->rfork.unc_len = de_getu32be_p(&pos);
			de_dbg(c, "rsrc fork uncmpr len: %"I64_FMT, md->rfork.unc_len);
			md->rfork.cmpr_len = de_getu32be_p(&pos);
			de_dbg(c, "rsrc fork cmpr len: %"I64_FMT, md->rfork.cmpr_len);

			md->rfork.crc_reported = (u32)de_getu16be_p(&pos);
			de_dbg(c, "rsrc fork old crc (reported): 0x%04x", (UI)md->rfork.crc_reported);

			pos += 2; // ?

			md->rfork.cmpr_meth_etc = de_getbyte_p(&pos);
			ucstring_empty(descr);
			decode_cmpr_meth(c, d, &md->rfork, descr);
			de_dbg(c, "rsrc fork cmpr meth: %u (%s)", (unsigned int)md->rfork.cmpr_meth_etc,
				ucstring_getpsz(descr));

			n = (i64)de_getbyte_p(&pos);
			de_dbg(c, "rsrc fork passwd len: %u", (UI)n);
			pos += n;
		}
	}

	if(!md->is_folder) {
		md->rfork.cmpr_pos = pos;
		pos += md->rfork.cmpr_len;

		md->dfork.cmpr_pos = pos;
		pos += md->dfork.cmpr_len;
	}

done:
	de_dbg_indent_restore(c, saved_indent_level);
	ucstring_destroy(descr);
	return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x68(%rbp)
movl $0x0, -0x70(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x15b580
cmpq $0x0, -0x20(%rbp)
jne 0x141a5b
jmp 0x142574
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x8ec28(%rip), %rsi     # 0x1d0692
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movl $0xa5a5a5a5, %eax       # imm = 0xA5A5A5A5
cmpq %rax, -0x40(%rbp)
je 0x141aba
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x8c670(%rip), %rsi     # 0x1ce11e
movb $0x0, %al
callq 0x15bfb0
jmp 0x142574
movq -0x8(%rbp), %rdi
callq 0x1711d0
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq 0x8c62c(%rip), %rsi     # 0x1ce13f
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
cmpq $0x30, -0x48(%rbp)
jl 0x141b39
cmpq $0x7d0, -0x48(%rbp)     # imm = 0x7D0
jle 0x141b50
movq -0x8(%rbp), %rdi
leaq 0x8c617(%rip), %rsi     # 0x1ce15b
movb $0x0, %al
callq 0x15bfb0
jmp 0x142574
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x15f250
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x20(%rbp), %rdx
movl $0x20, %ecx
callq 0x15f500
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movl $0x2, %esi
callq 0x15f4d0
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x20(%rbp), %rdx
addq $0x22, %rdx
movq -0x48(%rbp), %rcx
subq $0x22, %rcx
callq 0x15f500
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x15f340
movl %eax, -0x58(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165170
movb %al, -0x59(%rbp)
movq -0x68(%rbp), %rdi
callq 0x171210
movzbl -0x59(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x141c0e
movq -0x18(%rbp), %rax
movb $0x1, (%rax)
movq -0x68(%rbp), %rdi
leaq 0x64046(%rip), %rsi     # 0x1a5c4f
callq 0x172680
movzbl -0x59(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x141c40
movq -0x18(%rbp), %rax
movb $0x1, 0xe4(%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0xa4(%rax)
movq -0x68(%rbp), %rdi
leaq 0x8c20c(%rip), %rsi     # 0x1cde47
callq 0x172680
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movzbl -0x59(%rbp), %eax
movl %eax, -0xb8(%rbp)
movq -0x68(%rbp), %rdi
callq 0x172650
movq -0xc0(%rbp), %rdi
movl -0xb8(%rbp), %edx
movq %rax, %rcx
leaq 0x78171(%rip), %rsi     # 0x1b9de6
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x90, %rsi
callq 0x15d720
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
leaq -0xb0(%rbp), %rsi
movl $0x40, %edx
xorl %ecx, %ecx
callq 0x15e130
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
leaq 0x81f9c(%rip), %rsi     # 0x1c3c75
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x90(%rcx), %rdx
movq %rdx, 0x28(%rax)
movq 0x98(%rcx), %rcx
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x80, %rsi
callq 0x15d720
movq -0x18(%rbp), %rdi
addq $0x80, %rdi
leaq -0xb0(%rbp), %rsi
movl $0x40, %edx
xorl %ecx, %ecx
callq 0x15e130
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
leaq 0x5c369(%rip), %rsi     # 0x19e0cc
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x80(%rcx), %rdx
movq %rdx, 0x18(%rax)
movq 0x88(%rcx), %rcx
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x8c3b2(%rip), %rsi     # 0x1ce166
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x120(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x120(%rax), %rdx
leaq 0x5ef6a(%rip), %rsi     # 0x1a0d5a
movb $0x0, %al
callq 0x15b0d0
movl $0x1, -0x70(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x8c34e(%rip), %rsi     # 0x1ce170
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl %eax, %edx
leaq 0x8c32d(%rip), %rsi     # 0x1ce17c
movb $0x0, %al
callq 0x15b0d0
movq -0x30(%rbp), %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x15ccf0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %edx
leaq 0x762af(%rip), %rsi     # 0x1b8139
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl -0x58(%rbp), %edx
leaq 0x791d2(%rip), %rsi     # 0x1bb071
movb $0x0, %al
callq 0x15b0d0
movl -0x54(%rbp), %eax
cmpl -0x58(%rbp), %eax
je 0x141ec6
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %edx
movl -0x58(%rbp), %ecx
leaq 0x81dcc(%rip), %rsi     # 0x1c3c8b
movb $0x0, %al
callq 0x15bc10
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x141f93
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x128(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x128(%rax), %rdx
leaq 0x8c285(%rip), %rsi     # 0x1ce18d
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x8c275(%rip), %rsi     # 0x1ce1a8
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x130(%rax), %rdx
leaq 0x7c198(%rip), %rsi     # 0x1be11f
movb $0x0, %al
callq 0x15b0d0
jmp 0x142111
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xf0(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xf0(%rax), %rdx
leaq 0x8c1f1(%rip), %rsi     # 0x1ce1b9
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x100(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x100(%rax), %rdx
leaq 0x8c1cf(%rip), %rsi     # 0x1ce1d3
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xe8(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xe8(%rax), %edx
leaq 0x8c1ae(%rip), %rsi     # 0x1ce1eb
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0xe1(%rax)
movq -0x68(%rbp), %rdi
callq 0x171210
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xe0, %rdx
movq -0x68(%rbp), %rcx
callq 0x140380
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rax
movzbl 0xe1(%rax), %eax
movl %eax, -0xc4(%rbp)
movq -0x68(%rbp), %rdi
callq 0x172500
movq -0xd0(%rbp), %rdi
movl -0xc4(%rbp), %edx
movq %rax, %rcx
leaq 0x8c142(%rip), %rsi     # 0x1ce210
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165170
movzbl %al, %eax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rax
movl %eax, %edx
leaq 0x8c12f(%rip), %rsi     # 0x1ce22d
movb $0x0, %al
callq 0x15b0d0
movq -0x40(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %r9d
xorl %r8d, %r8d
callq 0x1664c0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x172650
movq -0xd8(%rbp), %rdi
movq %rax, %rdx
leaq 0x85416(%rip), %rsi     # 0x1c7583
movb $0x0, %al
callq 0x15b0d0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rsi
callq 0x1728d0
movq -0x18(%rbp), %rax
movb $0x1, 0x138(%rax)
movq -0x30(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x50(%rbp), %rax
subq -0x28(%rbp), %rax
cmpq $0x5, %rax
jl 0x1421fc
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq -0x40(%rbp), %rax
cmpq -0x50(%rbp), %rax
jg 0x1421fa
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x40(%rbp), %r8
callq 0x1425a0
jmp 0x1421fc
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x50(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x142525
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movl %eax, -0xb4(%rbp)
movq -0x8(%rbp), %rdi
movl -0xb4(%rbp), %edx
leaq 0x82a1d(%rip), %rsi     # 0x1c4c64
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0x20, %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0x169860
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x20, %rdx
addq $0x10, %rdx
leaq 0x5e475(%rip), %rsi     # 0x1a0707
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x20(%rcx), %ecx
movl %ecx, 0x90(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x7b(%rax)
movq -0x28(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0x50, %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0x169860
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x50, %rdx
addq $0x10, %rdx
leaq 0x7da34(%rip), %rsi     # 0x1bfd32
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x50(%rcx), %ecx
movl %ecx, 0x94(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x7c(%rax)
movq -0x28(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x4(%rax), %edx
leaq 0x5e3b8(%rip), %rsi     # 0x1a0716
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movw %cx, 0x7e(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, 0x7d(%rax)
movq -0x28(%rbp), %rax
addq $0x16, %rax
movq %rax, -0x28(%rbp)
movl -0xb4(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x142523
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xb0(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xb0(%rax), %rdx
leaq 0x8be6c(%rip), %rsi     # 0x1ce246
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1654b0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xc0(%rax), %rdx
leaq 0x8be4a(%rip), %rsi     # 0x1ce260
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165210
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xa8(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xa8(%rax), %edx
leaq 0x8be29(%rip), %rsi     # 0x1ce278
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165170
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0xa1(%rax)
movq -0x68(%rbp), %rdi
callq 0x171210
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa0, %rdx
movq -0x68(%rbp), %rcx
callq 0x140380
movq -0x8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rax
movzbl 0xa1(%rax), %eax
movl %eax, -0xdc(%rbp)
movq -0x68(%rbp), %rdi
callq 0x172500
movq -0xe8(%rbp), %rdi
movl -0xdc(%rbp), %edx
movq %rax, %rcx
leaq 0x8bdbd(%rip), %rsi     # 0x1ce29d
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x165170
movzbl %al, %eax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rax
movl %eax, %edx
leaq 0x8bdaa(%rip), %rsi     # 0x1ce2ba
movb $0x0, %al
callq 0x15b0d0
movq -0x40(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x142525
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x142572
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x18(%rbp), %rax
movq 0xc0(%rax), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xf8(%rax)
movq -0x18(%rbp), %rax
movq 0x100(%rax), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x142574
movq -0x8(%rbp), %rdi
movl -0x6c(%rbp), %esi
callq 0x15b5a0
movq -0x68(%rbp), %rdi
callq 0x171750
movl -0x70(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)