// File: /workspace/github_c_makefile_star2_O0/erikdubbelboer[P]discnt/src/server.c
// Function: populateCommandTable
void populateCommandTable(void) {
    int j;
    int numcommands = sizeof(serverCommandTable)/sizeof(struct serverCommand);

    for (j = 0; j < numcommands; j++) {
        struct serverCommand *c = serverCommandTable+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 'l': c->flags |= CMD_LOADING; break;
            case 'M': c->flags |= CMD_SKIP_MONITOR; 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 discnt.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 $0x1f, -0x8(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x1a99f
movslq -0x4(%rbp), %rcx
leaq 0xa3d23(%rip), %rax     # 0xbe520
shlq $0x6, %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 0x1a90b
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
addl $-0x46, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x31, %eax
ja 0x1a8d8
movq -0x28(%rbp), %rax
leaq 0x88b18(%rip), %rcx     # 0xa3360
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 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x4, %ecx
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x10, %ecx
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %ecx
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x20(%rax)
jmp 0x1a8fa
leaq 0x8977b(%rip), %rdi     # 0xa405a
leaq 0x89687(%rip), %rsi     # 0xa3f6d
movl $0x527, %edx            # imm = 0x527
callq 0x304a0
movl $0x1, %edi
callq 0x12100
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x1a814
movq 0xa47fe(%rip), %rax     # 0xbf110
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1e2b0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rdx
callq 0x166b0
movl %eax, -0x1c(%rbp)
movq 0xa47dc(%rip), %rax     # 0xbf118
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1e2b0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rdx
callq 0x166b0
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x1a96d
cmpl $0x0, -0x20(%rbp)
jne 0x1a96d
jmp 0x1a98f
leaq 0x89701(%rip), %rdi     # 0xa4075
leaq 0x895f2(%rip), %rsi     # 0xa3f6d
movl $0x530, %edx            # imm = 0x530
callq 0x300b0
movl $0x1, %edi
callq 0x12100
jmp 0x1a991
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x1a7e6
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)