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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x130,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movl   $0x0,-0x118(%rbp)
  jmp    L34
L88:
  movl   $0x0,-0x114(%rbp)
  jmp    L5
L87:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  add    %ecx,%ecx
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    -0x114(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x118(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  mov    %eax,-0x110(%rbp,%rdx,4)
  addl   $0x1,-0x114(%rbp)
L5:
  cmpl   $0x7,-0x114(%rbp)
  jle    L87
  addl   $0x1,-0x118(%rbp)
L34:
  cmpl   $0x7,-0x118(%rbp)
  jle    L88
L27:
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x124(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <scanf_s@plt>
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x120(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <scanf_s@plt>
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x11c(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <scanf_s@plt>
  mov    -0x124(%rbp),%eax
  test   %eax,%eax
  jg     L60
  mov    -0x124(%rbp),%eax
  cmp    $0x7,%eax
  jle    L60
  mov    -0x120(%rbp),%eax
  test   %eax,%eax
  jg     L60
  mov    -0x120(%rbp),%eax
  cmp    $0x7,%eax
  jle    L60
  mov    -0x11c(%rbp),%eax
  test   %eax,%eax
  jg     L27
L60:
  mov    -0x11c(%rbp),%ecx
  mov    -0x120(%rbp),%edx
  mov    -0x124(%rbp),%esi
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <reach@plt>
  mov    %eax,%esi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L65
  call   <__stack_chk_fail@plt>
L65:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D60
type_guessed: string
name: read_data
arguments: label: D9
type_guessed: string
name: read_data
arguments: label: D49
type_guessed: string
name: read_data
arguments: label: D33
type_guessed: string
name: read_data
arguments: label: D59
type_guessed: string
name: read_data
arguments: label: D23
type_guessed: string

tool: D60: Enter row: 

tool: D9: %i

tool: D49: Enter column: 

tool: D33: Enter radius: 

tool: D59: The total amount of points gathered is %i.



tool: D23: pause

assistant: ```c
int main() {
  int matrix[8][8], x, y, radius;
  srand(time(NULL));
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      matrix[i][j] = rand() % 3;
    }
  }
  do {
    printf("Enter row: ");
    scanf_s("%i", &x);
    printf("Enter column: ");
    scanf_s("%i", &y);
    printf("Enter radius: ");
    scanf_s("%i", &radius);
  } while (x <= 0 && x >= 8 && y <= 0 && y >= 8 && radius > 0);
  printf("The total amount of points gathered is %i.\n\n", reach(matrix, x, y, radius));
  system("pause");
  return 0;
}
```