// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-main.c
// Function: register_new_exec
static _u8 register_new_exec(struct bunny_traceitem* t, _u8 queue) {
  _u8* inp;
  _u32 pos = t->exec_cksum & 0xFFF;
  _u32 i;

  for (i=0;i<known_exec[pos].c;i++)
    if (known_exec[pos].v[i] == t->exec_cksum) return 0;
  
  ADDINT64(known_exec[pos],t->exec_cksum);
  ADDPTR(known_exti[pos],t);
  epath_cnt++;

  t->param_cksum = 0; /* unknown */

  if (queue) {
    inp = make_input("case");
    add_queue(inp,0);
    outf("    + New call path stored at '%s' (c=%016llx).\n",inp,t->exec_cksum);

    if (t->func_skip)
      outf("      >>> Skipped %u function calls (limit is %u, use -M to adjust).\n",t->func_skip,func_limit);

  }

  return 1;
  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
andq $0xfff, %rax            # imm = 0xFFF
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl -0x24(%rbp), %ecx
movl %ecx, %edx
leaq 0x9c27(%rip), %rcx      # 0x123d0
shlq $0x4, %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
jae 0x87f2
movl -0x24(%rbp), %eax
movl %eax, %ecx
leaq 0x9c0f(%rip), %rax      # 0x123d0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl -0x28(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x87e5
movb $0x0, -0x1(%rbp)
jmp 0x8b12
jmp 0x87e7
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x879a
jmp 0x87f4
movl -0x24(%rbp), %eax
movl %eax, %ecx
leaq 0x9bd0(%rip), %rax      # 0x123d0
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x7f, %eax
cmpl $0x0, %eax
jne 0x88ed
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rax
movl 0x8(%rax), %eax
addl $0x81, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x88eb
jmp 0x8858
jmp 0x885a
leaq 0x5cab(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x9a68(%rip)      # 0x122d8
je 0x8887
movq 0x9a5f(%rip), %rdi      # 0x122d8
leaq 0x5c8c(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0x8889
jmp 0x888b
leaq 0x591f(%rip), %rdi      # 0xe1b1
leaq 0x776d(%rip), %rsi      # 0x10006
leaq 0x5921(%rip), %rdx      # 0xe1c1
movl $0x386, %ecx            # imm = 0x386
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x9a24(%rip)      # 0x122d8
je 0x88df
movq 0x9a1b(%rip), %rdi      # 0x122d8
leaq 0x58ed(%rip), %rsi      # 0xe1b1
leaq 0x773b(%rip), %rdx      # 0x10006
leaq 0x58ef(%rip), %rcx      # 0xe1c1
movl $0x386, %r8d            # imm = 0x386
movb $0x0, %al
callq 0x22d0
jmp 0x88e1
movl $0x1, %edi
callq 0x2250
jmp 0x88ed
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x30(%rbp), %rsi
movl 0x8(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x8(%rsi)
movl %ecx, %ecx
movq %rdx, (%rax,%rcx,8)
jmp 0x8913
movl -0x24(%rbp), %eax
movl %eax, %ecx
leaq 0x19ab1(%rip), %rax     # 0x223d0
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x7f, %eax
cmpl $0x0, %eax
jne 0x8a0c
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
addl $0x81, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x8a0a
jmp 0x8977
jmp 0x8979
leaq 0x5b8c(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x9949(%rip)      # 0x122d8
je 0x89a6
movq 0x9940(%rip), %rdi      # 0x122d8
leaq 0x5b6d(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0x89a8
jmp 0x89aa
leaq 0x5800(%rip), %rdi      # 0xe1b1
leaq 0x764e(%rip), %rsi      # 0x10006
leaq 0x5802(%rip), %rdx      # 0xe1c1
movl $0x387, %ecx            # imm = 0x387
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x9905(%rip)      # 0x122d8
je 0x89fe
movq 0x98fc(%rip), %rdi      # 0x122d8
leaq 0x57ce(%rip), %rsi      # 0xe1b1
leaq 0x761c(%rip), %rdx      # 0x10006
leaq 0x57d0(%rip), %rcx      # 0xe1c1
movl $0x387, %r8d            # imm = 0x387
movb $0x0, %al
callq 0x22d0
jmp 0x8a00
movl $0x1, %edi
callq 0x2250
jmp 0x8a0c
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %rsi
movl 0x8(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x8(%rsi)
movl %ecx, %ecx
movq %rdx, (%rax,%rcx,8)
movl 0x992a(%rip), %eax      # 0x1235c
addl $0x1, %eax
movl %eax, 0x9921(%rip)      # 0x1235c
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
cmpb $0x0, -0x11(%rbp)
je 0x8b0e
leaq 0x75c0(%rip), %rdi      # 0x10018
callq 0xc110
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5ef0
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
leaq 0x759c(%rip), %rdi      # 0x1001d
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x9848(%rip)      # 0x122d8
je 0x8ab3
movq 0x983f(%rip), %rdi      # 0x122d8
movq -0x20(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
leaq 0x7571(%rip), %rsi      # 0x1001d
movb $0x0, %al
callq 0x22d0
jmp 0x8ab5
movq -0x10(%rbp), %rax
cmpl $0x0, 0x38(%rax)
je 0x8b0c
jmp 0x8ac1
movq -0x10(%rbp), %rax
movl 0x38(%rax), %esi
movl 0x9742(%rip), %edx      # 0x12210
leaq 0x7579(%rip), %rdi      # 0x1004e
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x97f4(%rip)      # 0x122d8
je 0x8b08
movq 0x97eb(%rip), %rdi      # 0x122d8
movq -0x10(%rbp), %rax
movl 0x38(%rax), %edx
movl 0x9716(%rip), %ecx      # 0x12210
leaq 0x754d(%rip), %rsi      # 0x1004e
movb $0x0, %al
callq 0x22d0
jmp 0x8b0a
jmp 0x8b0c
jmp 0x8b0e
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)