// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/t_hash.c
// Function: hincrbyCommand
void hincrbyCommand(client *c) {
    long long value, incr, oldvalue;
    robj *o, *current, *new;

    if (getLongLongFromObjectOrReply(c,c->argv[3],&incr,NULL) != C_OK) return;
    if ((o = hashTypeLookupWriteOrCreate(c,c->argv[1])) == NULL) return;
    if ((current = hashTypeGetObject(o,c->argv[2])) != NULL) {
        if (getLongLongFromObjectOrReply(c,current,&value,
            "hash value is not an integer") != C_OK) {
            decrRefCount(current);
            return;
        }
        decrRefCount(current);
    } else {
        value = 0;
    }

    oldvalue = value;
    if ((incr < 0 && oldvalue < 0 && incr < (LLONG_MIN-oldvalue)) ||
        (incr > 0 && oldvalue > 0 && incr > (LLONG_MAX-oldvalue))) {
        addReplyError(c,"increment or decrement would overflow");
        return;
    }
    value += incr;
    new = createStringObjectFromLongLong(value);
    hashTypeTryObjectEncoding(o,&c->argv[2],NULL);
    hashTypeSet(o,c->argv[2],new);
    decrRefCount(new);
    addReplyLongLong(c,value);
    signalModifiedKey(c->db,c->argv[1]);
    notifyKeyspaceEvent(NOTIFY_HASH,"hincrby",c->argv[1],c->db->id);
    server.dirty++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x18(%rax), %rsi
leaq -0x18(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49ea0
cmpl $0x0, %eax
je 0x67943
jmp 0x67aed
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x672d0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0x67967
jmp 0x67aed
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x666c0
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x679bc
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x10(%rbp), %rdx
leaq 0xd67d2(%rip), %rcx     # 0x13e16b
callq 0x49ea0
cmpl $0x0, %eax
je 0x679b1
movq -0x30(%rbp), %rdi
callq 0x48f70
jmp 0x67aed
movq -0x30(%rbp), %rdi
callq 0x48f70
jmp 0x679c4
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
jge 0x679f1
cmpq $0x0, -0x20(%rbp)
jge 0x679f1
movq -0x18(%rbp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
subq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jl 0x67a16
cmpq $0x0, -0x18(%rbp)
jle 0x67a2b
cmpq $0x0, -0x20(%rbp)
jle 0x67a2b
movq -0x18(%rbp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
subq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jle 0x67a2b
movq -0x8(%rbp), %rdi
leaq 0xd5ef3(%rip), %rsi     # 0x13d914
callq 0x42f90
jmp 0x67aed
movq -0x18(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x486f0
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rsi
addq $0x10, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x66440
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x10(%rax), %rsi
movq -0x38(%rbp), %rdx
callq 0x66980
movq -0x38(%rbp), %rdi
callq 0x48f70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x43780
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x4aa60
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x8(%rax), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl 0x30(%rax), %ecx
movl $0x40, %edi
leaq 0xcfc2d(%rip), %rsi     # 0x1376f5
callq 0x9ce20
leaq 0x110704(%rip), %rax    # 0x1781d8
movq 0x720(%rax), %rcx
addq $0x1, %rcx
leaq 0x1106f2(%rip), %rax    # 0x1781d8
movq %rcx, 0x720(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)