// File: /workspace/github_c_makefile_star2_O2/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 0x169de
movl %eax, %ebx
addl 0x10(%r13), %ebx
movl 0xc(%r13), %esi
movl %ebx, %r14d
andl %esi, %r14d
cmpl $0x0, 0x20(%r13)
je 0xe5fa
movl %r15d, -0x2c(%rbp)
pushq $-0x1
popq %r8
movl %ebx, %r15d
movq (%r13), %rcx
movl %r14d, %edx
movslq (%rcx,%rdx,8), %r12
cmpq $-0x1, %r12
je 0xe5d8
testl %r12d, %r12d
je 0xe5f4
cmpl %ebx, 0x4(%rcx,%rdx,8)
jne 0xe5e0
movl %r8d, -0x30(%rbp)
movq 0x18(%r13), %rax
movq -0x8(%rax,%r12,8), %rsi
movq -0x38(%rbp), %rdi
callq 0xa7f8
testl %eax, %eax
jne 0xe603
movl 0xc(%r13), %esi
movl -0x30(%rbp), %r8d
jmp 0xe5e0
cmpl $-0x1, %r8d
cmovel %r14d, %r8d
shrl $0x5, %r15d
leal (%r14,%r14,4), %ecx
leal (%r15,%rcx), %r14d
incl %r14d
andl %esi, %r14d
jmp 0xe598
movl -0x2c(%rbp), %r15d
jmp 0xe60b
pushq $-0x1
popq %r8
xorl %r12d, %r12d
jmp 0xe60b
movl -0x2c(%rbp), %r15d
movl -0x30(%rbp), %r8d
cmpl $-0x3, %r15d
je 0xe633
cmpl $-0x1, %r15d
je 0xe66b
cmpl $-0x2, %r15d
jne 0xe65b
testl %r12d, %r12d
je 0xe66b
movq (%r13), %rax
movl %r14d, %ecx
orl $-0x1, (%rax,%rcx,8)
incl 0x28(%r13)
jmp 0xe66b
testl %r12d, %r12d
jne 0xe66b
cmpl $-0x1, %r8d
je 0xe645
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 0xe66b
testl %r12d, %r12d
je 0xe67d
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 0x19709(%rip), %rdi     # 0x27d8d
leaq 0x18570(%rip), %rsi     # 0x26bfb
leaq 0x19704(%rip), %rcx     # 0x27d96
movl $0x3349, %edx           # imm = 0x3349
callq 0x6220