// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/vcf.c
// Function: bcf_format_gt_v2
int bcf_format_gt_v2(const bcf_hdr_t *hdr, bcf_fmt_t *fmt, int isample, kstring_t *str)
{
    uint32_t e = 0;
    int ploidy = 1, anyunphased = 0;
    int32_t val0 = 0;
    size_t pos = str ? str->l : 0;

    #define BRANCH(type_t, convert, missing, vector_end) { \
        uint8_t *ptr = fmt->p + isample*fmt->size; \
        int i; \
        for (i=0; i<fmt->n; i++, ptr += sizeof(type_t)) \
        { \
            type_t val = convert(ptr); \
            if ( val == vector_end ) break; \
            if (!i) { val0 = val; } \
            if (i) { \
                e |= kputc("/|"[val & 1], str) < 0; \
                anyunphased |= !(val & 1); \
            } \
            if (!(val >> 1)) e |= kputc('.', str) < 0; \
            else e |= kputw((val >> 1) - 1, str) < 0; \
        } \
        if (i == 0) e |= kputc('.', str) < 0; \
        ploidy = i; \
    }
    switch (fmt->type) {
        case BCF_BT_INT8:  BRANCH(int8_t,  le_to_i8,  bcf_int8_missing,
            bcf_int8_vector_end); break;
        case BCF_BT_INT16: BRANCH(int16_t, le_to_i16, bcf_int16_missing,
            bcf_int16_vector_end); break;
        case BCF_BT_INT32: BRANCH(int32_t, le_to_i32, bcf_int32_missing,
            bcf_int32_vector_end); break;
        case BCF_BT_NULL:  e |= kputc('.', str) < 0; break;
        default: hts_log_error("Unexpected type %d", fmt->type); return -2;
    }
    #undef BRANCH

    if (hdr && get_hdr_aux(hdr)->version >= VCF44) {
        //output which supports prefixed phasing

        /* update 1st allele's phasing if required and append rest to it.
        use prefixed phasing only when it is a must. i.e. without which the
        inferred value will be incorrect */
        if (val0 & 1) {
            /* 1st one is phased, if ploidy is > 1 and an unphased allele exists
             need to specify explicitly */
            e |= (ploidy > 1 && anyunphased) ?
                    (kinsert_char('|', pos, str) < 0) :
                        (ploidy <= 1 && !((val0 >> 1)) ? //|. needs explicit o/p
                            (kinsert_char('|', pos, str) < 0) :
                            0);
        } else {
            /* 1st allele is unphased, if ploidy is = 1 or allele is '.' or
             ploidy > 1 and no other unphased allele exist, need to specify
             explicitly */
            e |= ((ploidy <= 1 && val0 != 0) || (ploidy > 1 && !anyunphased)) ?
                    (kinsert_char('/', pos, str) < 0) :
                    0;
        }
    }
    return e == 0 ? 0 : -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rsi, %r13
