user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x1c(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L48
L20:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x24(%rbp)
L48:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L20
  mov    -0x28(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L62
L94:
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  addl   $0x1,-0x24(%rbp)
L62:
  mov    -0x28(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L94
  movl   $0x0,-0x24(%rbp)
  jmp    L90
L80:
  movl   $0x0,-0x20(%rbp)
  jmp    L124
L59:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x20(%rbp)
L124:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x20(%rbp)
  jle    L59
  addl   $0x1,-0x24(%rbp)
L90:
  mov    -0x28(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L80
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  movl   $0x1,-0x24(%rbp)
  jmp    L95
L129:
  mov    -0x10(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x24(%rbp)
L95:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L129
  movl   $0x1,-0x24(%rbp)
  jmp    L142
L107:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movl   $0x1,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x24(%rbp)
L142:
  mov    -0x28(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L107
  mov    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%esi
  mov    -0x1c(%rbp),%edi
  mov    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <egg@plt>
  mov    %eax,%esi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x24(%rbp)
  jmp    L82
L50:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x24(%rbp)
L82:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L50
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D41
data_type: string
name: disassemble_data
arguments: label: D15
data_type: string
name: disassemble_data
arguments: label: D54
data_type: string
name: disassemble_data
arguments: label: D48
data_type: string
name: disassemble_data
arguments: label: D1
data_type: string

tool: D41: Enter number of floor

tool: D15: %d

tool: D54: Enter number of eggs

tool: D48: Answer is %d


tool: D1: %d 

assistant: ```c
int main(void) {
  int N, K, i, j, max, min, sta, x;
  int *pi;
  int floo = 1;
  printf("Enter number of floor\n");
  scanf("%d", &N);
  printf("Enter number of eggs\n");
  scanf("%d", &K);
  pi = (int *)malloc(sizeof(int) * (N + 1));
  for (i = 0; i < N + 1; i++) {
    pi[i] = -1;
  }
  int **table;
  table = (int **)malloc(sizeof(int *) * (K + 1));
  for (i = 0; i < K + 1; i++) {
    table[i] = (int *)malloc(sizeof(int) * (N + 1));
  }
  for (i = 0; i < K + 1; i++) {
    for (j = 0; j < N + 1; j++) {
      table[i][j] = -1;
    }
  }
  table[0][0] = 0;
  for (i = 1; i < N + 1; i++) {
    table[1][i] = i;
    table[0][i] = 0;
  }
  for (i = 1; i < K + 1; i++) {
    table[i][1] = 1;
    table[i][0] = 0;
  }
  printf("Answer is %d\n", egg(table, K, N, pi, floo));
  for (i = 0; i < N + 1; i++) {
    printf("%d ", pi[i]);
  }
  printf("\n");
  return 0;
}
```