// File: /workspace/github_c_makefile_star2_O2/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 0x7b83
movq %rsi, %r15
movq %rdi, %rbx
movl $0x20, 0x68(%rdi)
cmpq $0x0, 0x8(%rdi)
jne 0x7516
movq %rbx, %rdi
callq 0x6c6d
testl %eax, %eax
je 0x7b83
movl $0x11001, %edi          # imm = 0x11001
callq 0x2270
movq %rax, -0x30(%rbp)
testq %r15, %r15
je 0x763c
andw $0x0, -0x40(%rbp)
leaq 0xfc(%rbx), %rdx
leaq 0xaf97(%rip), %rsi      # 0x124d7
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
leaq 0x7b(%rbx), %rdx
leaq 0xaf92(%rip), %rsi      # 0x124e7
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
movq 0x178(%rbx), %rdx
testq %rdx, %rdx
je 0x757c
leaq 0xaf88(%rip), %rsi      # 0x124fa
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
pushq $0x1
popq %rax
movzbl 0x78(%rbx), %ecx
leal -0xeb(%rcx), %esi
pushq $0x64
popq %rdx
cmpl $0x14, %esi
ja 0x75aa
leaq 0xabd4(%rip), %rcx      # 0x1216c
movslq (%rcx,%rsi,4), %rsi
addq %rcx, %rsi
jmpq *%rsi
pushq $0xa
popq %rax
movb $0x7a, -0x40(%rbp)
jmp 0x7625
testl %ecx, %ecx
je 0x7621
cmpl $0x1, %ecx
je 0x761e
cmpl $0x2, %ecx
jne 0x75c7
movb $0x0, -0x40(%rbp)
jmp 0x7627
movb $0x6d, -0x40(%rbp)
jmp 0x7627
pushq $0xa
popq %rax
movb $0x6e, -0x40(%rbp)
jmp 0x7625
pushq $0xa
popq %rax
movb $0x66, -0x40(%rbp)
jmp 0x7625
movb $0x7a, -0x40(%rbp)
jmp 0x7627
pushq $0xa
popq %rax
movb $0x6d, -0x40(%rbp)
jmp 0x7625
movb $0x70, -0x40(%rbp)
jmp 0x7627
pushq $0xa
popq %rax
movb $0x61, -0x40(%rbp)
jmp 0x7625
pushq $0xa
popq %rax
movb $0x75, -0x40(%rbp)
jmp 0x7625
movb $0x61, -0x40(%rbp)
jmp 0x7627
movb $0x75, -0x40(%rbp)
jmp 0x7627
movb $0x6e, -0x40(%rbp)
jmp 0x7627
pushq $0xa
popq %rax
movb $0x70, -0x40(%rbp)
jmp 0x7625
movb $0x66, -0x40(%rbp)
jmp 0x7627
pushq $0xa
popq %rax
movb $0x0, -0x40(%rbp)
movl %eax, %edx
leaq 0xaee1(%rip), %rsi      # 0x1250f
leaq -0x40(%rbp), %rcx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2210
andl $0x0, 0x38(%rbx)
andq $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), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6776
movl $0x10000, %eax          # imm = 0x10000
movq %rax, -0x48(%rbp)
movq %r15, -0x50(%rbp)
movq 0x8(%rbx), %rdi
callq 0x2220
testl %eax, %eax
jne 0x7ae9
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r12d
cmpl $0x1e, %eax
jae 0x787f
movq 0x8(%rbx), %rdi
callq 0x21a0
movq -0x30(%rbp), %r14
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
je 0x76d8
movb %al, (%r14)
incq %r14
jmp 0x76c3
movb $0x0, (%r14)
movq 0x8(%rbx), %rdi
callq 0x7490
movl %eax, %r13d
movq 0x8(%rbx), %rdi
callq 0x7490
movslq %r12d, %rdx
testl %eax, %eax
je 0x778b
movl %eax, %esi
cmpl $0x1d, %r12d
ja 0x772d
movl $0x20100018, %eax       # imm = 0x20100018
btl %r12d, %eax
jae 0x772d
xorl %r13d, %r13d
cmpl $0x1d, %r12d
setne %r13b
shll $0x5, %r13d
addl $0x20, %r13d
movq 0x58(%rbx), %rax
movl 0x38(%rbx), %ecx
movb $0x3, (%rax,%rcx)
testq %r15, %r15
je 0x7782
movq %rdx, %r15
cmpl $0x12, %r12d
jne 0x774c
addl $-0x2, %r13d
movl %r13d, %eax
xorl %edx, %edx
pushq $0x3
popq %rcx
divl %ecx
movl %eax, %r13d
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x7b95
leaq 0xe591(%rip), %rax      # 0x15cf0
movq (%rax,%r15,8), %rdx
movq -0x50(%rbp), %r15
movq %r15, %rdi
leaq 0xae5c(%rip), %rsi      # 0x125cd
movl %r13d, %ecx
movq %r14, %r8
movq -0x30(%rbp), %r9
xorl %eax, %eax
callq 0x2210
incq 0x40(%rbx)
jmp 0x7690
movq %r15, %r14
movl 0x38(%rbx), %ecx
movq -0x48(%rbp), %r15
cmpl %r15d, %ecx
movq %rdx, -0x58(%rbp)
jne 0x77cf
addl %r15d, %r15d
movq 0x50(%rbx), %rdi
leaq (,%r15,4), %rsi
callq 0x22c0
movq %rax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movq %r15, -0x48(%rbp)
movq %r15, %rsi
callq 0x22c0
movq %rax, 0x58(%rbx)
movl 0x38(%rbx), %ecx
jmp 0x77d3
movq 0x58(%rbx), %rax
movq 0x50(%rbx), %rdx
movl %ecx, %ecx
movl %r13d, (%rdx,%rcx,4)
movl 0x38(%rbx), %ecx
movb %r12b, (%rax,%rcx)
cmpl 0x68(%rbx), %r13d
movq %r14, %r15
jbe 0x77f1
movl %r13d, 0x68(%rbx)
cmpl $0x1d, %r12d
ja 0x7820
movl $0x20100018, %eax       # imm = 0x20100018
btl %r12d, %eax
jae 0x7820
xorl %r13d, %r13d
cmpl $0x1d, %r12d
setne %r13b
shll $0x5, %r13d
addl $0x20, %r13d
movq 0x58(%rbx), %rax
movl 0x38(%rbx), %ecx
movb $0x3, (%rax,%rcx)
testq %r15, %r15
je 0x7877
cmpl $0x12, %r12d
jne 0x783c
addl $-0x2, %r13d
movl %r13d, %eax
xorl %edx, %edx
pushq $0x3
popq %rcx
divl %ecx
movl %eax, %r13d
movl 0x38(%rbx), %esi
incl %esi
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x7b95
leaq 0xe49c(%rip), %rax      # 0x15cf0
movq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq %r15, %rdi
leaq 0xad67(%rip), %rsi      # 0x125cd
movl %r13d, %ecx
movq %r14, %r8
movq -0x30(%rbp), %r9
xorl %eax, %eax
callq 0x2210
incl 0x38(%rbx)
jmp 0x7690
addl $0xffffff04, %r12d      # imm = 0xFFFFFF04
cmpl $0x3, %r12d
ja 0x7690
leaq 0xa929(%rip), %rcx      # 0x121c0
movslq (%rcx,%r12,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r13d
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r12d
movq -0x30(%rbp), %r14
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
je 0x7988
movb %al, (%r14)
incq %r14
jmp 0x78bc
movq 0x8(%rbx), %rdi
callq 0x21a0
movl %eax, %r12d
movq -0x30(%rbp), %r14
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
je 0x78fa
movb %al, (%r14)
incq %r14
jmp 0x78e5
movb $0x0, (%r14)
movq 0x8(%rbx), %rdi
callq 0x21a0
testl %eax, %eax
jne 0x78fe
testq %r15, %r15
je 0x7690
cmpl $0x16, %r12d
movl $0x0, %eax
cmovael %eax, %r12d
leaq 0xa924(%rip), %rax      # 0x1224c
movslq (%rax,%r12,4), %rdx
addq %rax, %rdx
movq %r15, %rdi
leaq 0xabee(%rip), %rsi      # 0x12527
movq -0x30(%rbp), %rcx
xorl %eax, %eax
callq 0x2210
jmp 0x7690
testq %r15, %r15
je 0x7690
leaq 0xabe1(%rip), %rdi      # 0x1253a
jmp 0x7975
testq %r15, %r15
je 0x7690
testb $0x1, 0x7a(%rbx)
je 0x7690
leaq 0xac49(%rip), %rdi      # 0x125be
pushq $0xe
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0x2390
jmp 0x7690
movb $0x0, (%r14)
movq -0x30(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x79a2
movq -0x30(%rbp), %rax
movb $0x0, 0x2(%rax)
movw $0x2222, (%rax)         # imm = 0x2222
movq 0x8(%rbx), %rdi
callq 0x741b
testq %r15, %r15
je 0x7690
testb $0x1, 0x7a(%rbx)
je 0x7690
movq %rax, %r14
cmpl $0x3, %r13d
je 0x7a33
cmpl $0x2, %r13d
je 0x7a05
cmpl $0x1, %r13d
jne 0x7a72
cmpl $0x4, %r12d
movl $0x0, %eax
cmovael %eax, %r12d
leaq 0xa8b9(%rip), %rax      # 0x122a4
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
movq %r15, %rdi
leaq 0xab50(%rip), %rsi      # 0x1254c
leaq 0xb09c(%rip), %rdx      # 0x12a9f
jmp 0x7a5f
cmpl $0x10, %r12d
movl $0x0, %eax
cmovael %eax, %r12d
leaq 0xa89b(%rip), %rax      # 0x122b4
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
movq %r15, %rdi
leaq 0xab22(%rip), %rsi      # 0x1254c
leaq 0xa654(%rip), %rdx      # 0x12085
jmp 0x7a5f
cmpl $0x4, %r12d
movl $0x0, %eax
cmovael %eax, %r12d
leaq 0xa8a5(%rip), %rax      # 0x122ec
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
movq %r15, %rdi
leaq 0xaaf4(%rip), %rsi      # 0x1254c
leaq 0xaeae(%rip), %rdx      # 0x1290d
movq -0x30(%rbp), %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x2210
jmp 0x7690
testl %r12d, %r12d
je 0x7aa8
movl %r12d, %eax
andl $-0x2, %eax
cmpl $0x4, %eax
jne 0x7ac2
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x7463
movq %r15, %rdi
leaq 0xaae4(%rip), %rsi      # 0x1257d
leaq 0xaf16(%rip), %rdx      # 0x129b6
movl %r12d, %ecx
movq %rax, %r8
jmp 0x7ada
movq %r15, %rdi
leaq 0xaab8(%rip), %rsi      # 0x1256a
movq -0x30(%rbp), %rdx
xorl %eax, %eax
callq 0x2210
jmp 0x7690
movq %r15, %rdi
leaq 0xaad2(%rip), %rsi      # 0x1259e
leaq 0xaee3(%rip), %rdx      # 0x129b6
movl %r12d, %ecx
movq -0x30(%rbp), %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x2210
jmp 0x7690
testq %r15, %r15
je 0x7b03
leaq 0xaaef(%rip), %rdi      # 0x125e4
pushq $0x15
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
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
pushq $0x1
popq %rdi
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 -0x30(%rbp), %rdi
callq 0x2050
pushq $0x1
popq %r14
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq