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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rdi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rbx
  imul   $0x663d81,%rbx,%rbx
  shr    $0x20,%rbx
  cltd
  sub    %edx,%ebx
  imul   $0x281,%ebx,%edx
  sub    %edx,%eax
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rbp
  imul   $0xffffffff883fddf1,%rbp,%rbp
  shr    $0x20,%rbp
  add    %eax,%ebp
  sar    $0x8,%ebp
  cltd
  sub    %edx,%ebp
  imul   $0x1e1,%ebp,%edx
  sub    %edx,%eax
  mov    %eax,%ebp
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%r12
  imul   $0x663d81,%r12,%r12
  shr    $0x20,%r12
  cltd
  sub    %edx,%r12d
  imul   $0x281,%r12d,%edx
  sub    %edx,%eax
  mov    %eax,%r12d
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%r13
  imul   $0xffffffff883fddf1,%r13,%r13
  shr    $0x20,%r13
  add    %eax,%r13d
  sar    $0x8,%r13d
  cltd
  sub    %edx,%r13d
  imul   $0x1e1,%r13d,%edx
  sub    %edx,%eax
  mov    %eax,%r13d
  mov    %ebp,%edx
  mov    %ebx,%esi
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D27(%rip),%rdi
  call   <puts@plt>
  lea    D15(%rip),%r14
L2:
  mov    $0x0,%eax
  call   <_getch@plt>
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %r12d,%ebx
  jne    L2
  cmp    %r13d,%ebp
  jne    L2
  lea    D34(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D28
datatype: string
name: retrieve_data
arguments: data_label: D27
datatype: string
name: retrieve_data
arguments: data_label: D15
datatype: string
name: retrieve_data
arguments: data_label: D34
datatype: string

tool: D28: your starting location (%d,%d)


tool: D27: Please user UP DOWN LEFT and RIGHT arrow keys to move around 

tool: D15: your new location is (%d,%d) 


tool: D34: your level is up ! 

assistant: ```c
int main() {
  int ux = 0, uy = 0;
  int dx = 0, dy = 0;
  char c;
  char ans;
  time_t t;
  srand((unsigned)time(&t));
  ux = rand() % 641;
  uy = rand() % 481;
  dx = rand() % 641;
  dy = rand() % 481;
  printf("your starting location (%d,%d)\n", ux, uy);
  printf("Please user UP DOWN LEFT and RIGHT arrow keys to move around \n");
  do {
    c = _getch();
    if (c = -32) {
      if (c == 72) {
        uy--;
        if (uy < 0) {
          uy = 480;
        }
      }
      if (c == 80) {
        uy++;
        if (uy > 480) {
          uy = 0;
        }
      }
      if (c == 75) {
        ux--;
        if (ux < 0) {
          ux = 640;
        }
      }
      if (c == 77) {
        ux++;
        if (ux > 640) {
          ux = 0;
        }
      }
      if (c == 27) {
        printf("are you sure you want to exit ? (Y/N) ");
        scanf(" %c", &ans);
        if (ans == 'y' || ans == 'Y') {
          exit(0);
        }
      }
    }
    printf("your new location is (%d,%d) \n", ux, uy);
    if (ux == dx && uy == dy) {
      printf("your level is up ! \n");
      return 0;
    }
  } while (c != 27);
  return 0;
}
```