// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/libsmacker/smacker.c
// Function: smk_render
static char smk_render(smk s)
{
	unsigned long i, size;
	unsigned char * buffer = NULL, * p, track;
	/* null check */
	assert(s);

	/* Retrieve current chunk_size for this frame. */
	if (!(i = s->chunk_size[s->cur_frame])) {
		fprintf(stderr, "libsmacker::smk_render(s) - Warning: frame %lu: chunk_size is 0.\n", s->cur_frame);
		goto error;
	}

	if (s->mode == SMK_MODE_DISK) {
		/* Skip to frame in file */
		if (fseek(s->source.file.fp, s->source.file.chunk_offset[s->cur_frame], SEEK_SET)) {
			fprintf(stderr, "libsmacker::smk_render(s) - ERROR: fseek to frame %lu (offset %lu) failed.\n", s->cur_frame, s->source.file.chunk_offset[s->cur_frame]);
			perror("\tError reported was");
			goto error;
		}

		/* In disk-streaming mode: make way for our incoming chunk buffer */
		if ((buffer = malloc(i)) == NULL) {
			perror("libsmacker::smk_render() - ERROR: failed to malloc() buffer");
			return -1;
		}

		/* Read into buffer */
		if (smk_read_file(buffer, s->chunk_size[s->cur_frame], s->source.file.fp) < 0) {
			fprintf(stderr, "libsmacker::smk_render(s) - ERROR: frame %lu (offset %lu): smk_read had errors.\n", s->cur_frame, s->source.file.chunk_offset[s->cur_frame]);
			goto error;
		}
	} else {
		/* Just point buffer at the right place */
		if (!s->source.chunk_data[s->cur_frame]) {
			fprintf(stderr, "libsmacker::smk_render(s) - ERROR: frame %lu: memory chunk is a NULL pointer.\n", s->cur_frame);
			goto error;
		}

		buffer = s->source.chunk_data[s->cur_frame];
	}

	p = buffer;

	/* Palette record first */
	if (s->frame_type[s->cur_frame] & 0x01) {
		/* need at least 1 byte to process */
		if (!i) {
			fprintf(stderr, "libsmacker::smk_render(s) - ERROR: frame %lu: insufficient data for a palette rec.\n", s->cur_frame);
			goto error;
		}

		/* Byte 1 in block, times 4, tells how many
			subsequent bytes are present */
		size = 4 * (*p);

		/* If video rendering enabled, kick this off for decode. */
		if (s->video.enable)
			smk_render_palette(&(s->video), p + 1, size - 1);

		p += size;
		i -= size;
	}

	/* Unpack audio chunks */
	for (track = 0; track < 7; track ++) {
		if (s->frame_type[s->cur_frame] & (0x02 << track)) {
			/* need at least 4 byte to process */
			if (i < 4) {
				fprintf(stderr, "libsmacker::smk_render(s) - ERROR: frame %lu: insufficient data for audio[%u] rec.\n", s->cur_frame, track);
				goto error;
			}

			/* First 4 bytes in block tell how many
				subsequent bytes are present */
			size = (((unsigned int) p[3] << 24) |
					((unsigned int) p[2] << 16) |
					((unsigned int) p[1] << 8) |
					((unsigned int) p[0]));

			/* If audio rendering enabled, kick this off for decode. */
			if (s->audio[track].enable)
				smk_render_audio(&s->audio[track], p + 4, size - 4);

			p += size;
			i -= size;
		} else
			s->audio[track].buffer_size = 0;
	}

	/* Unpack video chunk */
	if (s->video.enable) {
		if (smk_render_video(&(s->video), p, i) < 0) {
			fprintf(stderr, "libsmacker::smk_render(s) - ERROR: frame %lu: failed to render video.\n", s->cur_frame);
			goto error;
		}
	}

	if (s->mode == SMK_MODE_DISK) {
		/* Remember that buffer we allocated?  Trash it */
		smk_free(buffer);
	}

	return 0;
error:

	if (s->mode == SMK_MODE_DISK) {
		/* Remember that buffer we allocated?  Trash it */
		smk_free(buffer);
	}

	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10a8, %rsp           # imm = 0x10A8
movq 0x20(%rdi), %rdx
movq %rdi, 0x8(%rsp)
movq 0x38(%rdi), %rax
movq (%rax,%rdx,8), %r14
testq %r14, %r14
je 0x2d445
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
movq 0x28(%rax), %rdi
je 0x2ca4c
movq (%rdi,%rdx,8), %rcx
movq %rcx, 0x10(%rsp)
testq %rcx, %rcx
jne 0x2caa7
movq 0x9a55b(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x6a219(%rip), %rsi     # 0x96c60
jmp 0x2d456
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq (%rax,%rdx,8), %rsi
xorl %edx, %edx
callq 0x9150
testl %eax, %eax
jne 0x2d47e
movq %r14, %rdi
callq 0x8d50
testq %rax, %rax
je 0x2d4c1
movq %rax, %rdi
movq 0x8(%rsp), %rbx
movq 0x38(%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rax,%rcx,8), %rsi
movq %rdi, 0x10(%rsp)
callq 0x2d745
movq 0x20(%rbx), %rdx
testb %al, %al
js 0x2d4d5
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rax
testb $0x1, (%rax,%rdx)
jne 0x2cac0
movq 0x10(%rsp), %rbx
jmp 0x2cc71
movq 0x10(%rsp), %rbx
movzbl (%rbx), %r13d
shll $0x2, %r13d
movq 0x8(%rsp), %rax
cmpb $0x0, 0x50(%rax)
je 0x2cc6b
movq %r14, 0x20(%rsp)
leaq 0x1(%rbx), %rbp
leaq -0x1(%r13), %r14
movq 0x8(%rsp), %rax
leaq 0xf0(%rax), %r12
leaq 0x2f8074(%rip), %rdi    # 0x324b70
movl $0x300, %edx            # imm = 0x300
movq %r12, %rsi
callq 0x80e0
xorl %r15d, %r15d
leaq 0x684ed(%rip), %rbx     # 0x95000
movzwl %r15w, %r8d
cmpw $0xff, %r8w
ja 0x2cc17
testq %r14, %r14
je 0x2cc17
movzbl (%rbp), %edx
testb %dl, %dl
js 0x2cb77
movl %r8d, %eax
cmpb $0x40, %dl
jae 0x2cb99
cmpq $0x3, %r14
jb 0x2d56a
addq $-0x3, %r14
leaq (%rax,%rax,2), %rax
addq %r12, %rax
xorl %ecx, %ecx
cmpq $0x3, %rcx
je 0x2cc09
movzbl (%rbp,%rcx), %edx
cmpq $0x40, %rdx
jae 0x2cc46
movb (%rdx,%rbx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x2cb53
andl $0x7f, %edx
leal (%rdx,%r8), %r15d
incl %r15d
cmpl $0x101, %r15d           # imm = 0x101
jae 0x2d51c
decq %r14
incq %rbp
jmp 0x2cb13
cmpq $0x1, %r14
jbe 0x2d54f
andb $0x3f, %dl
incb %dl
movzbl 0x1(%rbp), %ecx
movzbl %dl, %edx
leal (%rdx,%r8), %r15d
cmpl $0x100, %r15d           # imm = 0x100
ja 0x2d4ff
leal (%rcx,%rdx), %esi
cmpl $0x100, %esi            # imm = 0x100
ja 0x2d4ff
cmpl %r8d, %ecx
jae 0x2cbdd
cmpl %r8d, %esi
ja 0x2d4ff
addq $0x2, %rbp
addq $-0x2, %r14
leaq (%rax,%rax,2), %rdi
addq %r12, %rdi
movl %ecx, %eax
leaq (%rax,%rax,2), %rsi
leaq 0x2f7f77(%rip), %rax    # 0x324b70
addq %rax, %rsi
leal (%rdx,%rdx,2), %edx
callq 0x80e0
jmp 0x2cb13
incl %r8d
addq %rcx, %rbp
movl %r8d, %r15d
jmp 0x2cb13
cmpw $0xff, %r15w
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %r14
ja 0x2cc6b
movq 0x9a368(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x6a2c5(%rip), %rsi     # 0x96eff
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
jmp 0x2cc6b
movq 0x9a34b(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x6a257(%rip), %rsi     # 0x96eae
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %r14
addq %r13, %rbx
subq %r13, %r14
movq 0x8(%rsp), %rax
leaq 0x3f8(%rax), %rsi
xorl %ecx, %ecx
leaq 0x68(%rsp), %r15
movq %rsi, 0x38(%rsp)
cmpq $0x7, %rcx
je 0x2d02d
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdx
movq 0x48(%rax), %rax
movzbl (%rax,%rdx), %eax
shrl %cl, %eax
testb $0x2, %al
je 0x2cd32
cmpq $0x3, %r14
jbe 0x2d461
movl (%rbx), %r12d
imulq $0x30, %rcx, %r13
cmpb $0x0, 0x1(%rsi,%r13)
je 0x2cd2a
addq %rsi, %r13
leaq -0x4(%r12), %rdx
movq 0x20(%r13), %rax
movq %rax, 0x18(%rsp)
movzbl 0x18(%r13), %eax
cmpl $0x1, %eax
movq %r14, 0x20(%rsp)
movq %rbx, 0x30(%rsp)
movq %rcx, 0x48(%rsp)
movq %r12, 0x40(%rsp)
je 0x2cd44
testl %eax, %eax
jne 0x2cd11
movq 0x30(%rsp), %rax
leaq 0x4(%rax), %rsi
movq %rdx, 0x28(%r13)
movq 0x18(%rsp), %rdi
callq 0x80e0
movq 0x20(%rsp), %r14
movq 0x30(%rsp), %rbx
movq 0x48(%rsp), %rcx
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r12
addq %r12, %rbx
subq %r12, %r14
jmp 0x2cd3c
imulq $0x30, %rcx, %rax
andq $0x0, 0x28(%rsi,%rax)
incq %rcx
jmp 0x2cc89
cmpq $0x3, %rdx
jbe 0x2cfc9
movl 0x4(%rbx), %eax
movq %rax, 0x28(%r13)
leaq 0x8(%rbx), %rax
movq %rax, 0x68(%rsp)
leaq (%rbx,%r12), %rax
movq %rax, 0x70(%rsp)
andl $0x0, 0x78(%rsp)
movq %r15, %rdi
callq 0x2d7dc
testl %eax, %eax
je 0x2cfdc
movq %r15, %rdi
callq 0x2d7dc
movzbl 0x2(%r13), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
incl %edx
cmpl %ecx, %edx
jne 0x2cff7
movq %r15, %rdi
callq 0x2d7dc
movzbl 0x3(%r13), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
leal 0x8(,%rdx,8), %eax
cmpl %ecx, %eax
jne 0x2d012
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x2d849
cmpb $0x10, 0x3(%r13)
pushq $0x1
popq %r14
jne 0x2cdec
leaq 0x488(%rsp), %rdi
movq %r15, %rsi
callq 0x2d849
pushq $0x2
popq %r14
cmpb $0x2, 0x2(%r13)
pushq $0x1
popq %rbp
jne 0x2ce70
leaq 0x890(%rsp), %rdi
movq %r15, %rsi
callq 0x2d849
cmpb $0x10, 0x3(%r13)
pushq $0x2
popq %r14
jne 0x2ce25
leaq 0xc98(%rsp), %rdi
movq %r15, %rsi
callq 0x2d849
pushq $0x4
popq %r14
cmpb $0x2, 0x2(%r13)
jne 0x2ce5c
movq %r15, %rdi
callq 0x2d91a
movq %r15, %r12
movl %eax, %r15d
cmpb $0x10, 0x3(%r13)
jne 0x2ce61
movq %r12, %rdi
callq 0x2d91a
shll $0x8, %r15d
orl %eax, %r15d
movq 0x18(%rsp), %rax
movw %r15w, 0x2(%rax)
jmp 0x2ce6a
pushq $0x2
popq %rbp
jmp 0x2ce70
movq 0x18(%rsp), %rax
movb %r15b, 0x1(%rax)
pushq $0x2
popq %rbp
movq %r12, %r15
movq %r15, %rdi
callq 0x2d91a
movq %r15, %rdi
movl %eax, %r15d
cmpb $0x10, 0x3(%r13)
jne 0x2ce9c
callq 0x2d91a
shll $0x8, %r15d
orl %eax, %r15d
movq 0x18(%rsp), %rax
movw %r15w, (%rax)
jmp 0x2cea4
movq 0x18(%rsp), %rax
movb %r15b, (%rax)
movq %r13, 0x28(%rsp)
movl %r14d, %eax
cmpq %rax, 0x28(%r13)
leaq 0x68(%rsp), %r15
jbe 0x2cd11
movl %ebp, %r12d
movb 0x3(%r13), %bl
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x2dc67
movq %r15, %rsi
movl %eax, %r15d
movl %ebp, %ebp
cmpb $0x8, %bl
jne 0x2cefa
movzbl 0x2(%r13), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x18(%rsp), %rax
addb (%rax,%rcx), %r15b
movb %r15b, (%rax,%rbp)
pushq $0x1
jmp 0x2cf30
leaq 0x488(%rsp), %rdi
callq 0x2dc67
shll $0x18, %eax
shll $0x10, %r15d
orl %eax, %r15d
shrl $0x10, %r15d
movzbl 0x2(%r13), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x18(%rsp), %rax
addw (%rax,%rcx,2), %r15w
movw %r15w, (%rax,%rbp,2)
pushq $0x2
popq %rax
addl %eax, %r14d
leal 0x1(%r12), %ebp
cmpb $0x2, 0x2(%r13)
jne 0x2cea9
movb 0x3(%r13), %bl
leaq 0x890(%rsp), %rdi
leaq 0x68(%rsp), %r13
movq %r13, %rsi
callq 0x2dc67
movl %eax, %r15d
movl %ebp, %ebp
cmpb $0x8, %bl
jne 0x2cf82
leal -0x1(%r12), %eax
movq 0x18(%rsp), %rcx
addb (%rcx,%rax), %r15b
movb %r15b, (%rcx,%rbp)
addl $0x2, %r12d
incl %r14d
jmp 0x2cfbc
leaq 0xc98(%rsp), %rdi
movq %r13, %rsi
callq 0x2dc67
shll $0x18, %eax
shll $0x10, %r15d
orl %eax, %r15d
shrl $0x10, %r15d
leal -0x1(%r12), %eax
movq 0x18(%rsp), %rcx
addw (%rcx,%rax,2), %r15w
movw %r15w, (%rcx,%rbp,2)
addl $0x2, %r12d
addl $0x2, %r14d
movl %r12d, %ebp
movq 0x28(%rsp), %r13
jmp 0x2cea9
movq 0x99fc8(%rip), %rax     # 0xc6f98
movq (%rax), %rsi
leaq 0x69f73(%rip), %rdi     # 0x96f4d
jmp 0x2cfed
movq 0x99fb5(%rip), %rax     # 0xc6f98
movq (%rax), %rsi
leaq 0x69fba(%rip), %rdi     # 0x96fa7
callq 0x8470
jmp 0x2cd11
movq 0x99f9a(%rip), %rax     # 0xc6f98
movq (%rax), %rsi
leaq 0x69fe1(%rip), %rdi     # 0x96fe9
callq 0x8470
jmp 0x2cd9a
movq 0x99f7f(%rip), %rax     # 0xc6f98
movq (%rax), %rsi
leaq 0x69ffc(%rip), %rdi     # 0x9701f
callq 0x8470
jmp 0x2cdbd
movq 0x8(%rsp), %rax
cmpb $0x0, 0x50(%rax)
je 0x2d41b
testq %rbx, %rbx
je 0x2d596
movq 0x8(%rsp), %rcx
movq 0x3f0(%rcx), %rbp
movl %r14d, %eax
movq %rbx, 0x80(%rsp)
addq %rbx, %rax
movq %rax, 0x88(%rsp)
andl $0x0, 0x90(%rsp)
leaq 0x90(%rcx), %rax
movq %rax, 0x58(%rsp)
leaq 0xa0(%rcx), %rax
xorl %ecx, %ecx
cmpq $0x60, %rcx
je 0x2d09a
andw $0x0, 0x4(%rax,%rcx)
andl $0x0, (%rax,%rcx)
addq $0x18, %rcx
jmp 0x2d084
movq 0x8(%rsp), %rcx
leaq 0xd8(%rcx), %rax
movq %rax, 0x50(%rsp)
leaq 0xc0(%rcx), %r15
leaq 0xa8(%rcx), %rax
movq %rax, 0x60(%rsp)
leaq 0x80(%rsp), %rbx
xorl %r12d, %r12d
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x60(%rax), %r12
jae 0x2d41b
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d58a
movl %eax, %ecx
movl %ecx, %r14d
andb $0x3, %r14b
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x2d13f
movq 0x8(%rsp), %rax
cmpb $0x34, 0x69(%rax)
jne 0x2d13f
movq %rbx, %rdi
movl %ecx, %r13d
callq 0x2d7dc
movl %r13d, %ecx
movb $0x4, %dl
testl %eax, %eax
jne 0x2d142
movq %rbx, %rdi
callq 0x2d7dc
movl %r13d, %ecx
testl %eax, %eax
movzbl %r14b, %edx
pushq $0x5
popq %rax
cmovnel %eax, %edx
jmp 0x2d142
movl %r14d, %edx
movl %ecx, %eax
shrl $0x2, %eax
shrl $0x8, %ecx
movl %ecx, 0x38(%rsp)
andl $0x3f, %eax
leaq 0x67ee8(%rip), %rcx     # 0x95040
movzwl (%rcx,%rax,2), %eax
movq %rax, 0x20(%rsp)
movzbl %dl, %eax
movq %rax, 0x40(%rsp)
xorl %ecx, %ecx
movl %edx, 0x48(%rsp)
cmpq 0x20(%rsp), %rcx
je 0x2d0d2
movq 0x8(%rsp), %rax
cmpq 0x60(%rax), %r12
jae 0x2d0d2
movq %rcx, 0x30(%rsp)
movq %r12, 0x28(%rsp)
cmpb $0x5, %dl
ja 0x2d26f
movq 0x8(%rsp), %rax
movq 0x58(%rax), %r12
imulq 0x28(%rsp), %r12
addq 0x18(%rsp), %r12
leaq 0x67e29(%rip), %rcx     # 0x94fe0
movq 0x40(%rsp), %rax
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d537
movl %eax, %r14d
movq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d543
movl %r14d, %ecx
shrl $0x8, %ecx
movw $0x1, %dx
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x2d26f
leaq (%r12,%rbp), %rdi
xorl %r8d, %r8d
cmpq $0x4, %r8
je 0x2d22b
movzwl %dx, %r10d
movl %r14d, %r9d
testl %r10d, %eax
je 0x2d220
movl %ecx, %r9d
movb %r9b, (%rdi,%r8)
addl %edx, %edx
incq %r8
jmp 0x2d20b
movq 0x8(%rsp), %rdi
addq 0x58(%rdi), %r12
incq %rsi
jmp 0x2d1fe
leaq (%r12,%rbp), %rax
movzbl 0x38(%rsp), %ecx
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
movl %ecx, (%rbp,%r12)
movq 0x8(%rsp), %rdi
movq 0x58(%rdi), %rdx
leaq (%rax,%rdx), %rsi
movl %ecx, (%rdx,%rax)
movq 0x58(%rdi), %rax
leaq (%rsi,%rax), %rdx
movl %ecx, (%rax,%rsi)
movq 0x58(%rdi), %rax
movl %ecx, (%rax,%rdx)
movq 0x18(%rsp), %rdx
addq $0x4, %rdx
movq 0x28(%rsp), %r12
leaq 0x4(%r12), %rax
movq 0x8(%rsp), %rcx
cmpq 0x58(%rcx), %rdx
cmovaeq %rax, %r12
movl $0x0, %eax
cmovaeq %rax, %rdx
movq %rdx, 0x18(%rsp)
movq 0x30(%rsp), %rcx
incq %rcx
movl 0x48(%rsp), %edx
jmp 0x2d16f
pushq $0x4
popq %r14
subq $0x1, %r14
jb 0x2d26f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d3c9
movw %ax, 0x2(%rbp,%r12)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d3c9
movw %ax, (%rbp,%r12)
movq 0x8(%rsp), %rax
addq 0x58(%rax), %r12
jmp 0x2d2b2
xorl %r14d, %r14d
cmpq $0x2, %r14
je 0x2d26f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d3c9
movl %eax, %ecx
shrl $0x8, %ecx
pushq $0x2
popq %rdx
subq $0x1, %rdx
jb 0x2d34c
movzbl %cl, %esi
imull $0x101, %esi, %esi      # imm = 0x101
movw %si, 0x2(%rbp,%r12)
movzbl %al, %esi
imull $0x101, %esi, %esi      # imm = 0x101
movw %si, (%rbp,%r12)
movq 0x8(%rsp), %rsi
addq 0x58(%rsi), %r12
jmp 0x2d31d
incq %r14
jmp 0x2d2f8
pushq $0x2
popq %r14
subq $0x1, %r14
jb 0x2d26f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2dd0f
testl %eax, %eax
js 0x2d3c9
movq %rbx, %rsi
leaq (%r12,%rbp), %rbx
movw %ax, 0x2(%rbp,%r12)
movq 0x8(%rsp), %rdx
movq 0x58(%rdx), %rcx
movb %ah, 0x3(%rcx,%rbx)
movq 0x58(%rdx), %rcx
movb %al, 0x2(%rcx,%rbx)
movq %r15, %r13
movq %r15, %rdi
movq %rsi, %r15
callq 0x2dd0f
testl %eax, %eax
js 0x2d3c9
movw %ax, (%rbx)
movq 0x8(%rsp), %rdx
movq 0x58(%rdx), %rcx
movb %ah, 0x1(%rbx,%rcx)
movq 0x58(%rdx), %rcx
movb %al, (%rbx,%rcx)
movq 0x58(%rdx), %rax
leaq (%r12,%rax,2), %r12
movq %r15, %rbx
movq %r13, %r15
jmp 0x2d355
leaq 0x69dac(%rip), %rdi     # 0x9717c
movq 0x99bc1(%rip), %rbx     # 0xc6f98
movq (%rbx), %rsi
callq 0x8470
movq (%rbx), %rdi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdx
leaq 0x69911(%rip), %rsi     # 0x96d03
xorl %eax, %eax
callq 0x8290
movb $-0x1, %bpl
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
jne 0x2d431
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2d5b5
callq 0x8270
jmp 0x2d431
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
jne 0x2d42f
movq 0x10(%rsp), %rdi
callq 0x8270
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x10a8, %rsp           # imm = 0x10A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x99b4c(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x696ef(%rip), %rsi     # 0x96b45
movq $0x0, 0x10(%rsp)
jmp 0x2d3f2
movq 0x99b30(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x6983d(%rip), %rsi     # 0x96caf
xorl %eax, %eax
callq 0x8290
jmp 0x2d3f9
movq 0x99b13(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdx
movq 0x30(%rax), %rax
movq (%rax,%rdx,8), %rcx
leaq 0x696e7(%rip), %rsi     # 0x96b87
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
callq 0x8290
leaq 0x67dcb(%rip), %rdi     # 0x95282
callq 0x83f0
jmp 0x2d3f9
leaq 0x6970b(%rip), %rdi     # 0x96bd3
callq 0x83f0
movb $-0x1, %bpl
jmp 0x2d431
movq 0x99abc(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq (%rax,%rdx,8), %rcx
leaq 0x6971c(%rip), %rsi     # 0x96c0f
xorl %eax, %eax
callq 0x8290
jmp 0x2d3f9
movq 0x99a92(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x698e9(%rip), %rsi     # 0x96df9
xorl %eax, %eax
callq 0x8290
jmp 0x2cc61
incl %edx
movq 0x99a73(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x6981b(%rip), %rsi     # 0x96d4a
movl %r8d, %ecx
jmp 0x2cc5a
leaq 0x69baa(%rip), %rdi     # 0x970e8
jmp 0x2d3d0
leaq 0x69be8(%rip), %rdi     # 0x97132
jmp 0x2d3d0
movq 0x99a42(%rip), %rax     # 0xc6f98
movq (%rax), %rsi
leaq 0x6984b(%rip), %rdi     # 0x96dab
callq 0x8470
jmp 0x2cc61
movq 0x99a27(%rip), %rax     # 0xc6f98
movq (%rax), %rdi
leaq 0x698e5(%rip), %rsi     # 0x96e60
movq %r14, %rdx
xorl %eax, %eax
callq 0x8290
jmp 0x2cc61
leaq 0x69b0d(%rip), %rdi     # 0x9709e
jmp 0x2d3d0
leaq 0x54578(%rip), %rdi     # 0x81b15
leaq 0x67d2f(%rip), %rsi     # 0x952d3
leaq 0x69aa8(%rip), %rcx     # 0x97053
movl $0x513, %edx            # imm = 0x513
callq 0x8240
leaq 0x6964c(%rip), %rdi     # 0x96c08
leaq 0x67d10(%rip), %rsi     # 0x952d3
leaq 0x69566(%rip), %rcx     # 0x96b30
movl $0x6ad, %edx            # imm = 0x6AD
callq 0x8240