// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimDictHashFind
static int JimDictHashFind(Jim_Dict *dict, Jim_Obj *keyObjPtr, int op_tvoffset)
{
    unsigned h = (JimObjectHTHashFunction(keyObjPtr) + dict->uniq);
    unsigned idx = h & dict->sizemask;
    int tvoffset = 0;
    unsigned peturb = h;
    unsigned first_removed = ~0;

    if (dict->len) {
        while ((tvoffset = dict->ht[idx].offset)) {
            if (tvoffset == -1) {
                if (first_removed == ~0) {
                    first_removed = idx;
                }
            }
            else if (dict->ht[idx].hash == h) {
                if (Jim_StringEqObj(keyObjPtr, dict->table[tvoffset - 1])) {
                    break;
                }
            }

            peturb >>= 5;
            idx = (5 * idx + 1 + peturb) & dict->sizemask;
        }
    }

    switch (op_tvoffset) {
        case DICT_HASH_FIND:

            break;
        case DICT_HASH_REMOVE:
            if (tvoffset) {

                dict->ht[idx].offset = -1;
                dict->dummy++;
            }

            break;
        case DICT_HASH_ADD:
            if (tvoffset == 0) {

                if (first_removed != ~0) {
                    idx = first_removed;
                    dict->dummy--;
                }
                dict->ht[idx].offset = dict->len + 1;
                dict->ht[idx].hash = h;
            }

            break;
        default:
            assert(tvoffset);

            dict->ht[idx].offset = op_tvoffset;
            break;
    }

    return tvoffset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r15d
movq %rdi, %r13
movq %rsi, -0x38(%rbp)
movq %rsi, %rdi
callq 0x18bd0
movl %eax, %ebx
addl 0x10(%r13), %ebx
movl 0xc(%r13), %esi
movl %ebx, %r14d
andl %esi, %r14d
cmpl $0x0, 0x20(%r13)
je 0xf5f3
movl %r15d, -0x2c(%rbp)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl %ebx, %r15d
movq (%r13), %rcx
movl %r14d, %edx
movslq (%rcx,%rdx,8), %r12
cmpq $-0x1, %r12
je 0xf5d1
testl %r12d, %r12d
je 0xf5ed
cmpl %ebx, 0x4(%rcx,%rdx,8)
jne 0xf5d9
movl %r8d, -0x30(%rbp)
movq 0x18(%r13), %rax
movq -0x8(%rax,%r12,8), %rsi
movq -0x38(%rbp), %rdi
callq 0xb096
testl %eax, %eax
jne 0xf5fe
movl 0xc(%r13), %esi
movl -0x30(%rbp), %r8d
jmp 0xf5d9
cmpl $-0x1, %r8d
cmovel %r14d, %r8d
shrl $0x5, %r15d
leal (%r14,%r14,4), %ecx
leal (%r15,%rcx), %r14d
incl %r14d
andl %esi, %r14d
jmp 0xf591
movl -0x2c(%rbp), %r15d
jmp 0xf606
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
jmp 0xf606
movl -0x2c(%rbp), %r15d
movl -0x30(%rbp), %r8d
cmpl $-0x3, %r15d
je 0xf631
cmpl $-0x1, %r15d
je 0xf669
cmpl $-0x2, %r15d
jne 0xf659
testl %r12d, %r12d
je 0xf669
movq (%r13), %rax
movl %r14d, %ecx
movl $0xffffffff, (%rax,%rcx,8) # imm = 0xFFFFFFFF
incl 0x28(%r13)
jmp 0xf669
testl %r12d, %r12d
jne 0xf669
cmpl $-0x1, %r8d
je 0xf643
decl 0x28(%r13)
movl %r8d, %r14d
movl 0x20(%r13), %esi
incl %esi
movq (%r13), %rcx
movl %r14d, %edx
movl %esi, (%rcx,%rdx,8)
movl %ebx, 0x4(%rcx,%rdx,8)
jmp 0xf669
testl %r12d, %r12d
je 0xf67b
movq (%r13), %rax
movl %r14d, %ecx
movl %r15d, (%rax,%rcx,8)
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c6bb(%rip), %rdi     # 0x2bd3d
leaq 0x1b522(%rip), %rsi     # 0x2abab
leaq 0x1c6b6(%rip), %rcx     # 0x2bd46
movl $0x3349, %edx           # imm = 0x3349
callq 0x6220