user: 请从给定的汇编指令推导出C源代码:

```asm
<eggDrop>:
  endbr64
  push   %rbp
  mov    %edi,%eax
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  movslq %esi,%rbx
  lea    0x0(,%rbx,4),%rsi
  sub    $0x58,%rsp
  mov    %ebx,-0x64(%rbp)
  mov    %fs:0x28,%rdx
  mov    %rdx,-0x38(%rbp)
  xor    %edx,%edx
  movslq %edi,%rdx
  mov    %rsi,-0x70(%rbp)
  mov    %rsp,%rsi
  mov    %rdx,-0x78(%rbp)
  imul   %rbx,%rdx
  mov    %rbx,-0x80(%rbp)
  lea    0xf(,%rdx,4),%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L99
L127:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L127
L99:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L149
L121:
  mov    -0x70(%rbp),%rsi
  mov    %rsp,%rbx
  mov    %rbx,-0x48(%rbp)
  shr    $0x2,%rsi
  mov    %rsi,-0x58(%rbp)
  test   %eax,%eax
  jle    L89
  add    $0x1,%eax
  mov    %rbx,%r14
  xor    %r13d,%r13d
  xor    %r15d,%r15d
  mov    %eax,-0x68(%rbp)
  mov    %rbx,%rax
  mov    -0x64(%rbp),%ebx
  mov    $0x1,%r11d
  add    $0x4,%rax
  mov    %rax,-0x50(%rbp)
  add    $0x1,%ebx
L59:
  mov    -0x64(%rbp),%edx
  mov    -0x70(%rbp),%rax
  test   %edx,%edx
  js     L136
  add    %r14,%rax
  movslq %r11d,%r12
  xor    %r8d,%r8d
  mov    %rax,-0x60(%rbp)
  imul   -0x58(%rbp),%r12
  mov    %rax,%r10
  nopl   0x0(%rax)
L57:
  test   %r8d,%r8d
  je     L114
  cmp    $0x1,%r11d
  je     L37
  mov    -0x50(%rbp),%rsi
  lea    -0x1(%r8),%eax
  mov    %r14,%rdx
  mov    $0x270f,%ecx
  add    %r13,%rax
  lea    (%rsi,%rax,4),%r9
  mov    %r10,%rsi
  nopl   (%rax)
L26:
  mov    -0x4(%rsi),%eax
  mov    (%rdx),%edi
  cmp    %edi,%eax
  cmovl  %edi,%eax
  add    $0x1,%eax
  cmp    %eax,%ecx
  cmovg  %eax,%ecx
  add    $0x4,%rdx
  sub    $0x4,%rsi
  cmp    %r9,%rdx
  jne    L26
  mov    %ecx,(%r10)
L52:
  add    $0x1,%r8d
  add    $0x4,%r10
  cmp    %ebx,%r8d
  jne    L57
L144:
  mov    -0x58(%rbp),%rax
  mov    -0x60(%rbp),%r14
  add    $0x1,%r11d
  sub    %rax,%r15
  add    %rax,%r13
  cmp    -0x68(%rbp),%r11d
  jne    L59
L89:
  mov    -0x48(%rbp),%rbx
  mov    -0x78(%rbp),%rax
  imul   -0x58(%rbp),%rax
  add    -0x80(%rbp),%rax
  mov    (%rbx,%rax,4),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L91
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L114:
  mov    -0x48(%rbp),%rax
  movl   $0x0,(%rax,%r12,4)
  jmp    L52
  cs nopw 0x0(%rax,%rax,1)
L37:
  mov    %r8d,(%r10,%r15,4)
  jmp    L52
L136:
  add    %r14,%rax
  mov    %rax,-0x60(%rbp)
  jmp    L144
L149:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L121
L91:
  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];
}
```