// File: /workspace/github_c_makefile_star2_O3/bluecmd[P]fst-example/gtkwave/fstapi.c
// Function: fstReaderProcessHier
int fstReaderProcessHier(void *ctx, FILE *fv)
{
struct fstReaderContext *xc = (struct fstReaderContext *)ctx;
char *str;
char *pnt;
int ch, scopetype;
int vartype;
uint32_t len, alias;
/* uint32_t maxvalpos=0; */
unsigned int num_signal_dyn = 65536;
int attrtype, subtype;
uint64_t attrarg;
fstHandle maxhandle_scanbuild;

if(!xc) return(0);

xc->longest_signal_value_len = 32; /* arbitrarily set at 32...this is much longer than an expanded double */

if(!xc->fh)
        {
        if(!fstReaderRecreateHierFile(xc))
                {
                return(0);
                }
        }

str = (char *)malloc(FST_ID_NAM_ATTR_SIZ+1);

if(fv)
        {
        char time_dimension[2] = {0, 0};
        int time_scale = 1;

        fprintf(fv, "$date\n\t%s\n$end\n", xc->date);
        fprintf(fv, "$version\n\t%s\n$end\n", xc->version);
        if(xc->timezero) fprintf(fv, "$timezero\n\t%" PRId64 "\n$end\n", xc->timezero);

        switch(xc->timescale)
                {
                case  2:        time_scale = 100;               time_dimension[0] = 0;   break;
                case  1:        time_scale = 10; /* fallthrough */
                case  0:                                        time_dimension[0] = 0;   break;

                case -1:        time_scale = 100;               time_dimension[0] = 'm'; break;
                case -2:        time_scale = 10; /* fallthrough */
                case -3:                                        time_dimension[0] = 'm'; break;

                case -4:        time_scale = 100;               time_dimension[0] = 'u'; break;
                case -5:        time_scale = 10; /* fallthrough */
                case -6:                                        time_dimension[0] = 'u'; break;

                case -10:       time_scale = 100;               time_dimension[0] = 'p'; break;
                case -11:       time_scale = 10; /* fallthrough */
                case -12:                                       time_dimension[0] = 'p'; break;

                case -13:       time_scale = 100;               time_dimension[0] = 'f'; break;
                case -14:       time_scale = 10; /* fallthrough */
                case -15:                                       time_dimension[0] = 'f'; break;

                case -16:       time_scale = 100;               time_dimension[0] = 'a'; break;
                case -17:       time_scale = 10; /* fallthrough */
                case -18:                                       time_dimension[0] = 'a'; break;

                case -19:       time_scale = 100;               time_dimension[0] = 'z'; break;
                case -20:       time_scale = 10; /* fallthrough */
                case -21:                                       time_dimension[0] = 'z'; break;

                case -7:        time_scale = 100;               time_dimension[0] = 'n'; break;
                case -8:        time_scale = 10; /* fallthrough */
                case -9:
                default:                                        time_dimension[0] = 'n'; break;
                }

        if(fv) fprintf(fv, "$timescale\n\t%d%ss\n$end\n", time_scale, time_dimension);
        }

xc->maxhandle = 0;
xc->num_alias = 0;

free(xc->signal_lens);
xc->signal_lens = (uint32_t *)malloc(num_signal_dyn*sizeof(uint32_t));

free(xc->signal_typs);
xc->signal_typs = (unsigned char *)malloc(num_signal_dyn*sizeof(unsigned char));

fstReaderFseeko(xc, xc->fh, 0, SEEK_SET);
while(!feof(xc->fh))
        {
        int tag = fgetc(xc->fh);
        switch(tag)
                {
                case FST_ST_VCD_SCOPE:
                        scopetype = fgetc(xc->fh);
                        if((scopetype < FST_ST_MIN) || (scopetype > FST_ST_MAX)) scopetype = FST_ST_VCD_MODULE;
                        pnt = str;
                        while((ch = fgetc(xc->fh)))
                                {
                                *(pnt++) = ch;
                                }; /* scopename */
                        *pnt = 0;
                        while(fgetc(xc->fh)) { }; /* scopecomp */

                        if(fv) fprintf(fv, "$scope %s %s $end\n", modtypes[scopetype], str);
                        break;

                case FST_ST_VCD_UPSCOPE:
                        if(fv) fprintf(fv, "$upscope $end\n");
                        break;

                case FST_ST_GEN_ATTRBEGIN:
                        attrtype = fgetc(xc->fh);
                        subtype = fgetc(xc->fh);
                        pnt = str;
                        while((ch = fgetc(xc->fh)))
                                {
                                *(pnt++) = ch;
                                }; /* attrname */
                        *pnt = 0;

                        if(!str[0]) { strcpy(str, "\"\""); }

                        attrarg = fstReaderVarint64(xc->fh);

                        if(fv && xc->use_vcd_extensions)
                                {
                                switch(attrtype)
                                        {
                                        case FST_AT_ARRAY:      if((subtype < FST_AR_NONE) || (subtype > FST_AR_MAX)) subtype = FST_AR_NONE;
                                                                fprintf(fv, "$attrbegin %s %s %s %" PRId64 " $end\n", attrtypes[attrtype], arraytypes[subtype], str, attrarg);
                                                                break;
                                        case FST_AT_ENUM:       if((subtype < FST_EV_SV_INTEGER) || (subtype > FST_EV_MAX)) subtype = FST_EV_SV_INTEGER;
                                                                fprintf(fv, "$attrbegin %s %s %s %" PRId64 " $end\n", attrtypes[attrtype], enumvaluetypes[subtype], str, attrarg);
                                                                break;
                                        case FST_AT_PACK:       if((subtype < FST_PT_NONE) || (subtype > FST_PT_MAX)) subtype = FST_PT_NONE;
                                                                fprintf(fv, "$attrbegin %s %s %s %" PRId64 " $end\n", attrtypes[attrtype], packtypes[subtype], str, attrarg);
                                                                break;
                                        case FST_AT_MISC:
                                        default:                attrtype = FST_AT_MISC;
                                                                if(subtype == FST_MT_COMMENT)
                                                                        {
                                                                        fprintf(fv, "$comment\n\t%s\n$end\n", str);
                                                                        }
                                                                        else
                                                                        {
                                                                        if((subtype == FST_MT_SOURCESTEM)||(subtype == FST_MT_SOURCEISTEM))
                                                                                {
                                                                                int sidx_skiplen_dummy = 0;
                                                                                uint64_t sidx = fstGetVarint64((unsigned char *)str, &sidx_skiplen_dummy);

                                                                                fprintf(fv, "$attrbegin %s %02x %" PRId64 " %" PRId64 " $end\n", attrtypes[attrtype], subtype, sidx, attrarg);
                                                                                }
                                                                                else
                                                                                {
                                                                                fprintf(fv, "$attrbegin %s %02x %s %" PRId64 " $end\n", attrtypes[attrtype], subtype, str, attrarg);
                                                                                }
                                                                        }
                                                                break;
                                        }
                                }
                        break;

                case FST_ST_GEN_ATTREND:
                        if(fv && xc->use_vcd_extensions) fprintf(fv, "$attrend $end\n");
                        break;

                case FST_VT_VCD_EVENT:
                case FST_VT_VCD_INTEGER:
                case FST_VT_VCD_PARAMETER:
                case FST_VT_VCD_REAL:
                case FST_VT_VCD_REAL_PARAMETER:
                case FST_VT_VCD_REG:
                case FST_VT_VCD_SUPPLY0:
                case FST_VT_VCD_SUPPLY1:
                case FST_VT_VCD_TIME:
                case FST_VT_VCD_TRI:
                case FST_VT_VCD_TRIAND:
                case FST_VT_VCD_TRIOR:
                case FST_VT_VCD_TRIREG:
                case FST_VT_VCD_TRI0:
                case FST_VT_VCD_TRI1:
                case FST_VT_VCD_WAND:
                case FST_VT_VCD_WIRE:
                case FST_VT_VCD_WOR:
                case FST_VT_VCD_PORT:
                case FST_VT_VCD_SPARRAY:
                case FST_VT_VCD_REALTIME:
                case FST_VT_GEN_STRING:
                case FST_VT_SV_BIT:
                case FST_VT_SV_LOGIC:
                case FST_VT_SV_INT:
                case FST_VT_SV_SHORTINT:
                case FST_VT_SV_LONGINT:
                case FST_VT_SV_BYTE:
                case FST_VT_SV_ENUM:
                case FST_VT_SV_SHORTREAL:
                        vartype = tag;
                        /* vardir = */ fgetc(xc->fh); /* unused in VCD reader, but need to advance read pointer */
                        pnt = str;
                        while((ch = fgetc(xc->fh)))
                                {
                                *(pnt++) = ch;
                                }; /* varname */
                        *pnt = 0;
                        len = fstReaderVarint32(xc->fh);
                        alias = fstReaderVarint32(xc->fh);

                        if(!alias)
                                {
                                if(xc->maxhandle == num_signal_dyn)
                                        {
                                        num_signal_dyn *= 2;
                                        xc->signal_lens = (uint32_t *)realloc(xc->signal_lens, num_signal_dyn*sizeof(uint32_t));
                                        xc->signal_typs = (unsigned char *)realloc(xc->signal_typs, num_signal_dyn*sizeof(unsigned char));
                                        }
                                xc->signal_lens[xc->maxhandle] = len;
                                xc->signal_typs[xc->maxhandle] = vartype;

                                /* maxvalpos+=len; */
                                if(len > xc->longest_signal_value_len)
                                        {
                                        xc->longest_signal_value_len = len;
                                        }

                                if((vartype == FST_VT_VCD_REAL) || (vartype == FST_VT_VCD_REAL_PARAMETER) || (vartype == FST_VT_VCD_REALTIME) || (vartype == FST_VT_SV_SHORTREAL))
                                        {
                                        len = (vartype != FST_VT_SV_SHORTREAL) ? 64 : 32;
                                        xc->signal_typs[xc->maxhandle] = FST_VT_VCD_REAL;
                                        }
                                if(fv)
                                        {
                                        char vcdid_buf[16];
                                        uint32_t modlen = (vartype != FST_VT_VCD_PORT) ? len : ((len - 2) / 3);
                                        fstVcdID(vcdid_buf, xc->maxhandle+1);
                                        fprintf(fv, "$var %s %" PRIu32 " %s %s $end\n", vartypes[vartype], modlen, vcdid_buf, str);
                                        }
                                xc->maxhandle++;
                                }
                                else
                                {
                                if((vartype == FST_VT_VCD_REAL) || (vartype == FST_VT_VCD_REAL_PARAMETER) || (vartype == FST_VT_VCD_REALTIME) || (vartype == FST_VT_SV_SHORTREAL))
                                        {
                                        len = (vartype != FST_VT_SV_SHORTREAL) ? 64 : 32;
                                        xc->signal_typs[xc->maxhandle] = FST_VT_VCD_REAL;
                                        }
                                if(fv)
                                        {
                                        char vcdid_buf[16];
                                        uint32_t modlen = (vartype != FST_VT_VCD_PORT) ? len : ((len - 2) / 3);
                                        fstVcdID(vcdid_buf, alias);
                                        fprintf(fv, "$var %s %" PRIu32 " %s %s $end\n", vartypes[vartype], modlen, vcdid_buf, str);
                                        }
                                xc->num_alias++;
                                }

                        break;

                default:
                        break;
                }
        }
if(fv) fprintf(fv, "$enddefinitions $end\n");

maxhandle_scanbuild = xc->maxhandle ? xc->maxhandle : 1; /*scan-build warning suppression, in reality we have at least one signal */

xc->signal_lens = (uint32_t *)realloc(xc->signal_lens, maxhandle_scanbuild*sizeof(uint32_t));
xc->signal_typs = (unsigned char *)realloc(xc->signal_typs, maxhandle_scanbuild*sizeof(unsigned char));

free(xc->process_mask);
xc->process_mask = (unsigned char *)calloc(1, (maxhandle_scanbuild+7)/8);

free(xc->temp_signal_value_buf);
xc->temp_signal_value_buf = (unsigned char *)malloc(xc->longest_signal_value_len + 1);

xc->var_count = xc->maxhandle + xc->num_alias;

free(str);
return(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorl %r14d, %r14d
testq %rdi, %rdi
je 0xa0b5
movq %rsi, %r15
movq %rdi, %rbx
movl $0x20, 0x68(%rdi)
cmpq $0x0, 0x8(%rdi)
jne 0x9e6b
movq %rbx, %rdi
callq 0x958e
testl %eax, %eax
je 0xa0b5
movl $0x11001, %edi          # imm = 0x11001
callq 0x2270
movq %rax, %r14
testq %r15, %r15
je 0x9fa9
movw $0x0, -0x40(%rbp)
leaq 0xfc(%rbx), %rdx
leaq 0xa642(%rip), %rsi      # 0x144d7
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
leaq 0x7b(%rbx), %rdx
leaq 0xa63d(%rip), %rsi      # 0x144e7
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
movq 0x178(%rbx), %rdx
testq %rdx, %rdx
je 0x9ed1
leaq 0xa633(%rip), %rsi      # 0x144fa
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
movzbl 0x78(%rbx), %eax
movl $0x1, %edx
cmpl $0xea, %eax
jle 0x9f09
addl $0xffffff15, %eax       # imm = 0xFFFFFF15
cmpl $0x14, %eax
ja 0x9f4c
leaq 0xa27a(%rip), %rcx      # 0x1416c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xa, %edx
movb $0x7a, -0x40(%rbp)
jmp 0x9f94
testl %eax, %eax
je 0xa5ec
cmpl $0x1, %eax
je 0xa5e7
cmpl $0x2, %eax
jne 0x9f4c
movb $0x0, -0x40(%rbp)
jmp 0x9f8f
movl $0xa, %edx
movb $0x6d, -0x40(%rbp)
jmp 0x9f94
movb $0x75, -0x40(%rbp)
jmp 0x9f8f
movb $0x70, -0x40(%rbp)
jmp 0x9f8f
movl $0xa, %edx
movb $0x75, -0x40(%rbp)
jmp 0x9f94
movl $0xa, %edx
movb $0x6e, -0x40(%rbp)
jmp 0x9f94
movb $0x66, -0x40(%rbp)
jmp 0x9f8f
movb $0x61, -0x40(%rbp)
jmp 0x9f8f
movb $0x7a, -0x40(%rbp)
jmp 0x9f8f
movb $0x6e, -0x40(%rbp)
jmp 0x9f8f
movl $0xa, %edx
movb $0x61, -0x40(%rbp)
jmp 0x9f94
movl $0xa, %edx
movb $0x66, -0x40(%rbp)
jmp 0x9f94
movl $0xa, %edx
movb $0x70, -0x40(%rbp)
jmp 0x9f94
movb $0x6d, -0x40(%rbp)
movl $0x64, %edx
leaq 0xa574(%rip), %rsi      # 0x1450f
leaq -0x40(%rbp), %rcx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
movq %r15, -0x30(%rbp)
movl $0x0, 0x38(%rbx)
movq $0x0, 0x40(%rbx)
movq 0x50(%rbx), %rdi
callq 0x2050
movl $0x40000, %edi          # imm = 0x40000
callq 0x2270
movq %rax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
callq 0x2050
movl $0x10000, %edi          # imm = 0x10000
callq 0x2270
movq %rax, 0x58(%rbx)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2320
testl %eax, %eax
jns 0xa002
orb $0x1, 0x697(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2220
testl %eax, %eax
je 0xa0c7
movq -0x30(%rbp), %rcx
testq %rcx, %rcx
je 0xa032
leaq 0xa5c1(%rip), %rdi      # 0x145e4
movl $0x15, %esi
movl $0x1, %edx
callq 0x2390
movl 0x38(%rbx), %r15d
cmpl $0x1, %r15d
adcl $0x0, %r15d
movq 0x50(%rbx), %rdi
leaq (,%r15,4), %rsi
callq 0x22c0
movq %rax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movq %r15, %rsi
callq 0x22c0
movq %rax, 0x58(%rbx)
movq 0x60(%rbx), %rdi
callq 0x2050
addl $0x7, %r15d
shrl $0x3, %r15d
movl $0x1, %edi
movq %r15, %rsi
callq 0x21e0
movq %rax, 0x60(%rbx)
movq 0x70(%rbx), %rdi
callq 0x2050
movl 0x68(%rbx), %edi
incl %edi
callq 0x2270
movq %rax, 0x70(%rbx)
movl 0x38(%rbx), %eax
addq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
movq %r14, %rdi
callq 0x2050
movl $0x1, %r14d
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rax
decq %rax
movq %rax, -0x58(%rbp)
movl $0x10000, %eax          # imm = 0x10000
movq %rax, -0x50(%rbp)
movl $0xae4c415d, %r15d      # imm = 0xAE4C415D
movq %r14, -0x60(%rbp)
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r13d
cmpl $0x1e, %eax
jae 0xa31b
movq 0x8(%rbx), %rdi
callq 0x21a0
movq 0x8(%rbx), %rdi
callq 0x21a0
movq %r14, %r12
testl %eax, %eax
je 0xa129
movq %r14, %r12
movb %al, (%r12)
incq %r12
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
jne 0xa115
movb $0x0, (%r12)
movq 0x8(%rbx), %rdi
callq 0x9de5
movl %eax, %r12d
movq 0x8(%rbx), %rdi
callq 0x9de5
testl %eax, %eax
je 0xa1f6
cmpl $0x1d, %r13d
ja 0xa17a
movl $0x20100018, %ecx       # imm = 0x20100018
btl %r13d, %ecx
jae 0xa17a
xorl %r12d, %r12d
cmpl $0x1d, %r13d
setne %r12b
shll $0x5, %r12d
addl $0x20, %r12d
movq 0x58(%rbx), %rcx
movl 0x38(%rbx), %edx
movb $0x3, (%rcx,%rdx)
cmpq $0x0, -0x30(%rbp)
je 0xa1ed
cmpl $0x12, %r13d
jne 0xa198
addl $-0x2, %r12d
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %r12
shrq $0x21, %r12
leaq -0x40(%rbp), %r8
movq %r8, %rcx
decl %eax
movq %rax, %rdx
imulq %r15, %rdx
shrq $0x26, %rdx
imull $0x5e, %edx, %esi
movl %eax, %edi
subl %esi, %edi
addb $0x21, %dil
movb %dil, (%rcx)
incq %rcx
cmpl $0x5d, %eax
movl %edx, %eax
ja 0xa19f
movb $0x0, (%rcx)
movslq %r13d, %rax
leaq 0xdb1f(%rip), %rcx      # 0x17cf0
movq (%rcx,%rax,8), %rdx
movq -0x30(%rbp), %rdi
leaq 0xa3ed(%rip), %rsi      # 0x145cd
movl %r12d, %ecx
movq %r14, %r9
xorl %eax, %eax
callq 0x2210
incq 0x40(%rbx)
jmp 0xa305
movl 0x38(%rbx), %ecx
movq -0x50(%rbp), %r14
cmpl %r14d, %ecx
jne 0xa233
addl %r14d, %r14d
movq 0x50(%rbx), %rdi
leaq (,%r14,4), %rsi
callq 0x22c0
movq %rax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movq %r14, -0x50(%rbp)
movq %r14, %rsi
callq 0x22c0
movq %rax, 0x58(%rbx)
movl 0x38(%rbx), %ecx
jmp 0xa237
movq 0x58(%rbx), %rax
movq 0x50(%rbx), %rdx
movl %ecx, %ecx
movl %r12d, (%rdx,%rcx,4)
movl 0x38(%rbx), %ecx
movb %r13b, (%rax,%rcx)
cmpl 0x68(%rbx), %r12d
movq -0x60(%rbp), %r14
jbe 0xa256
movl %r12d, 0x68(%rbx)
cmpl $0x1d, %r13d
ja 0xa285
movl $0x20100018, %eax       # imm = 0x20100018
btl %r13d, %eax
jae 0xa285
xorl %r12d, %r12d
cmpl $0x1d, %r13d
setne %r12b
shll $0x5, %r12d
addl $0x20, %r12d
movq 0x58(%rbx), %rax
movl 0x38(%rbx), %ecx
movb $0x3, (%rax,%rcx)
cmpq $0x0, -0x30(%rbp)
je 0xa302
cmpl $0x12, %r13d
jne 0xa2a3
addl $-0x2, %r12d
movl $0xaaaaaaab, %eax       # imm = 0xAAAAAAAB
imulq %rax, %r12
shrq $0x21, %r12
leaq -0x40(%rbp), %r8
movl 0x38(%rbx), %eax
movq %r8, %rcx
incl %eax
je 0xa2d9
movq %r8, %rcx
decl %eax
movq %rax, %rdx
imulq %r15, %rdx
shrq $0x26, %rdx
imull $0x5e, %edx, %esi
movl %eax, %edi
subl %esi, %edi
addb $0x21, %dil
movb %dil, (%rcx)
incq %rcx
cmpl $0x5d, %eax
movl %edx, %eax
ja 0xa2b4
movb $0x0, (%rcx)
movslq %r13d, %rax
leaq 0xda0a(%rip), %rcx      # 0x17cf0
movq (%rcx,%rax,8), %rdx
movq -0x30(%rbp), %rdi
leaq 0xa2d8(%rip), %rsi      # 0x145cd
movl %r12d, %ecx
movq %r14, %r9
xorl %eax, %eax
callq 0x2210
incl 0x38(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2220
testl %eax, %eax
je 0xa0e4
jmp 0xa013
addl $0xffffff04, %r13d      # imm = 0xFFFFFF04
cmpl $0x3, %r13d
ja 0xa305
leaq 0x9e91(%rip), %rcx      # 0x141c0
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r13d
movq 0x8(%rbx), %rdi
callq 0x21a0
movq %rax, -0x48(%rbp)
movq 0x8(%rbx), %rdi
callq 0x21a0
movq %r14, %r12
testl %eax, %eax
je 0xa377
movq %r12, %r14
movb %al, (%r14)
incq %r14
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
jne 0xa364
movb $0x0, (%r14)
movq %r12, %r14
cmpb $0x0, (%r12)
jne 0xa390
movb $0x0, 0x2(%r14)
movw $0x2222, (%r14)         # imm = 0x2222
movq 0x8(%rbx), %rdi
callq 0x9d9d
cmpq $0x0, -0x30(%rbp)
je 0xa305
testb $0x1, 0x7a(%rbx)
je 0xa305
cmpl $0x3, %r13d
movq -0x58(%rbp), %rdi
je 0xa50e
cmpl $0x2, %r13d
je 0xa4dd
cmpl $0x1, %r13d
jne 0xa54f
movq -0x48(%rbp), %rsi
cmpl $0x4, %esi
movl $0x0, %ecx
cmovael %ecx, %esi
leaq 0x9ebe(%rip), %rdx      # 0x142a4
movslq (%rdx,%rsi,4), %rcx
addq %rdx, %rcx
movq -0x30(%rbp), %rdi
leaq 0xa154(%rip), %rsi      # 0x1454c
leaq 0xa6a0(%rip), %rdx      # 0x14a9f
jmp 0xa53d
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r12d
cmpl $0x16, %eax
movl $0x0, %eax
cmovael %eax, %r12d
movq 0x8(%rbx), %rdi
callq 0x21a0
movq %r14, %r13
testl %eax, %eax
je 0xa443
movq %r14, %r13
movb %al, (%r13)
incq %r13
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
jne 0xa42f
movb $0x0, (%r13)
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
jne 0xa448
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0xa305
movl %r12d, %eax
leaq 0x9de0(%rip), %rcx      # 0x1424c
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
leaq 0xa0ad(%rip), %rsi      # 0x14527
movq %r14, %rcx
xorl %eax, %eax
callq 0x2210
jmp 0xa305
movq -0x30(%rbp), %rcx
testq %rcx, %rcx
je 0xa305
movl $0xe, %esi
movl $0x1, %edx
leaq 0xa093(%rip), %rdi      # 0x1453a
jmp 0xa4d3
cmpq $0x0, -0x30(%rbp)
je 0xa305
testb $0x1, 0x7a(%rbx)
je 0xa305
movl $0xe, %esi
movl $0x1, %edx
leaq 0xa0ef(%rip), %rdi      # 0x145be
movq -0x30(%rbp), %rcx
callq 0x2390
jmp 0xa305
movq -0x48(%rbp), %rsi
cmpl $0x10, %esi
movl $0x0, %ecx
cmovael %ecx, %esi
leaq 0x9dc1(%rip), %rdx      # 0x142b4
movslq (%rdx,%rsi,4), %rcx
addq %rdx, %rcx
movq -0x30(%rbp), %rdi
leaq 0xa047(%rip), %rsi      # 0x1454c
leaq 0x9b79(%rip), %rdx      # 0x14085
jmp 0xa53d
movq -0x48(%rbp), %rsi
cmpl $0x4, %esi
movl $0x0, %ecx
cmovael %ecx, %esi
leaq 0x9dc8(%rip), %rdx      # 0x142ec
movslq (%rdx,%rsi,4), %rcx
addq %rdx, %rcx
movq -0x30(%rbp), %rdi
leaq 0xa016(%rip), %rsi      # 0x1454c
leaq 0xa3d0(%rip), %rdx      # 0x1490d
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x2210
jmp 0xa305
movq -0x48(%rbp), %rcx
testl %ecx, %ecx
je 0xa5a9
movl %ecx, %edx
andl $-0x2, %edx
cmpl $0x4, %edx
jne 0xa5c3
movl $0x1, %edx
movq %rdi, %rsi
cmpb $0x0, 0x1(%rsi)
movq %rdx, %r9
leaq 0x1(%rsi), %rsi
leaq 0x1(%rdx), %rdx
js 0xa569
xorl %r8d, %r8d
movq %r8, %rdx
shlq $0x7, %rdx
movzbl (%rdi,%r9), %r8d
andl $0x7f, %r8d
orq %rdx, %r8
decq %r9
jne 0xa57d
movq -0x30(%rbp), %rdi
leaq 0x9fdd(%rip), %rsi      # 0x1457d
leaq 0xa40f(%rip), %rdx      # 0x149b6
jmp 0xa5d8
movq -0x30(%rbp), %rdi
leaq 0x9fb6(%rip), %rsi      # 0x1456a
movq %r14, %rdx
xorl %eax, %eax
callq 0x2210
jmp 0xa305
movq -0x30(%rbp), %rdi
leaq 0x9fd0(%rip), %rsi      # 0x1459e
leaq 0xa3e1(%rip), %rdx      # 0x149b6
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x2210
jmp 0xa305
movl $0xa, %edx
movb $0x0, -0x40(%rbp)
jmp 0x9f94