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

```asm
<main>:
  endbr64
  push   %r15
  lea    D14(%rip),%rdi
  push   %r14
  lea    D52(%rip),%r14
  push   %r13
  push   %r12
  lea    D10(%rip),%r12
  push   %rbp
  lea    D61(%rip),%rbp
  push   %rbx
  lea    D74(%rip),%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  nopl   (%rax)
L31:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    %eax,%r9d
  cmp    $0x1,%eax
  jne    L20
  mov    (%rsp),%rsi
  mov    $0x2,%r15d
  mov    $0x4,%ecx
  cmp    $0x3,%rsi
  ja     L7
  jmp    L29
  nopl   0x0(%rax)
L81:
  mov    %rax,%rcx
  mov    %r15,%rdx
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%rsp),%rsi
  xor    %r9d,%r9d
L79:
  add    $0x1,%r15
  mov    %r15,%rcx
  imul   %r15,%rcx
  cmp    %rsi,%rcx
  ja     L11
L7:
  mov    %rsi,%rax
  xor    %edx,%edx
  div    %r15
  test   %rdx,%rdx
  jne    L79
  cmp    %rcx,%rsi
  jne    L81
  mov    %r9d,%ecx
  mov    %r15,%rdx
  mov    %rbp,%rdi
  add    $0x1,%r15
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r15,%rcx
  mov    (%rsp),%rsi
  xor    %r9d,%r9d
  imul   %r15,%rcx
  cmp    %rsi,%rcx
  jbe    L7
L11:
  test   %r9d,%r9d
  jne    L29
L72:
  lea    D50(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L31
L29:
  lea    D78(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L72
L20:
  lea    D54(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D52
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D10
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D61
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D74
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D50
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D78
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D54
type_guessed: string

tool: D14: Please enter an integer for analysis: 

tool: D52: Enter q to quit.

tool: D10: %lu

tool: D61: %lu is divisible by %lu.


tool: D74: %lu is divisible by %lu and %lu.


tool: D50: Please enter another integer for analysis: 

tool: D78: %lu is prime.


tool: D54: Bye.

assistant: ```c
int main(int argc, char const *argv[]) {
  unsigned long num;
  unsigned long div;
  bool isPrime;
  printf("Please enter an integer for analysis: ");
  printf("Enter q to quit.\n");
  while (scanf("%lu", &num) == 1) {
    for (div = 2, isPrime = true; (div * div) <= num; div++) {
      if (num % div == 0) {
        if ((div * div) != num) {
          printf("%lu is divisible by %lu and %lu.\n", num, div, num / div);
        } else {
          printf("%lu is divisible by %lu.\n", num, div, isPrime);
        }
        isPrime = false;
      }
    }
    if (isPrime) {
      printf("%lu is prime.\n", num);
    }
    printf("Please enter another integer for analysis: ");
    printf("Enter q to quit.\n");
  }
  printf("Bye.\n");
  return 0;
}
```