// File: /workspace/github_c_makefile_star2_O2/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 0x7b1b
movq %r15, %rdi
callq 0x7ce0
cmpq $-0x1, 0x88(%r15)
jne 0x7ba5
movq 0x50(%r15), %rcx
testq %rcx, %rcx
je 0x7b36
movq 0x60(%r15), %rax
cmpq %rcx, %rax
jb 0x7ba5
addq %rax, %rax
movq 0x40(%r15), %rcx
jmp 0x7b43
movq 0x40(%r15), %rcx
movq %rcx, %rax
cmpq $-0x1, %rcx
je 0x7b60
movq %rcx, %rbx
addq %rcx, %rcx
cmpq %rax, %rbx
jb 0x7b43
cmpq %rax, 0x60(%r15)
jbe 0x7b63
pushq $-0x1
popq %rbx
pushq $0x48
popq %r14
jmp 0x7c5f
pushq $-0x1
popq %rbx
imulq $0x28, %rbx, %rsi
leaq -0x1(%rbx), %r14
movq 0x30(%r15), %rdi
callq 0x52a0
cmpq $0x0, 0x48(%r15)
je 0x7b94
movq %rax, 0x68(%r15)
movq %rbx, 0x70(%r15)
movq %r14, 0x78(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%r15)
jmp 0x7ba5
movq %rax, 0x48(%r15)
movq %rbx, 0x50(%r15)
movq %r14, 0x58(%r15)
andq $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)
movq $0x0, (%rsp)
xorl %r14d, %r14d
cmpq $0x2, %r14
je 0x7c3b
movq %r14, %rax
shlq $0x5, %rax
movq 0x18(%rsp), %rcx
movl 0x10(%rcx,%rax), %ebx
andl 0x20(%rsp), %ebx
leaq (,%rbx,8), %rbp
addq (%rcx,%rax), %rbp
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x7c2e
movq 0x18(%r15), %rax
movq (%rbp), %rcx
testq %rax, %rax
je 0x7c1d
movq 0x8(%rbp), %r8
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *%rax
testl %eax, %eax
jne 0x7c22
jmp 0x7c28
cmpq %r13, %rcx
je 0x7c28
addq $0x20, %rbp
jmp 0x7bf2
movb $0x1, %al
movq %rax, (%rsp)
incq %r14
cmpq $-0x1, 0x88(%r15)
jne 0x7bcc
cmpb $0x1, (%rsp)
jne 0x7c48
xorl %eax, %eax
jmp 0x7cd1
xorl %r14d, %r14d
cmpq $-0x1, 0x88(%r15)
setne %r14b
shll $0x5, %r14d
orq $0x48, %r14
movq 0x30(%r15), %rdi
pushq $0x28
popq %rsi
callq 0x52d0
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 0x7c9a
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 0x7cc2
movq %r15, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq *%rax
movq %rax, %rsi
jmp 0x7cc7
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