// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/server.c
// Function: populateCommandTable
void populateCommandTable(void) {
    int j;
    int numcommands = sizeof(redisCommandTable)/sizeof(struct redisCommand);

    for (j = 0; j < numcommands; j++) {
        struct redisCommand *c = redisCommandTable+j;
        char *f = c->sflags;
        int retval1, retval2;

        while(*f != '\0') {
            switch(*f) {
            case 'w': c->flags |= CMD_WRITE; break;
            case 'r': c->flags |= CMD_READONLY; break;
            case 'm': c->flags |= CMD_DENYOOM; break;
            case 'a': c->flags |= CMD_ADMIN; break;
            case 'p': c->flags |= CMD_PUBSUB; break;
            case 's': c->flags |= CMD_NOSCRIPT; break;
            case 'R': c->flags |= CMD_RANDOM; break;
            case 'S': c->flags |= CMD_SORT_FOR_SCRIPT; break;
            case 'l': c->flags |= CMD_LOADING; break;
            case 't': c->flags |= CMD_STALE; break;
            case 'M': c->flags |= CMD_SKIP_MONITOR; break;
            case 'k': c->flags |= CMD_ASKING; break;
            case 'F': c->flags |= CMD_FAST; break;
            default: serverPanic("Unsupported command flag"); break;
            }
            f++;
        }

        retval1 = dictAdd(server.commands, sdsnew(c->name), c);
        /* Populate an additional dictionary that will be unaffected
         * by rename-command statements in redis.conf. */
        retval2 = dictAdd(server.orig_commands, sdsnew(c->name), c);
        serverAssert(retval1 == DICT_OK && retval2 == DICT_OK);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %r15d, %r15d
leaq 0xcd6cf(%rip), %r12     # 0x1026b0
leaq 0x8a440(%rip), %r13     # 0xbf428
leaq (%r15,%r15,4), %rax
shlq $0x4, %rax
leaq (%r12,%rax), %rbx
movq 0x18(%rax,%r12), %rax
movzbl (%rax), %ecx
cmpl $0x52, %ecx
jle 0x3501a
leal -0x6b(%rcx), %edx
cmpl $0xc, %edx
ja 0x35047
movslq (%r13,%rdx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x35092
cmpl $0x4c, %ecx
jle 0x35034
cmpl $0x4d, %ecx
je 0x35040
cmpl $0x52, %ecx
jne 0x35100
movl $0x80, %ecx
jmp 0x35092
cmpl $0x46, %ecx
jne 0x3509d
movl $0x2000, %ecx           # imm = 0x2000
jmp 0x35092
movl $0x800, %ecx            # imm = 0x800
jmp 0x35092
cmpl $0x53, %ecx
je 0x3508d
cmpl $0x61, %ecx
jne 0x35100
movl $0x10, %ecx
jmp 0x35092
movl $0x40, %ecx
jmp 0x35092
movl $0x20, %ecx
jmp 0x35092
movl $0x400, %ecx            # imm = 0x400
jmp 0x35092
movl $0x4, %ecx
jmp 0x35092
movl $0x200, %ecx            # imm = 0x200
jmp 0x35092
movl $0x2, %ecx
jmp 0x35092
movl $0x1, %ecx
jmp 0x35092
movl $0x100, %ecx            # imm = 0x100
orl %ecx, 0x20(%rbx)
incq %rax
jmp 0x34ff9
testl %ecx, %ecx
jne 0x35100
movq 0xd17e0(%rip), %r14     # 0x106888
movq (%rbx), %rdi
callq 0x39245
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x31a95
movl %eax, %ebp
movq 0xd17c9(%rip), %r14     # 0x106890
movq (%rbx), %rdi
callq 0x39245
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x31a95
orl %ebp, %eax
jne 0x35122
incq %r15
cmpq $0xae, %r15
jne 0x34fe8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8b4a0(%rip), %rdi     # 0xc05a7
leaq 0x8b388(%rip), %rsi     # 0xc0496
movl $0x84f, %edx            # imm = 0x84F
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
leaq 0x8b499(%rip), %rdi     # 0xc05c2
leaq 0x8b366(%rip), %rsi     # 0xc0496
movl $0x858, %edx            # imm = 0x858
callq 0x654e1
jmp 0x35118