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

```asm
<main>:
  endbr64
  push   %r15
  lea    D4(%rip),%rsi
  mov    $0x70,%ecx
  mov    $0x2,%r15d
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  mov    $0x2,%r12d
  push   %rbp
  mov    $0x2,%ebp
  push   %rbx
  sub    $0x3a8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x398(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  rep movsq %ds:(%rsi),%es:(%rdi)
  movl   $0xa9,0x90(%rsp)
  mov    (%rsi),%eax
  mov    %eax,(%rdi)
  xor    %edi,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    0x10(%rsp),%rdi
  cltd
  mov    %rdi,0x8(%rsp)
  shr    $0x1e,%edx
  lea    (%rax,%rdx,1),%ebx
  and    $0x3,%ebx
  sub    %edx,%ebx
  add    $0x1,%ebx
  mov    %ebx,%esi
  call   <imprimir@plt>
  movl   $0x2,0x4(%rsp)
  jmp    L117
  nopw   0x0(%rax,%rax,1)
L114:
  test   %r13d,%r13d
  je     L47
L139:
  mov    %rbp,%rax
  lea    0x1(%r15),%ecx
  shl    $0x4,%rax
  sub    %rbp,%rax
  lea    (%rax,%r12,1),%rdx
  movl   $0xff,0x10(%rsp,%rdx,4)
  cmp    $0x1,%ebx
  je     L4
  lea    -0x1(%r15),%ecx
  cmp    $0x2,%ebx
  je     L4
  cmp    $0x3,%ebx
  jne    L65
  mov    0x4(%rsp),%esi
  lea    0x1(%rsi),%ecx
L84:
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  sub    %rdx,%rax
  add    %r12,%rax
  cmpl   $0xff,0x10(%rsp,%rax,4)
  cmovne %esi,%ecx
  cmove  %rdx,%rbp
  mov    %ecx,0x4(%rsp)
L49:
  mov    %rbp,%rax
  mov    0x8(%rsp),%rdi
  mov    %ebx,%esi
  add    $0x1,%r14d
  shl    $0x4,%rax
  sub    %rbp,%rax
  add    %r12,%rax
  movl   $0xa9,0x10(%rsp,%rax,4)
  call   <imprimir@plt>
  imul   $0xcccccccd,%r14d,%eax
  ror    %eax
  cmp    $0x19999999,%eax
  jbe    L124
L14:
  mov    $0x1,%r13d
L47:
  mov    $0x64,%edi
  call   <Sleep@plt>
L117:
  xor    %eax,%eax
  call   <kbhit@plt>
  test   %rax,%rax
  je     L114
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0x72,%al
  je     L139
  cmp    $0x70,%al
  jne    L114
  xor    %r13d,%r13d
  jmp    L47
  nopl   (%rax)
L4:
  movslq %ecx,%rdx
  add    %rdx,%rax
  cmpl   $0xff,0x10(%rsp,%rax,4)
  cmove  %ecx,%r15d
  cmove  %rdx,%r12
  jmp    L49
L65:
  cmp    $0x4,%ebx
  jne    L49
  mov    0x4(%rsp),%esi
  lea    -0x1(%rsi),%ecx
  jmp    L84
L124:
  xor    %eax,%eax
  call   <rand@plt>
  cltd
  shr    $0x1e,%edx
  lea    (%rax,%rdx,1),%ebx
  and    $0x3,%ebx
  sub    %edx,%ebx
  add    $0x1,%ebx
  jmp    L14
```

tool_calls: name: retrieve_data
arguments: data_label: D4
data_type: string

tool: D4: #

assistant: ```c
int main(int argc, char *argv[]) {
  int mapa[15][15] = {{35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35}, {35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35}};
  char tecla;
  int band, dir, fp, cp, tiempo;
  fp = 2;
  cp = 2;
  mapa[fp][cp] = 169;
  band = 1;
  srand(time(0));
  dir = rand() % 4 + 1;
  imprimir(mapa, dir);
  tiempo = 0;
  while (1) {
    tecla = 0;
    if (kbhit())
      tecla = getch();
    if (tecla == 'r')
      band = 1;
    if (tecla == 'p')
      band = 0;
    if (band) {
      mapa[fp][cp] = 255;
      if (dir == 1) {
        if (mapa[fp][cp + 1] == 255) {
          cp++;
        }
      }
      if (dir == 2) {
        if (mapa[fp][cp - 1] == 255) {
          cp--;
        }
      }
      if (dir == 3) {
        if (mapa[fp + 1][cp] == 255) {
          fp++;
        }
      }
      if (dir == 4) {
        if (mapa[fp - 1][cp] == 255) {
          fp--;
        }
      }
      mapa[fp][cp] = 169;
      imprimir(mapa, dir);
      tiempo++;
      if (tiempo % 10 == 0) {
        dir = rand() % 4 + 1;
      }
    }
    if (tecla == 'p')
      band = 0;
    if (tecla == 'r')
      band = 1;
    Sleep(100);
  }
  return 0;
}
```