// File: /workspace/github_c_makefile_star2_O0/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisvFormatCommand
int redisvFormatCommand(char **target, const char *format, va_list ap) {
    const char *c = format;
    char *cmd = NULL; /* final command */
    int pos; /* position in final command */
    sds curarg, newarg; /* current argument */
    int touched = 0; /* was the current argument touched? */
    char **curargv = NULL, **newargv = NULL;
    int argc = 0;
    int totlen = 0;
    int error_type = 0; /* 0 = no error; -1 = memory error; -2 = format error */
    int j;

    /* Abort if there is not target to set */
    if (target == NULL)
        return -1;

    /* Build the command string accordingly to protocol */
    curarg = sdsempty();
    if (curarg == NULL)
        return -1;

    while(*c != '\0') {
        if (*c != '%' || c[1] == '\0') {
            if (*c == ' ') {
                if (touched) {
                    newargv = realloc(curargv,sizeof(char*)*(argc+1));
                    if (newargv == NULL) goto memory_err;
                    curargv = newargv;
                    curargv[argc++] = curarg;
                    totlen += bulklen(sdslen(curarg));

                    /* curarg is put in argv so it can be overwritten. */
                    curarg = sdsempty();
                    if (curarg == NULL) goto memory_err;
                    touched = 0;
                }
            } else {
                newarg = sdscatlen(curarg,c,1);
                if (newarg == NULL) goto memory_err;
                curarg = newarg;
                touched = 1;
            }
        } else {
            char *arg;
            size_t size;

            /* Set newarg so it can be checked even if it is not touched. */
            newarg = curarg;

            switch(c[1]) {
            case 's':
                arg = va_arg(ap,char*);
                size = strlen(arg);
                if (size > 0)
                    newarg = sdscatlen(curarg,arg,size);
                break;
            case 'b':
                arg = va_arg(ap,char*);
                size = va_arg(ap,size_t);
                if (size > 0)
                    newarg = sdscatlen(curarg,arg,size);
                break;
            case '%':
                newarg = sdscat(curarg,"%");
                break;
            default:
                /* Try to detect printf format */
                {
                    static const char intfmts[] = "diouxX";
                    static const char flags[] = "#0-+ ";
                    char _format[16];
                    const char *_p = c+1;
                    size_t _l = 0;
                    va_list _cpy;

                    /* Flags */
                    while (*_p != '\0' && strchr(flags,*_p) != NULL) _p++;

                    /* Field width */
                    while (*_p != '\0' && isdigit(*_p)) _p++;

                    /* Precision */
                    if (*_p == '.') {
                        _p++;
                        while (*_p != '\0' && isdigit(*_p)) _p++;
                    }

                    /* Copy va_list before consuming with va_arg */
                    va_copy(_cpy,ap);

                    /* Integer conversion (without modifiers) */
                    if (strchr(intfmts,*_p) != NULL) {
                        va_arg(ap,int);
                        goto fmt_valid;
                    }

                    /* Double conversion (without modifiers) */
                    if (strchr("eEfFgGaA",*_p) != NULL) {
                        va_arg(ap,double);
                        goto fmt_valid;
                    }

                    /* Size: char */
                    if (_p[0] == 'h' && _p[1] == 'h') {
                        _p += 2;
                        if (*_p != '\0' && strchr(intfmts,*_p) != NULL) {
                            va_arg(ap,int); /* char gets promoted to int */
                            goto fmt_valid;
                        }
                        goto fmt_invalid;
                    }

                    /* Size: short */
                    if (_p[0] == 'h') {
                        _p += 1;
                        if (*_p != '\0' && strchr(intfmts,*_p) != NULL) {
                            va_arg(ap,int); /* short gets promoted to int */
                            goto fmt_valid;
                        }
                        goto fmt_invalid;
                    }

                    /* Size: long long */
                    if (_p[0] == 'l' && _p[1] == 'l') {
                        _p += 2;
                        if (*_p != '\0' && strchr(intfmts,*_p) != NULL) {
                            va_arg(ap,long long);
                            goto fmt_valid;
                        }
                        goto fmt_invalid;
                    }

                    /* Size: long */
                    if (_p[0] == 'l') {
                        _p += 1;
                        if (*_p != '\0' && strchr(intfmts,*_p) != NULL) {
                            va_arg(ap,long);
                            goto fmt_valid;
                        }
                        goto fmt_invalid;
                    }

                fmt_invalid:
                    va_end(_cpy);
                    goto format_err;

                fmt_valid:
                    _l = (_p+1)-c;
                    if (_l < sizeof(_format)-2) {
                        memcpy(_format,c,_l);
                        _format[_l] = '\0';
                        newarg = sdscatvprintf(curarg,_format,_cpy);

                        /* Update current position (note: outer blocks
                         * increment c twice so compensate here) */
                        c = _p-1;
                    }

                    va_end(_cpy);
                    break;
                }
            }

            if (newarg == NULL) goto memory_err;
            curarg = newarg;

            touched = 1;
            c++;
        }
        c++;
    }

    /* Add the last argument if needed */
    if (touched) {
        newargv = realloc(curargv,sizeof(char*)*(argc+1));
        if (newargv == NULL) goto memory_err;
        curargv = newargv;
        curargv[argc++] = curarg;
        totlen += bulklen(sdslen(curarg));
    } else {
        sdsfree(curarg);
    }

    /* Clear curarg because it was put in curargv or was free'd. */
    curarg = NULL;

    /* Add bytes needed to hold multi bulk count */
    totlen += 1+countDigits(argc)+2;

    /* Build the command at protocol level */
    cmd = malloc(totlen+1);
    if (cmd == NULL) goto memory_err;

    pos = sprintf(cmd,"*%d\r\n",argc);
    for (j = 0; j < argc; j++) {
        pos += sprintf(cmd+pos,"$%zu\r\n",sdslen(curargv[j]));
        memcpy(cmd+pos,curargv[j],sdslen(curargv[j]));
        pos += sdslen(curargv[j]);
        sdsfree(curargv[j]);
        cmd[pos++] = '\r';
        cmd[pos++] = '\n';
    }
    assert(pos == totlen);
    cmd[pos] = '\0';

    free(curargv);
    *target = cmd;
    return totlen;

format_err:
    error_type = -2;
    goto cleanup;

memory_err:
    error_type = -1;
    goto cleanup;

cleanup:
    if (curargv) {
        while(argc--)
            sdsfree(curargv[argc]);
        free(curargv);
    }

    sdsfree(curarg);

    /* No need to check cmd since it is the last statement that can fail,
     * but do it anyway to be as defensive as possible. */
    if (cmd != NULL)
        free(cmd);

    return error_type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x0, -0x4c(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movl $0x0, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x4846
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5413
callq 0x34a0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x4862
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5413
jmp 0x4864
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x518b
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x25, %eax
jne 0x4891
movq -0x28(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x4965
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x492f
cmpl $0x0, -0x4c(%rbp)
je 0x492d
movq -0x58(%rbp), %rdi
movl -0x64(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
shlq $0x3, %rsi
callq 0x33a0
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x48d1
jmp 0x53b8
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rdx
movq -0x58(%rbp), %rax
movl -0x64(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x64(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rdi
callq 0x46b0
movq %rax, %rdi
callq 0x5420
movq %rax, %rcx
movslq -0x68(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x68(%rbp)
callq 0x34a0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x4926
jmp 0x53b8
movl $0x0, -0x4c(%rbp)
jmp 0x4960
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl $0x1, %edx
callq 0x3420
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x4951
jmp 0x53b8
movq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0x1, -0x4c(%rbp)
jmp 0x517a
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movsbl 0x1(%rax), %eax
movl %eax, -0xc4(%rbp)
subl $0x25, %eax
je 0x4b26
jmp 0x4986
movl -0xc4(%rbp), %eax
subl $0x62, %eax
je 0x4a3b
jmp 0x4997
movl -0xc4(%rbp), %eax
subl $0x73, %eax
jne 0x4b3f
jmp 0x49a8
movq -0x20(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl (%rax), %eax
movl %eax, -0xc8(%rbp)
cmpl $0x28, %eax
ja 0x49e2
movq -0xd0(%rbp), %rcx
movl -0xc8(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xd8(%rbp)
jmp 0x49ff
movq -0xd0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
callq 0x3140
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
jbe 0x4a36
movq -0x40(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x3420
movq %rax, -0x48(%rbp)
jmp 0x5153
movq -0x20(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl (%rax), %eax
movl %eax, -0xdc(%rbp)
cmpl $0x28, %eax
ja 0x4a75
movq -0xe8(%rbp), %rcx
movl -0xdc(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xf0(%rbp)
jmp 0x4a92
movq -0xe8(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x100(%rbp)
movl (%rax), %eax
movl %eax, -0xf4(%rbp)
cmpl $0x28, %eax
ja 0x4ada
movq -0x100(%rbp), %rcx
movl -0xf4(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x108(%rbp)
jmp 0x4af7
movq -0x100(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
jbe 0x4b21
movq -0x40(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x3420
movq %rax, -0x48(%rbp)
jmp 0x5153
movq -0x40(%rbp), %rdi
leaq 0x85c0(%rip), %rsi      # 0xd0f1
callq 0x3380
movq %rax, -0x48(%rbp)
jmp 0x5153
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq $0x0, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x109(%rbp)
je 0x4b93
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x856a(%rip), %rdi      # 0xd0eb
callq 0x3180
cmpq $0x0, %rax
setne %al
movb %al, -0x109(%rbp)
movb -0x109(%rbp), %al
testb $0x1, %al
jne 0x4b9f
jmp 0x4bb3
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x4b59
jmp 0x4bb5
movq -0x98(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x10a(%rbp)
je 0x4bf6
callq 0x3530
movq (%rax), %rax
movq -0x98(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
setne %al
movb %al, -0x10a(%rbp)
movb -0x10a(%rbp), %al
testb $0x1, %al
jne 0x4c02
jmp 0x4c16
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x4bb5
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x4c9a
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x10b(%rbp)
je 0x4c78
callq 0x3530
movq (%rax), %rax
movq -0x98(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
setne %al
movb %al, -0x10b(%rbp)
movb -0x10b(%rbp), %al
testb $0x1, %al
jne 0x4c84
jmp 0x4c98
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x4c37
jmp 0x4c9a
leaq -0xc0(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x8420(%rip), %rdi      # 0xd0e4
callq 0x3180
cmpq $0x0, %rax
je 0x4d32
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movl (%rax), %eax
movl %eax, -0x110(%rbp)
cmpl $0x28, %eax
ja 0x4d09
movq -0x118(%rbp), %rcx
movl -0x110(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x120(%rbp)
jmp 0x4d26
movq -0x118(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
jmp 0x50d9
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x83b0(%rip), %rdi      # 0xd0f3
callq 0x3180
cmpq $0x0, %rax
je 0x4dc9
movq -0x20(%rbp), %rax
movq %rax, -0x138(%rbp)
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x130(%rbp)
movl 0x4(%rax), %eax
movl %eax, -0x124(%rbp)
cmpl $0xa0, %eax
ja 0x4da0
movq -0x130(%rbp), %rcx
movl -0x124(%rbp), %edx
movq -0x138(%rbp), %rsi
movslq %edx, %rax
addq 0x10(%rsi), %rax
addl $0x10, %edx
movl %edx, (%rcx)
movq %rax, -0x140(%rbp)
jmp 0x4dbd
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
jmp 0x50d9
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x68, %eax
jne 0x4e95
movq -0x98(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x68, %eax
jne 0x4e95
movq -0x98(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x4e90
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x82c2(%rip), %rdi      # 0xd0e4
callq 0x3180
cmpq $0x0, %rax
je 0x4e90
movq -0x20(%rbp), %rax
movq %rax, -0x150(%rbp)
movl (%rax), %eax
movl %eax, -0x144(%rbp)
cmpl $0x28, %eax
ja 0x4e67
movq -0x150(%rbp), %rcx
movl -0x144(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x158(%rbp)
jmp 0x4e84
movq -0x150(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
jmp 0x50d9
jmp 0x50cd
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x68, %eax
jne 0x4f4d
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x4f48
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x820a(%rip), %rdi      # 0xd0e4
callq 0x3180
cmpq $0x0, %rax
je 0x4f48
movq -0x20(%rbp), %rax
movq %rax, -0x168(%rbp)
movl (%rax), %eax
movl %eax, -0x15c(%rbp)
cmpl $0x28, %eax
ja 0x4f1f
movq -0x168(%rbp), %rcx
movl -0x15c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x170(%rbp)
jmp 0x4f3c
movq -0x168(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
jmp 0x50d9
jmp 0x50cd
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
jne 0x5019
movq -0x98(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x6c, %eax
jne 0x5019
movq -0x98(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x5014
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x813e(%rip), %rdi      # 0xd0e4
callq 0x3180
cmpq $0x0, %rax
je 0x5014
movq -0x20(%rbp), %rax
movq %rax, -0x180(%rbp)
movl (%rax), %eax
movl %eax, -0x174(%rbp)
cmpl $0x28, %eax
ja 0x4feb
movq -0x180(%rbp), %rcx
movl -0x174(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x188(%rbp)
jmp 0x5008
movq -0x180(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
jmp 0x50d9
jmp 0x50cd
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
jne 0x50cb
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x50c9
movq -0x98(%rbp), %rax
movsbl (%rax), %esi
leaq 0x8086(%rip), %rdi      # 0xd0e4
callq 0x3180
cmpq $0x0, %rax
je 0x50c9
movq -0x20(%rbp), %rax
movq %rax, -0x198(%rbp)
movl (%rax), %eax
movl %eax, -0x18c(%rbp)
cmpl $0x28, %eax
ja 0x50a3
movq -0x198(%rbp), %rcx
movl -0x18c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x1a0(%rbp)
jmp 0x50c0
movq -0x198(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
jmp 0x50d9
jmp 0x50cd
jmp 0x50cd
leaq -0xc0(%rbp), %rax
jmp 0x53af
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xa0(%rbp)
cmpq $0xe, -0xa0(%rbp)
jae 0x514c
leaq -0x90(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0xa0(%rbp), %rdx
callq 0x32f0
movq -0xa0(%rbp), %rax
movb $0x0, -0x90(%rbp,%rax)
movq -0x40(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x33c0
movq %rax, -0x48(%rbp)
movq -0x98(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
leaq -0xc0(%rbp), %rax
cmpq $0x0, -0x48(%rbp)
jne 0x515f
jmp 0x53b8
movq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0x1, -0x4c(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x4864
cmpl $0x0, -0x4c(%rbp)
je 0x51f9
movq -0x58(%rbp), %rdi
movl -0x64(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
shlq $0x3, %rsi
callq 0x33a0
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x51b7
jmp 0x53b8
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rdx
movq -0x58(%rbp), %rax
movl -0x64(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x64(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rdi
callq 0x46b0
movq %rax, %rdi
callq 0x5420
movq %rax, %rcx
movslq -0x68(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x68(%rbp)
jmp 0x5202
movq -0x40(%rbp), %rdi
callq 0x3280
movq $0x0, -0x40(%rbp)
movslq -0x64(%rbp), %rdi
callq 0x5450
addl $0x1, %eax
addl $0x2, %eax
addl -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x3350
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x523d
jmp 0x53b8
movq -0x30(%rbp), %rdi
movl -0x64(%rbp), %edx
leaq 0x7eb1(%rip), %rsi      # 0xd0fc
movb $0x0, %al
callq 0x3470
movl %eax, -0x34(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x535e
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x1b8(%rbp)
movq -0x58(%rbp), %rax
movslq -0x70(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x46b0
movq -0x1b8(%rbp), %rdi
movq %rax, %rdx
leaq 0x7e66(%rip), %rsi      # 0xd102
movb $0x0, %al
callq 0x3470
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x1b0(%rbp)
movq -0x58(%rbp), %rax
movslq -0x70(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x1a8(%rbp)
movq -0x58(%rbp), %rax
movslq -0x70(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x46b0
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
movq %rax, %rdx
callq 0x32f0
movq -0x58(%rbp), %rax
movslq -0x70(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x46b0
movq %rax, %rcx
movslq -0x34(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x70(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3280
movq -0x30(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x34(%rbp)
movslq %ecx, %rcx
movb $0xd, (%rax,%rcx)
movq -0x30(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x34(%rbp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x525c
movl -0x34(%rbp), %eax
cmpl -0x68(%rbp), %eax
jne 0x5368
jmp 0x5387
leaq 0x7d9a(%rip), %rdi      # 0xd109
leaq 0x7da1(%rip), %rsi      # 0xd117
movl $0x19c, %edx            # imm = 0x19C
leaq 0x7d9f(%rip), %rcx      # 0xd121
callq 0x31c0
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x58(%rbp), %rdi
callq 0x3040
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl -0x68(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x5413
movl $0xfffffffe, -0x6c(%rbp) # imm = 0xFFFFFFFE
jmp 0x53bf
movl $0xffffffff, -0x6c(%rbp) # imm = 0xFFFFFFFF
cmpq $0x0, -0x58(%rbp)
je 0x53f4
jmp 0x53c8
movl -0x64(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x64(%rbp)
cmpl $0x0, %eax
je 0x53eb
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3280
jmp 0x53c8
movq -0x58(%rbp), %rdi
callq 0x3040
movq -0x40(%rbp), %rdi
callq 0x3280
cmpq $0x0, -0x30(%rbp)
je 0x540d
movq -0x30(%rbp), %rdi
callq 0x3040
movl -0x6c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
nop