movq %rdi, %r14
testq %rcx, %rcx
je 0x3a49d
movq (%rbx), %rax
jmp 0x3a49f
xorl %eax, %eax
movl 0xc(%r13), %ecx
cmpq $0x3, %rcx
ja 0x3ac27
movq %rax, 0x20(%rsp)
leaq 0x709e7(%rip), %rax     # 0xaaea0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
movq %r13, 0x18(%rsp)
movq %r14, 0x30(%rsp)
jmpq *%rcx
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3acc0
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rcx, %rcx
movl $0x0, %r15d
cmoveq %rdx, %r15
addq %rax, %r15
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x4860
testq %rax, %rax
je 0x3ae5f
movq %rax, 0x10(%rbx)
movq %r15, 0x8(%rbx)
movq (%rbx), %rcx
jmp 0x3acc4
cmpl $0x0, 0x4(%r13)
jle 0x3ac18
imull 0x8(%r13), %edx
movslq %edx, %rax
addq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
movq 0x28(%rsp), %rax
movswl (%rax,%r14,2), %r13d
cmpl $0xffff8001, %r13d      # imm = 0xFFFF8001
je 0x3ac4b
testl %r14d, %r14d
cmovel %r13d, %r12d
je 0x3a5e3
movl %r13d, %r15d
andl $0x1, %r15d
leaq 0x71ead(%rip), %rax     # 0xac429
movb (%r15,%rax), %sil
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a5e7
movb %sil, 0xb(%rsp)
movq %r12, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3a70e
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rsp), %r12
movb 0xb(%rsp), %sil
jmp 0x3a5eb
movl %ebp, %edi
jmp 0x3a613
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb %sil, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %edi, %edi
orl %ebp, %edi
xorl $0x1, %r15d
orl 0xc(%rsp), %r15d
movl %r15d, 0xc(%rsp)
cmpw $0x1, %r13w
ja 0x3a67a
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a690
movl %edi, %r13d
movq %r12, %r15
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
movq 0x18(%rsp), %rsi
je 0x3a71d
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq %r15, %r12
movl %r13d, %edi
jmp 0x3a699
sarl %r13d
testl %r13d, %r13d
jle 0x3a6b6
movl %edi, %r15d
decl %r13d
movl %r13d, %edi
jmp 0x3a744
movq 0x10(%rbx), %rax
movq 0x18(%rsp), %rsi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %ebp, %ebp
jmp 0x3a759
movq (%rbx), %rcx
leaq 0x3(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a72a
movl %edi, %r15d
movq %r12, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3a76d
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rsp), %r12
jmp 0x3a731
movl $0x1, %edi
movq 0x10(%rsp), %r12
jmp 0x3a603
movl $0x1, %ebp
movq %r15, %r12
movl %r13d, %edi
jmp 0x3a759
movl %edi, %r15d
movq 0x10(%rbx), %rax
movl $0x1, %edi
subl %r13d, %edi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2d, (%rax,%rcx)
movq %rbx, %rsi
callq 0x41065
movl %eax, %ebp
shrl $0x1f, %ebp
movq 0x18(%rsp), %rsi
movl %r15d, %edi
orl %edi, %ebp
incq %r14
cmpl 0x4(%rsi), %r14d
jl 0x3a54e
jmp 0x3aced
movl $0x1, %ebp
movq 0x10(%rsp), %r12
jmp 0x3a751
cmpl $0x0, 0x4(%r13)
jle 0x3ac18
imull 0x8(%r13), %edx
movslq %edx, %rax
addq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
movq 0x28(%rsp), %rax
movl (%rax,%r14,4), %r15d
movl $0x80000001, %eax       # imm = 0x80000001
cmpq %rax, %r15
je 0x3ac4b
testl %r14d, %r14d
cmovel %r15d, %r12d
je 0x3a83b
movl %r15d, %r13d
andl $0x1, %r13d
leaq 0x71c56(%rip), %rax     # 0xac429
movb (%r13,%rax), %sil
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a83f
movb %sil, 0xb(%rsp)
movq %r12, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3a961
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rsp), %r12
movb 0xb(%rsp), %sil
jmp 0x3a843
movl %ebp, %esi
jmp 0x3a870
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb %sil, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %esi, %esi
orl %ebp, %esi
xorl $0x1, %r13d
orl 0xc(%rsp), %r13d
movl %r13d, 0xc(%rsp)
movq 0x18(%rsp), %r13
cmpl $0x1, %r15d
ja 0x3a8d3
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a8ea
movl %esi, 0x10(%rsp)
movq %r12, %r15
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3a970
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq %r15, %r12
movl 0x10(%rsp), %esi
jmp 0x3a8ee
sarl %r15d
testl %r15d, %r15d
movl %esi, 0x10(%rsp)
jle 0x3a90b
decl %r15d
movl %r15d, %edi
jmp 0x3a991
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %ebp, %ebp
jmp 0x3a9a2
movq (%rbx), %rcx
leaq 0x3(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3a97a
movq %r12, %r13
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3a9b6
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq %r13, %r12
movq 0x18(%rsp), %r13
jmp 0x3a97e
movl $0x1, %esi
movq 0x10(%rsp), %r12
jmp 0x3a85b
movl $0x1, %ebp
movq %r15, %r12
jmp 0x3a99e
movq 0x10(%rbx), %rax
movl $0x1, %edi
subl %r15d, %edi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2d, (%rax,%rcx)
movq %rbx, %rsi
callq 0x41065
movl %eax, %ebp
shrl $0x1f, %ebp
movl 0x10(%rsp), %esi
orl %esi, %ebp
incq %r14
cmpl 0x4(%r13), %r14d
jl 0x3a7a5
jmp 0x3aced
movl $0x1, %ebp
movq %r13, %r12
movq 0x18(%rsp), %r13
jmp 0x3a99e
cmpl $0x0, 0x4(%r13)
jle 0x3ac18
imull 0x8(%r13), %edx
movslq %edx, %rax
addq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
movq 0x28(%rsp), %rax
movsbl (%rax,%r14), %r13d
cmpl $-0x7f, %r13d
je 0x3ac4b
testl %r14d, %r14d
cmovel %r13d, %r12d
je 0x3aa83
movl %r13d, %r15d
andl $0x1, %r15d
leaq 0x71a0d(%rip), %rax     # 0xac429
movb (%r15,%rax), %sil
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3aa87
movb %sil, 0xb(%rsp)
movq %r12, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3abad
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rsp), %r12
movb 0xb(%rsp), %sil
jmp 0x3aa8b
movl %ebp, %edi
jmp 0x3aab3
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb %sil, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %edi, %edi
orl %ebp, %edi
xorl $0x1, %r15d
orl 0xc(%rsp), %r15d
movl %r15d, 0xc(%rsp)
cmpb $0x1, %r13b
ja 0x3ab19
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3ab2f
movl %edi, %r13d
movq %r12, %r15
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
movq 0x18(%rsp), %rsi
je 0x3abbc
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq %r15, %r12
movl %r13d, %edi
jmp 0x3ab38
sarl %r13d
testl %r13d, %r13d
jle 0x3ab55
movl %edi, %r15d
decl %r13d
movl %r13d, %edi
jmp 0x3abe3
movq 0x10(%rbx), %rax
movq 0x18(%rsp), %rsi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %ebp, %ebp
jmp 0x3abf8
movq (%rbx), %rcx
leaq 0x3(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3abc9
movl %edi, %r15d
movq %r12, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3ac0c
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rsp), %r12
jmp 0x3abd0
movl $0x1, %edi
movq 0x10(%rsp), %r12
jmp 0x3aaa3
movl $0x1, %ebp
movq %r15, %r12
movl %r13d, %edi
jmp 0x3abf8
movl %edi, %r15d
movq 0x10(%rbx), %rax
movl $0x1, %edi
subl %r13d, %edi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2d, (%rax,%rcx)
movq %rbx, %rsi
callq 0x41065
movl %eax, %ebp
shrl $0x1f, %ebp
movq 0x18(%rsp), %rsi
movl %r15d, %edi
orl %edi, %ebp
incq %r14
cmpl 0x4(%rsi), %r14d
jl 0x3a9f1
jmp 0x3aced
movl $0x1, %ebp
movq 0x10(%rsp), %r12
jmp 0x3abf0
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
jmp 0x3ac54
leaq 0x717fe(%rip), %rsi     # 0xac42c
leaq 0x7100e(%rip), %rdx     # 0xabc43
movl $0x1, %edi
xorl %eax, %eax
callq 0x942d
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x3aee0
testl %r14d, %r14d
jne 0x3aced
movq (%rbx), %rcx
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3ac9d
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r15d, %r15d
testq %rcx, %rcx
cmoveq %rdx, %r15
addq %rax, %r15
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x4860
testq %rax, %rax
je 0x3ae55
movq %rax, 0x10(%rbx)
movq %r15, 0x8(%rbx)
movq (%rbx), %rcx
jmp 0x3aca1
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
xorl %eax, %eax
orl %eax, %ebp
xorl %r14d, %r14d
jmp 0x3aced
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movb $0x2e, (%rax,%rcx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl $0x1, %r14d
xorl %r12d, %r12d
movl $0x0, 0xc(%rsp)
xorl %ebp, %ebp
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x3aeda
movq 0x28(%rax), %rax
cmpl $0x3d18a0, 0x38(%rax)   # imm = 0x3D18A0
jl 0x3aeda
testb $0x1, %r12b
jne 0x3adad
xorl %eax, %eax
testl %r12d, %r12d
sete %al
xorl %ecx, %ecx
cmpl $0x0, 0xc(%rsp)
setne %cl
cmpl $0x2, %r14d
cmovael %ecx, %eax
movl %eax, %ecx
xorb $0x1, %cl
movzbl %cl, %r15d
testq %rbx, %rbx
je 0x3aed7
testb %al, %al
jne 0x3aed7
movq (%rbx), %rdx
movl $0x1, %r15d
cmpq 0x20(%rsp), %rdx
jb 0x3aed7
leaq 0x2(%rdx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3ae9d
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x4860
testq %rax, %rax
je 0x3aed7
movq %rax, %rsi
movq %rax, 0x10(%rbx)
movq %r14, 0x8(%rbx)
movq (%rbx), %rdx
jmp 0x3aea1
cmpl $0x2, %r14d
jb 0x3adce
cmpl $0x0, 0xc(%rsp)
je 0x3adce
movl $0x1, %r15d
testq %rbx, %rbx
je 0x3aed7
movq (%rbx), %rdx
jmp 0x3ae01
cmpl $0x2, %r14d
setae %cl
cmpl $0x2, %r12d
setae %al
orb %cl, %al
movl %eax, %ecx
xorb $0x1, %cl
movzbl %cl, %r15d
testq %rbx, %rbx
je 0x3aed7
testb %al, %al
jne 0x3aed7
movq (%rbx), %rdx
movl $0x1, %r15d
cmpq 0x20(%rsp), %rdx
jb 0x3aed7
leaq 0x2(%rdx), %rax
cmpq %rax, 0x8(%rbx)
jae 0x3ae77
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x4860
testq %rax, %rax
je 0x3aed7
movq %rax, %rsi
movq %rax, 0x10(%rbx)
movq %r14, 0x8(%rbx)
movq (%rbx), %rdx
jmp 0x3ae7b
movl $0x1, %eax
jmp 0x3acb9
movl $0x1, %r14d
movl $0x0, 0xc(%rsp)
movl $0x1, %ebp
jmp 0x3aced
movq 0x10(%rbx), %rsi
movq 0x20(%rsp), %r14
leaq (%rsi,%r14), %rdi
incq %rdi
addq %r14, %rsi
subq %r14, %rdx
callq 0x4850
movq 0x10(%rbx), %rax
movb $0x7c, (%rax,%r14)
jmp 0x3aec1
movq 0x10(%rbx), %rsi
movq 0x20(%rsp), %r14
leaq (%rsi,%r14), %rdi
incq %rdi
addq %r14, %rsi
subq %r14, %rdx
callq 0x4850
movq 0x10(%rbx), %rax
movb $0x2f, (%rax,%r14)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x0, 0x1(%rcx,%rax)
xorl %r15d, %r15d
orl %r15d, %ebp
xorl %eax, %eax
negl %ebp
sbbl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq