// File: /workspace/github_c_makefile_star2_O3/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 0x31123
leaq 0x20(%rbx), %rax
movq %rax, 0x28(%rsp)
cmpb $0x0, (%rbx)
movq 0x28(%rbx), %rdi
je 0x3073e
movq (%rdi,%rdx,8), %rcx
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
jne 0x30793
movq 0xa0861(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x74667(%rip), %rsi     # 0xa4da0
jmp 0x31134
leaq 0x30(%rbx), %r14
movq 0x30(%rbx), %rax
movq (%rax,%rdx,8), %rsi
xorl %edx, %edx
callq 0x9150
testl %eax, %eax
jne 0x31160
movq %r15, %rdi
callq 0x8d50
testq %rax, %rax
je 0x31178
movq %rax, %rdi
movq 0x38(%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rax,%rcx,8), %rsi
movq %rdi, 0x8(%rsp)
callq 0x313f0
movq 0x20(%rbx), %rdx
testb %al, %al
js 0x31189
movq 0x48(%rbx), %rax
testb $0x1, (%rax,%rdx)
jne 0x307a7
movq 0x8(%rsp), %r14
jmp 0x30952
movq 0x8(%rsp), %r14
movzbl (%r14), %r12d
shll $0x2, %r12d
cmpb $0x0, 0x50(%rbx)
je 0x3094c
movq %r15, 0x20(%rsp)
leaq 0x1(%r14), %rbp
movq %r12, 0x18(%rsp)
leaq -0x1(%r12), %r14
leaq 0xf0(%rbx), %r15
leaq 0x2fe391(%rip), %rdi    # 0x32eb70
movl $0x300, %edx            # imm = 0x300
movq %r15, %rsi
callq 0x80e0
xorl %r8d, %r8d
leaq 0x7294a(%rip), %r13     # 0xa3140
xorl %eax, %eax
movzbl (%rbp), %edx
testb %dl, %dl
js 0x30849
cmpb $0x40, %dl
jae 0x30865
cmpq $0x3, %r14
jb 0x3120f
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 0x30922
movb (%rsi,%r13), %sil
movb %sil, (%rdx,%rcx)
incq %rcx
cmpq $0x3, %rcx
jne 0x3081f
incl %eax
addq %rcx, %rbp
jmp 0x308d6
andl $0x7f, %edx
leal (%r8,%rdx), %eax
incl %eax
cmpl $0x101, %eax            # imm = 0x101
jae 0x311f4
decq %r14
incq %rbp
jmp 0x308d6
cmpq $0x1, %r14
jbe 0x3122f
andb $0x3f, %dl
incb %dl
movzbl 0x1(%rbp), %ecx
movzbl %dl, %edx
leal (%r8,%rdx), %r12d
cmpl $0x100, %r12d           # imm = 0x100
ja 0x311d7
leal (%rcx,%rdx), %esi
cmpl $0x100, %esi            # imm = 0x100
ja 0x311d7
cmpl %ecx, %r8d
jbe 0x308a9
cmpl %r8d, %esi
ja 0x311d7
addq $0x2, %rbp
addq $-0x2, %r14
movzwl %ax, %eax
leaq (%rax,%rax,2), %rdi
addq %r15, %rdi
movl %ecx, %eax
leaq (%rax,%rax,2), %rsi
leaq 0x2fe2a8(%rip), %rax    # 0x32eb70
addq %rax, %rsi
leal (%rdx,%rdx,2), %edx
callq 0x80e0
movl %r12d, %eax
movzwl %ax, %r8d
cmpl $0xff, %r8d
ja 0x308ec
testq %r14, %r14
jne 0x307f8
movzwl %ax, %eax
cmpl $0xff, %eax
movq 0x8(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
ja 0x3094c
movq 0xa0684(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x74729(%rip), %rsi     # 0xa503f
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
jmp 0x3094c
movq 0xa0667(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x746bb(%rip), %rsi     # 0xa4fee
movl %r8d, %edx
xorl %eax, %eax
callq 0x8290
movq 0x8(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
addq %r12, %r14
subq %r12, %r15
leaq 0x3f8(%rbx), %rsi
xorl %ecx, %ecx
movq %rsi, 0x38(%rsp)
movq %rbx, 0x58(%rsp)
movq 0x20(%rbx), %rdx
movq 0x48(%rbx), %rax
movzbl (%rax,%rdx), %eax
shrl %cl, %eax
testb $0x2, %al
je 0x30a00
cmpq $0x3, %r15
jbe 0x31146
movl (%r14), %r13d
leaq (%rcx,%rcx,2), %rbp
shlq $0x4, %rbp
cmpb $0x0, 0x1(%rsi,%rbp)
je 0x309f8
addq %rsi, %rbp
leaq -0x4(%r13), %rdx
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movzbl 0x18(%rbp), %eax
cmpl $0x1, %eax
movq %r15, 0x20(%rsp)
movq %r14, 0x40(%rsp)
movq %rcx, 0x50(%rsp)
movq %r13, 0x48(%rsp)
je 0x30a23
testl %eax, %eax
jne 0x309df
movq 0x40(%rsp), %rax
leaq 0x4(%rax), %rsi
movq %rdx, 0x28(%rbp)
movq 0x10(%rsp), %rdi
callq 0x80e0
movq 0x20(%rsp), %r15
movq 0x40(%rsp), %r14
movq 0x50(%rsp), %rcx
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %r13
addq %r13, %r14
subq %r13, %r15
jmp 0x30a11
leaq (%rcx,%rcx,2), %rax
shlq $0x4, %rax
movq $0x0, 0x28(%rsi,%rax)
incq %rcx
cmpq $0x7, %rcx
jne 0x30965
jmp 0x30d10
cmpq $0x3, %rdx
jbe 0x30ce8
movl 0x4(%r14), %eax
movq %rax, 0x28(%rbp)
leaq 0x8(%r14), %rax
movq %rax, 0x60(%rsp)
leaq (%r14,%r13), %rax
movq %rax, 0x68(%rsp)
movl $0x0, 0x70(%rsp)
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq 0x3143b
testl %eax, %eax
je 0x30cf2
movq %r12, %rdi
callq 0x3143b
movzbl 0x2(%rbp), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
incl %edx
cmpl %ecx, %edx
jne 0x30cfc
movq %r12, %rdi
callq 0x3143b
movzbl 0x3(%rbp), %ecx
xorl %edx, %edx
cmpb $0x1, %al
sete %dl
leal 0x8(,%rdx,8), %eax
cmpl %ecx, %eax
movq %r12, %r14
jne 0x30d06
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x3149b
movl $0x1, %r12d
cmpb $0x10, 0x3(%rbp)
movl $0x1, %eax
movq %rbp, %r13
movq %rbp, 0x30(%rsp)
jne 0x30ae9
leaq 0x498(%rsp), %rdi
movq %r14, %rsi
callq 0x3149b
movq 0x30(%rsp), %r13
movl $0x2, %eax
cmpb $0x2, 0x2(%r13)
jne 0x30b76
leaq 0x8a0(%rsp), %rdi
movq %r14, %rsi
callq 0x3149b
movl $0x2, %r12d
cmpb $0x10, 0x3(%r13)
movl $0x2, %eax
jne 0x30b30
leaq 0xca8(%rsp), %rdi
movq %r14, %rsi
callq 0x3149b
movq 0x30(%rsp), %r13
movl $0x4, %eax
cmpb $0x2, 0x2(%r13)
jne 0x30b76
movl %eax, 0x18(%rsp)
movq %r14, %rdi
callq 0x31566
movl %eax, %ebp
cmpb $0x10, 0x3(%r13)
jne 0x30b64
movq %r14, %rdi
callq 0x31566
shll $0x8, %ebp
orl %eax, %ebp
movq 0x10(%rsp), %rax
movw %bp, 0x2(%rax)
jmp 0x30b6d
movq 0x10(%rsp), %rax
movb %bpl, 0x1(%rax)
movq 0x30(%rsp), %r13
movl 0x18(%rsp), %eax
movq %r14, %rdi
movl %eax, %r14d
callq 0x31566
movl %eax, %ebp
cmpb $0x10, 0x3(%r13)
jne 0x30ba8
leaq 0x60(%rsp), %rdi
callq 0x31566
movq 0x30(%rsp), %r13
shll $0x8, %ebp
orl %eax, %ebp
movq 0x10(%rsp), %rax
movw %bp, (%rax)
jmp 0x30bb0
movq 0x10(%rsp), %rax
movb %bpl, (%rax)
movl %r14d, %r15d
movl %r14d, %eax
cmpq %rax, 0x28(%r13)
jbe 0x309df
movl %r15d, 0x18(%rsp)
movb 0x3(%r13), %bl
leaq 0x90(%rsp), %rdi
leaq 0x60(%rsp), %r14
movq %r14, %rsi
callq 0x3181a
movl %eax, %ebp
cmpb $0x8, %bl
jne 0x30c07
movzbl 0x2(%r13), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x10(%rsp), %rdx
addb (%rdx,%rcx), %bpl
movl %r12d, %eax
movb %bpl, (%rdx,%rax)
movl $0x1, %r15d
jmp 0x30c42
leaq 0x498(%rsp), %rdi
movq %r14, %rsi
callq 0x3181a
shll $0x18, %eax
shll $0x10, %ebp
orl %eax, %ebp
shrl $0x10, %ebp
movzbl 0x2(%r13), %eax
movl %r12d, %ecx
subl %eax, %ecx
movq 0x10(%rsp), %rdx
addw (%rdx,%rcx,2), %bp
movl %r12d, %eax
movw %bp, (%rdx,%rax,2)
movl $0x2, %r15d
addl 0x18(%rsp), %r15d
leal 0x1(%r12), %r14d
cmpb $0x2, 0x2(%r13)
jne 0x30c91
movb 0x3(%r13), %bl
leaq 0x8a0(%rsp), %rdi
leaq 0x60(%rsp), %r13
movq %r13, %rsi
callq 0x3181a
movl %eax, %ebp
cmpb $0x8, %bl
jne 0x30c98
leal -0x1(%r12), %eax
movq 0x10(%rsp), %rcx
addb (%rcx,%rax), %bpl
movl %r14d, %eax
movb %bpl, (%rcx,%rax)
addl $0x2, %r12d
incl %r15d
jmp 0x30cd0
movq 0x58(%rsp), %rbx
jmp 0x30cdd
leaq 0xca8(%rsp), %rdi
movq %r13, %rsi
callq 0x3181a
shll $0x18, %eax
shll $0x10, %ebp
orl %eax, %ebp
shrl $0x10, %ebp
leal -0x1(%r12), %eax
movq 0x10(%rsp), %rcx
addw (%rcx,%rax,2), %bp
movl %r14d, %eax
movw %bp, (%rcx,%rax,2)
addl $0x2, %r12d
addl $0x2, %r15d
movl %r12d, %r14d
movq 0x58(%rsp), %rbx
movq 0x30(%rsp), %r13
movl %r15d, %eax
movl %r14d, %r12d
jmp 0x30bb6
callq 0x9bf0
jmp 0x309df
callq 0x9bd4
jmp 0x309df
callq 0x9b9c
jmp 0x30a81
callq 0x9bb8
jmp 0x30aa6
cmpb $0x0, 0x50(%rbx)
je 0x310e3
testq %r14, %r14
je 0x31262
movq 0x3f0(%rbx), %rbp
movl %r15d, %eax
movq %r14, 0x90(%rsp)
addq %r14, %rax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movl %eax, 0xa0(%rsp)
movw %ax, 0xa4(%rbx)
movl %eax, 0xa0(%rbx)
movl %eax, 0xb8(%rbx)
movw %ax, 0xbc(%rbx)
movl %eax, 0xd0(%rbx)
movw %ax, 0xd4(%rbx)
movl %eax, 0xe8(%rbx)
movw %ax, 0xec(%rbx)
cmpq $0x0, 0x60(%rbx)
je 0x310e3
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rsp)
leaq 0xd8(%rbx), %rdi
leaq 0xc0(%rbx), %r13
leaq 0xa8(%rbx), %rax
movq %rax, 0x88(%rsp)
leaq 0x90(%rsp), %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
movq %rdi, 0x78(%rsp)
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x31251
movl %eax, %ecx
movq %r15, 0x10(%rsp)
movl %ecx, %r15d
andb $0x3, %r15b
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x30e25
cmpb $0x34, 0x69(%rbx)
jne 0x30e25
movq %r12, %rdi
movl %ecx, 0x38(%rsp)
callq 0x3143b
movl 0x38(%rsp), %ecx
movb $0x4, %dl
testl %eax, %eax
jne 0x30e28
movq %r12, %rdi
callq 0x3143b
movl 0x38(%rsp), %ecx
testl %eax, %eax
movzbl %r15b, %edx
movl $0x5, %eax
cmovnel %eax, %edx
jmp 0x30e28
movl %r15d, %edx
movl %ecx, %eax
shrl $0x2, %eax
shrl $0x8, %ecx
movl %ecx, 0x38(%rsp)
andl $0x3f, %eax
leaq 0x72342(%rip), %rcx     # 0xa3180
movzwl (%rcx,%rax,2), %eax
cmpw $0x1, %ax
adcl $0x0, %eax
movzwl %ax, %eax
movq %rax, 0x50(%rsp)
movzbl %dl, %eax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
movq 0x10(%rsp), %r15
movl %edx, 0x20(%rsp)
movq %r14, %rsi
movq 0x60(%rbx), %rax
cmpq %rax, %r14
jae 0x310d2
movq %rcx, 0x30(%rsp)
movq 0x58(%rbx), %rcx
cmpb $0x5, %dl
movq %r15, 0x10(%rsp)
movq %rsi, 0x40(%rsp)
ja 0x31093
movq %rcx, %r14
imulq %rsi, %r14
addq %r15, %r14
leaq 0x7227f(%rip), %rdx     # 0xa3120
movq 0x48(%rsp), %rax
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x88(%rsp), %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x31239
movl %eax, %r15d
movq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x31245
movl %r15d, %edx
shrl $0x8, %edx
movw $0x1, %si
xorl %edi, %edi
leaq (%r14,%rbp), %rcx
xorl %r8d, %r8d
movzwl %si, %r10d
movl %r15d, %r9d
testl %r10d, %eax
je 0x30f04
movl %edx, %r9d
movb %r9b, (%rcx,%r8)
addl %esi, %esi
incq %r8
cmpq $0x4, %r8
jne 0x30ef5
movq 0x58(%rbx), %rcx
addq %rcx, %r14
incq %rdi
cmpq $0x4, %rdi
jne 0x30eee
jmp 0x31093
leaq (%r14,%rbp), %rax
movzbl 0x38(%rsp), %ecx
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
movl %ecx, (%rbp,%r14)
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)
movq 0x58(%rbx), %rcx
jmp 0x31093
movl $0x4, %r15d
movq %r13, %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x310f9
movw %ax, 0x2(%rbp,%r14)
movq %r13, %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x310f9
movw %ax, (%rbp,%r14)
movq 0x58(%rbx), %rcx
addq %rcx, %r14
decq %r15
jne 0x30f68
jmp 0x31093
movb $0x1, %r15b
movq %r13, %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x310f9
movl %eax, %edx
shrl $0x8, %edx
movb $0x1, %sil
movzbl %dl, %ecx
movl %ecx, %edi
shll $0x8, %edi
orl %ecx, %edi
movw %di, 0x2(%rbp,%r14)
movzbl %al, %ecx
movl %ecx, %edi
shll $0x8, %edi
orl %ecx, %edi
movw %di, (%rbp,%r14)
movq 0x58(%rbx), %rcx
addq %rcx, %r14
testb $0x1, %sil
movl $0x0, %esi
jne 0x30fc9
testb $0x1, %r15b
movl $0x0, %r15d
jne 0x30fae
jmp 0x31093
movb $0x1, %al
movl %eax, 0x18(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x318c7
testl %eax, %eax
js 0x310f9
movq %r12, %rsi
movq %rbx, %r12
leaq (%r14,%rbp), %rbx
movw %ax, 0x2(%rbp,%r14)
movq 0x58(%r12), %rcx
movb %ah, 0x3(%rcx,%rbx)
movq 0x58(%r12), %rcx
movb %al, 0x2(%rcx,%rbx)
movq %r13, %r15
movq %r13, %rdi
movq %rsi, %r13
callq 0x318c7
testl %eax, %eax
js 0x31117
movw %ax, (%rbx)
movq 0x58(%r12), %rcx
movb %ah, 0x1(%rbx,%rcx)
movq 0x58(%r12), %rcx
movb %al, (%rbx,%rcx)
movq 0x58(%r12), %rcx
leaq (%r14,%rcx,2), %r14
testb $0x1, 0x18(%rsp)
movl $0x0, %eax
movq %r12, %rbx
movq %r13, %r12
movq %r15, %r13
jne 0x3100e
movq 0x10(%rsp), %r15
addq $0x4, %r15
movq 0x40(%rsp), %rax
leaq 0x4(%rax), %r14
cmpq %rcx, %r15
cmovbq %rax, %r14
movl $0x0, %eax
cmovaeq %rax, %r15
movq 0x30(%rsp), %rcx
incq %rcx
cmpq 0x50(%rsp), %rcx
movl 0x20(%rsp), %edx
jne 0x30e64
movq 0x60(%rbx), %rax
jmp 0x310d5
movq %rsi, %r14
cmpq %rax, %r14
movq 0x78(%rsp), %rdi
jb 0x30dc7
cmpb $0x0, (%rbx)
jne 0x310f2
movq 0x8(%rsp), %rdi
callq 0x8270
xorl %ebp, %ebp
jmp 0x311c3
leaq 0x741bc(%rip), %rdi     # 0xa52bc
movq 0x28(%rsp), %rdx
leaq 0x90(%rsp), %rsi
callq 0x9c0c
jmp 0x311a8
leaq 0x7419e(%rip), %rdi     # 0xa52bc
movq %r12, %rbx
jmp 0x31100
movq 0x9fe66(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x73b51(%rip), %rsi     # 0xa4c85
movq $0x0, 0x8(%rsp)
xorl %eax, %eax
callq 0x8290
jmp 0x311a8
movq 0x9fe43(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x73c98(%rip), %rsi     # 0xa4def
xorl %eax, %eax
callq 0x8290
jmp 0x311a8
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x9b53
movq $0x0, 0x8(%rsp)
jmp 0x311a8
leaq 0x73b94(%rip), %rdi     # 0xa4d13
callq 0x83f0
movb $-0x1, %bpl
jmp 0x311c3
movq 0x9fe00(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
movq (%r14), %rax
movq (%rax,%rdx,8), %rcx
leaq 0x73bae(%rip), %rsi     # 0xa4d4f
xorl %eax, %eax
callq 0x8290
movb $-0x1, %bpl
cmpb $0x0, (%rbx)
jne 0x311c3
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x31281
callq 0x8270
movl %ebp, %eax
addq $0x10b8, %rsp           # imm = 0x10B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x9fdb2(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x73d51(%rip), %rsi     # 0xa4f39
xorl %eax, %eax
callq 0x8290
jmp 0x3093d
incl %edx
movq 0x9fd93(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x73c83(%rip), %rsi     # 0xa4e8a
movl %r8d, %ecx
jmp 0x30936
movq 0x9fd7a(%rip), %rax     # 0xd0f90
movq (%rax), %rdi
leaq 0x73d80(%rip), %rsi     # 0xa4fa0
movq %r14, %rdx
xorl %eax, %eax
callq 0x8290
jmp 0x3093d
callq 0x9b86
jmp 0x3093d
leaq 0x73fe8(%rip), %rdi     # 0xa5228
jmp 0x31100
leaq 0x74026(%rip), %rdi     # 0xa5272
jmp 0x31100
movq 0x28(%rsp), %rdx
leaq 0x73f81(%rip), %rdi     # 0xa51de
jmp 0x31105
leaq 0x5e8ac(%rip), %rdi     # 0x8fb15
leaq 0x721a3(%rip), %rsi     # 0xa3413
leaq 0x73f1c(%rip), %rcx     # 0xa5193
movl $0x513, %edx            # imm = 0x513
callq 0x8240
leaq 0x73ac0(%rip), %rdi     # 0xa4d48
leaq 0x72184(%rip), %rsi     # 0xa3413
leaq 0x739da(%rip), %rcx     # 0xa4c70
movl $0x6ad, %edx            # imm = 0x6AD
callq 0x8240