// File: /workspace/github_c_makefile_star2_O0/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
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1ffa0
movq -0x8(%rbp), %rcx
addl 0x10(%rcx), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
andl 0xc(%rcx), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x24(%rbp)
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x11430
jmp 0x113a7
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, %eax
je 0x1142e
cmpl $-0x1, -0x20(%rbp)
jne 0x113d0
cmpl $-0x1, -0x28(%rbp)
jne 0x113ce
movl -0x1c(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x1140c
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl 0x4(%rax,%rcx,8), %eax
cmpl -0x18(%rbp), %eax
jne 0x1140a
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x20(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
callq 0xcb50
cmpl $0x0, %eax
je 0x11408
jmp 0x1142e
jmp 0x1140a
jmp 0x1140c
movl -0x24(%rbp), %eax
shrl $0x5, %eax
movl %eax, -0x24(%rbp)
imull $0x5, -0x1c(%rbp), %eax
addl $0x1, %eax
addl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
andl 0xc(%rcx), %eax
movl %eax, -0x1c(%rbp)
jmp 0x113a7
jmp 0x11430
movl -0x14(%rbp), %eax
movl %eax, -0x2c(%rbp)
subl $-0x3, %eax
je 0x1147f
jmp 0x1143d
movl -0x2c(%rbp), %eax
subl $-0x2, %eax
je 0x11456
jmp 0x11447
movl -0x2c(%rbp), %eax
subl $-0x1, %eax
jne 0x114c8
jmp 0x11451
jmp 0x114ff
cmpl $0x0, -0x20(%rbp)
je 0x1147a
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl $0xffffffff, (%rax,%rcx,8) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x28(%rax)
jmp 0x114ff
cmpl $0x0, -0x20(%rbp)
jne 0x114c6
cmpl $-0x1, -0x28(%rbp)
je 0x1149e
movl -0x28(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rax
movl 0x20(%rax), %edx
addl $0x1, %edx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl %edx, (%rax,%rcx,8)
movl -0x18(%rbp), %edx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x114ff
cmpl $0x0, -0x20(%rbp)
je 0x114d0
jmp 0x114ef
leaq 0x2ac28(%rip), %rdi     # 0x3c0ff
leaq 0x29838(%rip), %rsi     # 0x3ad16
movl $0x3349, %edx           # imm = 0x3349
leaq 0x2ac1e(%rip), %rcx     # 0x3c108
callq 0x6230
movl -0x14(%rbp), %edx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movl %edx, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)