// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/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 0xcb777(%rip), %r12     # 0xfd6b0
leaq 0x8a530(%rip), %r13     # 0xbc470
leaq (%r15,%r15,4), %rax
shlq $0x4, %rax
leaq (%r12,%rax), %rbx
movq 0x18(%rax,%r12), %rax
movzbl (%rax), %ecx
cmpl $0x52, %ecx
jle 0x31f72
leal -0x6b(%rcx), %edx
cmpl $0xc, %edx
ja 0x31f9f
movslq (%r13,%rdx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x31fea
cmpl $0x4c, %ecx
jle 0x31f8c
cmpl $0x4d, %ecx
je 0x31f98
cmpl $0x52, %ecx
jne 0x32058
movl $0x80, %ecx
jmp 0x31fea
cmpl $0x46, %ecx
jne 0x31ff5
movl $0x2000, %ecx           # imm = 0x2000
jmp 0x31fea
movl $0x800, %ecx            # imm = 0x800
jmp 0x31fea
cmpl $0x53, %ecx
je 0x31fe5
cmpl $0x61, %ecx
jne 0x32058
movl $0x10, %ecx
jmp 0x31fea
movl $0x40, %ecx
jmp 0x31fea
movl $0x20, %ecx
jmp 0x31fea
movl $0x400, %ecx            # imm = 0x400
jmp 0x31fea
movl $0x4, %ecx
jmp 0x31fea
movl $0x200, %ecx            # imm = 0x200
jmp 0x31fea
movl $0x2, %ecx
jmp 0x31fea
movl $0x1, %ecx
jmp 0x31fea
movl $0x100, %ecx            # imm = 0x100
orl %ecx, 0x20(%rbx)
incq %rax
jmp 0x31f51
testl %ecx, %ecx
jne 0x32058
movq 0xcf8d8(%rip), %r14     # 0x1018d8
movq (%rbx), %rdi
callq 0x362b0
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2e9b8
movl %eax, %ebp
movq 0xcf8c1(%rip), %r14     # 0x1018e0
movq (%rbx), %rdi
callq 0x362b0
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2e9b8
orl %ebp, %eax
jne 0x3207a
incq %r15
cmpq $0xb0, %r15
jne 0x31f40
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8b5ba(%rip), %rdi     # 0xbd619
leaq 0x8b4a2(%rip), %rsi     # 0xbd508
movl $0x7f8, %edx            # imm = 0x7F8
callq 0x619b4
movl $0x1, %edi
callq 0x263c0
leaq 0x8b5b3(%rip), %rdi     # 0xbd634
leaq 0x8b480(%rip), %rsi     # 0xbd508
movl $0x801, %edx            # imm = 0x801
callq 0x61908
jmp 0x32070