// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movl $0xb0, -0x8(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x32945
movslq -0x4(%rbp), %rcx
leaq 0x140f73(%rip), %rax    # 0x1736b0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x328b1
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
addl $-0x46, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x31, %eax
ja 0x3287e
movq -0x28(%rbp), %rax
leaq 0x104c0c(%rip), %rcx    # 0x137394
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x4, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x10, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x80, %ecx
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x100, %ecx            # imm = 0x100
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x400, %ecx            # imm = 0x400
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x1000, %ecx           # imm = 0x1000
movl %ecx, 0x20(%rax)
jmp 0x328a0
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x20(%rax)
jmp 0x328a0
leaq 0x105d04(%rip), %rdi    # 0x138589
leaq 0x105bec(%rip), %rsi    # 0x138478
movl $0x7f8, %edx            # imm = 0x7F8
callq 0x76d80
movl $0x1, %edi
callq 0x263c0
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x32754
movq 0x145950(%rip), %rax    # 0x178208
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x38510
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rdx
callq 0x2d8c0
movl %eax, -0x1c(%rbp)
movq 0x14592e(%rip), %rax    # 0x178210
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x38510
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rdx
callq 0x2d8c0
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x32913
cmpl $0x0, -0x20(%rbp)
jne 0x32913
jmp 0x32935
leaq 0x105c8a(%rip), %rdi    # 0x1385a4
leaq 0x105b57(%rip), %rsi    # 0x138478
movl $0x801, %edx            # imm = 0x801
callq 0x76ce0
movl $0x1, %edi
callq 0x263c0
jmp 0x32937
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x32726
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)