user: Translate the below assembly code into C programming language:

```asm
<generate_points>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %rdx,%r12
  push   %rbx
  mov    %esi,%ebx
  imul   %edi,%ebx
  sub    $0xb8,%rsp
  mov    %esi,-0xac(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %ebx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L157
L99:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L99
L157:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L143
L101:
  xor    %edi,%edi
  mov    %rsp,-0xb8(%rbp)
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  test   %ebx,%ebx
  jle    L41
  mov    -0xb8(%rbp),%rax
  mov    %ebx,%ebx
  mov    %rax,%r14
  lea    (%rax,%rbx,4),%rbx
  nopl   0x0(%rax,%rax,1)
L54:
  xor    %eax,%eax
  add    $0x4,%r14
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x6bca1af3,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x23,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,8),%ecx
  lea    (%rdx,%rcx,2),%edx
  sub    %edx,%eax
  sub    $0x9,%eax
  mov    %eax,-0x4(%r14)
  cmp    %rbx,%r14
  jne    L54
L41:
  mov    $0x5b,%eax
  lea    D73(%rip),%rdi
  mov    %ax,(%r12)
  xor    %eax,%eax
  call   <printf@plt>
  mov    -0xac(%rbp),%edx
  test   %edx,%edx
  jle    L48
  lea    -0x1(%r13),%eax
  mov    %eax,%ecx
  mov    %eax,-0x94(%rbp)
  movslq -0xac(%rbp),%rax
  imul   %eax,%ecx
  mov    %ecx,-0xd4(%rbp)
  mov    %eax,%ecx
  sub    $0x1,%ecx
  mov    %ecx,-0xb0(%rbp)
  jne    L34
  mov    %rax,-0xe0(%rbp)
  lea    D2(%rip),%rax
  lea    D12(%rip),%r15
  mov    %rax,-0xc0(%rbp)
  lea    -0x90(%rbp),%rbx
L145:
  movslq -0xb0(%rbp),%rcx
  mov    -0xe0(%rbp),%rdi
  mov    %rcx,%rax
  add    -0xd4(%rbp),%eax
  mov    %rcx,-0xa8(%rbp)
  shl    $0x2,%rdi
  cltq
  mov    %rdi,-0xa0(%rbp)
  sub    %rcx,%rax
  mov    -0xb8(%rbp),%rcx
  lea    (%rcx,%rax,4),%rax
  mov    %rax,-0xc8(%rbp)
  nopw   0x0(%rax,%rax,1)
L23:
  mov    -0xa8(%rbp),%rax
  mov    -0xb8(%rbp),%r14
  mov    %r15,%rdi
  mov    (%r14,%rax,4),%r13d
  xor    %eax,%eax
  mov    %r13d,%esi
  call   <printf@plt>
  mov    -0xc0(%rbp),%rsi
  mov    %r13d,%edx
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  cmpl   $0x1,-0x94(%rbp)
  jle    L49
  mov    -0xac(%rbp),%ecx
  add    -0xa8(%rbp),%ecx
  mov    $0x1,%r13d
  movslq %ecx,%rax
  lea    (%r14,%rax,4),%r14
  xchg   %ax,%ax
L81:
  mov    (%r14),%edx
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%r13d
  mov    %edx,%esi
  mov    %edx,-0x98(%rbp)
  call   <printf@plt>
  mov    -0x98(%rbp),%edx
  lea    D9(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  add    -0xa0(%rbp),%r14
  cmp    %r13d,-0x94(%rbp)
  jne    L81
L49:
  mov    -0xc8(%rbp),%rax
  mov    -0xa8(%rbp),%r14
  mov    %r15,%rdi
  mov    (%rax,%r14,4),%edx
  xor    %eax,%eax
  add    $0x1,%r14
  mov    %edx,%esi
  mov    %edx,-0x98(%rbp)
  call   <printf@plt>
  mov    -0x98(%rbp),%edx
  lea    D38(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %r14,-0xa8(%rbp)
  cmp    %r14d,-0xac(%rbp)
  jg     L23
L48:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L94
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L34:
  movslq -0xac(%rbp),%rax
  mov    -0xb8(%rbp),%rcx
  movq   $0x0,-0xa8(%rbp)
  lea    D12(%rip),%r15
  lea    -0x90(%rbp),%rbx
  mov    %rax,-0xe0(%rbp)
  shl    $0x2,%rax
  mov    %rax,-0xa0(%rbp)
  movslq -0xd4(%rbp),%rax
  lea    (%rcx,%rax,4),%rax
  mov    %rax,-0xd0(%rbp)
  lea    D2(%rip),%rax
  mov    %rax,-0xc0(%rbp)
  nopl   0x0(%rax)
L117:
  mov    -0xa8(%rbp),%rax
  mov    -0xb8(%rbp),%rcx
  mov    %r15,%rdi
  mov    (%rcx,%rax,4),%r13d
  mov    %eax,-0xc8(%rbp)
  xor    %eax,%eax
  mov    %r13d,%esi
  call   <printf@plt>
  mov    -0xc0(%rbp),%rsi
  mov    %r13d,%edx
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  cmpl   $0x1,-0x94(%rbp)
  jle    L164
  mov    -0xac(%rbp),%eax
  mov    -0xb8(%rbp),%rcx
  mov    $0x1,%r13d
  add    -0xa8(%rbp),%eax
  cltq
  lea    (%rcx,%rax,4),%r14
  nopw   0x0(%rax,%rax,1)
L102:
  mov    (%r14),%edx
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%r13d
  mov    %edx,%esi
  mov    %edx,-0x98(%rbp)
  call   <printf@plt>
  mov    -0x98(%rbp),%edx
  lea    D9(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  add    -0xa0(%rbp),%r14
  cmp    -0x94(%rbp),%r13d
  jne    L102
L164:
  mov    -0xd0(%rbp),%rax
  mov    -0xa8(%rbp),%r14
  mov    %r15,%rdi
  mov    (%rax,%r14,4),%r13d
  xor    %eax,%eax
  add    $0x1,%r14
  mov    %r13d,%esi
  call   <printf@plt>
  mov    %r13d,%edx
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    -0xc8(%rbp),%eax
  mov    %r14,-0xa8(%rbp)
  add    $0x1,%eax
  cmp    %r14d,-0xb0(%rbp)
  jg     L117
  mov    %eax,-0xb0(%rbp)
  cmp    %eax,-0xac(%rbp)
  jg     L145
  jmp    L48
L143:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L101
L94:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D73
type: string
name: disassemble_data
arguments: data_label: D2
type: string
name: disassemble_data
arguments: data_label: D12
type: string
name: disassemble_data
arguments: data_label: D9
type: string
name: disassemble_data
arguments: data_label: D38
type: string
name: disassemble_data
arguments: data_label: D53
type: string

tool: D73: The coordinates :

tool: D2: (%d, 

tool: D12:  %d

tool: D9: %d, 

tool: D38: %d)]

tool: D53: %d), 

assistant: ```c
void generate_points(int dim, int m, char *strpts) {
  int coords[dim * m], i, j;
  srand(time(NULL));
  for (i = 0; i < dim * m; i++)
    coords[i] = -9 + (rand() % 19);
  strpts[0] = '[';
  strpts[1] = '\0';
  printf("The coordinates :");
  for (i = 0; i < m; i++) {
    char strnum[80];
    printf(" %d", coords[i]);
    sprintf(strnum, "(%d, ", coords[i]);
    strcat(strpts, strnum);
    for (j = 1; j < dim - 1; j++) {
      printf(" %d", coords[j * m + i]);
      sprintf(strnum, "%d, ", coords[j * m + i]);
      strcat(strpts, strnum);
    }
    printf(" %d", coords[(dim - 1) * m + i]);
    if (i < m - 1)
      sprintf(strnum, "%d), ", coords[(dim - 1) * m + i]);
    else
      sprintf(strnum, "%d)]", coords[(dim - 1) * m + i]);
    strcat(strpts, strnum);
  }
  printf("\n");
}
```