user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x4,%edi
  jle    L15
  mov    %rsi,%rbx
  mov    0x8(%rsi),%rdi
  mov    $0xa,%edx
  mov    $0x0,%esi
  call   <strtol@plt>
  mov    %eax,%r14d
  mov    0x10(%rbx),%rdi
  mov    $0xa,%edx
  mov    $0x0,%esi
  call   <strtol@plt>
  mov    %eax,%r13d
  mov    0x18(%rbx),%rdi
  mov    $0xa,%edx
  mov    $0x0,%esi
  call   <strtol@plt>
  mov    %eax,%r12d
  mov    0x20(%rbx),%rsi
  mov    $0xa,%edx
  mov    $0x0,%edi
  call   <mpz_init_set_str@plt>
  mov    $0x0,%esi
  mov    $0x0,%ebx
  mov    %ebx,%edi
  call   <mpz_init_set_ui@plt>
  mov    $0x0,%ebp
  mov    %ebp,%edi
  call   <mpz_init@plt>
  mov    %ebx,%edi
  call   <mpz_init@plt>
  lea    D12(%rip),%r15
  jmp    L56
L15:
  lea    D17(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L35
L27:
  mov    $0x0,%ebp
  mov    %ebp,%edx
  mov    $0x0,%ebx
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <gmp_printf@plt>
L20:
  mov    $0x1,%edx
  mov    $0x0,%ebx
  mov    %ebx,%esi
  mov    %ebx,%edi
  call   <mpz_add_ui@plt>
L56:
  mov    $0x0,%edi
  mov    %edi,%esi
  mov    $0x0,%ebx
  call   <mpz_cmp@plt>
  test   %rax,%rax
  jg     L51
  mov    $0x0,%ebx
  mov    %ebx,%edx
  mov    %ebx,%esi
  mov    $0x0,%ebp
  mov    %ebp,%edi
  call   <mpz_mul@plt>
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %ebp,%edi
  call   <mpz_mul_ui@plt>
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %ebx,%edi
  call   <mpz_mul_ui@plt>
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %ebp,%edi
  call   <mpz_add@plt>
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %ebp,%edi
  call   <mpz_add_ui@plt>
  mov    %ebp,%edi
  call   <isprime@plt>
  test   %rax,%rax
  je     L27
  mov    %ebp,%edx
  mov    %ebx,%esi
  lea    D20(%rip),%rdi
  call   <gmp_printf@plt>
  jmp    L20
L51:
  mov    %ebx,%edi
  call   <mpz_clear@plt>
  mov    $0x0,%ebp
  mov    %ebp,%edi
  call   <mpz_clear@plt>
  mov    $0x0,%edi
  call   <mpz_clear@plt>
  mov    %ebx,%edi
  call   <mpz_clear@plt>
  mov    $0x0,%eax
L35:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D12
data_type: string
name: extract_symbolic_data
arguments: data_label: D17
data_type: string
name: extract_symbolic_data
arguments: data_label: D20
data_type: string

tool: D12: %Zd %Zd NG


tool: D17: usage : primegen a b c max_n


tool: D20: %Zd %Zd OK


assistant: ```c
int main(int ac, char *av[]) {
  int a, b, c;
  mpz_t n, n2, max_n, tmp;
  if (ac < 5) {
    printf("usage : primegen a b c max_n\n");
    return (1);
  }
  a = strtol(av[1], NULL, 10);
  b = strtol(av[2], NULL, 10);
  c = strtol(av[3], NULL, 10);
  mpz_init_set_str(max_n, av[4], 10);
  mpz_init_set_ui(n, 0);
  mpz_init(n2);
  mpz_init(tmp);
  while (mpz_cmp(n, max_n) <= 0) {
    mpz_mul(n2, n, n);
    mpz_mul_ui(n2, n2, a);
    mpz_mul_ui(tmp, n, b);
    mpz_add(n2, n2, tmp);
    mpz_add_ui(n2, n2, c);
    if (isprime(n2))
      gmp_printf("%Zd %Zd OK\n", n, n2);
    else
      gmp_printf("%Zd %Zd NG\n", n, n2);
    mpz_add_ui(n, n, 1);
  }
  mpz_clear(n);
  mpz_clear(n2);
  mpz_clear(max_n);
  mpz_clear(tmp);
  return (0);
}
```