// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/bmp.c
// Function: de_run_bmp
static void de_run_bmp(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;

	d = de_malloc(c, sizeof(lctx));

	if(mparams) {
		// if in_params.flags & 0x2, then the parent module wants the decoded
		// image to be returned, instead of written to a file.
		// in_params.obj1 points to an fmtutil_bmp_mparams_indata struct,
		// allocated by the caller, that will be filled in by the bmp module.
		// [It's acknowledged that out_params seems more appropriate for data
		// going from the child to the parent. But I don't think it's right
		// for the parent to put stuff in out_params, and I want the parent
		// to both allocate and free the container struct. Some rethinking of this
		// data passing system is probably in order.]
		if(mparams->in_params.flags & 0x02) {
			d->want_returned_img = 1;
		}
	}

	d->fi = de_finfo_create(c);

	if(dbuf_memcmp(c->infile, 0, "BM", 2)) {
		de_err(c, "Not a BMP file.");
		goto done;
	}

	if(!detect_bmp_version(c, d)) {
		de_err(c, "Unidentified BMP version.");
		goto done;
	}

	switch(d->version) {
	case DE_BMPVER_OS2V1:
		if(d->fsize==26) {
			de_declare_fmt(c, "BMP, OS/2 v1");
		}
		else {
			de_declare_fmt(c, "BMP, OS/2 v1 or Windows v2");
		}
		break;
	case DE_BMPVER_OS2V2: de_declare_fmt(c, "BMP, OS/2 v2"); break;
	case DE_BMPVER_WINV345:
		switch(d->infohdrsize) {
		case 40: de_declare_fmt(c, "BMP, Windows v3"); break;
		case 108: de_declare_fmt(c, "BMP, Windows v4"); break;
		case 124: de_declare_fmt(c, "BMP, Windows v5"); break;
		default: de_declare_fmt(c, "BMP, Windows v3+");
		}
		break;
	case DE_BMPVER_64BIT:
		de_declare_fmt(c, "BMP, 64-bit");
		break;
	}

	pos = 0;
	if(!read_fileheader(c, d, pos)) goto done;
	pos += FILEHEADER_SIZE;
	if(!read_infoheader(c, d, pos)) goto done;
	pos += d->infohdrsize;
	if(d->bitfields_type==BF_SEGMENT) {
		de_dbg(c, "bitfields segment at %"I64_FMT", len=%"I64_FMT, pos, d->bitfields_segment_len);
		if(pos+d->bitfields_segment_len > d->bits_offset) {
			de_warn(c, "BITFIELDS segment at %"I64_FMT" (size %"I64_FMT") overlaps bitmap at %"I64_FMT,
				pos, d->bitfields_segment_len, d->bits_offset);
		}
		de_dbg_indent(c, 1);
		do_read_bitfields(c, d, pos, d->bitfields_segment_len);
		de_dbg_indent(c, -1);
		pos += d->bitfields_segment_len;
	}
	d->pal_pos = pos;
	do_read_palette(c, d);
	do_image(c, d);
	do_read_profile(c, d);

	if(d->want_returned_img && mparams && mparams->in_params.obj1) {
		struct fmtutil_bmp_mparams_indata *idata =
			(struct fmtutil_bmp_mparams_indata*)mparams->in_params.obj1;
		idata->img = d->img;
		d->img = NULL;
		idata->fi = d->fi;
		d->fi = NULL;
		idata->createflags = d->createflags;
	}

done:
	if(d) {
		de_bitmap_destroy(d->img);
		de_finfo_destroy(c, d->fi);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %rbx
movq %rdi, %r13
movl $0x540, %esi            # imm = 0x540
callq 0xdecaf
movq %rax, %r12
movq %rax, %r15
testq %rbx, %rbx
je 0x31a0b
testb $0x2, 0x8(%rbx)
je 0x31a0b
movb $0x1, 0x4(%r15)
movq %r13, %rdi
callq 0xdfd1a
movq %rax, 0x8(%r15)
movq 0x18(%r13), %rdi
leaq 0xdd5fc(%rip), %rdx     # 0x10f01e
pushq $0x2
popq %rcx
xorl %esi, %esi
callq 0xe4d48
testl %eax, %eax
je 0x31a46
leaq 0xd8ec6(%rip), %rsi     # 0x10a8fd
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x322a5
movq 0x18(%r13), %rdi
pushq $0x2
popq %rsi
callq 0xe409f
movq %rax, 0x20(%r15)
movq 0x18(%r13), %rdi
pushq $0xe
popq %rsi
callq 0xe409f
movq %rax, 0x30(%r15)
xorl %ecx, %ecx
cmpq $0xd, %rax
setge %cl
movq 0x18(%r13), %rdi
leaq 0x18(,%rcx,4), %rsi
callq 0xe3fa3
movq %rax, 0x38(%r15)
movq 0x30(%r15), %rdx
cmpq $0xc, %rdx
jne 0x31b7b
movl $0x1, (%r15)
cmpq $0x1a, 0x20(%r15)
leaq 0xd8e82(%rip), %rax     # 0x10a927
leaq 0xd8e88(%rip), %rsi     # 0x10a934
cmoveq %rax, %rsi
movq %rbx, 0x18(%rsp)
movq %r13, %rdi
callq 0xe07f7
leaq 0xddb5b(%rip), %rsi     # 0x10f61f
movq %r13, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rbp
movq %r13, %rdi
movl %ebp, %esi
callq 0xdeba7
movq 0x20(%r15), %rdx
leaq 0xd8f1e(%rip), %rsi     # 0x10aa06
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r13), %rdi
pushq $0xa
popq %rsi
callq 0xe409f
movq %rax, 0x28(%r15)
leaq 0xd8f09(%rip), %rsi     # 0x10aa12
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
leaq 0xd8ef9(%rip), %rsi     # 0x10aa21
pushq $0xe
popq %rdx
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq %r13, %rdi
movl %ebp, %esi
callq 0xdeba7
movq 0x30(%r15), %rdx
leaq 0xd8eea(%rip), %rsi     # 0x10aa34
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
cmpl $0x1, (%r15)
movq 0x18(%r13), %rdi
jne 0x31b91
pushq $0x16
popq %rbx
pushq $0x12
popq %rsi
callq 0xe3fa3
movq %rax, 0x50(%r15)
movq 0x18(%r13), %rdi
pushq $0x14
popq %rsi
callq 0xe3fa3
jmp 0x31bbc
cmpq $0x10, %rdx
jge 0x31d08
leaq 0xd8d81(%rip), %rsi     # 0x10a90d
jmp 0x31a37
pushq $0x12
popq %rsi
callq 0xe40f2
movq %rax, 0x50(%r15)
movq 0x18(%r13), %rdi
pushq $0x16
popq %rsi
callq 0xe40f2
pushq $0x1a
popq %rbx
testq %rax, %rax
jns 0x31bbc
movl $0x1, 0x68(%r15)
negq %rax
movq %rax, 0x60(%r15)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xe3fa3
movq %rax, %rbx
movq 0x50(%r15), %rsi
movq 0x60(%r15), %rdx
movq %rsi, 0x58(%r15)
movq %r13, %rdi
callq 0xdf038
cmpl $0x0, 0x68(%r15)
je 0x31bfd
leaq 0xd8e59(%rip), %rsi     # 0x10aa4a
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
jmp 0x31c02
orb $0x4, 0x18(%r15)
leaq 0xfc5b6(%rip), %rsi     # 0x12e1bf
movq %r13, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xde896
movl 0x38(%r15), %edx
leaq 0x1070be(%rip), %rsi    # 0x138cde
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x38(%r15), %rax
leaq -0x4(%rax), %rcx
cmpq $0x3c, %rcx
ja 0x31c55
movl $0x10101011, %edx       # imm = 0x10101011
btq %rcx, %rdx
jb 0x31c5f
cmpq $0x3c, %rcx
jne 0x31c55
movl (%r15), %eax
movb $0x1, %cl
cmpl $0xa, %eax
je 0x31c5f
jmp 0x31c64
cmpq $0x3, %rax
jae 0x31e53
xorl %ecx, %ecx
movl (%r15), %eax
cmpl $0x1, %eax
movl %ecx, 0x20(%rsp)
jne 0x31c71
pushq $0x3
jmp 0x31ca7
movl 0x40(%r15), %edi
xorl %ecx, %ecx
cmpl $0x2, %eax
sete %cl
leaq 0x50(%rsp), %rbx
pushq $0x50
popq %rdx
movq %rbx, %rsi
callq 0xebb30
movl 0x40(%r15), %edx
leaq 0xd8dc8(%rip), %rsi     # 0x10aa60
movq %r13, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0xde896
pushq $0x4
popq %rax
movq %rax, 0x80(%r15)
andl $0x0, 0xa8(%r15)
movq %r15, 0x10(%rsp)
movl 0x40(%r15), %eax
movb $0x1, %r15b
cmpq $0x6, %rax
ja 0x31de7
leaq 0xd8a7c(%rip), %rcx     # 0x10a750
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rcx
movq 0x38(%rcx), %rax
cmpq $0x20, %rax
je 0x31cf2
cmpq $0x10, %rax
jne 0x31cfc
movl $0x1, 0x8c(%rcx)
andl $0x0, 0xa8(%rcx)
jmp 0x31f4e
cmpq $0x14, %rdx
jb 0x31d4c
movq 0x18(%r13), %rdi
pushq $0x1e
popq %rsi
callq 0xe409f
movq %rax, %rcx
movl %ecx, 0x40(%r15)
movq 0x30(%r15), %rdx
movq 0x38(%r15), %rax
movq %rax, %rsi
xorq $0x40, %rsi
movq %rdx, %rdi
xorq $0x28, %rdi
orq %rsi, %rdi
jne 0x31d4c
testl %ecx, %ecx
je 0x31eb5
pushq $0x40
popq %rax
pushq $0x28
popq %rdx
jmp 0x31d5a
leaq -0x10(%rdx), %rcx
cmpq $0x30, %rcx
ja 0x31ef0
leaq 0xe(%rdx), %rcx
cmpq %rcx, 0x20(%r15)
jne 0x31e5a
movl $0x2, (%r15)
leaq 0xd8bd9(%rip), %rsi     # 0x10a94f
jmp 0x31ab0
movq 0x10(%rsp), %rcx
cmpl $0x2, (%rcx)
jne 0x31e74
cmpq $0x18, 0x38(%rcx)
jne 0x31f51
movl $0xd, 0xa8(%rcx)
jmp 0x31f4e
movq 0x10(%rsp), %rcx
movl $0xb, 0xa8(%rcx)
jmp 0x31f4e
movq 0x10(%rsp), %rax
cmpl $0x2, (%rax)
movq 0x38(%rax), %rax
jne 0x31e83
cmpq $0x1, %rax
movq 0x10(%rsp), %rcx
jne 0x31f51
movl $0x10, 0xa8(%rcx)
jmp 0x31f4e
movq 0x10(%rsp), %rcx
jmp 0x31f51
movq 0x10(%rsp), %rcx
movl $0xc, 0xa8(%rcx)
jmp 0x31f4e
movq 0x10(%rsp), %rcx
movl $0xf, 0xa8(%rcx)
jmp 0x31f4e
movq 0x10(%rsp), %rcx
movq 0x38(%rcx), %rax
cmpq $0x20, %rax
je 0x31e32
cmpq $0x10, %rax
jne 0x31f51
cmpq $0x37, 0x30(%rcx)
jg 0x31ea3
movl $0x2, 0x8c(%rcx)
movq $0x10, 0x90(%rcx)
jmp 0x31f4e
movb $0x1, %cl
jmp 0x31c61
movl 0x40(%r15), %ecx
cmpl $0x4, %ecx
je 0x31ec8
cmpl $0x3, %ecx
jne 0x31ed2
cmpq $0x1, %rax
je 0x31d68
jmp 0x31ed2
movl $0xe, 0xa8(%rcx)
jmp 0x31f4e
cmpq $0x20, %rax
movq 0x10(%rsp), %rcx
je 0x31e98
cmpq $0x10, %rax
jne 0x31f51
cmpq $0x33, 0x30(%rcx)
jle 0x31f39
movl $0x3, 0x8c(%rcx)
xorl %r15d, %r15d
jmp 0x31f5c
movl $0xa, (%r15)
leaq 0xd8ada(%rip), %rsi     # 0x10a99d
jmp 0x31ab0
cmpq $0x18, %rax
je 0x31d68
cmpq $0x38, %rdx
ja 0x31d68
movabsq $0x110010000000000, %rax # imm = 0x110010000000000
btq %rdx, %rax
jae 0x31d68
movl $0x3, (%r15)
cmpq $0x28, %rdx
je 0x31f21
cmpq $0x7c, %rdx
je 0x31f15
cmpq $0x6c, %rdx
jne 0x31f2d
leaq 0xd8a5c(%rip), %rsi     # 0x10a96c
jmp 0x31ab0
leaq 0xd8a60(%rip), %rsi     # 0x10a97c
jmp 0x31ab0
leaq 0xd8a34(%rip), %rsi     # 0x10a95c
jmp 0x31ab0
leaq 0xd8a58(%rip), %rsi     # 0x10a98c
jmp 0x31ab0
movl $0x2, 0x8c(%rcx)
movq $0xc, 0x90(%rcx)
xorl %r15d, %r15d
cmpq $0x17, 0x30(%rcx)
jle 0x32058
movq 0x18(%r13), %rdi
pushq $0x22
popq %rsi
callq 0xe409f
movq 0x10(%rsp), %r14
movq %rax, 0x48(%r14)
leaq 0xd8b04(%rip), %rsi     # 0x10aa7c
xorl %ebx, %ebx
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq $0x20, 0x30(%r14)
jl 0x3205a
movq 0x18(%r13), %rdi
pushq $0x26
popq %rsi
callq 0xe40f2
movq %rax, 0x98(%r14)
movq 0x18(%r13), %rdi
pushq $0x2a
popq %rsi
callq 0xe40f2
movq %rax, 0xa0(%r14)
movl 0x98(%r14), %edx
leaq 0xd8ac7(%rip), %rsi     # 0x10aa8d
movq %r13, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xde896
movq 0x98(%r14), %rax
testq %rax, %rax
jle 0x32040
movq 0xa0(%r14), %rcx
testq %rcx, %rcx
jle 0x32040
movq 0x8(%r14), %rdx
movl $0x2, 0x78(%rdx)
movq %rcx, %xmm0
movq %rax, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movdqa 0xd86d5(%rip), %xmm0    # 0x10a6e0
pand %xmm1, %xmm0
por 0xd86d9(%rip), %xmm0    # 0x10a6f0
psrlq $0x20, %xmm1
por 0xd86dc(%rip), %xmm1    # 0x10a700
subpd 0xd86e4(%rip), %xmm1    # 0x10a710
addpd %xmm0, %xmm1
mulpd 0xd86e8(%rip), %xmm1    # 0x10a720
movupd %xmm1, 0x80(%rdx)
cmpq $0x24, 0x30(%r14)
jl 0x32058
movq 0x18(%r13), %rdi
pushq $0x2e
popq %rsi
callq 0xe409f
movq %rax, %rbx
jmp 0x3205a
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rcx
testq %rcx, %rcx
jle 0x3207d
pushq $0x1
popq %rax
shlq %cl, %rax
testq %rbx, %rbx
cmovneq %rbx, %rax
cmpq $0x9, %rcx
cmovbq %rax, %rbx
movq 0x10(%rsp), %r14
movq %rbx, 0x70(%r14)
leaq 0xd2313(%rip), %rsi     # 0x1043a0
movq %r13, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xde896
movl 0x8c(%r14), %eax
cmpl $0x3, %eax
jne 0x320d0
xorl %eax, %eax
movq 0x10(%rsp), %rbx
cmpq $0x38, 0x30(%rbx)
setge %al
leaq 0xc(,%rax,4), %rcx
pushq $0x36
popq %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x34330
movl 0x8c(%rbx), %eax
cmpl $0x1, %eax
jne 0x32124
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rax
cmpq $0x10, %rax
je 0x320fb
cmpq $0x20, %rax
jne 0x32124
movl $0xff, %eax
movl $0xff00, %ecx           # imm = 0xFF00
movl $0xff0000, %edx         # imm = 0xFF0000
jmp 0x32108
pushq $0x1f
popq %rax
movl $0x3e0, %ecx            # imm = 0x3E0
movl $0x7c00, %edx           # imm = 0x7C00
movq 0x10(%rsp), %rdi
movl %edx, 0x100(%rdi)
movl %ecx, 0x110(%rdi)
movl %eax, 0x120(%rdi)
callq 0x3439f
movq 0x10(%rsp), %rbx
cmpl $0x3, (%rbx)
jne 0x32262
cmpq $0x6c, 0x30(%rbx)
jl 0x32262
movq 0x18(%r13), %rdi
leaq 0xac(%r12), %rdx
pushq $0x46
popq %rsi
pushq $0x4
popq %rcx
pushq $0x1
popq %r8
callq 0xe657c
movl 0xb0(%rbx), %ecx
cmpl $0x10000, %ecx          # imm = 0x10000
jb 0x32177
leaq 0xbc(%r12), %r8
leaq 0xd89b7(%rip), %rdx     # 0x10ab2c
jmp 0x32192
testl %ecx, %ecx
leaq 0xd89ba(%rip), %rax     # 0x10ab3a
leaq 0xecd5a(%rip), %r8      # 0x11eee1
cmoveq %rax, %r8
leaq 0xd623e(%rip), %rdx     # 0x1083d0
leaq 0x50(%rsp), %rdi
pushq $0x50
popq %rsi
xorl %eax, %eax
callq 0xde40c
leaq 0xd8902(%rip), %rsi     # 0x10aaaa
leaq 0x50(%rsp), %rdx
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x10(%rsp), %rbx
cmpl $0x3, (%rbx)
jne 0x32262
cmpq $0x7c, 0x30(%rbx)
jl 0x32262
movq 0x18(%r13), %rdi
pushq $0x7a
popq %rsi
callq 0xe409f
leaq 0xd88d2(%rip), %rsi     # 0x10aab5
movq %r13, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpl $0x3, (%rbx)
jne 0x32262
cmpq $0x7c, 0x30(%rbx)
jl 0x32262
movl 0xb0(%rbx), %eax
cmpl $0x4d424544, %eax       # imm = 0x4D424544
je 0x3220f
cmpl $0x4c494e4b, %eax       # imm = 0x4C494E4B
jne 0x32262
movq 0x18(%r13), %rdi
pushq $0x7e
popq %rsi
callq 0xe409f
movq %rax, 0xe0(%rbx)
leaq 0xd8897(%rip), %rsi     # 0x10aac0
pushq $0xe
popq %rdx
movq %r13, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r13), %rdi
movl $0x82, %esi
callq 0xe409f
movq %rax, 0xf0(%rbx)
leaq 0xd8882(%rip), %rsi     # 0x10aad7
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x20(%rsp)
je 0x3227b
movq 0x10(%rsp), %r15
movl 0x38(%r15), %edx
leaq 0xd8870(%rip), %rsi     # 0x10aae9
jmp 0x32290
testb %r15b, %r15b
je 0x322d7
movq 0x10(%rsp), %r15
movl 0x40(%r15), %edx
leaq 0xd887b(%rip), %rsi     # 0x10ab0b
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf2a5
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
movq 0x10(%r15), %rdi
callq 0xe7084
movq 0x8(%r15), %rsi
movq %r13, %rdi
callq 0xdfd24
movq %r13, %rdi
movq %r15, %rsi
callq 0xded32
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %r15
movq 0x50(%r15), %rsi
movq 0x60(%r15), %rdx
movq %r13, %rdi
callq 0xe6be1
movl %eax, %ebx
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
testl %ebx, %ebx
je 0x322a5
movq 0x30(%r15), %rbx
addq $0xe, %rbx
cmpl $0x2, 0x8c(%r15)
jne 0x32384
movq 0x90(%r15), %rcx
leaq 0xd868c(%rip), %rsi     # 0x10a9a9
movq %r13, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x28(%r15), %r8
movq 0x90(%r15), %rcx
leaq (%rcx,%rbx), %rax
cmpq %r8, %rax
jle 0x32352
leaq 0xd8686(%rip), %rsi     # 0x10a9cb
movq %r13, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdf05a
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
movq 0x90(%r15), %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x34330
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
addq 0x90(%r15), %rbx
movq %rbx, 0x78(%r15)
movq 0x70(%r15), %rcx
testq %rcx, %rcx
jle 0x324b1
imulq 0x80(%r15), %rcx
leaq (%rcx,%rbx), %rax
movq 0x28(%r15), %r8
cmpq %r8, %rax
jle 0x3243f
leaq 0xd87a9(%rip), %rsi     # 0x10ab5e
movq %r13, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdf05a
cmpl $0x2, (%r15)
jne 0x3243f
movq 0x70(%r15), %rax
testq %rax, %rax
jle 0x3243f
movq 0x28(%r15), %rcx
subq 0x78(%r15), %rcx
leaq (,%rax,4), %rdx
cmpq %rdx, %rcx
jge 0x3243f
leaq (%rax,%rax,2), %rbx
cmpq %rbx, %rcx
setl %al
leaq 0x1(%rbx), %rdx
cmpq %rdx, %rcx
setg %cl
orb %al, %cl
jne 0x3243f
pushq $0x3
popq %r14
leaq -0x3(%r14), %rax
cmpq %rax, %rbx
jbe 0x3243f
movq 0x18(%r13), %rdi
movq 0x78(%r15), %rsi
addq %r14, %rsi
callq 0xe3eb4
addq $0x4, %r14
testb %al, %al
je 0x32402
leaq 0xd8785(%rip), %rsi     # 0x10abaf
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf05a
movq $0x3, 0x80(%r15)
movq 0x70(%r15), %rcx
movq 0x78(%r15), %rdx
leaq 0xd8741(%rip), %rsi     # 0x10ab8f
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
movq 0x18(%r13), %rdi
movq 0x70(%r15), %rdx
movq 0x78(%r15), %rsi
movq 0x80(%r15), %rcx
leaq 0x140(%r12), %rbx
movl $0x1, (%rsp)
movl $0x100, %r9d            # imm = 0x100
movq %rbx, %r8
callq 0xe7963
movq 0x70(%r15), %rsi
movq %rbx, %rdi
callq 0xe6d06
movl %eax, 0x88(%r15)
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
movq 0x28(%r15), %rdx
leaq 0xf6e49(%rip), %rsi     # 0x129305
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x28(%r15), %rax
movq 0x18(%r13), %rcx
movq %rax, 0x30(%rsp)
movq %rcx, 0x20(%rsp)
cmpq 0x18(%rcx), %rax
jge 0x3256e
movq 0x38(%r15), %rcx
movq 0x50(%r15), %rdi
movq %rdi, %rax
imulq %rcx, %rax
addq $0x1f, %rax
pushq $0x20
popq %rsi
cqto
idivq %rsi
leaq (,%rax,4), %rsi
movq %rsi, 0xf8(%r15)
movl 0xa8(%r15), %r8d
cmpl $0xd, %r8d
movq %r13, 0x28(%rsp)
movq 0x18(%rsp), %rbx
je 0x326ee
cmpl $0xb, %r8d
je 0x32589
cmpl $0xc, %r8d
je 0x3259f
testl %r8d, %r8d
jne 0x325a9
cmpb $0x0, 0x4(%r15)
je 0x32d5f
leaq -0x1(%rcx), %r9
cmpq $0x7, %r9
ja 0x32dcc
movq %r13, %rdi
movq %r15, %rsi
movq 0x20(%rsp), %rdx
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x343ed
jmp 0x33014
leaq 0xd866f(%rip), %rsi     # 0x10abe4
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq 0x18(%rsp), %rbx
jmp 0x33038
cmpq $0x1, %rcx
je 0x32708
cmpq $0x4, %rcx
je 0x32708
jmp 0x325a9
cmpq $0x8, %rcx
je 0x32708
cmpl $0xa, (%r15)
je 0x32795
cmpl $0xe, %r8d
je 0x32d99
cmpl $0xf, %r8d
je 0x32d90
cmpl $0x10, %r8d
jne 0x32918
cmpq $0x1, %rcx
jne 0x32918
xorpd %xmm0, %xmm0
leaq 0xf0(%rsp), %rbx
movupd %xmm0, 0x18(%rbx)
movq %rdi, (%rbx)
movq 0x60(%r15), %rax
movq %rax, 0x8(%rbx)
movq %rsi, 0x10(%rbx)
movl $0x3, 0x18(%rbx)
leaq 0xd867c(%rip), %rsi     # 0x10ac85
movq %r13, %rdi
xorl %edx, %edx
callq 0xdfae5
movb %al, 0x1c(%rbx)
movq 0x60(%r15), %rsi
imulq 0xf8(%r15), %rsi
pushq $0x1
popq %rdx
movq %r13, %rdi
callq 0xe59cd
movq %rax, %r14
leaq 0xd0(%rsp), %r15
leaq 0xb8(%rsp), %r12
leaq 0x50(%rsp), %r13
movq 0x28(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xee7ee
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%r15)
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x8(%r15)
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x346c1
movq %rax, 0x10(%r15)
movq %r14, (%r12)
movb $0x1, 0x8(%r12)
movq 0x10(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x10(%rsp), %rcx
imulq 0xf8(%rcx), %rax
movq %rax, 0x10(%r12)
movq 0x28(%rsp), %rdi
movq %r15, %rsi
movq 0x10(%rsp), %r15
movq %r12, %rdx
movq %r13, %rcx
movq 0x28(%rsp), %r13
movq %rbx, %r8
movq 0x18(%rsp), %rbx
callq 0xf233c
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x343ed
movq %r14, %rdi
callq 0xe5591
jmp 0x33014
cmpq $0x21, %rcx
setb %al
movl $0x1000000, %edx        # imm = 0x1000000
shrq %cl, %rdx
andb %al, %dl
cmpb $0x1, %dl
jne 0x3278b
pushq $0x68
popq %rsi
movq %r13, %rdi
callq 0xdecaf
movq %rax, %r12
movl 0xa8(%r15), %eax
addl $-0xb, %eax
cmpl $0x2, %eax
ja 0x3277d
movl %eax, %eax
leaq 0xd811a(%rip), %rcx     # 0x10a848
movq (%rcx,%rax,8), %rsi
movq %rsi, 0x8(%r12)
movq 0x38(%r15), %rdi
cmpq %rdi, %rsi
movq %rsi, 0x40(%rsp)
movq %rdi, 0xb0(%rsp)
jne 0x32986
movq 0x50(%r15), %rsi
movq 0x60(%r15), %rdx
pushq $0x1
popq %rcx
movq %r13, %rdi
callq 0xe7437
movq %rax, 0x48(%r12)
movq 0x38(%r15), %rdi
movq 0x8(%r12), %rsi
movb $0x1, %al
movl %eax, 0x3c(%rsp)
jmp 0x32993
testq %r12, %r12
jne 0x32ff5
jmp 0x33014
cmpl $0xa, (%r15)
jne 0x32918
cmpb $0x0, 0x4(%r15)
jne 0x33014
pushq $0x4
popq %rbx
movq %r13, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x34566
movq %rax, 0x48(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x34566
movq %rax, 0x40(%rsp)
xorl %ebx, %ebx
leaq 0xf0(%rsp), %r14
xorl %r13d, %r13d
cmpq 0x60(%r15), %rbx
jge 0x3292e
movq 0xf8(%r15), %rax
imulq %rbx, %rax
addq 0x30(%rsp), %rax
movq %rax, 0xf0(%rsp)
xorl %r12d, %r12d
cmpq 0x58(%r15), %r12
jge 0x32910
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xe4038
movl %eax, 0x58(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0xe4038
movl %eax, 0x54(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0xe4038
movl %eax, 0x50(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0xe4038
movl %eax, 0x5c(%rsp)
xorl %r15d, %r15d
cmpq $0x4, %r15
je 0x32885
movl 0x50(%rsp,%r15,4), %esi
cmpl $0x2001, %esi           # imm = 0x2001
movzbl %r13b, %r13d
cmovael %ebp, %r13d
leaq (%rsp,%r15), %rdx
addq $0xd0, %rdx
leaq (%rsp,%r15), %rcx
addq $0xb8, %rcx
movl $0x2000, %edi           # imm = 0x2000
callq 0xe1d74
incq %r15
jmp 0x32847
movzbl 0xd3(%rsp), %eax
shll $0x18, %eax
movzbl 0xd0(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0xd1(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0xd2(%rsp), %ecx
orl %eax, %ecx
movq 0x48(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xe728c
movzbl 0xbb(%rsp), %eax
shll $0x18, %eax
movzbl 0xb8(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0xb9(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0xba(%rsp), %ecx
orl %eax, %ecx
movq 0x40(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xe728c
incq %r12
movq 0x10(%rsp), %r15
jmp 0x327f9
incq %rbx
jmp 0x327d4
leaq 0xd82db(%rip), %rsi     # 0x10abfa
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x33038
testb %r13b, %r13b
movq 0x28(%rsp), %r13
je 0x32949
leaq 0xd831b(%rip), %rsi     # 0x10ac5a
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf05a
movq 0x8(%r15), %rdx
movb $0x1, 0xf(%rdx)
movl 0x18(%r15), %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r15)
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0xe6d4b
movq %rbx, %rdi
callq 0xe7084
movq %r14, %rdi
callq 0xe7084
jmp 0x32f38
movb $0x1, (%r12)
movl $0x0, 0x3c(%rsp)
movq 0x30(%rsp), %rbx
imulq 0x50(%r15), %rdi
callq 0xdfbb6
cqto
idivq 0x8(%r12)
movq %rax, 0x10(%r12)
movq 0x60(%r15), %rax
movq %rax, 0x18(%r12)
movq 0xf8(%r15), %rsi
movq %rsi, 0x20(%r12)
movq 0x20(%rsp), %rcx
movq %rcx, 0x28(%r12)
movq %rbx, 0x30(%r12)
movq 0x18(%rcx), %rcx
movq %rcx, 0x38(%r12)
imulq %rax, %rsi
pushq $0x1
popq %rdx
movq %r13, %rdi
callq 0xe59cd
movq %rax, 0x40(%r12)
movq %rax, %rdi
callq 0xe589c
movq 0x30(%r12), %rax
leaq 0x50(%rsp), %rcx
movq %rax, (%rcx)
cmpq 0x38(%r12), %rax
jge 0x32f48
movq 0x18(%r12), %rax
movq 0x58(%r12), %rcx
cmpq %rax, %rcx
jge 0x32f48
decq %rax
cmpq %rax, %rcx
jne 0x32a3a
movq 0x50(%r12), %rax
cmpq 0x10(%r12), %rax
jge 0x32f48
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0xe3f2a
movl %eax, %r14d
movq 0x28(%r12), %rdi
movq %rbx, %rsi
callq 0xe3f2a
movl %eax, %ebx
movl %r14d, %eax
orb %bl, %al
jne 0x32a85
andq $0x0, 0x50(%r12)
movq 0x58(%r12), %rsi
incq %rsi
movq %rsi, 0x58(%r12)
movq %r12, %rdi
callq 0x3457d
jmp 0x32b54
movl %ebx, %eax
xorb $0x1, %al
orb %r14b, %al
je 0x32f48
movl %ebx, %eax
xorb $0x2, %al
orb %r14b, %al
jne 0x32b68
movb $0x1, 0x65(%r12)
cmpb $0x0, (%r12)
jne 0x32f42
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %r14
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %ebx
addq 0x50(%r12), %rbx
movq 0x28(%r12), %rdi
movq %r14, %rsi
callq 0xe3f2a
movq 0x10(%r12), %rcx
movq 0x58(%r12), %rsi
movzbl %al, %r14d
addq %rsi, %r14
cmpq %rcx, %rbx
cmovgeq %rcx, %rbx
cmpq 0x18(%r12), %r14
jl 0x32b16
jmp 0x32f48
incq %rsi
movq %rsi, 0x58(%r12)
andq $0x0, 0x50(%r12)
movq %r12, %rdi
callq 0x3457d
movq 0x58(%r12), %rsi
cmpq %r14, %rsi
jl 0x32afb
jmp 0x32b4d
movq 0x8(%r12), %rax
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
cmpq $0x18, %rax
je 0x32b3c
cmpq $0x4, %rax
jne 0x32b48
callq 0x345a4
jmp 0x32b4d
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x34601
jmp 0x32b4d
callq 0x34665
cmpq %rbx, 0x50(%r12)
jl 0x32b1d
movq 0x50(%rsp), %rax
movq 0x28(%rsp), %r13
movq 0x10(%rsp), %r15
jmp 0x32a04
movzbl %bl, %r13d
testb %r14b, %r14b
je 0x32be5
movzbl %r14b, %r15d
movq 0x8(%r12), %rax
cmpq $0x4, %rax
je 0x32c50
cmpq $0x18, %rax
jne 0x32bda
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %r14
movq %r14, %rsi
callq 0xe3f2a
movl %eax, %ebx
movq 0x28(%r12), %rdi
movq %r14, %rsi
callq 0xe3f2a
movl %eax, %r14d
subq $0x1, %r15
jb 0x32b54
movzbl %r14b, %esi
movzbl %bl, %edx
movq %r12, %rdi
movl %r13d, %ecx
pushq $0x1
popq %r8
callq 0x34601
jmp 0x32bae
movq %r12, %rdi
movl %r13d, %esi
pushq $0x1
popq %rdx
callq 0x34665
subq $0x1, %r15
jae 0x32bcc
jmp 0x32b54
movq 0x8(%r12), %rax
cmpq $0x4, %rax
je 0x32c9a
movq %r13, %r15
cmpq $0x18, %rax
jne 0x32d14
subq $0x1, %r15
jb 0x32c86
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %rbp
movq %rbp, %rsi
callq 0xe3f2a
movl %eax, %ebx
movq 0x28(%r12), %rdi
movq %rbp, %rsi
callq 0xe3f2a
movl %eax, %r14d
movq 0x28(%r12), %rdi
movq %rbp, %rsi
callq 0xe3f2a
movzbl %bl, %ecx
movzbl %r14b, %edx
movzbl %al, %esi
movq %r12, %rdi
pushq $0x1
popq %r8
callq 0x34601
jmp 0x32c01
movl %ebx, %ebp
shrb $0x4, %bpl
andb $0xf, %bl
xorl %r14d, %r14d
cmpq %r14, %r15
je 0x32b54
testb $0x1, %r14b
movzbl %bpl, %eax
movzbl %bl, %ecx
cmovel %eax, %ecx
movzbl %cl, %esi
movq %r12, %rdi
pushq $0x1
popq %rdx
callq 0x345a4
incq %r14
jmp 0x32c5c
testb $0x1, %r13b
je 0x32b54
incq 0x50(%rsp)
jmp 0x32b54
leal 0x3(%r13), %eax
shrl %eax
andl $-0x2, %eax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
cmpq 0x48(%rsp), %rcx
je 0x32b54
movq %rcx, 0x20(%rsp)
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe3f2a
movl %eax, %ebx
movl %eax, %r15d
shrb $0x4, %r15b
andb $0xf, %bl
xorl %ebp, %ebp
leaq (%r14,%rbp), %rax
cmpl $0x1, %ebp
ja 0x32d07
cmpq %r13, %rax
jge 0x32d07
testl %ebp, %ebp
movzbl %r15b, %eax
movzbl %bl, %ecx
cmovel %eax, %ecx
movzbl %cl, %esi
movq %r12, %rdi
pushq $0x1
popq %rdx
callq 0x345a4
incq %rbp
jmp 0x32cda
movq 0x20(%rsp), %rcx
incq %rcx
movq %rax, %r14
jmp 0x32cad
movq %r13, %rdi
callq 0xdfb87
movq %rax, %rbx
testq %rax, %rax
movl $0x0, %eax
cmovleq %rax, %rbx
xorl %r14d, %r14d
subq $0x1, %rbx
jb 0x32b54
movq 0x28(%r12), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe3f2a
cmpq %r13, %r14
jge 0x32d2e
movzbl %al, %esi
movq %r12, %rdi
pushq $0x1
popq %rdx
callq 0x34665
incq %r14
jmp 0x32d2e
cmpb $0x0, 0xd6(%r13)
setne %dl
cmpq $0x18, %rcx
sete %r9b
andb %dl, %r9b
cmpb $0x1, %r9b
jne 0x32db0
orq $0x2, %rsi
pushq $0x3
popq %rcx
movq %rsi, %rax
cqto
idivq %rcx
movq %rax, 0x58(%r15)
jmp 0x32de2
leaq 0xe8759(%rip), %rdx     # 0x11b4f0
jmp 0x32da0
leaq 0xf383a(%rip), %rdx     # 0x1265da
movq %r13, %rdi
movq %r15, %rsi
callq 0x34524
jmp 0x33014
leaq -0x1(%rcx), %r9
cmpq $0x17, %r9
ja 0x32dcc
shlq $0x5, %rax
cqto
idivq %rcx
movq %rax, 0x58(%r15)
jmp 0x32547
cmpq $0x10, %rcx
je 0x32dff
cmpq $0x20, %rcx
je 0x32dff
cmpq $0x18, %rcx
jne 0x325a9
movq %r13, %rdi
movq %r15, %rsi
movq 0x20(%rsp), %rdx
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x34452
jmp 0x33014
movl 0x8c(%r15), %eax
cmpl $0x3, %eax
je 0x32e1a
cmpl $0x2, %eax
jne 0x32e28
cmpq $0x10, 0x90(%r15)
jl 0x32e28
cmpl $0x0, 0x130(%r15)
je 0x32e28
pushq $0x4
jmp 0x32e2a
pushq $0x3
popq %rdx
movq 0x30(%rsp), %rbp
movq %r13, %rdi
movq %r15, %rsi
callq 0x34566
movq %rax, 0x10(%r15)
addq $0x108, %r12            # imm = 0x108
xorl %ebx, %ebx
jmp 0x32f2e
xorl %r14d, %r14d
cmpq 0x58(%r15), %r14
jge 0x32f2b
movq 0xf8(%r15), %rax
imulq %rbx, %rax
cmpq $0x10, 0x38(%r15)
jne 0x32e86
leaq (,%r14,2), %rsi
addq %rbp, %rsi
addq %rax, %rsi
movq 0x20(%rsp), %rdi
callq 0xe3fa3
jmp 0x32e9e
leaq (,%r14,4), %rsi
addq %rbp, %rsi
addq %rax, %rsi
movq 0x20(%rsp), %rdi
callq 0xe409f
movq %r12, %rdx
xorl %esi, %esi
movsd 0xd7895(%rip), %xmm1    # 0x10a740
cmpq $0x4, %rsi
je 0x32ef1
movl -0x8(%rdx), %edi
testl %edi, %edi
je 0x32ed6
andl %eax, %edi
movb -0x4(%rdx), %cl
shrl %cl, %edi
cvtsi2sd %rdi, %xmm0
mulsd (%rdx), %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movb %cl, 0x50(%rsp,%rsi)
jmp 0x32ee8
cmpq $0x3, %rsi
jne 0x32ee3
movb $-0x1, 0x53(%rsp)
jmp 0x32ee8
movb $0x0, 0x50(%rsp,%rsi)
incq %rsi
addq $0x10, %rdx
jmp 0x32eab
movq 0x10(%r15), %rdi
movzbl 0x53(%rsp), %eax
shll $0x18, %eax
movzbl 0x50(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0x51(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0x52(%rsp), %ecx
orl %eax, %ecx
movq %r14, %rsi
movq %rbx, %rdx
callq 0xe728c
incq %r14
jmp 0x32e50
incq %rbx
cmpq 0x60(%r15), %rbx
jl 0x32e4d
movq 0x18(%rsp), %rbx
jmp 0x33014
movb $0x1, 0x66(%r12)
movq 0x18(%r12), %rsi
movq %r12, %rdi
callq 0x3457d
movq 0x40(%r12), %rdi
callq 0xe58e8
cmpb $0x0, 0x66(%r12)
je 0x32f87
leaq 0xd2ddf(%rip), %rsi     # 0x105d4d
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf2a5
cmpb $0x0, 0x66(%r12)
movq 0x18(%rsp), %rbx
jne 0x32ff5
jmp 0x32f8c
movq 0x18(%rsp), %rbx
movq 0xb0(%rsp), %rax
cmpq %rax, 0x40(%rsp)
je 0x32fac
leaq 0xd7c80(%rip), %rsi     # 0x10ac22
movq %r13, %rdi
xorl %eax, %eax
callq 0xdf05a
cmpq $0x8, 0x38(%r15)
movq 0x40(%r12), %rdx
jg 0x32fcd
movzbl 0x3c(%rsp), %r8d
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x343ed
jmp 0x32fe0
movzbl 0x3c(%rsp), %r8d
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x34452
movq 0x48(%r12), %rsi
testq %rsi, %rsi
je 0x32ff5
movq 0x10(%r15), %rdi
xorl %edx, %edx
callq 0xe83f8
movq 0x40(%r12), %rdi
callq 0xe5591
movq 0x48(%r12), %rdi
callq 0xe7084
movq %r13, %rdi
movq %r12, %rsi
callq 0xded32
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x33038
cmpb $0x0, 0x4(%r15)
jne 0x33038
movl 0x18(%r15), %edx
orl $0x2, %edx
movl %edx, 0x18(%r15)
movq 0x8(%r15), %rsi
callq 0xe70ab
cmpb $0x0, 0x4(%r15)
jne 0x3318f
cmpl $0x3, (%r15)
jne 0x3318f
cmpq $0x7c, 0x30(%r15)
jl 0x3318f
movq 0xe0(%r15), %rax
testq %rax, %rax
je 0x3318f
movq 0xf0(%r15), %rcx
testq %rcx, %rcx
je 0x3318f
leaq 0xe(%rax), %rdx
movq %rdx, 0xe8(%r15)
addq %rcx, %rax
addq $0xe, %rax
movq 0x18(%r13), %rsi
cmpq 0x18(%rsi), %rax
jg 0x3318f
movl 0xb0(%r15), %eax
cmpl $0x4d424544, %eax       # imm = 0x4D424544
je 0x3313d
cmpl $0x4c494e4b, %eax       # imm = 0x4C494E4B
jne 0x3318f
leaq 0xd7bd8(%rip), %rsi     # 0x10ac94
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
movq %r13, %rdi
callq 0xeac74
movq %rax, %rbx
movq 0x18(%r13), %rdi
movq 0xe8(%r15), %rsi
movq 0xf0(%r15), %rdx
movl $0x9, (%rsp)
pushq $0x1
popq %rbp
movl $0x1f4, %ecx            # imm = 0x1F4
movq %rax, %r8
movl %ebp, %r9d
callq 0xe4ced
movq %r13, %rdi
movl %ebp, %esi
callq 0xdeba7
movq %rbx, %rdi
callq 0xeb7e4
leaq 0xd7b9d(%rip), %rsi     # 0x10acb3
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
movq %rbx, %rdi
movq 0x18(%rsp), %rbx
callq 0xeaf3c
jmp 0x3318f
leaq 0xd7b86(%rip), %rsi     # 0x10acca
movq %r13, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rbx
movq %r13, %rdi
movl %ebx, %esi
callq 0xdeba7
movq 0x18(%r13), %rdi
movq 0xe8(%r15), %rsi
movq 0xf0(%r15), %rdx
leaq 0xd5999(%rip), %rcx     # 0x108b0d
xorl %r8d, %r8d
movl %ebx, %r9d
movq 0x18(%rsp), %rbx
callq 0xe4e0b
pushq $-0x1
popq %rsi
movq %r13, %rdi
callq 0xdeba7
testq %rbx, %rbx
je 0x322a5
cmpb $0x0, 0x4(%r15)
je 0x322a5
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x322a5
movdqu 0x8(%r15), %xmm0
andq $0x0, 0x10(%r15)
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, (%rax)
andq $0x0, 0x8(%r15)
movl 0x18(%r15), %ecx
movl %ecx, 0x10(%rax)
jmp 0x322a5