user: 下面的汇编指令对应的C源代码是什么：

```asm
<negamax_create_dist_map>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %esi,-0xac(%rbp)
  mov    %edx,-0xb0(%rbp)
  mov    %ecx,-0xb4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0xac(%rbp),%eax
  imul   -0xb0(%rbp),%eax
  mov    %eax,-0x84(%rbp)
  movl   $0xffffffff,-0x50(%rbp)
  mov    -0xac(%rbp),%eax
  neg    %eax
  mov    %eax,-0x4c(%rbp)
  movl   $0x1,-0x48(%rbp)
  mov    -0xac(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  movl   $0x1,-0x98(%rbp)
  mov    -0x84(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x78(%rbp)
  mov    -0xb4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x70(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L172:
  cmp    %rdx,%rsp
  je     L156
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L172
L156:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L71
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L71:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x68(%rbp)
  movl   $0x1,-0x94(%rbp)
  mov    -0x68(%rbp),%rax
  mov    -0xb4(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L39
L4:
  mov    %rsp,%rax
  mov    %rax,%r12
  addl   $0x1,-0x98(%rbp)
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x60(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L14:
  cmp    %rdx,%rsp
  je     L181
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L14
L181:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L84
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L84:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  movl   $0x0,-0x90(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L109
L134:
  mov    -0x68(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x80(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L73
L89:
  mov    -0x88(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%edx
  mov    -0x80(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x7c(%rbp)
  cmpl   $0x0,-0x7c(%rbp)
  js     L34
  mov    -0x7c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jg     L34
  cmpl   $0x0,-0x88(%rbp)
  jne    L107
  mov    -0x80(%rbp),%eax
  cltd
  idivl  -0xac(%rbp)
  mov    %edx,%eax
  test   %eax,%eax
  je     L106
L107:
  cmpl   $0x2,-0x88(%rbp)
  jne    L170
  mov    -0x80(%rbp),%eax
  add    $0x1,%eax
  cltd
  idivl  -0xac(%rbp)
  mov    %edx,%eax
  test   %eax,%eax
  je     L165
L170:
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L242
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L242
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x98(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x90(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x90(%rbp)
  mov    -0x58(%rbp),%rdx
  cltq
  mov    -0x7c(%rbp),%ecx
  mov    %ecx,(%rdx,%rax,4)
  jmp    L112
L34:
  nop
  jmp    L112
L106:
  nop
  jmp    L112
L165:
  nop
  jmp    L112
L242:
  nop
L112:
  addl   $0x1,-0x88(%rbp)
L73:
  cmpl   $0x3,-0x88(%rbp)
  jle    L89
  addl   $0x1,-0x8c(%rbp)
L109:
  mov    -0x8c(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L134
  mov    -0x84(%rbp),%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x68(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x90(%rbp),%eax
  mov    %eax,-0x94(%rbp)
  mov    %r12,%rsp
L39:
  cmpl   $0x0,-0x94(%rbp)
  jne    L4
  mov    -0x78(%rbp),%rax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L35
  call   <__stack_chk_fail@plt>
L35:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int *negamax_create_dist_map(int *map, int map_width, int map_height, int map_position) {
  int map_length = map_width * map_height;
  int map_moves[4] = {-1, -map_width, 1, map_width};
  int dist_score = 1;
  int *dist_map = calloc(map_length, sizeof(int));
  dist_map[map_position] = 1;
  int queue[map_length];
  int queue_length = 1;
  queue[0] = map_position;
  while (queue_length) {
    dist_score++;
    int buff[map_length];
    int buff_length = 0;
    for (int i = 0; i < queue_length; i++) {
      int curr_pos = queue[i];
      for (int move = 0; move < 4; move++) {
        int next_pos = curr_pos + map_moves[move];
        if (next_pos < 0 || next_pos > map_length)
          continue;
        if (move == 0 && curr_pos % map_width == 0)
          continue;
        if (move == 2 && (curr_pos + 1) % map_width == 0)
          continue;
        if (map[next_pos] || dist_map[next_pos])
          continue;
        dist_map[next_pos] = dist_score;
        buff[buff_length++] = next_pos;
      }
    }
    memcpy(queue, buff, map_length);
    queue_length = buff_length;
  }
  return dist_map;
}
```