// File: /workspace/github_c_makefile_star2_O1/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bcftools/bcf.c
// Function: bcf_fmt_core
void bcf_fmt_core(const bcf_hdr_t *h, bcf1_t *b, kstring_t *s)
{
	int i, j, x;
	s->l = 0;
	if (h->n_ref) kputs(h->ns[b->tid], s);
	else kputw(b->tid, s);
	kputc('\t', s);
	kputw(b->pos + 1, s); kputc('\t', s);
	fmt_str(b->str, s); kputc('\t', s);
	fmt_str(b->ref, s); kputc('\t', s);
	fmt_str(b->alt, s); kputc('\t', s);
	ksprintf(s, "%.3g", b->qual); kputc('\t', s);
	fmt_str(b->flt, s); kputc('\t', s);
	fmt_str(b->info, s);
	if (b->fmt[0]) {
		kputc('\t', s);
		fmt_str(b->fmt, s);
	}
	x = b->n_alleles * (b->n_alleles + 1) / 2;
	if (b->n_gi == 0) return;
    int iPL = -1;
    if ( b->n_alleles > 2 ) {
        for (i=0; i<b->n_gi; i++) {
            if ( b->gi[i].fmt == bcf_str2int("PL", 2) ) {
                iPL = i;
                break;
            }
        }
    }
	for (j = 0; j < h->n_smpl; ++j) {
        int ploidy = b->ploidy ? b->ploidy[j] : 2;
		kputc('\t', s);
		for (i = 0; i < b->n_gi; ++i) {
			if (i) kputc(':', s);
			if (b->gi[i].fmt == bcf_str2int("PL", 2)) {
				uint8_t *d = (uint8_t*)b->gi[i].data + j * x;
				int k;
                if ( ploidy==1 )
                    for (k=0; k<b->n_alleles; k++)
                    {
                        if (k>0) kputc(',', s);
                        kputw(d[(k+1)*(k+2)/2-1], s);
                    }
                else
                    for (k = 0; k < x; ++k) {
                        if (k > 0) kputc(',', s);
                        kputw(d[k], s);
                    }
			} else if (b->gi[i].fmt == bcf_str2int("DP", 2) || b->gi[i].fmt == bcf_str2int("DV", 2)) {
				kputw(((uint16_t*)b->gi[i].data)[j], s);
			} else if (b->gi[i].fmt == bcf_str2int("GQ", 2)) {
				kputw(((uint8_t*)b->gi[i].data)[j], s);
			} else if (b->gi[i].fmt == bcf_str2int("SP", 2)) {
				kputw(((int32_t*)b->gi[i].data)[j], s);
			} else if (b->gi[i].fmt == bcf_str2int("GT", 2)) {
                int y = ((uint8_t*)b->gi[i].data)[j];
                if ( ploidy==1 )
                {
                    if ( y>>7&1 )
                        kputc('.', s);
                    else 
                        kputc('0' + (y>>3&7), s);
                }
                else
                {
                    if ( y>>7&1 )
                        kputsn("./.", 3, s);
                    else { 
                        kputc('0' + (y>>3&7), s);
                        kputc("/|"[y>>6&1], s);
                        kputc('0' + (y&7), s);
                    }
                }
			} else if (b->gi[i].fmt == bcf_str2int("GL", 2)) {
				float *d = (float*)b->gi[i].data + j * x;
				int k;
				//printf("- %lx\n", d);
				for (k = 0; k < x; ++k) {
					if (k > 0) kputc(',', s);
					ksprintf(s, "%.2f", d[k]);
				}
			} else kputc('.', s); // custom fields
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq $0x0, (%rdx)
cmpl $0x0, (%rdi)
je 0x3aa5a
movq 0x30(%r15), %rax
movslq (%r14), %rcx
movq (%rax,%rcx,8), %r13
movq %r13, %rdi
callq 0x3360
movslq %eax, %r12
leaq 0x1(%r12), %rax
cmpq 0x8(%rbx), %rax
jb 0x3aa37
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq 0x10(%rbx), %rdi
addq (%rbx), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x37d0
addq (%rbx), %r12
movq %r12, (%rbx)
movq 0x10(%rbx), %rax
movb $0x0, (%rax,%r12)
jmp 0x3aa65
movl (%r14), %edi
movq %rbx, %rsi
callq 0x3b5e2
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3aab6
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl 0x4(%r14), %edi
incl %edi
movq %rbx, %rsi
callq 0x3b5e2
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3ab32
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3abac
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3ac26
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x28(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3aca0
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
cvtss2sd 0x10(%r14), %xmm0
leaq 0xa01e(%rip), %rsi      # 0x44ce8
movq %rbx, %rdi
movb $0x1, %al
callq 0x21558
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3ad25
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x30(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3ad9f
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
movq 0x40(%r14), %rax
cmpb $0x0, (%rax)
je 0x3ae4b
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3ae22
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
callq 0x3b771
cmpl $0x0, 0x48(%r14)
je 0x3b5d3
cmpl $0x0, 0x4(%r15)
jle 0x3b5d3
movl 0x58(%r14), %eax
leal 0x1(%rax), %ecx
imull %eax, %ecx
movl %ecx, %eax
shrl $0x1f, %eax
movl %ecx, 0xc(%rsp)
addl %ecx, %eax
sarl %eax
cltq
movl %eax, %ebp
movq %rax, 0x20(%rsp)
leaq (,%rax,4), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, (%rsp)
movq %r15, 0x30(%rsp)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x3aec7
movq (%rsp), %rcx
cmpb $0x1, (%rax,%rcx)
sete %al
movl %eax, 0x8(%rsp)
jmp 0x3aecf
movl $0x0, 0x8(%rsp)
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3af20
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x9, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
cmpl $0x0, 0x48(%r14)
jle 0x3b598
movq (%rsp), %rax
imulq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
xorl %r12d, %r12d
testq %r12, %r12
je 0x3afcd
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3afb0
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x3a, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x50(%r14), %rax
movq %r12, %rcx
shlq $0x4, %rcx
movl (%rax,%rcx), %edx
cmpl $0x4750, %edx           # imm = 0x4750
movq %r12, 0x40(%rsp)
jle 0x3b08c
cmpl $0x504b, %edx           # imm = 0x504B
jg 0x3b166
cmpl $0x4751, %edx           # imm = 0x4751
je 0x3b2c5
cmpl $0x4754, %edx           # imm = 0x4754
jne 0x3b25d
movq 0x8(%rax,%rcx), %rax
movq (%rsp), %rcx
movzbl (%rax,%rcx), %r12d
cmpb $0x0, 0x8(%rsp)
je 0x3b2ed
testb %r12b, %r12b
js 0x3b25d
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b083
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
shrb $0x3, %r12b
jmp 0x3b43d
cmpl $0x4450, %edx           # imm = 0x4450
je 0x3b24b
cmpl $0x4456, %edx           # imm = 0x4456
je 0x3b24b
cmpl $0x474c, %edx           # imm = 0x474C
jne 0x3b25d
cmpl $0x2, 0xc(%rsp)
jl 0x3b462
movq 0x8(%rax,%rcx), %r12
addq 0x18(%rsp), %r12
xorl %r13d, %r13d
testq %r13, %r13
je 0x3b13b
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b11e
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x2c, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorps %xmm0, %xmm0
cvtss2sd (%r12,%r13,4), %xmm0
movq %rbx, %rdi
leaq 0x9ba6(%rip), %rsi      # 0x44cf4
movb $0x1, %al
callq 0x21558
incq %r13
cmpq %r13, %rbp
jne 0x3b0c8
jmp 0x3b462
cmpl $0x5350, %edx           # imm = 0x5350
je 0x3b2d4
cmpl $0x504c, %edx           # imm = 0x504C
jne 0x3b25d
movq 0x8(%rax,%rcx), %r12
cmpb $0x0, 0x8(%rsp)
je 0x3b47c
cmpl $0x0, 0x58(%r14)
jle 0x3b462
addq 0x38(%rsp), %r12
decq %r12
xorl %r13d, %r13d
movq %r14, %r15
testl %r13d, %r13d
je 0x3b21a
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b1fd
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x2c, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
leal 0x1(%r13), %r14d
addl $0x2, %r13d
imull %r14d, %r13d
shrl %r13d
movzbl (%r12,%r13), %edi
movq %rbx, %rsi
callq 0x3b5e2
movl %r14d, %r13d
cmpl 0x58(%r15), %r14d
movq %r15, %r14
jl 0x3b1a4
jmp 0x3b462
movq 0x8(%rax,%rcx), %rax
movq (%rsp), %rcx
movzwl (%rax,%rcx,2), %edi
jmp 0x3b2e0
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b2ae
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rcx,%rax)
jmp 0x3b457
movq 0x8(%rax,%rcx), %rax
movq (%rsp), %rcx
movzbl (%rax,%rcx), %edi
jmp 0x3b2e0
movq 0x8(%rax,%rcx), %rax
movq (%rsp), %rcx
movl (%rax,%rcx,4), %edi
movq %rbx, %rsi
callq 0x3b5e2
jmp 0x3b462
testb %r12b, %r12b
js 0x3b51c
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b347
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movl %r12d, %eax
shrb $0x3, %al
andb $0x7, %al
orb $0x30, %al
movq (%rbx), %rcx
movq 0x10(%rbx), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
movb %al, (%rdx,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl %r12d, %eax
shrl $0x6, %eax
leaq 0x9977(%rip), %rcx      # 0x44cf1
movb (%rax,%rcx), %r13b
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b3cf
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb %r13b, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b43d
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
andb $0x7, %r12b
orb $0x30, %r12b
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb %r12b, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq 0x40(%rsp), %r12
incq %r12
movslq 0x48(%r14), %rax
cmpq %rax, %r12
jl 0x3af5a
jmp 0x3b598
cmpl $0x2, 0xc(%rsp)
jl 0x3b462
addq 0x10(%rsp), %r12
xorl %r13d, %r13d
testq %r13, %r13
je 0x3b4fe
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3b4e1
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x2c, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movzbl (%r12,%r13), %edi
movq %rbx, %rsi
callq 0x3b5e2
incq %r13
cmpq %r13, %rbp
jne 0x3b48b
jmp 0x3b462
movq (%rbx), %rax
addq $0x4, %rax
cmpq 0x8(%rbx), %rax
jb 0x3b56e
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3720
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x2e, 0x2(%rcx,%rax)
movw $0x2f2e, (%rcx,%rax)    # imm = 0x2F2E
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x3(%rax), %rdx
movq %rdx, (%rbx)
movb $0x0, 0x3(%rcx,%rax)
jmp 0x3b462
movq (%rsp), %rdx
incq %rdx
movq 0x30(%rsp), %rax
movslq 0x4(%rax), %rax
movq 0x18(%rsp), %rcx
addq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x10(%rsp), %rcx
addq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %rdx, (%rsp)
cmpq %rax, %rdx
jl 0x3aead
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq