// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/notify.c
// Function: keyspaceEventsFlagsToString
sds keyspaceEventsFlagsToString(int flags) {
    sds res;

    res = sdsempty();
    if ((flags & NOTIFY_ALL) == NOTIFY_ALL) {
        res = sdscatlen(res,"A",1);
    } else {
        if (flags & NOTIFY_GENERIC) res = sdscatlen(res,"g",1);
        if (flags & NOTIFY_STRING) res = sdscatlen(res,"$",1);
        if (flags & NOTIFY_LIST) res = sdscatlen(res,"l",1);
        if (flags & NOTIFY_SET) res = sdscatlen(res,"s",1);
        if (flags & NOTIFY_HASH) res = sdscatlen(res,"h",1);
        if (flags & NOTIFY_ZSET) res = sdscatlen(res,"z",1);
        if (flags & NOTIFY_EXPIRED) res = sdscatlen(res,"x",1);
        if (flags & NOTIFY_EVICTED) res = sdscatlen(res,"e",1);
    }
    if (flags & NOTIFY_KEYSPACE) res = sdscatlen(res,"K",1);
    if (flags & NOTIFY_KEYEVENT) res = sdscatlen(res,"E",1);
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
callq 0x384f0
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x3fc, %eax            # imm = 0x3FC
cmpl $0x3fc, %eax            # imm = 0x3FC
jne 0x9cca1
movq -0x10(%rbp), %rdi
leaq 0xb0a54(%rip), %rsi     # 0x14d6e2
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
jmp 0x9cdc9
movl -0x4(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x9ccc5
movq -0x10(%rbp), %rdi
leaq 0xa7a05(%rip), %rsi     # 0x1446bc
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x9cce9
movq -0x10(%rbp), %rdi
leaq 0xaa905(%rip), %rsi     # 0x1475e0
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x9cd0d
movq -0x10(%rbp), %rdi
leaq 0xa6b6e(%rip), %rsi     # 0x14386d
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x9cd31
movq -0x10(%rbp), %rdi
leaq 0xa9964(%rip), %rsi     # 0x146687
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x9cd55
movq -0x10(%rbp), %rdi
leaq 0x9d39c(%rip), %rsi     # 0x13a0e3
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x9cd7b
movq -0x10(%rbp), %rdi
leaq 0xa19ba(%rip), %rsi     # 0x13e727
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x9cda1
movq -0x10(%rbp), %rdi
leaq 0xb215e(%rip), %rsi     # 0x14eef1
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x9cdc7
movq -0x10(%rbp), %rdi
leaq 0xae9fc(%rip), %rsi     # 0x14b7b5
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
jmp 0x9cdc9
movl -0x4(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x9cded
movq -0x10(%rbp), %rdi
leaq 0xa8446(%rip), %rsi     # 0x145225
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x9ce11
movq -0x10(%rbp), %rdi
leaq 0xa64c7(%rip), %rsi     # 0x1432ca
movl $0x1, %edx
callq 0x39040
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)