// File: /workspace/github_c_makefile_star2_O1/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 0x19091
movl %eax, %esi
addl 0x10(%r13), %esi
movl 0xc(%r13), %r14d
andl %esi, %r14d
cmpl $0x0, 0x20(%r13)
je 0xf607
movl %r15d, -0x2c(%rbp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %esi, %r15d
movl %esi, -0x30(%rbp)
movq (%r13), %rax
movl %r14d, %ecx
movslq (%rax,%rcx,8), %r12
cmpq $-0x1, %r12
je 0xf5e5
testl %r12d, %r12d
je 0xf601
cmpl %esi, 0x4(%rax,%rcx,8)
jne 0xf5ec
movq 0x18(%r13), %rax
movq -0x8(%rax,%r12,8), %rsi
movq -0x38(%rbp), %rdi
movl %edx, %ebx
callq 0xb0b4
movl %ebx, %edx
movl -0x30(%rbp), %esi
testl %eax, %eax
je 0xf5ec
jmp 0xf601
cmpl $-0x1, %edx
cmovel %r14d, %edx
shrl $0x5, %r15d
leal (%r14,%r14,4), %eax
leal (%r15,%rax), %r14d
incl %r14d
andl 0xc(%r13), %r14d
jmp 0xf5aa
movl -0x2c(%rbp), %r15d
jmp 0xf60f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
cmpl $-0x3, %r15d
je 0xf63a
cmpl $-0x1, %r15d
je 0xf671
cmpl $-0x2, %r15d
jne 0xf661
testl %r12d, %r12d
je 0xf671
movq (%r13), %rax
movl %r14d, %ecx
movl $0xffffffff, (%rax,%rcx,8) # imm = 0xFFFFFFFF
incl 0x28(%r13)
jmp 0xf671
testl %r12d, %r12d
jne 0xf671
cmpl $-0x1, %edx
je 0xf64b
decl 0x28(%r13)
movl %edx, %r14d
movl 0x20(%r13), %eax
incl %eax
movq (%r13), %rcx
movl %r14d, %edx
movl %eax, (%rcx,%rdx,8)
movl %esi, 0x4(%rcx,%rdx,8)
jmp 0xf671
testl %r12d, %r12d
je 0xf683
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 0x1d711(%rip), %rdi     # 0x2cd9b
leaq 0x1c572(%rip), %rsi     # 0x2bc03
leaq 0x1d70c(%rip), %rcx     # 0x2cda4
movl $0x3349, %edx           # imm = 0x3349
callq 0x6220