// File: /workspace/github_c_makefile_star2_O3/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
movl $0x8, %esi
callq 0xe8b2b
movq %rax, %r15
leaq 0x30(%rsp), %r14
movq $0x0, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, (%r15)
leaq 0x59826(%rip), %rsi     # 0x11c42d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
leaq -0x4(%rax), %r12
leaq 0x77a62(%rip), %rsi     # 0x13a68d
movq %rbx, %rdi
movq %rax, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
leaq -0x4(%rax), %r14
leaq 0x77a5d(%rip), %rsi     # 0x13a6af
movq %rbx, %rdi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
cmpq %rcx, %r14
je 0xc2c83
leaq 0x77a5a(%rip), %rsi     # 0x13a6d0
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8faa
movq %r12, 0x30(%rsp)
movq (%r15), %rdx
testq %rdx, %rdx
jle 0xc38fd
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %r12
jge 0xc38fd
xorl %r13d, %r13d
movq %rbx, 0x20(%rsp)
movq %r15, 0x58(%rsp)
movq %r12, %rsi
callq 0xeed61
movq %rax, %r14
movq 0x30(%rsp), %rcx
movq %rbx, %rdi
leaq 0x77a38(%rip), %rsi     # 0x13a701
movl %r13d, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0xe8617
testq %r14, %r14
jle 0xc3936
movq %r13, 0x60(%rsp)
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x30(%rsp), %r13
movq %rbx, %rdi
leaq 0x4c(%rsp), %rsi
callq 0xe8a1c
movl $0x8c0, %esi            # imm = 0x8C0
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x77a1e(%rip), %rsi     # 0x13a740
movq %r13, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %rbx, %rdi
callq 0xea504
movq %rax, 0x38(%rsp)
leaq 0x4(%r13), %r15
movq %r15, 0x40(%rsp)
cmpl $0x0, (%rbx)
jg 0xc2d5d
cmpb $0x0, 0xd0(%rbx)
je 0xc2dcc
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r14
movq 0x18(%rbx), %rdi
movl $0xc, %edx
movq %r15, %rsi
movq %rax, %rcx
movl $0x1, %r8d
movl $0x14, %r9d
callq 0xefbd7
movq %r14, %rdi
callq 0xf705c
movq %rbx, %rdi
leaq 0x77b4e(%rip), %rsi     # 0x13a8e8
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0xd0(%rbx)
je 0xc2dbf
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xea53f
movq %r14, %rdi
callq 0xf6753
movq 0x40(%rsp), %r15
addq $0xc, %r15
movq %r15, 0x40(%rsp)
movq 0x20(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0xeed83
incq %rax
movq %rax, 0x10(%rbp)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
incq %rax
movq %rax, 0x30(%rbp)
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
leaq 0x6d7dc(%rip), %rsi     # 0x1305ef
xorl %eax, %eax
callq 0xe8617
movq 0x30(%rbp), %rdx
movq %rbx, %rdi
leaq 0x62a05(%rip), %rsi     # 0x12582d
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movl $0x1f, %r15d
cmpq %r15, %rax
cmovgeq %r15, %rax
movq %rax, 0x18(%rbp)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
cmpq $0x1f, %rax
cmovgeq %r15, %rax
movq %rax, 0x20(%rbp)
movl 0x18(%rbp), %edx
movq %rbx, %rdi
leaq 0x778e3(%rip), %rsi     # 0x13a754
xorl %eax, %eax
callq 0xe8617
movl 0x20(%rbp), %edx
movq %rbx, %rdi
leaq 0x778dd(%rip), %rsi     # 0x13a762
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, %r15
leaq (%rax,%r13), %rcx
movq %rcx, 0x88(%rbp)
movq %rbx, %rdi
leaq 0x778bf(%rip), %rsi     # 0x13a76f
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, %r14
leaq (%rax,%r13), %rcx
movq %rcx, 0x90(%rbp)
testq %rax, %rax
sete %al
cmpq %r15, %r14
sete %dl
orb %al, %dl
je 0xc2f05
cmpb $0x0, 0x78(%rbp)
leaq 0x70(%rsp), %r15
jne 0xc2f10
movl $0x20, %edx
movq %r15, %rdi
leaq 0x77893(%rip), %rsi     # 0x13a791
callq 0xe8219
jmp 0xc2f26
movw $0x101, 0x78(%rbp)      # imm = 0x101
leaq 0x70(%rsp), %r15
movl $0x20, %esi
movq %r15, %rdi
leaq 0x7786b(%rip), %rdx     # 0x13a78a
xorl %eax, %eax
callq 0xe8193
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x77864(%rip), %rsi     # 0x13a799
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeed83
movl %eax, 0x70(%rbp)
movq %rbx, %rdi
leaq 0x82ac5(%rip), %rsi     # 0x145a22
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl 0x70(%rbp), %eax
shrl $0x1b, %eax
andl $0xf, %eax
movl %eax, 0x74(%rbp)
leaq 0x5b3d7(%rip), %rdx     # 0x11e35d
leaq 0x778c1(%rip), %rax     # 0x13a84e
cmoveq %rax, %rdx
movq %rbx, %rdi
leaq 0x77814(%rip), %rsi     # 0x13a7af
xorl %eax, %eax
callq 0xe8617
movl 0x74(%rbp), %edx
testl %edx, %edx
je 0xc2fb5
movq %rbx, %rdi
leaq 0x7782a(%rip), %rsi     # 0x13a7dd
jmp 0xc2fc2
movl 0x70(%rbp), %edx
movq %rbx, %rdi
leaq 0x77800(%rip), %rsi     # 0x13a7c2
xorl %eax, %eax
callq 0xe8617
cmpl $0x0, 0x74(%rbp)
je 0xc30a1
cmpq $0x0, 0x18(%rbp)
je 0xc2fff
movq 0x20(%rsp), %rdi
leaq 0x77811(%rip), %rsi     # 0x13a7f7
xorl %eax, %eax
callq 0xe8faa
movq $0x0, 0x18(%rbp)
cmpl $0x0, 0x74(%rbp)
je 0xc30a1
movl 0x70(%rbp), %ecx
movl %ecx, %edx
shrl $0xe, %edx
movl $0x1fff, %eax           # imm = 0x1FFF
andl %eax, %edx
movq %rdx, 0x60(%rbp)
shrl %ecx
andl %eax, %ecx
movq %rcx, 0x68(%rbp)
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x662e1(%rip), %rsi     # 0x12930a
xorl %eax, %eax
callq 0xe8617
movl 0x74(%rbp), %edx
leal -0x1(%rdx), %ecx
cmpl $0x5, %ecx
ja 0xc3296
movl $0x1, %eax
shlq %cl, %rax
movq %rax, (%rbp)
cmpb $0x0, 0x78(%rbp)
je 0xc314e
movl 0x70(%rbp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
orl $0x2, %ecx
testl %eax, %eax
leaq 0x7d350(%rip), %rdx     # 0x1403b9
leaq 0x74826(%rip), %rax     # 0x137896
cmovsq %rax, %rdx
movl $0x1, %eax
movl $0x8, %esi
cmovsq %rsi, %rax
movl %ecx, 0x7c(%rbp)
movq %rax, 0x8(%rbp)
movq 0x20(%rsp), %rdi
leaq 0x7780d(%rip), %rsi     # 0x13a8a2
xorl %eax, %eax
callq 0xe8617
jmp 0xc314e
movl 0x70(%rbp), %edx
xorl %ecx, %ecx
leaq 0x778e3(%rip), %rsi     # 0x13a990
movzbl (%rsi,%rcx,4), %eax
cmpl %eax, %edx
je 0xc30c4
incq %rcx
cmpq $0x30, %rcx
jne 0xc30ad
movq (%rbp), %rax
jmp 0xc30eb
movzbl 0x1(%rsi,%rcx,4), %eax
movq %rax, (%rbp)
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(%rbp)
testq %rax, %rax
je 0xc32a2
cmpb $0x0, 0x78(%rbp)
je 0xc312b
movl $0x1, 0x7c(%rbp)
movq 0x10(%rbp), %rcx
shlq $0x2, %rcx
movq %rcx, 0x80(%rbp)
movq %rax, 0x8(%rbp)
movq 0x20(%rsp), %rdi
leaq 0x77723(%rip), %rsi     # 0x13a843
xorl %eax, %eax
callq 0xe8617
movq (%rbp), %rax
cmpq $0x9, %rax
jl 0xc314e
cmpb $0x0, 0x78(%rbp)
je 0xc314e
movq 0x20(%rsp), %rdi
leaq 0x7770f(%rip), %rsi     # 0x13a852
xorl %eax, %eax
callq 0xe8faa
movb $0x0, 0x79(%rbp)
movl (%rbp), %edx
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x77756(%rip), %rsi     # 0x13a8b6
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq (%rbp), %rdi
movq 0x10(%rbp), %rax
shlq $0x5, %rax
cqto
idivq %rdi
movq %rax, %rcx
movq %rax, 0x40(%rbp)
movq 0x18(%rbp), %rax
cqto
idivq %rdi
movq %rax, %rsi
movq %rax, 0x50(%rbp)
movl $0x1f, %eax
subq 0x20(%rbp), %rax
cqto
idivq %rdi
movq %rax, 0x58(%rbp)
addq %rax, %rsi
movq %rcx, %rdx
subq %rsi, %rdx
movq %rdx, 0x28(%rbp)
cmpb $0x0, 0xd6(%rbx)
movl $0x0, %esi
cmovneq %rsi, %rax
subq %rax, %rcx
movq %rcx, 0x38(%rbp)
movq %rbx, %rdi
leaq 0x776f4(%rip), %rsi     # 0x13a8d0
xorl %eax, %eax
callq 0xe8617
movq 0x28(%rbp), %rsi
movq 0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0xf1db1
testl %eax, %eax
je 0xc386b
cmpq $0x0, 0x38(%rbp)
jle 0xc386b
movl 0x7c(%rbp), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0xc323a
movq 0x28(%rbp), %rdi
imulq 0x8(%rbp), %rdi
movl $0x20, %esi
callq 0xe9cb4
leaq 0x7(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
movq %rcx, 0x80(%rbp)
movq 0x20(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
leaq 0x2c(%r13), %rdx
movq %rdx, 0xb0(%rbp)
movq (%rbp), %rsi
movq 0x88(%rbp), %rax
addq $0x34, %r13
movl $0x3, %ecx
cmpq %r13, %rax
jge 0xc32ba
cmpq $0x8, %rsi
movq 0x20(%rsp), %r13
jg 0xc3548
leaq 0xa8(%rbp), %rax
movq %rax, 0x50(%rsp)
cmpl $0x0, 0xa8(%rbp)
jne 0xc3307
jmp 0xc331e
movq %rbx, %rdi
leaq 0x775e1(%rip), %rsi     # 0x13a881
jmp 0xc32ae
movq 0x20(%rsp), %rdi
leaq 0x77578(%rip), %rsi     # 0x13a826
xorl %eax, %eax
callq 0xe9295
jmp 0xc386b
cmpq $0x8, %rsi
movq 0x20(%rsp), %r13
jg 0xc3548
leaq 0xa8(%rbp), %rcx
movq %rcx, 0x50(%rsp)
movl $0x1, 0xa8(%rbp)
subq %rdx, %rax
leaq 0x7(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
cmpq $0x808, %rax            # imm = 0x808
movl $0x100, %eax            # imm = 0x100
cmovgeq %rax, %rcx
movq %rcx, 0xb8(%rbp)
movl 0xb8(%rbp), %ecx
movq %r13, %rdi
leaq 0x775e3(%rip), %rsi     # 0x13a8fa
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0xc0(%rbp), %rax
movq %rax, 0x28(%rsp)
movl $0x5, %r13d
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x50(%rsp), %rax
cmpl $0x0, (%rax)
je 0xc33b3
cmpq 0xb8(%rbp), %r14
jge 0xc34dc
movq 0x20(%rsp), %r15
movq 0x18(%r15), %rdi
movq 0xb0(%rbp), %rax
leaq (%rax,%r13), %rsi
addq $-0x4, %rsi
xorl %edx, %edx
callq 0xef42f
movl %eax, %r12d
movq 0x18(%r15), %rdi
movq 0xb0(%rbp), %rsi
addq %r13, %rsi
xorl %edx, %edx
callq 0xef42f
cmpl %eax, %r12d
jne 0xc33f7
movq 0x28(%rsp), %rax
movl %r12d, (%rax,%r14,4)
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0xe91fc
jmp 0xc34ed
movq (%rbp), %rax
cmpq $0x4, %rax
setne %cl
cmpq $0x10, %r14
setae %dl
orb %cl, %dl
jne 0xc33d2
leaq 0x77680(%rip), %rax     # 0x13aa50
jmp 0xc33ef
cmpq $0x2, %rax
setne %cl
cmpq $0x4, %r14
setae %dl
orb %cl, %dl
jne 0xc34b8
leaq 0x77261(%rip), %rax     # 0x13a650
movl (%rbx,%rax), %eax
jmp 0xc34e4
movl %r12d, %ecx
shrl $0x18, %ecx
movl %eax, %esi
shrl $0x18, %esi
addl %ecx, %esi
movl %r12d, %ecx
shrl $0x10, %ecx
movl $0xff, %r10d
andl %r10d, %ecx
movl %eax, %edx
shrl $0x10, %edx
andl %r10d, %edx
leal (%rdx,%rcx), %edi
movl %r12d, %r8d
shrl $0x8, %r8d
andl %r10d, %r8d
movl %eax, %r9d
shrl $0x8, %r9d
andl %r10d, %r9d
leal (%r9,%r8), %r15d
andl %r10d, %r12d
andl %r10d, %eax
leal (%rax,%r12), %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, %r15d
andl $0xff00, %r15d          # imm = 0xFF00
orl %edi, %r15d
movq 0x28(%rsp), %rsi
movl %r15d, (%rsi,%r14,4)
movl %eax, 0x10(%rsp)
movl %r9d, 0x8(%rsp)
movl %edx, (%rsp)
movl $0x40, %esi
leaq 0x90(%rsp), %rdi
leaq 0x7748d(%rip), %rdx     # 0x13a91b
movl %r12d, %r9d
xorl %eax, %eax
callq 0xe8193
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movl %r15d, %edx
leaq 0x90(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe90a3
jmp 0xc34ed
cmpq $0x1, %rax
setne %al
cmpq $0x2, %r14
setae %cl
orb %al, %cl
jne 0xc34dc
cmpq $0x1, %r14
movl $0x0, %eax
sbbl %eax, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
jmp 0xc34e4
movl %r14d, %edi
callq 0xc3a1f
movq 0x28(%rsp), %rcx
movl %eax, (%rcx,%r14,4)
incq %r14
addq $0x4, %rbx
addq $0x8, %r13
cmpq $0x100, %r14            # imm = 0x100
jne 0xc3342
movq 0x20(%rsp), %r13
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq (%rbp), %rax
movl $0x3, %ecx
cmpq $0x8, %rax
jg 0xc3548
movl $0x1, %esi
movl %eax, %ecx
shlq %cl, %rsi
movq 0x28(%rsp), %rdi
callq 0xf1ed8
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leal 0x1(,%rcx,2), %ecx
cmpb $0x1, 0x78(%rbp)
sbbl $-0x1, %ecx
movl 0x7c(%rbp), %eax
decl %eax
cmpl $0x2, %eax
ja 0xc356f
movl %eax, %eax
leaq 0x7752e(%rip), %rdx     # 0x13aa90
movq (%rdx,%rax,8), %rax
movq (%rbp,%rax), %rax
movq %rax, 0x48(%rbp)
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rsi
movq %r13, %rdi
callq 0xf266a
movq %rax, 0x98(%rbp)
movq 0x60(%rbp), %rax
testq %rax, %rax
jle 0xc35b9
movq 0x38(%rsp), %rcx
movl $0x2, 0x78(%rcx)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x80(%rcx)
xorps %xmm0, %xmm0
cvtsi2sdq 0x68(%rbp), %xmm0
movsd %xmm0, 0x88(%rcx)
movq 0x88(%rbp), %rdx
movq %r13, %rdi
leaq 0x77aed(%rip), %rsi     # 0x13b0b7
xorl %eax, %eax
callq 0xe8617
movq (%rbp), %rdx
cmpq $0x10, %rdx
je 0xc3611
cmpq $0x20, %rdx
jne 0xc368a
movq 0x18(%r13), %rdi
movq 0x10(%rbp), %rdx
movq 0x88(%rbp), %rsi
shlq $0x2, %rdx
movq 0x98(%rbp), %r8
movl $0x4, %ecx
xorl %r9d, %r9d
callq 0xf3279
jmp 0xc36b7
movq 0x30(%rbp), %rcx
testq %rcx, %rcx
jle 0xc36b7
movq 0x38(%rbp), %rax
xorl %ebx, %ebx
xorl %r14d, %r14d
testq %rax, %rax
jle 0xc367c
xorl %r12d, %r12d
xorl %r15d, %r15d
movq 0x18(%r13), %rdi
movq 0x10(%rbp), %rsi
imulq %rbx, %rsi
addq 0x88(%rbp), %rsi
addq %r12, %rsi
callq 0xeebc8
movl %eax, %edi
callq 0xec8b9
movq 0x98(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %eax, %ecx
callq 0xf24bf
incq %r15
movq 0x38(%rbp), %rax
addq $0x2, %r12
cmpq %rax, %r15
jl 0xc3632
movq 0x30(%rbp), %rcx
incq %r14
addq $0x4, %rbx
cmpq %rcx, %r14
jl 0xc3627
jmp 0xc36b7
movq 0x18(%r13), %rdi
movq 0x10(%rbp), %rcx
movq 0x88(%rbp), %rsi
shlq $0x2, %rcx
leaq 0xc0(%rbp), %r8
movq 0x98(%rbp), %r9
movl $0x1, (%rsp)
callq 0xf2f79
cmpb $0x0, 0x78(%rbp)
je 0xc37e0
cmpb $0x0, 0x79(%rbp)
je 0xc37e0
movq 0x90(%rbp), %rdx
movq %r13, %rdi
leaq 0x77260(%rip), %rsi     # 0x13a93c
xorl %eax, %eax
callq 0xe8617
movq 0x8(%rbp), %rax
addq $-0x9, %rax
cmpq $-0x9, %rax
ja 0xc3707
movq %r13, %rdi
leaq 0x7725a(%rip), %rsi     # 0x13a955
xorl %eax, %eax
callq 0xe8faa
jmp 0xc37e0
movq 0x30(%rbp), %rdx
movq 0x48(%rbp), %rsi
movq %r13, %rdi
movl $0x1, %ecx
callq 0xf266a
movq %rax, 0xa0(%rbp)
movq %rbp, %r14
addq $0x4c0, %r14            # imm = 0x4C0
cmpl $0x3, 0x7c(%rbp)
jne 0xc374b
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %edx, %edx
callq 0xf3bdb
movq 0xa0(%rbp), %r15
jmp 0xc3767
movq %rax, %r15
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
movl $0xff, %esi
callq 0x18140
movl $0xff000000, (%r14)     # imm = 0xFF000000
movq 0x8(%r15), %rcx
movq 0x10(%r15), %r8
movl $0x0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
callq 0xf3654
movq 0x18(%r13), %rdi
movq 0x90(%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x80(%rbp), %rcx
movq 0xa0(%rbp), %r9
movl $0x1, (%rsp)
movq %r14, %r8
callq 0xf2f79
movq 0x98(%rbp), %rdi
movq 0xa0(%rbp), %rsi
xorl %edx, %edx
callq 0xf37bd
movq 0xa0(%rbp), %rdi
callq 0xf228d
movq $0x0, 0xa0(%rbp)
cmpq $0x0, 0x50(%rbp)
jle 0xc3852
cmpb $0x0, 0xd6(%r13)
movq 0x98(%rbp), %r14
jne 0xc3859
movq 0x28(%rbp), %rsi
movq 0x30(%rbp), %rdx
movl 0x24(%r14), %ecx
movq %r13, %rdi
callq 0xf266a
movq %rax, %r14
movq 0x98(%rbp), %rdi
movq 0x50(%rbp), %rdx
movq 0x28(%rbp), %r8
movq 0x30(%rbp), %r9
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
movl $0x0, 0x10(%rsp)
movq %rax, %rsi
xorl %ecx, %ecx
callq 0xf36d0
movq 0x98(%rbp), %rdi
callq 0xf228d
movq %r14, 0x98(%rbp)
jmp 0xc3859
movq 0x98(%rbp), %r14
movq %r14, %rdi
movq 0x38(%rsp), %rsi
movl $0x2, %edx
callq 0xf22d0
movl 0x4c(%rsp), %esi
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0xe8a25
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0xea50e
movq 0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xc389a
callq 0xf228d
movq 0xa0(%rbp), %rdi
testq %rdi, %rdi
movq 0x58(%rsp), %r15
movq 0x68(%rsp), %r12
movq 0x60(%rsp), %r13
je 0xc38ba
callq 0xf228d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
incq %r13
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq (%r15), %rdx
cmpq $0x28, %r12
jl 0xc3900
addq 0x30(%rsp), %r12
movq %r12, 0x30(%rsp)
cmpq %rdx, %r13
jge 0xc3900
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %r12
jl 0xc2caf
jmp 0xc3900
xorl %r13d, %r13d
cmpq %rdx, %r13
jge 0xc3919
leaq 0x76e10(%rip), %rsi     # 0x13a71c
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8faa
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8be2
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rdx
jmp 0xc3900