// File: /workspace/github_c_makefile_star2_O1/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 $0x10b8, %rsp           # imm = 0x10B8
movq %rdi, %rbx
movq 0x20(%rdi), %rdx
movq 0x38(%rdi), %rax
movq (%rax,%rdx,8), %r15
testq %r15, %r15
je 0x2fdf3
leaq 0x20(%rbx), %rax
movq %rax, 0x18(%rsp)
cmpb $0x0, (%rbx)
movq 0x28(%rbx), %rdi
je 0x2f45e
movq (%rdi,%rdx,8), %rcx
movq %rcx, 0x10(%rsp)
testq %rcx, %rcx
jne 0x2f4af
movq 0x9eb51(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x72797(%rip), %rsi     # 0xa1bf0
jmp 0x2fe04
leaq 0x30(%rbx), %r14
movq 0x30(%rbx), %rax
movq (%rax,%rdx,8), %rsi
xorl %edx, %edx
callq 0x9150
testl %eax, %eax
jne 0x2fe30
movq %r15, %rdi
callq 0x8d50
testq %rax, %rax
je 0x2fe48
movq %rax, %rdi
movq 0x38(%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rax,%rcx,8), %rsi
movq %rdi, 0x10(%rsp)
callq 0x300ae
testb %al, %al
js 0x2fe59
movq 0x20(%rbx), %rax
movq 0x48(%rbx), %rcx
testb $0x1, (%rcx,%rax)
jne 0x2f4c7
movq 0x10(%rsp), %r12
jmp 0x2f670
movq 0x10(%rsp), %r14
movzbl (%r14), %r13d
shll $0x2, %r13d
cmpb $0x0, 0x50(%rbx)
je 0x2f669
movq %r15, 0x20(%rsp)
leaq 0x1(%r14), %rbp
movq %r13, 0x8(%rsp)
leaq -0x1(%r13), %r14
leaq 0xf0(%rbx), %r15
leaq 0x2fc652(%rip), %rdi    # 0x32bb50
movl $0x300, %edx            # imm = 0x300
movq %r15, %rsi
callq 0x80e0
xorl %r8d, %r8d
leaq 0x70a7b(%rip), %r13     # 0x9ff90
xorl %eax, %eax
movzbl (%rbp), %edx
testb %dl, %dl
js 0x2f568
cmpb $0x40, %dl
jae 0x2f584
cmpq $0x3, %r14
jb 0x2fecd
movzwl %ax, %ecx
addq $-0x3, %r14
leaq (%rcx,%rcx,2), %rdx
addq %r15, %rdx
xorl %ecx, %ecx
movzbl (%rbp,%rcx), %esi
cmpq $0x40, %rsi
jae 0x2f63f
movb (%rsi,%r13), %sil
movb %sil, (%rdx,%rcx)
incq %rcx
cmpq $0x3, %rcx
jne 0x2f53e
incl %eax
addq %rcx, %rbp
jmp 0x2f5f3
andl $0x7f, %edx
leal (%r8,%rdx), %eax
incl %eax
cmpl $0x101, %eax            # imm = 0x101
jae 0x2feb2
decq %r14
incq %rbp
jmp 0x2f5f3
cmpq $0x1, %r14
jbe 0x2feed
andb $0x3f, %dl
incb %dl
movzbl 0x1(%rbp), %ecx
movzbl %dl, %edx
leal (%r8,%rdx), %r12d
cmpl $0x100, %r12d           # imm = 0x100
ja 0x2fe95
leal (%rcx,%rdx), %esi
cmpl $0x100, %esi            # imm = 0x100
ja 0x2fe95
cmpl %ecx, %r8d
jbe 0x2f5c8
cmpl %r8d, %esi
ja 0x2fe95
addq $0x2, %rbp
addq $-0x2, %r14
movzwl %ax, %eax
leaq (%rax,%rax,2), %rdi
addq %r15, %rdi
leaq (%rcx,%rcx,2), %rsi
leaq 0x2fc56b(%rip), %rax    # 0x32bb50
addq %rax, %rsi
leal (%rdx,%rdx,2), %edx
callq 0x80e0
movl %r12d, %eax
movzwl %ax, %r8d
cmpl $0xff, %r8d
ja 0x2f609
testq %r14, %r14
jne 0x2f517
movzwl %ax, %eax
cmpl $0xff, %eax
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x8(%rsp), %r13
ja 0x2f669
movq 0x9e977(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x7285c(%rip), %rsi     # 0xa1e8f
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
jmp 0x2f669
movq 0x9e95a(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x727ee(%rip), %rsi     # 0xa1e3e
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x8(%rsp), %r13
leaq (%r14,%r13), %r12
subq %r13, %r15
leaq 0x3f8(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
leaq 0x78(%rsp), %r13
movq %rbx, 0x58(%rsp)
movq 0x20(%rbx), %rdx
movq 0x48(%rbx), %rax
movzbl (%rax,%rdx), %eax
shrl %cl, %eax
testb $0x2, %al
je 0x2f715
cmpq $0x3, %r15
jbe 0x2fe16
movl (%r12), %edx
movq %rcx, 0x50(%rsp)
leaq (%rcx,%rcx,2), %r14
shlq $0x4, %r14
movq 0x30(%rsp), %rax
cmpb $0x0, 0x1(%rax,%r14)
je 0x2f9e4
addq 0x30(%rsp), %r14
movq %rdx, 0x40(%rsp)
addq $-0x4, %rdx
movq 0x20(%r14), %rax
movq %rax, 0x8(%rsp)
movzbl 0x18(%r14), %eax
cmpl $0x1, %eax
movq %r15, 0x20(%rsp)
movq %r12, 0x48(%rsp)
je 0x2f730
testl %eax, %eax
movq 0x8(%rsp), %rdi
jne 0x2f9d5
movq 0x48(%rsp), %rax
leaq 0x4(%rax), %rsi
movq %rdx, 0x28(%r14)
callq 0x80e0
jmp 0x2f9d5
leaq (%rcx,%rcx,2), %rax
shlq $0x4, %rax
movq 0x30(%rsp), %rdx
movq $0x0, 0x28(%rdx,%rax)
jmp 0x2f9ef
cmpq $0x3, %rdx
jbe 0x2f9fe
movl 0x4(%r12), %eax
movq %rax, 0x28(%r14)
leaq 0x8(%r12), %rax
movq %rax, 0x78(%rsp)
movq 0x40(%rsp), %rax
addq %r12, %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x88(%rsp)
movq %r13, %rdi
callq 0x300f9
testl %eax, %eax
je 0x2fa05
movq %r13, %rdi
callq 0x300f9
movzbl 0x2(%r14), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
incl %edx
cmpl %ecx, %edx
jne 0x2fa0c
movq %r13, %rdi
callq 0x300f9
movzbl 0x3(%r14), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
leal 0x8(,%rdx,8), %eax
cmpl %ecx, %eax
jne 0x2fa16
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
callq 0x30159
movl $0x1, %r12d
cmpb $0x10, 0x3(%r14)
movl $0x1, %r15d
jne 0x2f7f2
leaq 0x498(%rsp), %rdi
movq %r13, %rsi
callq 0x30159
movl $0x2, %r15d
cmpb $0x2, 0x2(%r14)
jne 0x2f834
leaq 0x8a0(%rsp), %rdi
movq %r13, %rsi
callq 0x30159
movl $0x2, %r12d
cmpb $0x10, 0x3(%r14)
jne 0x2f82e
leaq 0xca8(%rsp), %rdi
movq %r13, %rsi
callq 0x30159
movl $0x4, %r15d
jmp 0x2f834
movl $0x2, %r15d
cmpb $0x2, 0x2(%r14)
jne 0x2f86d
movq %r13, %rdi
callq 0x30224
movl %eax, %ebp
cmpb $0x10, 0x3(%r14)
jne 0x2f864
movq %r13, %rdi
callq 0x30224
shll $0x8, %ebp
orl %eax, %ebp
movq 0x8(%rsp), %rax
movw %bp, 0x2(%rax)
jmp 0x2f86d
movq 0x8(%rsp), %rax
movb %bpl, 0x1(%rax)
movq %r13, %rdi
callq 0x30224
movl %eax, %ebp
cmpb $0x10, 0x3(%r14)
jne 0x2f895
movq %r13, %rdi
callq 0x30224
shll $0x8, %ebp
orl %eax, %ebp
movq 0x8(%rsp), %rax
movw %bp, (%rax)
jmp 0x2f89d
movq 0x8(%rsp), %rax
movb %bpl, (%rax)
movl %r15d, %eax
cmpq %rax, 0x28(%r14)
jbe 0x2f9d5
movb 0x3(%r14), %bl
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
callq 0x304d8
movl %eax, %ebp
cmpb $0x8, %bl
jne 0x2f8e6
movzbl 0x2(%r14), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x8(%rsp), %rdx
addb (%rdx,%rcx), %bpl
movl %r12d, %eax
movb %bpl, (%rdx,%rax)
movl $0x1, %eax
jmp 0x2f920
leaq 0x498(%rsp), %rdi
movq %r13, %rsi
callq 0x304d8
shll $0x18, %eax
shll $0x10, %ebp
orl %eax, %ebp
shrl $0x10, %ebp
movzbl 0x2(%r14), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x8(%rsp), %rdx
addw (%rdx,%rcx,2), %bp
movl %r12d, %eax
movw %bp, (%rdx,%rax,2)
movl $0x2, %eax
addl %eax, %r15d
leal 0x1(%r12), %r13d
cmpb $0x2, 0x2(%r14)
jne 0x2f9bb
movl %r15d, 0x38(%rsp)
movb 0x3(%r14), %bl
leaq 0x8a0(%rsp), %rdi
leaq 0x78(%rsp), %r15
movq %r15, %rsi
callq 0x304d8
movl %eax, %ebp
cmpb $0x8, %bl
jne 0x2f97b
leal -0x1(%r12), %eax
movq 0x8(%rsp), %rcx
addb (%rcx,%rax), %bpl
movl %r13d, %eax
movb %bpl, (%rcx,%rax)
addl $0x2, %r12d
movl 0x38(%rsp), %r15d
incl %r15d
jmp 0x2f9b8
leaq 0xca8(%rsp), %rdi
movq %r15, %rsi
callq 0x304d8
shll $0x18, %eax
shll $0x10, %ebp
orl %eax, %ebp
shrl $0x10, %ebp
leal -0x1(%r12), %eax
movq 0x8(%rsp), %rcx
addw (%rcx,%rax,2), %bp
movl %r13d, %eax
movw %bp, (%rcx,%rax,2)
addl $0x2, %r12d
movl 0x38(%rsp), %r15d
addl $0x2, %r15d
movl %r12d, %r13d
movq 0x58(%rsp), %rbx
movl %r15d, %eax
movl %r13d, %r12d
cmpq %rax, 0x28(%r14)
leaq 0x78(%rsp), %r13
ja 0x2f8aa
movq 0x20(%rsp), %r15
movq 0x48(%rsp), %r12
movq 0x40(%rsp), %rdx
addq %rdx, %r12
subq %rdx, %r15
movq 0x50(%rsp), %rcx
incq %rcx
cmpq $0x7, %rcx
jne 0x2f688
jmp 0x2fa20
callq 0x9bb4
jmp 0x2f9d5
callq 0x9b98
jmp 0x2f9d5
callq 0x9b60
jmp 0x2f796
callq 0x9b7c
jmp 0x2f7b9
cmpb $0x0, 0x50(%rbx)
je 0x2fdb6
testq %r12, %r12
je 0x2ff20
movq 0x3f0(%rbx), %r14
movl %r15d, %eax
movq %r12, 0x90(%rsp)
addq %r12, %rax
movq %rax, 0x98(%rsp)
movl $0x0, 0xa0(%rsp)
leaq 0x90(%rbx), %rax
movq %rax, 0x68(%rsp)
leaq 0xa0(%rbx), %rax
xorl %ecx, %ecx
movw $0x0, 0x4(%rax,%rcx)
movl $0x0, (%rax,%rcx)
addq $0x18, %rcx
cmpq $0x60, %rcx
jne 0x2fa70
cmpq $0x0, 0x60(%rbx)
je 0x2fdb6
leaq 0xd8(%rbx), %r15
leaq 0xc0(%rbx), %r13
leaq 0xa8(%rbx), %rax
movq %rax, 0x60(%rsp)
leaq 0x90(%rsp), %r12
movq $0x0, 0x30(%rsp)
xorl %ebp, %ebp
movq %r15, 0x70(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2ff0f
movl %eax, %ecx
movq %rbp, 0x38(%rsp)
movl %ecx, %ebp
andb $0x3, %bpl
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x2fb25
cmpb $0x34, 0x69(%rbx)
jne 0x2fb25
movq %r12, %rdi
movl %ecx, 0x2c(%rsp)
callq 0x300f9
movl 0x2c(%rsp), %ecx
movb $0x4, %dl
testl %eax, %eax
jne 0x2fb27
movq %r12, %rdi
callq 0x300f9
movl 0x2c(%rsp), %ecx
testl %eax, %eax
movzbl %bpl, %edx
movl $0x5, %eax
cmovnel %eax, %edx
jmp 0x2fb27
movl %ebp, %edx
movl %ecx, %eax
shrl $0x2, %eax
shrl $0x8, %ecx
movl %ecx, 0x2c(%rsp)
andl $0x3f, %eax
leaq 0x70493(%rip), %rcx     # 0x9ffd0
movzwl (%rcx,%rax,2), %eax
cmpw $0x1, %ax
adcl $0x0, %eax
movzwl %ax, %eax
movq %rax, 0x40(%rsp)
movzbl %dl, %eax
movq %rax, 0x20(%rsp)
xorl %eax, %eax
movq 0x38(%rsp), %rbp
movl %edx, 0x48(%rsp)
cmpq 0x60(%rbx), %rbp
jae 0x2fdac
movq %rax, 0x50(%rsp)
movq %rbp, 0x38(%rsp)
cmpb $0x5, %dl
ja 0x2fd68
movq 0x58(%rbx), %r15
imulq 0x38(%rsp), %r15
addq 0x30(%rsp), %r15
leaq 0x703da(%rip), %rcx     # 0x9ff70
movq 0x20(%rsp), %rax
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x60(%rsp), %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2fef7
movl %eax, %ebp
movq 0x68(%rsp), %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2ff03
movl %ebp, %ecx
shrl $0x8, %ecx
movw $0x1, %dx
xorl %esi, %esi
leaq (%r14,%r15), %rdi
xorl %r8d, %r8d
movzwl %dx, %r10d
movl %ebp, %r9d
testl %r10d, %eax
je 0x2fbf1
movl %ecx, %r9d
movb %r9b, (%rdi,%r8)
addl %edx, %edx
incq %r8
cmpq $0x4, %r8
jne 0x2fbe2
addq 0x58(%rbx), %r15
incq %rsi
cmpq $0x4, %rsi
jne 0x2fbdb
jmp 0x2fd68
leaq (%r14,%r15), %rax
movzbl 0x2c(%rsp), %ecx
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
movl %ecx, (%r14,%r15)
movq 0x58(%rbx), %rdx
leaq (%rax,%rdx), %rsi
movl %ecx, (%rdx,%rax)
movq 0x58(%rbx), %rax
leaq (%rsi,%rax), %rdx
movl %ecx, (%rax,%rsi)
movq 0x58(%rbx), %rax
movl %ecx, (%rax,%rdx)
jmp 0x2fd68
movl $0x4, %ebp
movq %r13, %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2fdcc
movw %ax, 0x2(%r14,%r15)
movq %r13, %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2fdcc
movw %ax, (%r14,%r15)
addq 0x58(%rbx), %r15
decq %rbp
jne 0x2fc4c
jmp 0x2fd68
xorl %ebp, %ebp
movq %r13, %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2fdcc
movl %eax, %ecx
shrl $0x8, %ecx
movl $0x1, %edx
movzbl %cl, %esi
movl %esi, %edi
shll $0x8, %edi
orl %esi, %edi
movw %di, 0x2(%r14,%r15)
movzbl %al, %esi
movl %esi, %edi
shll $0x8, %edi
orl %esi, %edi
movw %di, (%r14,%r15)
addq 0x58(%rbx), %r15
decq %rdx
je 0x2fcaa
leaq 0x1(%rbp), %rax
testq %rbp, %rbp
movq %rax, %rbp
je 0x2fc8d
jmp 0x2fd68
movl $0x1, %edx
movq %rdx, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x30585
testl %eax, %eax
js 0x2fdcc
movq %r12, %rsi
movq %rbx, %r12
leaq (%r14,%r15), %rbx
movw %ax, 0x2(%r14,%r15)
movq 0x58(%r12), %rcx
movb %ah, 0x3(%rcx,%rbx)
movq 0x58(%r12), %rcx
movb %al, 0x2(%rcx,%rbx)
movq %r13, %rbp
movq %r13, %rdi
movq %rsi, %r13
callq 0x30585
testl %eax, %eax
movq 0x8(%rsp), %rdx
js 0x2fde7
movw %ax, (%rbx)
movq 0x58(%r12), %rcx
movb %ah, 0x1(%rbx,%rcx)
movq 0x58(%r12), %rcx
movb %al, (%rbx,%rcx)
movq 0x58(%r12), %rax
leaq (%r15,%rax,2), %r15
decq %rdx
movq %r12, %rbx
movq %r13, %r12
movq %rbp, %r13
je 0x2fce8
movq 0x30(%rsp), %rcx
addq $0x4, %rcx
movq 0x38(%rsp), %rbp
leaq 0x4(%rbp), %rax
cmpq 0x58(%rbx), %rcx
cmovaeq %rax, %rbp
movl $0x0, %eax
cmovaeq %rax, %rcx
movq %rcx, 0x30(%rsp)
movq 0x50(%rsp), %rax
incq %rax
cmpq 0x40(%rsp), %rax
movq 0x70(%rsp), %r15
movl 0x48(%rsp), %edx
jne 0x2fb63
cmpq 0x60(%rbx), %rbp
jb 0x2fac5
cmpb $0x0, (%rbx)
jne 0x2fdc5
movq 0x10(%rsp), %rdi
callq 0x8270
xorl %ebp, %ebp
jmp 0x2fe81
leaq 0x72339(%rip), %rdi     # 0xa210c
movq 0x18(%rsp), %rdx
leaq 0x90(%rsp), %rsi
callq 0x9bd0
jmp 0x2fe66
leaq 0x7231e(%rip), %rdi     # 0xa210c
movq %r12, %rbx
jmp 0x2fdd3
movq 0x9e1a6(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x71cd1(%rip), %rsi     # 0xa1ad5
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
callq 0x8290
jmp 0x2fe66
movq 0x9e183(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x71e18(%rip), %rsi     # 0xa1c3f
xorl %eax, %eax
callq 0x8290
jmp 0x2fe66
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x9b17
movq $0x0, 0x10(%rsp)
jmp 0x2fe66
leaq 0x71d14(%rip), %rdi     # 0xa1b63
callq 0x83f0
movb $-0x1, %bpl
jmp 0x2fe81
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x9c02
movb $-0x1, %bpl
cmpb $0x0, (%rbx)
jne 0x2fe81
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ff3f
callq 0x8270
movl %ebp, %eax
addq $0x10b8, %rsp           # imm = 0x10B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x9e104(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x71ee3(%rip), %rsi     # 0xa1d89
xorl %eax, %eax
callq 0x8290
jmp 0x2f65a
incl %edx
movq 0x9e0e5(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x71e15(%rip), %rsi     # 0xa1cda
movl %r8d, %ecx
jmp 0x2f653
movq 0x9e0cc(%rip), %rax     # 0xcdfa0
movq (%rax), %rdi
leaq 0x71f12(%rip), %rsi     # 0xa1df0
movq %r14, %rdx
xorl %eax, %eax
callq 0x8290
jmp 0x2f65a
callq 0x9b4a
jmp 0x2f65a
leaq 0x7217a(%rip), %rdi     # 0xa2078
jmp 0x2fdd3
leaq 0x721b8(%rip), %rdi     # 0xa20c2
jmp 0x2fdd3
movq 0x18(%rsp), %rdx
leaq 0x72113(%rip), %rdi     # 0xa202e
jmp 0x2fdd8
leaq 0x5cb6a(%rip), %rdi     # 0x8ca91
leaq 0x70335(%rip), %rsi     # 0xa0263
leaq 0x720ae(%rip), %rcx     # 0xa1fe3
movl $0x513, %edx            # imm = 0x513
callq 0x8240
leaq 0x71c52(%rip), %rdi     # 0xa1b98
leaq 0x70316(%rip), %rsi     # 0xa0263
leaq 0x71b6c(%rip), %rcx     # 0xa1ac0
movl $0x6ad, %edx            # imm = 0x6AD
callq 0x8240