user: Please show me the C implementation that matches the assembly code listed below:

```asm
<eggDrop>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rdx
  lea    0x0(,%rdx,4),%rax
  mov    %rax,-0x68(%rbp)
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L95:
  cmp    %rcx,%rsp
  je     L65
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L95
L65:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L51
  orq    $0x0,-0x8(%rsp,%rax,1)
L51:
  mov    %rsp,%r15
  mov    -0x74(%rbp),%ebx
  test   %ebx,%ebx
  jle    L3
  mov    -0x68(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  add    $0x1,%ebx
  mov    %ebx,-0x70(%rbp)
  mov    %rax,-0x60(%rbp)
  mov    %r15,%r13
  movq   $0x0,-0x48(%rbp)
  mov    $0x0,%r14d
  mov    $0x1,%r11d
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%ebx
  lea    0x4(%r15),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L145
L24:
  movl   $0x0,(%r15,%r12,4)
L40:
  add    $0x1,%r8d
  add    $0x4,%r10
  cmp    %ebx,%r8d
  je     L144
L56:
  test   %r8d,%r8d
  je     L24
  cmp    $0x1,%r11d
  je     L108
  mov    $0x270f,%ecx
  test   %r8d,%r8d
  jle    L112
  lea    -0x1(%r8),%eax
  add    -0x48(%rbp),%rax
  mov    -0x50(%rbp),%rsi
  lea    (%rsi,%rax,4),%r9
  mov    %r13,%rdx
  mov    %r10,%rsi
  mov    $0x270f,%ecx
L44:
  mov    -0x4(%rsi),%eax
  mov    (%rdx),%edi
  cmp    %edi,%eax
  cmovl  %edi,%eax
  add    $0x1,%eax
  cmp    %eax,%ecx
  cmovg  %eax,%ecx
  sub    $0x4,%rsi
  add    $0x4,%rdx
  cmp    %r9,%rdx
  jne    L44
L112:
  mov    %ecx,(%r10)
  jmp    L40
L108:
  mov    %r8d,(%r10,%r14,4)
  jmp    L40
L144:
  add    $0x1,%r11d
  mov    -0x58(%rbp),%rax
  sub    %rax,%r14
  add    -0x68(%rbp),%r13
  add    %rax,-0x60(%rbp)
  add    %rax,-0x48(%rbp)
  cmp    -0x70(%rbp),%r11d
  je     L3
L145:
  cmpl   $0x0,-0x6c(%rbp)
  js     L144
  mov    -0x60(%rbp),%rax
  lea    (%r15,%rax,4),%r10
  mov    $0x0,%r8d
  movslq %r11d,%r12
  imul   -0x58(%rbp),%r12
  jmp    L56
L3:
  movslq -0x6c(%rbp),%rax
  movslq -0x74(%rbp),%rcx
  mov    -0x68(%rbp),%rdx
  shr    $0x2,%rdx
  imul   %rcx,%rdx
  add    %rdx,%rax
  mov    (%r15,%rax,4),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int eggDrop(int eggs, int floors) {
  int eggfloor[eggs][floors];
  for (int e = 1; e <= eggs; e++) {
    for (int f = 0; f <= floors; f++) {
      if (f == 0) {
        eggfloor[e][f] = 0;
      } else if (e == 1) {
        eggfloor[e][f] = f;
      } else {
        int min = 9999;
        for (int i = 1; i <= f; i++) {
          int sol = ((eggfloor[e - 1][i - 1] > eggfloor[e][f - i]) ? eggfloor[e - 1][i - 1] : eggfloor[e][f - i]) + 1;
          if (sol < min) {
            min = sol;
          }
        }
        eggfloor[e][f] = min;
      }
    }
  }
  return eggfloor[eggs][floors];
}
```