// File: /workspace/github_c_makefile_star2_O3/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_set_if_absent
uint8_t hash_map_set_if_absent(hash_map *map, const void *key, size_t ksiz, const void *val, size_t vsiz)
{
  size_t index;
  uint8_t found;
  hash_map_entry *entry;
  hash_table *table;

  if (HASH_MAP_IS_REHASHING(map)) {
    hash_map_rehash_step(map, 1);
  }

  index = hash_map_key_index(map, key, ksiz, &found);
  if (found == 1) {
    return 0;
  }

  table = HASH_MAP_IS_REHASHING(map) ? &map->tables[1] : &map->tables[0];

  entry = HASH_MAP_MALLOC(map, sizeof(hash_map_entry));
  entry->next = table->buckets[index];
  table->buckets[index] = entry;
  ++(table->used);

  HASH_MAP_ENTRY_SET_KEY(map, entry, key, ksiz);
  HASH_MAP_ENTRY_SET_VALUE(map, entry, val, vsiz);

  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
cmpq $-0x1, 0x88(%rdi)
je 0x7dd9
movq %r15, %rdi
callq 0x7fb5
cmpq $-0x1, 0x88(%r15)
jne 0x7e7c
movq 0x50(%r15), %rcx
testq %rcx, %rcx
je 0x7df8
movq 0x60(%r15), %rax
cmpq %rcx, %rax
jb 0x7e7c
addq %rax, %rax
movq 0x40(%r15), %rcx
jmp 0x7e05
movq 0x40(%r15), %rcx
movq %rcx, %rax
cmpq $-0x1, %rcx
je 0x7e28
movq %rcx, %rbx
addq %rcx, %rcx
cmpq %rax, %rbx
jb 0x7e05
cmpq %rax, 0x60(%r15)
jbe 0x7e2f
movl $0x48, %r14d
movq $-0x1, %rbx
jmp 0x7f32
movq $-0x1, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,4), %rsi
leaq -0x1(%rbx), %r14
movq 0x30(%r15), %rdi
callq 0x5290
cmpq $0x0, 0x48(%r15)
je 0x7e68
movq %rax, 0x68(%r15)
movq %rbx, 0x70(%r15)
movq %r14, 0x78(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%r15)
jmp 0x7e7c
movq %rax, 0x48(%r15)
movq %rbx, 0x50(%r15)
movq %r14, 0x58(%r15)
movq $0x0, 0x60(%r15)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *(%r15)
movl %eax, %eax
movq %rax, 0x20(%rsp)
leaq 0x48(%r15), %rax
movq %rax, 0x18(%rsp)
movb $0x1, %bpl
movq $0x0, (%rsp)
xorl %eax, %eax
shlq $0x5, %rax
movq 0x18(%rsp), %rcx
movl 0x10(%rcx,%rax), %ebx
andl 0x20(%rsp), %ebx
movq (%rcx,%rax), %rax
movq (%rax,%rbx,8), %r14
testq %r14, %r14
je 0x7ef5
movq 0x18(%r15), %rax
movq (%r14), %rcx
testq %rax, %rax
je 0x7ee4
movq 0x8(%r14), %r8
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *%rax
testl %eax, %eax
jne 0x7ee9
jmp 0x7eef
cmpq %r13, %rcx
je 0x7eef
movq 0x20(%r14), %r14
jmp 0x7ebe
movb $0x1, %al
movq %rax, (%rsp)
movq 0x88(%r15), %rcx
cmpq $-0x1, %rcx
setne %dl
movl $0x1, %eax
testb %dl, %bpl
movl $0x0, %ebp
jne 0x7ea5
cmpb $0x1, (%rsp)
jne 0x7f1f
xorl %eax, %eax
jmp 0x7fa6
xorl %r14d, %r14d
cmpq $-0x1, %rcx
setne %r14b
shll $0x5, %r14d
orq $0x48, %r14
movq 0x30(%r15), %rdi
movl $0x28, %esi
callq 0x52c0
movq %rax, %rbp
movq (%r15,%r14), %rax
movq (%rax,%rbx,8), %rcx
movq %rcx, 0x20(%rbp)
movq %rbp, (%rax,%rbx,8)
incq 0x18(%r15,%r14)
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x7f6f
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *%rax
movq %rax, %r13
movq 0x8(%rsp), %rsi
movq %r13, (%rbp)
movq %r12, 0x8(%rbp)
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x7f97
movq %r15, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq *%rax
movq %rax, %rsi
jmp 0x7f9c
movq 0x10(%rsp), %rbx
movq %rsi, 0x10(%rbp)
movq %rbx, 0x18(%rbp)
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq