// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-trace.c
// Function: register_call
static void register_call(_u32 pid, _u8* fname,_u32 pcount) {
  _s32 rno = get_procentry(pid,1);

  if (procs[rno].func_name) fatal("out of sequence MESSAGE_ENTER for PID %u",pid);

  procs[rno].par_left  = pcount;
  DYN_FREE(procs[rno].params);
  
  if (!pcount) {
    do_indent(pid,procs[rno].nest,0);
    outf(".- %s()\n",fname);  
    procs[rno].nest++;
  } else {
    procs[rno].func_name = strdup(fname);
    if (!procs[rno].func_name) fatal("out of memory");
  }
  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x4(%rbp), %edi
movl $0x1, %esi
callq 0x2780
movl %eax, -0x18(%rbp)
movq 0x3447(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
je 0x1d5e
jmp 0x1d0d
movq 0x32cc(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x1775(%rip), %rsi      # 0x3496
movb $0x0, %al
callq 0x1170
movq 0x32b1(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x136a(%rip), %rsi      # 0x30a3
leaq 0x1796(%rip), %rdx      # 0x34d6
leaq 0x1371(%rip), %rcx      # 0x30b8
movl $0x82, %r8d
movb $0x0, %al
callq 0x1170
movl $0x1, %edi
callq 0x1140
movl -0x14(%rbp), %ecx
movq 0x33d8(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq 0x33c3(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jae 0x1dd4
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x1dc7
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x1130
jmp 0x1dc9
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1d97
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
je 0x1dea
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x1130
movq -0x28(%rbp), %rax
movq $0x0, (%rax)
movq -0x28(%rbp), %rax
movl $0x0, 0x8(%rax)
cmpl $0x0, -0x14(%rbp)
jne 0x1e5e
movl -0x4(%rbp), %edi
movq 0x3330(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl %edx, %edx
callq 0x28d0
movq 0x32f4(%rip), %rdi      # 0x5120
movq -0x10(%rbp), %rdx
leaq 0x16ad(%rip), %rsi      # 0x34e4
movb $0x0, %al
callq 0x1170
movq 0x32fb(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
jmp 0x1eeb
movq -0x10(%rbp), %rdi
callq 0x11d0
movq %rax, %rcx
movq 0x32cf(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq 0x32b9(%rip), %rax      # 0x5140
movslq -0x18(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
jne 0x1ee9
jmp 0x1e9b
movq 0x313e(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x15b7(%rip), %rsi      # 0x3463
movb $0x0, %al
callq 0x1170
movq 0x3126(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x11df(%rip), %rsi      # 0x30a3
leaq 0x160b(%rip), %rdx      # 0x34d6
leaq 0x11e6(%rip), %rcx      # 0x30b8
movl $0x8d, %r8d
movb $0x0, %al
callq 0x1170
movl $0x1, %edi
callq 0x1140
jmp 0x1eeb
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)