// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
xorl %esi, %esi
pushq $0x1
popq %r13
pushq $0x10
popq %rdi
leaq 0x80fb0(%rip), %rbp     # 0xae38c
pushq $0x4
popq %r8
pushq $0x20
popq %r14
pushq $0x2
popq %r12
pushq $0x40
popq %r15
cmpq $0xb0, %rsi
je 0x2d515
imulq $0x50, %rsi, %rax
leaq 0xc82ac(%rip), %rcx     # 0xf56b0
leaq (%rcx,%rax), %rbx
movq 0x18(%rax,%rcx), %rax
movzbl (%rax), %ecx
leal -0x6b(%rcx), %edx
cmpl $0xc, %edx
ja 0x2d42c
movslq (%rbp,%rdx,4), %rdx
addq %rbp, %rdx
movl %r13d, %ecx
jmpq *%rdx
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x2d485
cmpl $0x46, %ecx
je 0x2d46b
cmpl $0x4d, %ecx
je 0x2d472
cmpl $0x52, %ecx
je 0x2d480
cmpl $0x53, %ecx
je 0x2d479
cmpl $0x61, %ecx
jne 0x2d48d
movl %edi, %ecx
jmp 0x2d485
movl %r15d, %ecx
jmp 0x2d485
movl %r14d, %ecx
jmp 0x2d485
movl %r12d, %ecx
jmp 0x2d485
movl %r8d, %ecx
jmp 0x2d485
movl $0x200, %ecx            # imm = 0x200
jmp 0x2d485
movl $0x400, %ecx            # imm = 0x400
jmp 0x2d485
movl $0x2000, %ecx           # imm = 0x2000
jmp 0x2d485
movl $0x800, %ecx            # imm = 0x800
jmp 0x2d485
movl $0x100, %ecx            # imm = 0x100
jmp 0x2d485
movl $0x80, %ecx
orl %ecx, 0x20(%rbx)
incq %rax
jmp 0x2d40d
testl %ecx, %ecx
jne 0x2d524
movq 0xcc43c(%rip), %rax     # 0xf98d8
movq %rax, (%rsp)
movq (%rbx), %rdi
movq %rsi, 0x10(%rsp)
callq 0x3115a
movq (%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2a3ed
movl %eax, (%rsp)
movq 0xcc41a(%rip), %rax     # 0xf98e0
movq %rax, 0x8(%rsp)
movq (%rbx), %rdi
callq 0x3115a
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2a3ed
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movq 0x10(%rsp), %rsi
incq %rsi
orl (%rsp), %eax
je 0x2d3ec
leaq 0x82022(%rip), %rdi     # 0xaf524
leaq 0x81eef(%rip), %rsi     # 0xaf3f8
movl $0x801, %edx            # imm = 0x801
callq 0x57ac8
jmp 0x2d53c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x81fde(%rip), %rdi     # 0xaf509
leaq 0x81ec6(%rip), %rsi     # 0xaf3f8
movl $0x7f8, %edx            # imm = 0x7F8
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0