user: What is the c source code of the assembly code below:

```asm
<dig_level>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,-0x18(%rbp)
L9:
  cmpl   $0x0,-0x24(%rbp)
  je     L66
  mov    -0x24(%rbp),%eax
  jmp    L109
L66:
  mov    $0xc,%eax
L109:
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0x20(%rbp)
  je     L14
  mov    -0x20(%rbp),%eax
  jmp    L120
L14:
  mov    $0x18,%eax
L120:
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x20(%rbp)
  je     L49
  cmpl   $0x0,-0x24(%rbp)
  jne    L125
L49:
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x8(%rbp),%esi
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <dig_room@plt>
  test   %rax,%rax
  je     L9
L125:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  shl    $0x2,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L128
L58:
  movl   $0x0,-0x10(%rbp)
  nop
L25:
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x10(%rbp)
  cmp    $0x270f,%eax
  jg     L116
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x1c(%rbp),%edx
  lea    0x0(,%rdx,8),%ecx
  cltd
  idiv   %ecx
  mov    -0x8(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    0x0(,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x20(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x1c(%rbp),%edx
  lea    0x0(,%rdx,8),%ecx
  cltd
  idiv   %ecx
  mov    -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    0x0(,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%esi
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <dig_room@plt>
  test   %rax,%rax
  je     L25
L116:
  cmpl   $0x2710,-0x10(%rbp)
  jg     L39
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x8(%rbp),%esi
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <dig_path@plt>
  addl   $0x1,-0x14(%rbp)
L128:
  mov    -0x14(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L58
  jmp    L9
L39:
  nop
  leave
  ret
```

assistant: ```c
void dig_level() {
  int new_ry = 0;
  int new_rx = 0;
  int radius = 1 + rand() % 2;
  bool radial = (bool)rand() % 2;
  while (true) {
    int ry = (0 == new_ry ? 24 / 2 : new_ry);
    int rx = (0 == new_rx ? 48 / 2 : new_rx);
    if ((0 != new_rx && 0 != new_ry) || dig_room(ry, rx, radius, radial)) {
      int paths = 1 + rand() % 5;
      for (int p = 0; p < paths; p++) {
        int tries = 0;
        while (tries++ < 10000 && !dig_room(new_ry = ry + rand() % (8 * radius) - 4 * radius, new_rx = rx + rand() % (8 * radius) - 4 * radius, radius = 1 + rand() % 2, radial = rand() % 2))
          ;
        if (tries > 10000)
          return;
        dig_path(ry, rx, new_ry, new_rx);
      }
    }
  }
}
```