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

    res = sdsempty();
    if ((flags & REDIS_NOTIFY_ALL) == REDIS_NOTIFY_ALL) {
        res = sdscatlen(res,"A",1);
    } else {
        if (flags & REDIS_NOTIFY_GENERIC) res = sdscatlen(res,"g",1);
        if (flags & REDIS_NOTIFY_STRING) res = sdscatlen(res,"$",1);
        if (flags & REDIS_NOTIFY_LIST) res = sdscatlen(res,"l",1);
        if (flags & REDIS_NOTIFY_SET) res = sdscatlen(res,"s",1);
        if (flags & REDIS_NOTIFY_HASH) res = sdscatlen(res,"h",1);
        if (flags & REDIS_NOTIFY_ZSET) res = sdscatlen(res,"z",1);
        if (flags & REDIS_NOTIFY_EXPIRED) res = sdscatlen(res,"x",1);
        if (flags & REDIS_NOTIFY_EVICTED) res = sdscatlen(res,"e",1);
    }
    if (flags & REDIS_NOTIFY_KEYSPACE) res = sdscatlen(res,"K",1);
    if (flags & REDIS_NOTIFY_KEYEVENT) res = sdscatlen(res,"E",1);

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
callq 0x2c0c0
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x3fc, %eax            # imm = 0x3FC
cmpl $0x3fc, %eax            # imm = 0x3FC
jne 0x81321
movq -0x10(%rbp), %rdi
leaq 0x6c64e(%rip), %rsi     # 0xed95c
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
jmp 0x81449
movl -0x4(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x81345
movq -0x10(%rbp), %rdi
leaq 0x6a4cd(%rip), %rsi     # 0xeb804
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x81369
movq -0x10(%rbp), %rdi
leaq 0x68d9d(%rip), %rsi     # 0xea0f8
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x8138d
movq -0x10(%rbp), %rdi
leaq 0x66313(%rip), %rsi     # 0xe7692
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x813b1
movq -0x10(%rbp), %rdi
leaq 0x680a4(%rip), %rsi     # 0xe9447
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x813d5
movq -0x10(%rbp), %rdi
leaq 0x5f514(%rip), %rsi     # 0xe08db
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x813fb
movq -0x10(%rbp), %rdi
leaq 0x6288b(%rip), %rsi     # 0xe3c78
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x81421
movq -0x10(%rbp), %rdi
leaq 0x6d9cb(%rip), %rsi     # 0xeedde
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x81447
movq -0x10(%rbp), %rdi
leaq 0x6b16a(%rip), %rsi     # 0xec5a3
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
jmp 0x81449
movl -0x4(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x8146d
movq -0x10(%rbp), %rdi
leaq 0x66d14(%rip), %rsi     # 0xe8173
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x81491
movq -0x10(%rbp), %rdi
leaq 0x65e26(%rip), %rsi     # 0xe72a9
movl $0x1, %edx
callq 0x2c500
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)