// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/rosprite.c
// Function: de_run_rosprite
static void de_run_rosprite(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;
	i64 sprite_size;
	i64 first_sprite_offset_raw;
	i64 first_sprite_offset;
	i64 implied_file_size_raw;
	i64 implied_file_size;
	i64 k;
	i64 sprite_count = 0;

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

	pos = 0;
	d->num_images = de_getu32le_p(&pos);
	de_dbg(c, "number of images: %"I64_FMT, d->num_images);
	first_sprite_offset_raw = de_getu32le_p(&pos);
	first_sprite_offset = first_sprite_offset_raw - 4;
	de_dbg(c, "first sprite offset: %"I64_FMT" ("DE_CHAR_RIGHTARROW"%"I64_FMT")",
		first_sprite_offset_raw, first_sprite_offset);
	implied_file_size_raw = de_getu32le_p(&pos);
	implied_file_size = implied_file_size_raw - 4;
	de_dbg(c, "reported file size: %"I64_FMT" ("DE_CHAR_RIGHTARROW"%"I64_FMT")",
		implied_file_size_raw, implied_file_size);
	if(implied_file_size != c->infile->len) {
		de_warn(c, "Reported and actual file sizes differ "
			"(%"I64_FMT", %"I64_FMT")", implied_file_size, c->infile->len);
	}

	pos = first_sprite_offset;
	for(k=0; k<d->num_images; k++) {
		if(pos>=c->infile->len) goto done;
		sprite_size = de_getu32le(pos);
		de_dbg(c, "image #%d at %"I64_FMT", size=%"I64_FMT, (int)k, pos, sprite_size);
		if(sprite_size<1) goto done;
		// We intentionally allow sprite_size to be set wrong, because
		// such files exist, and we don't need it for *this* sprite.
		de_dbg_indent(c, 1);
		do_sprite(c, d, k, pos, sprite_size);
		sprite_count++;
		de_dbg_indent(c, -1);
		if(sprite_size<40) goto done;
		pos += sprite_size;
	}

done:
	if(sprite_count < d->num_images) {
		de_warn(c, "Expected %"I64_FMT" images, only found %"I64_FMT,
			d->num_images, sprite_count);
	}
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
pushq $0x8
popq %rsi
callq 0xdecaf
movq %rax, %r15
leaq 0x28(%rsp), %r14
andq $0x0, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %r15, 0x40(%rsp)
movq %rax, (%r15)
leaq 0x542e2(%rip), %rsi     # 0x10f33d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe40bf
leaq -0x4(%rax), %r15
leaq 0x7231e(%rip), %rsi     # 0x12d39d
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe40bf
leaq -0x4(%rax), %r14
leaq 0x72319(%rip), %rsi     # 0x12d3bf
movq %rbx, %rdi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
cmpq %rcx, %r14
je 0xbb0d7
leaq 0x72316(%rip), %rsi     # 0x12d3e0
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xdf05a
movq %r15, 0x28(%rsp)
pushq $0x1
popq %rbp
xorl %r14d, %r14d
movq 0x40(%rsp), %rax
cmpq (%rax), %r14
jge 0xbbcb4
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %r15
jge 0xbbcb4
movq %r15, %rsi
callq 0xe409f
movq %r14, %rdx
movq %rax, %r14
movq 0x28(%rsp), %rcx
movq %rbx, %rdi
leaq 0x722f6(%rip), %rsi     # 0x12d411
movq %rdx, 0x50(%rsp)
movq %rax, %r8
xorl %eax, %eax
callq 0xde896
testq %r14, %r14
jle 0xbbcaf
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
movq 0x28(%rsp), %r15
movq %rbx, %rdi
leaq 0x4c(%rsp), %rsi
callq 0xdebae
movl $0x8c0, %esi            # imm = 0x8C0
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r14
movq %rbx, %rdi
leaq 0x722e2(%rip), %rsi     # 0x12d450
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
movq %rbx, %rdi
callq 0xdfd1a
movq %rax, 0x30(%rsp)
leaq 0x4(%r15), %r13
movq %r13, 0x38(%rsp)
cmpl $0x0, (%rbx)
jg 0xbb1a6
cmpb $0x0, 0xd0(%rbx)
je 0xbb20e
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r12
movq 0x18(%rbx), %rdi
movq %r13, %rsi
pushq $0xc
popq %rdx
movq %rax, %rcx
movl %ebp, %r8d
pushq $0x14
popq %r9
callq 0xe4c9a
movq %r12, %rdi
callq 0xeb7e4
movq %rbx, %rdi
leaq 0x7241c(%rip), %rsi     # 0x12d5f8
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0xd0(%rbx)
je 0xbb201
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xdfd55
movq %r12, %rdi
callq 0xeaf3c
movq 0x38(%rsp), %r13
addq $0xc, %r13
movq %r13, 0x38(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0xe40bf
incq %rax
movq %rax, 0x10(%r14)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
incq %rax
movq %rax, 0x30(%r14)
movq 0x10(%r14), %rdx
movq %rbx, %rdi
leaq 0x680fe(%rip), %rsi     # 0x12334e
xorl %eax, %eax
callq 0xde896
movq 0x30(%r14), %rdx
movq %rbx, %rdi
leaq 0x5d3c8(%rip), %rsi     # 0x11862d
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
pushq $0x1f
popq %r13
cmpq %r13, %rax
cmovgeq %r13, %rax
movq %rax, 0x18(%r14)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
cmpq $0x1f, %rax
cmovgeq %r13, %rax
movq %rax, 0x20(%r14)
movl 0x18(%r14), %edx
movq %rbx, %rdi
leaq 0x721b7(%rip), %rsi     # 0x12d464
xorl %eax, %eax
callq 0xde896
movl 0x20(%r14), %edx
movq %rbx, %rdi
leaq 0x721b0(%rip), %rsi     # 0x12d472
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
movq %rax, %r13
leaq (%rax,%r15), %rcx
movq %rcx, 0x88(%r14)
movq %rbx, %rdi
leaq 0x72192(%rip), %rsi     # 0x12d47f
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
movq %rax, %r12
leaq (%rax,%r15), %rcx
movq %rcx, 0x90(%r14)
testq %rax, %rax
sete %al
cmpq %r13, %r12
sete %dl
orb %al, %dl
je 0xbb341
cmpb $0x0, 0x78(%r14)
leaq 0x70(%rsp), %rdi
jne 0xbb34d
leaq 0x7216d(%rip), %rsi     # 0x12d4a1
pushq $0x20
popq %rdx
movq %rdi, %r13
callq 0xde492
jmp 0xbb361
movw $0x101, 0x78(%r14)      # imm = 0x101
leaq 0x70(%rsp), %rdi
pushq $0x20
popq %rsi
leaq 0x72143(%rip), %rdx     # 0x12d49a
movq %rdi, %r13
xorl %eax, %eax
callq 0xde40c
movq %rbx, %rdi
leaq 0x7213e(%rip), %rsi     # 0x12d4a9
movq %r12, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %rsi
callq 0xe40bf
movl %eax, 0x70(%r14)
movq %rbx, %rdi
leaq 0x7d23e(%rip), %rsi     # 0x1385d2
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
movl 0x70(%r14), %eax
shrl $0x1b, %eax
andl $0xf, %eax
movl %eax, 0x74(%r14)
leaq 0x55ecd(%rip), %rdx     # 0x111289
leaq 0x7219b(%rip), %rax     # 0x12d55e
cmoveq %rax, %rdx
movq %rbx, %rdi
leaq 0x720ee(%rip), %rsi     # 0x12d4bf
xorl %eax, %eax
callq 0xde896
movl 0x74(%r14), %edx
testl %edx, %edx
je 0xbb3ec
movq %rbx, %rdi
leaq 0x72103(%rip), %rsi     # 0x12d4ed
jmp 0xbb3fa
movl 0x70(%r14), %edx
movq %rbx, %rdi
leaq 0x720d8(%rip), %rsi     # 0x12d4d2
xorl %eax, %eax
callq 0xde896
cmpl $0x0, 0x74(%r14)
je 0xbb4cd
cmpq $0x0, 0x18(%r14)
je 0xbb434
movq %rbx, %rdi
leaq 0x720ea(%rip), %rsi     # 0x12d507
xorl %eax, %eax
callq 0xdf05a
andq $0x0, 0x18(%r14)
cmpl $0x0, 0x74(%r14)
je 0xbb4cd
movl 0x70(%r14), %ecx
movl %ecx, %edx
shrl $0xe, %edx
movl $0x1fff, %eax           # imm = 0x1FFF
andl %eax, %edx
movq %rdx, 0x60(%r14)
shrl %ecx
andl %eax, %ecx
movq %rcx, 0x68(%r14)
movq %rbx, %rdi
leaq 0x60c70(%rip), %rsi     # 0x11c0ca
xorl %eax, %eax
callq 0xde896
movl 0x74(%r14), %edx
leal -0x1(%rdx), %ecx
cmpl $0x5, %ecx
ja 0xbb69c
pushq $0x1
popq %rax
shlq %cl, %rax
movq %rax, (%r14)
cmpb $0x0, 0x78(%r14)
je 0xbb579
movl 0x70(%r14), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
orl $0x2, %ecx
testl %eax, %eax
leaq 0x77baf(%rip), %rdx     # 0x133049
leaq 0x6f115(%rip), %rax     # 0x12a5b6
cmovsq %rax, %rdx
pushq $0x1
popq %rax
pushq $0x8
popq %rsi
cmovsq %rsi, %rax
movl %ecx, 0x7c(%r14)
movq %rax, 0x8(%r14)
movq %rbx, %rdi
leaq 0x720f1(%rip), %rsi     # 0x12d5b2
xorl %eax, %eax
callq 0xde896
jmp 0xbb579
movl 0x70(%r14), %edx
xorl %ecx, %ecx
leaq 0x721c6(%rip), %rsi     # 0x12d6a0
cmpq $0x30, %rcx
je 0xbb514
movzbl (%rsi,%rcx,4), %eax
incq %rcx
cmpl %eax, %edx
jne 0xbb4da
movzbl -0x3(%rsi,%rcx,4), %eax
movq %rax, (%r14)
movzwl -0x2(%rsi,%rcx,4), %ecx
movd %ecx, %xmm0
pxor %xmm1, %xmm1
punpcklbw %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqu %xmm0, 0x60(%r14)
jmp 0xbb517
movq (%r14), %rax
testq %rax, %rax
je 0xbb6a8
cmpb $0x0, 0x78(%r14)
je 0xbb556
movl $0x1, 0x7c(%r14)
movq 0x10(%r14), %rcx
shlq $0x2, %rcx
movq %rcx, 0x80(%r14)
movq %rax, 0x8(%r14)
movq %rbx, %rdi
leaq 0x72007(%rip), %rsi     # 0x12d553
xorl %eax, %eax
callq 0xde896
movq (%r14), %rax
cmpq $0x9, %rax
jl 0xbb579
cmpb $0x0, 0x78(%r14)
je 0xbb579
movq %rbx, %rdi
leaq 0x71ff5(%rip), %rsi     # 0x12d562
xorl %eax, %eax
callq 0xdf05a
movb $0x0, 0x79(%r14)
movl (%r14), %edx
movq %rbx, %rdi
leaq 0x72040(%rip), %rsi     # 0x12d5c6
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq (%r14), %rdi
movq 0x10(%r14), %rax
shlq $0x5, %rax
cqto
idivq %rdi
movq %rax, %rcx
movq %rax, 0x40(%r14)
movq 0x18(%r14), %rax
cqto
idivq %rdi
movq %rax, %rsi
movq %rax, 0x50(%r14)
pushq $0x1f
popq %rax
subq 0x20(%r14), %rax
cqto
idivq %rdi
movq %rax, 0x58(%r14)
addq %rax, %rsi
movq %rcx, %rdx
subq %rsi, %rdx
movq %rdx, 0x28(%r14)
cmpb $0x0, 0xd6(%rbx)
movl $0x0, %esi
cmovneq %rsi, %rax
subq %rax, %rcx
movq %rcx, 0x38(%r14)
movq %rbx, %rdi
leaq 0x71fe3(%rip), %rsi     # 0x12d5e0
xorl %eax, %eax
callq 0xde896
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movq %rbx, %rdi
callq 0xe6be1
testl %eax, %eax
je 0xbbc3c
cmpq $0x0, 0x38(%r14)
jle 0xbbc3c
movl 0x7c(%r14), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0xbb653
movq 0x28(%r14), %rdi
imulq 0x8(%r14), %rdi
pushq $0x20
popq %rsi
callq 0xdfbb6
cqto
pushq $0x8
popq %rcx
idivq %rcx
movq %rax, 0x80(%r14)
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
leaq 0x2c(%r15), %r8
movq %r8, 0xb0(%r14)
movq (%r14), %rax
movq 0x88(%r14), %rsi
addq $0x34, %r15
pushq $0x3
popq %rcx
cmpq %r15, %rsi
jge 0xbb6be
cmpq $0x8, %rax
jg 0xbb940
leaq 0xa8(%r14), %r12
cmpl $0x0, 0xa8(%r14)
jne 0xbb6ff
jmp 0xbb71a
movq %rbx, %rdi
leaq 0x71eeb(%rip), %rsi     # 0x12d591
jmp 0xbb6b2
movq %rbx, %rdi
leaq 0x71e84(%rip), %rsi     # 0x12d536
xorl %eax, %eax
callq 0xdf2a5
jmp 0xbbc3c
cmpq $0x8, %rax
jg 0xbb940
leaq 0xa8(%r14), %r12
movl $0x1, 0xa8(%r14)
subq %r8, %rsi
movq %rsi, %rax
cqto
pushq $0x8
popq %rcx
idivq %rcx
cmpq $0x808, %rsi            # imm = 0x808
movl $0x100, %ecx            # imm = 0x100
cmovgeq %rcx, %rax
movq %rax, 0xb8(%r14)
movl 0xb8(%r14), %ecx
movq %rbx, %rdi
leaq 0x71efa(%rip), %rsi     # 0x12d60a
movl %r8d, %edx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
leaq 0xc0(%r14), %rax
movq %rax, 0x20(%rsp)
pushq $0x5
popq %r15
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %r12, 0x60(%rsp)
cmpq $0x100, %rbp            # imm = 0x100
je 0xbb906
cmpl $0x0, (%r12)
je 0xbb7b7
cmpq 0xb8(%r14), %rbp
jge 0xbb8e7
movq %r13, 0x58(%rsp)
movq 0x18(%rbx), %rdi
movq 0xb0(%r14), %rax
leaq (%r15,%rax), %rsi
addq $-0x4, %rsi
xorl %edx, %edx
callq 0xe45a4
movl %eax, %r13d
movq 0x18(%rbx), %rdi
movq 0xb0(%r14), %rsi
addq %r15, %rsi
xorl %edx, %edx
callq 0xe45a4
cmpl %eax, %r13d
jne 0xbb7fc
movq 0x20(%rsp), %rax
movl %r13d, (%rax,%rbp,4)
movq %rbx, %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0xdf23b
jmp 0xbb8bc
movq (%r14), %rax
cmpq $0x4, %rax
setne %cl
cmpq $0x10, %rbp
setae %dl
orb %cl, %dl
jne 0xbb7d5
leaq 0x71f8d(%rip), %rax     # 0x12d760
jmp 0xbb7f2
cmpq $0x2, %rax
setne %cl
cmpq $0x4, %rbp
setae %dl
orb %cl, %dl
jne 0xbb8c3
leaq 0x71b6e(%rip), %rax     # 0x12d360
movl (%r13,%rax), %eax
jmp 0xbb8ee
movl %r13d, %ecx
shrl $0x18, %ecx
movl %eax, %esi
shrl $0x18, %esi
addl %ecx, %esi
movl %r13d, %ecx
shrl $0x10, %ecx
movl $0xff, %r10d
andl %r10d, %ecx
movl %eax, %edx
shrl $0x10, %edx
andl %r10d, %edx
leal (%rdx,%rcx), %edi
movl %r13d, %r8d
shrl $0x8, %r8d
andl %r10d, %r8d
movl %eax, %r9d
shrl $0x8, %r9d
andl %r10d, %r9d
leal (%r9,%r8), %r12d
andl %r10d, %r13d
andl %r10d, %eax
leal (%rax,%r13), %r10d
shrl %r10d
andl $-0x2, %esi
shll $0x17, %esi
orl %r10d, %esi
shll $0xf, %edi
andl $0xff0000, %edi         # imm = 0xFF0000
orl %esi, %edi
shll $0x7, %r12d
andl $0xff00, %r12d          # imm = 0xFF00
orl %edi, %r12d
movq 0x20(%rsp), %rsi
movl %r12d, (%rsi,%rbp,4)
movl %eax, 0x10(%rsp)
movl %r9d, 0x8(%rsp)
movl %edx, (%rsp)
leaq 0x90(%rsp), %rdi
pushq $0x40
popq %rsi
leaq 0x71d9a(%rip), %rdx     # 0x12d62b
movl %r13d, %r9d
xorl %eax, %eax
callq 0xde40c
movq %rbx, %rdi
movq %rbp, %rsi
movl %r12d, %edx
movq 0x60(%rsp), %r12
leaq 0x90(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xdf153
movq 0x58(%rsp), %r13
jmp 0xbb8f6
cmpq $0x1, %rax
setne %al
cmpq $0x2, %rbp
setae %cl
orb %al, %cl
jne 0xbb8e7
cmpq $0x1, %rbp
movl $0x0, %eax
sbbl %eax, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
jmp 0xbb8ee
movl %ebp, %edi
callq 0xbbdbd
movq 0x20(%rsp), %rcx
movl %eax, (%rcx,%rbp,4)
incq %rbp
addq $0x4, %r13
addq $0x8, %r15
jmp 0xbb73e
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq (%r14), %rax
pushq $0x3
popq %rcx
cmpq $0x8, %rax
pushq $0x1
popq %rbp
jg 0xbb940
pushq $0x1
popq %rsi
movl %eax, %ecx
shlq %cl, %rsi
movq 0x20(%rsp), %rdi
callq 0xe6d06
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leal 0x1(,%rcx,2), %ecx
cmpb $0x1, 0x78(%r14)
sbbl $-0x1, %ecx
movl 0x7c(%r14), %eax
decl %eax
cmpl $0x2, %eax
ja 0xbb968
movl %eax, %eax
leaq 0x71e44(%rip), %rdx     # 0x12d7a0
movq (%rdx,%rax,8), %rax
movq (%r14,%rax), %rax
movq %rax, 0x48(%r14)
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0xe7437
movq %rax, 0x98(%r14)
movq 0x60(%r14), %rax
testq %rax, %rax
jle 0xbb9af
movq 0x30(%rsp), %rcx
movl $0x2, 0x78(%rcx)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x80(%rcx)
cvtsi2sdq 0x68(%r14), %xmm0
movsd %xmm0, 0x88(%rcx)
movq 0x88(%r14), %rdx
movq %rbx, %rdi
leaq 0x72407(%rip), %rsi     # 0x12ddc7
xorl %eax, %eax
callq 0xde896
movq (%r14), %rdx
cmpq $0x20, %rdx
je 0xbba40
cmpq $0x10, %rdx
jne 0xbba67
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpq 0x30(%r14), %r15
jge 0xbba94
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpq 0x38(%r14), %r12
jge 0xbba34
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
imulq %r13, %rsi
addq 0x88(%r14), %rsi
addq %rbp, %rsi
callq 0xe3fa3
movl %eax, %edi
callq 0xe1e15
movq 0x98(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %eax, %ecx
callq 0xe728c
incq %r12
addq $0x2, %rbp
jmp 0xbb9ef
incq %r15
addq $0x4, %r13
pushq $0x1
popq %rbp
jmp 0xbb9e0
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rdx
movq 0x88(%r14), %rsi
shlq $0x2, %rdx
movq 0x98(%r14), %r8
pushq $0x4
popq %rcx
xorl %r9d, %r9d
callq 0xe7f67
jmp 0xbba94
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rcx
movq 0x88(%r14), %rsi
shlq $0x2, %rcx
leaq 0xc0(%r14), %r8
movq 0x98(%r14), %r9
movl $0x1, (%rsp)
callq 0xe7cbc
cmpb $0x0, 0x78(%r14)
je 0xbbbb7
cmpb $0x0, 0x79(%r14)
je 0xbbbb7
movq 0x90(%r14), %rdx
movq %rbx, %rdi
leaq 0x71b91(%rip), %rsi     # 0x12d64c
xorl %eax, %eax
callq 0xde896
movq 0x8(%r14), %rax
addq $-0x9, %rax
cmpq $-0x9, %rax
ja 0xbbae6
movq %rbx, %rdi
leaq 0x71b8b(%rip), %rsi     # 0x12d665
xorl %eax, %eax
callq 0xdf05a
jmp 0xbbbb7
movq 0x30(%r14), %rdx
movq 0x48(%r14), %rsi
movq %rbx, %rdi
movl %ebp, %ecx
callq 0xe7437
movq %rax, 0xa0(%r14)
movq %r14, %r15
addq $0x4c0, %r15            # imm = 0x4C0
cmpl $0x3, 0x7c(%r14)
jne 0xbbb28
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
xorl %edx, %edx
callq 0xe87a8
movq 0xa0(%r14), %r12
jmp 0xbbb44
movq %rax, %r12
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
movl $0xff, %esi
callq 0x18140
movl $0xff000000, (%r15)     # imm = 0xFF000000
movq 0x8(%r12), %rcx
movq 0x10(%r12), %r8
andl $0x0, (%rsp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
pushq $-0x1
popq %r9
callq 0xe8292
movq 0x18(%rbx), %rdi
movq 0x90(%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x80(%r14), %rcx
movq 0xa0(%r14), %r9
movl $0x1, (%rsp)
movq %r15, %r8
callq 0xe7cbc
movq 0x98(%r14), %rdi
movq 0xa0(%r14), %rsi
xorl %edx, %edx
callq 0xe83f8
movq 0xa0(%r14), %rdi
callq 0xe7084
andq $0x0, 0xa0(%r14)
cmpq $0x0, 0x50(%r14)
jle 0xbbc25
cmpb $0x0, 0xd6(%rbx)
movq 0x98(%r14), %r15
jne 0xbbc2c
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movl 0x24(%r15), %ecx
movq %rbx, %rdi
callq 0xe7437
movq %rax, %r15
movq 0x98(%r14), %rdi
movq 0x50(%r14), %rdx
movq 0x28(%r14), %r8
movq 0x30(%r14), %r9
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andl $0x0, 0x10(%rsp)
movq %rax, %rsi
xorl %ecx, %ecx
callq 0xe8314
movq 0x98(%r14), %rdi
callq 0xe7084
movq %r15, 0x98(%r14)
jmp 0xbbc2c
movq 0x98(%r14), %r15
movq %r15, %rdi
movq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xe70ab
movl 0x4c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xdfd24
movq 0x98(%r14), %rdi
testq %rdi, %rdi
je 0xbbc66
callq 0xe7084
movq 0xa0(%r14), %rdi
testq %rdi, %rdi
movq 0x68(%rsp), %r15
je 0xbbc7c
callq 0xe7084
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
movq 0x50(%rsp), %r14
incq %r14
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
cmpq $0x28, %r15
jl 0xbbcb4
addq 0x28(%rsp), %r15
movq %r15, 0x28(%rsp)
jmp 0xbb0e2
movq 0x50(%rsp), %r14
movq 0x40(%rsp), %rax
movq (%rax), %rdx
cmpq %rdx, %r14
jge 0xbbcd5
leaq 0x71764(%rip), %rsi     # 0x12d42c
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0xdf05a
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0xded32
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq