// File: /workspace/github_c_makefile_star2_O1/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 $0xc8, %rsp
movq %rdi, %r12
movl $0x8, %esi
callq 0xe969b
movq %rax, %rbx
leaq 0x20(%rsp), %r15
movq $0x0, (%r15)
movq 0x18(%r12), %rdi
movq %r15, %rsi
callq 0xef3a0
movq %rax, (%rbx)
leaq 0x58b45(%rip), %rsi     # 0x11c31d
movq %r12, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movq %r15, %rsi
callq 0xef3a0
leaq -0x4(%rax), %r14
leaq 0x76b10(%rip), %rsi     # 0x13a30d
movq %r12, %rdi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movq %r15, %rsi
callq 0xef3a0
leaq -0x4(%rax), %r15
leaq 0x76b0a(%rip), %rsi     # 0x13a32f
movq %r12, %rdi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rax
movq 0x18(%rax), %rcx
cmpq %rcx, %r15
je 0xc3857
leaq 0x76b06(%rip), %rsi     # 0x13a350
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9b27
movq %r14, 0x20(%rsp)
cmpq $0x0, (%rbx)
jle 0xc4480
xorl %r14d, %r14d
movq %r12, 0x18(%rsp)
movq %rbx, 0x40(%rsp)
movq 0x20(%rsp), %rsi
movq 0x18(%r12), %rdi
cmpq 0x18(%rdi), %rsi
jge 0xc4483
callq 0xef37e
movq %rax, %r15
movq 0x20(%rsp), %rcx
movq %r12, %rdi
leaq 0x76ae3(%rip), %rsi     # 0x13a381
movl %r14d, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0xe9226
testq %r15, %r15
jle 0xc4483
movq %r15, 0x50(%rsp)
movq %r14, 0x58(%rsp)
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x20(%rsp), %rbp
movq %r12, %rdi
leaq 0x3c(%rsp), %rsi
callq 0xe958c
movl $0x8c0, %esi            # imm = 0x8C0
movq %r12, %rdi
callq 0xe969b
movq %rax, %r13
movq %r12, %rdi
leaq 0x76ac9(%rip), %rsi     # 0x13a3c0
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r12, %rdi
callq 0xea9a9
movq %rax, 0x28(%rsp)
leaq 0x4(%rbp), %r15
movq %r15, 0x30(%rsp)
cmpl $0x0, (%r12)
jg 0xc3936
cmpb $0x0, 0xd0(%r12)
je 0xc39a3
movq %r12, %rdi
callq 0xf6870
movq %rax, %r14
movq 0x18(%r12), %rdi
movl $0xc, %edx
movq %r15, %rsi
movq %rax, %rcx
movl $0x1, %r8d
movl $0x14, %r9d
callq 0xf01b0
movq %r14, %rdi
callq 0xf74bd
movq %r12, %rdi
leaq 0x76bf4(%rip), %rsi     # 0x13a568
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0xd0(%r12)
je 0xc399b
movq %r12, %rdi
movq 0x28(%rsp), %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xea9e4
movq %r14, %rdi
callq 0xf6bb0
addq $0xc, 0x30(%rsp)
movq 0x18(%r12), %rdi
leaq 0x30(%rsp), %r14
movq %r14, %rsi
callq 0xef3a0
incq %rax
movq %rax, 0x10(%r13)
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xef3a0
incq %rax
movq %rax, 0x30(%r13)
movq 0x10(%r13), %rdx
movq %r12, %rdi
leaq 0x6c912(%rip), %rsi     # 0x1302f6
xorl %eax, %eax
callq 0xe9226
movq 0x30(%r13), %rdx
movq %r12, %rdi
leaq 0x61c04(%rip), %rsi     # 0x1255fd
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xef3a0
movl $0x1f, %r15d
cmpq %r15, %rax
cmovgeq %r15, %rax
movq %rax, 0x18(%r13)
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xef3a0
cmpq $0x1f, %rax
cmovgeq %r15, %rax
movq %rax, 0x20(%r13)
movl 0x18(%r13), %edx
movq %r12, %rdi
leaq 0x7698f(%rip), %rsi     # 0x13a3d4
xorl %eax, %eax
callq 0xe9226
movl 0x20(%r13), %edx
movq %r12, %rdi
leaq 0x76988(%rip), %rsi     # 0x13a3e2
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xef3a0
movq %rax, %r15
leaq (%rax,%rbp), %rcx
movq %rcx, 0x88(%r13)
movq %r12, %rdi
leaq 0x76969(%rip), %rsi     # 0x13a3ef
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xef3a0
movq %rax, %r14
leaq (%rax,%rbp), %rcx
movq %rcx, 0x90(%r13)
testq %rax, %rax
sete %al
cmpq %r15, %r14
sete %dl
orb %al, %dl
jne 0xc3ac2
movw $0x101, 0x78(%r13)      # imm = 0x101
cmpb $0x0, 0x78(%r13)
leaq 0x60(%rsp), %r15
je 0xc3ae6
movl $0x20, %esi
movq %r15, %rdi
leaq 0x7692d(%rip), %rdx     # 0x13a40a
xorl %eax, %eax
callq 0xe8d67
jmp 0xc3afa
movl $0x20, %edx
movq %r15, %rdi
leaq 0x7691c(%rip), %rsi     # 0x13a411
callq 0xe8ded
movq %r12, %rdi
leaq 0x76915(%rip), %rsi     # 0x13a419
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
leaq 0x30(%rsp), %rsi
callq 0xef3a0
movl %eax, 0x70(%r13)
movq %r12, %rdi
leaq 0x81a14(%rip), %rsi     # 0x145542
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl 0x70(%r13), %eax
shrl $0x1b, %eax
andl $0xf, %eax
movl %eax, 0x74(%r13)
leaq 0x5a6f4(%rip), %rdx     # 0x11e24d
leaq 0x7696e(%rip), %rax     # 0x13a4ce
cmoveq %rax, %rdx
movq %r12, %rdi
leaq 0x768c1(%rip), %rsi     # 0x13a42f
xorl %eax, %eax
callq 0xe9226
movl 0x74(%r13), %edx
testl %edx, %edx
je 0xc3b89
movq %r12, %rdi
leaq 0x768d6(%rip), %rsi     # 0x13a45d
jmp 0xc3b97
movl 0x70(%r13), %edx
movq %r12, %rdi
leaq 0x768ab(%rip), %rsi     # 0x13a442
xorl %eax, %eax
callq 0xe9226
cmpl $0x0, 0x74(%r13)
je 0xc3bc5
cmpq $0x0, 0x18(%r13)
je 0xc3bc5
movq %r12, %rdi
leaq 0x768c1(%rip), %rsi     # 0x13a477
xorl %eax, %eax
callq 0xe9b27
movq $0x0, 0x18(%r13)
cmpl $0x0, 0x74(%r13)
movl 0x70(%r13), %ecx
je 0xc3c6c
movl %ecx, %edx
shrl $0xe, %edx
movl $0x1fff, %eax           # imm = 0x1FFF
andl %eax, %edx
movq %rdx, 0x60(%r13)
shrl %ecx
andl %eax, %ecx
movq %rcx, 0x68(%r13)
movq %r12, %rdi
leaq 0x654e4(%rip), %rsi     # 0x1290da
xorl %eax, %eax
callq 0xe9226
movl 0x74(%r13), %edx
leal -0x1(%rdx), %ecx
cmpl $0x5, %ecx
ja 0xc3c88
movl $0x1, %eax
shlq %cl, %rax
movq %rax, (%r13)
cmpb $0x0, 0x78(%r13)
je 0xc3d3c
movl 0x70(%r13), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
orl $0x2, %ecx
testl %eax, %eax
movl $0x1, %eax
movl $0x8, %edx
cmovsq %rdx, %rax
movl %ecx, 0x7c(%r13)
movq %rax, 0x8(%r13)
leaq 0x7c36e(%rip), %rdx     # 0x13ffb9
leaq 0x738bc(%rip), %rax     # 0x13750e
cmovsq %rax, %rdx
movq %r12, %rdi
leaq 0x768c2(%rip), %rsi     # 0x13a522
xorl %eax, %eax
callq 0xe9226
jmp 0xc3d3c
xorl %eax, %eax
leaq 0x7699b(%rip), %rsi     # 0x13a610
movzbl (%rsi,%rax,4), %edx
cmpl %edx, %ecx
je 0xc3c9e
incq %rax
cmpq $0x30, %rax
jne 0xc3c75
jmp 0xc3cb9
movq %r12, %rdi
leaq 0x7686f(%rip), %rsi     # 0x13a501
xorl %eax, %eax
callq 0xe9df7
jmp 0xc4405
movzbl 0x1(%rsi,%rax,4), %edx
movq %rdx, (%r13)
movzbl 0x2(%rsi,%rax,4), %edx
movq %rdx, 0x60(%r13)
movzbl 0x3(%rsi,%rax,4), %eax
movq %rax, 0x68(%r13)
movq (%r13), %rbx
testq %rbx, %rbx
je 0xc3d1b
cmpb $0x0, 0x78(%r13)
je 0xc3cf5
movl $0x1, 0x7c(%r13)
movq 0x10(%r13), %rax
shlq $0x2, %rax
movq %rax, 0x80(%r13)
movq %rbx, 0x8(%r13)
movq %r12, %rdi
leaq 0x767d5(%rip), %rsi     # 0x13a4c3
xorl %eax, %eax
callq 0xe9226
cmpq $0x9, (%r13)
jl 0xc3d2e
cmpb $0x0, 0x78(%r13)
je 0xc3d2e
movq %r12, %rdi
leaq 0x767c5(%rip), %rsi     # 0x13a4d2
xorl %eax, %eax
callq 0xe9b27
movb $0x0, 0x79(%r13)
jmp 0xc3d2e
movq %r12, %rdi
leaq 0x76781(%rip), %rsi     # 0x13a4a6
movl %ecx, %edx
xorl %eax, %eax
callq 0xe9df7
testq %rbx, %rbx
movq 0x40(%rsp), %rbx
je 0xc4405
movl (%r13), %edx
movq %r12, %rdi
leaq 0x767ec(%rip), %rsi     # 0x13a536
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq (%r13), %rdi
movq 0x10(%r13), %rax
shlq $0x5, %rax
cqto
idivq %rdi
movq %rax, %rcx
movq %rax, 0x40(%r13)
movq 0x18(%r13), %rax
cqto
idivq %rdi
movq %rax, %rsi
movq %rax, 0x50(%r13)
movl $0x1f, %eax
subq 0x20(%r13), %rax
cqto
idivq %rdi
movq %rax, 0x58(%r13)
addq %rax, %rsi
movq %rcx, %rdx
subq %rsi, %rdx
movq %rdx, 0x28(%r13)
cmpb $0x0, 0xd6(%r12)
movl $0x0, %esi
cmovneq %rsi, %rax
subq %rax, %rcx
movq %rcx, 0x38(%r13)
movq %r12, %rdi
leaq 0x76788(%rip), %rsi     # 0x13a550
xorl %eax, %eax
callq 0xe9226
movq 0x28(%r13), %rsi
movq 0x30(%r13), %rdx
movq %r12, %rdi
callq 0xf241d
testl %eax, %eax
je 0xc4405
cmpq $0x0, 0x38(%r13)
jle 0xc4405
movl 0x7c(%r13), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0xc3e27
movq 0x28(%r13), %rdi
imulq 0x8(%r13), %rdi
movl $0x20, %esi
callq 0xea80b
leaq 0x7(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
movq %rcx, 0x80(%r13)
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
leaq 0x2c(%rbp), %rcx
movq %rcx, 0xb0(%r13)
movq 0x88(%r13), %rax
addq $0x34, %rbp
cmpq %rbp, %rax
jl 0xc3e89
cmpq $0x8, (%r13)
jg 0xc3e89
movl $0x1, 0xa8(%r13)
subq %rcx, %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(%r13)
cmpq $0x8, (%r13)
jg 0xc40a3
cmpl $0x0, 0xa8(%r13)
je 0xc3ebd
movl 0xb0(%r13), %edx
movl 0xb8(%r13), %ecx
movq %r12, %rdi
leaq 0x766c4(%rip), %rsi     # 0x13a57a
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x5, %r12d
xorl %ebx, %ebx
xorl %ebp, %ebp
cmpl $0x0, 0xa8(%r13)
je 0xc3f42
cmpq 0xb8(%r13), %rbp
jge 0xc406a
movq 0x18(%rsp), %r15
movq 0x18(%r15), %rdi
movq 0xb0(%r13), %rax
leaq (%r12,%rax), %rsi
addq $-0x4, %rsi
xorl %edx, %edx
callq 0xefa60
movl %eax, %r14d
movq 0x18(%r15), %rdi
movq 0xb0(%r13), %rsi
addq %r12, %rsi
xorl %edx, %edx
callq 0xefa60
cmpl %eax, %r14d
jne 0xc3f86
movl %r14d, 0xc0(%r13,%rbp,4)
movq %r15, %rdi
movq %rbp, %rsi
movl %r14d, %edx
callq 0xe9d68
jmp 0xc4079
movq (%r13), %rax
cmpq $0x4, %rax
setne %cl
cmpq $0x10, %rbp
setae %dl
orb %cl, %dl
jne 0xc3f61
leaq 0x76771(%rip), %rax     # 0x13a6d0
jmp 0xc3f7e
cmpq $0x2, %rax
setne %cl
cmpq $0x4, %rbp
setae %dl
orb %cl, %dl
jne 0xc4046
leaq 0x76352(%rip), %rax     # 0x13a2d0
movl (%rbx,%rax), %eax
jmp 0xc4071
movl %r14d, %ecx
shrl $0x18, %ecx
movl %eax, %esi
shrl $0x18, %esi
addl %ecx, %esi
movl %r14d, %ecx
shrl $0x10, %ecx
movl $0xff, %r10d
andl %r10d, %ecx
movl %eax, %edx
shrl $0x10, %edx
andl %r10d, %edx
leal (%rdx,%rcx), %edi
movl %r14d, %r8d
shrl $0x8, %r8d
andl %r10d, %r8d
movl %eax, %r9d
shrl $0x8, %r9d
andl %r10d, %r9d
leal (%r9,%r8), %r15d
andl %r10d, %r14d
andl %r10d, %eax
leal (%rax,%r14), %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
movl %r15d, 0xc0(%r13,%rbp,4)
movl %eax, 0x10(%rsp)
movl %r9d, 0x8(%rsp)
movl %edx, (%rsp)
movl $0x40, %esi
leaq 0x80(%rsp), %rdi
leaq 0x7657f(%rip), %rdx     # 0x13a59b
movl %r14d, %r9d
xorl %eax, %eax
callq 0xe8d67
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movl %r15d, %edx
leaq 0x80(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe9c1e
jmp 0xc4079
cmpq $0x1, %rax
setne %al
cmpq $0x2, %rbp
setae %cl
orb %al, %cl
jne 0xc406a
cmpq $0x1, %rbp
movl $0x0, %eax
sbbl %eax, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
jmp 0xc4071
movl %ebp, %edi
callq 0xc45a0
movl %eax, 0xc0(%r13,%rbp,4)
incq %rbp
addq $0x4, %rbx
addq $0x8, %r12
cmpq $0x100, %rbp            # imm = 0x100
jne 0xc3ed4
movq 0x18(%rsp), %r12
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq (%r13), %rax
movl $0x3, %ecx
cmpq $0x8, %rax
jg 0xc40d6
leaq 0xc0(%r13), %rdi
movl $0x1, %esi
movl %eax, %ecx
shlq %cl, %rsi
callq 0xf2544
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leal 0x1(,%rcx,2), %ecx
cmpb $0x1, 0x78(%r13)
sbbl $-0x1, %ecx
leaq 0x38(%r13), %rbx
movl 0x7c(%r13), %eax
leal -0x2(%rax), %edx
cmpl $0x2, %edx
jae 0xc40f4
leaq 0x28(%r13), %rdx
jmp 0xc40fc
movq %rbx, %rdx
cmpl $0x1, %eax
jne 0xc4103
movq (%rdx), %rax
movq %rax, 0x48(%r13)
movq 0x30(%r13), %rdx
movq 0x38(%r13), %rsi
movq %r12, %rdi
callq 0xf2cab
movq %rax, 0x98(%r13)
movq 0x60(%r13), %rax
testq %rax, %rax
jle 0xc414d
movq 0x28(%rsp), %rcx
movl $0x2, 0x78(%rcx)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x80(%rcx)
xorps %xmm0, %xmm0
cvtsi2sdq 0x68(%r13), %xmm0
movsd %xmm0, 0x88(%rcx)
movq 0x88(%r13), %rdx
movq %r12, %rdi
leaq 0x76bc1(%rip), %rsi     # 0x13ad1f
xorl %eax, %eax
callq 0xe9226
movq (%r13), %rdx
cmpq $0x10, %rdx
je 0xc41a6
cmpq $0x20, %rdx
jne 0xc4223
movq 0x18(%r12), %rdi
movq 0x10(%r13), %rdx
movq 0x88(%r13), %rsi
shlq $0x2, %rdx
movq 0x98(%r13), %r8
movl $0x4, %ecx
xorl %r9d, %r9d
callq 0xf38d9
jmp 0xc4251
cmpq $0x0, 0x30(%r13)
jle 0xc4251
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rbx, 0x48(%rsp)
cmpq $0x0, (%rbx)
movq 0x18(%rsp), %rbx
jle 0xc420f
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0x18(%rbx), %rdi
movq 0x10(%r13), %rsi
imulq %r12, %rsi
addq 0x88(%r13), %rsi
addq %rbp, %rsi
callq 0xef1ca
movl %eax, %edi
callq 0xecf12
movq 0x98(%r13), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %eax, %ecx
callq 0xf2b02
incq %r15
addq $0x2, %rbp
cmpq 0x38(%r13), %r15
jl 0xc41cc
incq %r14
addq $0x4, %r12
cmpq 0x30(%r13), %r14
movq 0x48(%rsp), %rbx
jl 0xc41bc
jmp 0xc4251
movq 0x18(%r12), %rdi
movq 0x10(%r13), %rcx
movq 0x88(%r13), %rsi
shlq $0x2, %rcx
leaq 0xc0(%r13), %r8
movq 0x98(%r13), %r9
movl $0x1, (%rsp)
callq 0xf35b8
cmpb $0x0, 0x78(%r13)
movq 0x18(%rsp), %r12
movq 0x40(%rsp), %rbx
je 0xc437f
cmpb $0x0, 0x79(%r13)
je 0xc437f
movq 0x90(%r13), %rdx
movq %r12, %rdi
leaq 0x7633a(%rip), %rsi     # 0x13a5bc
xorl %eax, %eax
callq 0xe9226
movq 0x8(%r13), %rax
addq $-0x9, %rax
cmpq $-0x9, %rax
ja 0xc42ad
movq %r12, %rdi
leaq 0x76334(%rip), %rsi     # 0x13a5d5
xorl %eax, %eax
callq 0xe9b27
jmp 0xc437f
movq 0x30(%r13), %rdx
movq 0x48(%r13), %rsi
movq %r12, %rdi
movl $0x1, %ecx
callq 0xf2cab
movq %rax, 0xa0(%r13)
leaq 0x4c0(%r13), %r14
cmpl $0x3, 0x7c(%r13)
jne 0xc42e8
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %edx, %edx
callq 0xf41f4
jmp 0xc4301
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
movl $0xff, %esi
callq 0x18140
movl $0xff000000, (%r14)     # imm = 0xFF000000
movq 0xa0(%r13), %rdi
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %r8
movl $0x0, (%rsp)
xorl %esi, %esi
xorl %edx, %edx
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
callq 0xf3cb3
movq 0x18(%r12), %rdi
movq 0x90(%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x80(%r13), %rcx
movq 0xa0(%r13), %r9
movl $0x1, (%rsp)
movq %r14, %r8
callq 0xf35b8
movq 0x98(%r13), %rdi
movq 0xa0(%r13), %rsi
xorl %edx, %edx
callq 0xf3e1c
movq 0xa0(%r13), %rdi
callq 0xf28d4
movq $0x0, 0xa0(%r13)
cmpq $0x0, 0x50(%r13)
jle 0xc43ef
cmpb $0x0, 0xd6(%r12)
jne 0xc43ef
movq 0x28(%r13), %rsi
movq 0x30(%r13), %rdx
movq 0x98(%r13), %rax
movl 0x24(%rax), %ecx
movq %r12, %rdi
callq 0xf2cab
movq %rax, %r14
movq 0x98(%r13), %rdi
movq 0x50(%r13), %rdx
movq 0x28(%r13), %r8
movq 0x30(%r13), %r9
xorpd %xmm0, %xmm0
movupd %xmm0, (%rsp)
movl $0x0, 0x10(%rsp)
movq %rax, %rsi
xorl %ecx, %ecx
callq 0xf3d2f
movq 0x98(%r13), %rdi
callq 0xf28d4
movq %r14, 0x98(%r13)
movq 0x98(%r13), %rdi
movq 0x28(%rsp), %rsi
movl $0x2, %edx
callq 0xf2917
movl 0x3c(%rsp), %esi
movq %r12, %rdi
callq 0xe9595
movq %r12, %rdi
movq 0x28(%rsp), %rsi
callq 0xea9b3
testq %r13, %r13
je 0xc4450
movq 0x98(%r13), %rdi
testq %rdi, %rdi
je 0xc4434
callq 0xf28d4
movq 0xa0(%r13), %rdi
testq %rdi, %rdi
je 0xc4445
callq 0xf28d4
movq %r12, %rdi
movq %r13, %rsi
callq 0xe9752
movq 0x58(%rsp), %r14
incq %r14
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x50(%rsp), %rax
cmpq $0x28, %rax
jl 0xc4483
addq %rax, 0x20(%rsp)
cmpq (%rbx), %r14
jl 0xc3873
jmp 0xc4483
xorl %r14d, %r14d
movq (%rbx), %rdx
cmpq %rdx, %r14
jge 0xc449f
leaq 0x75f0a(%rip), %rsi     # 0x13a39c
movq %r12, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0xe9b27
movq %r12, %rdi
movq %rbx, %rsi
callq 0xe9752
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq