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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  D27(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  cmpl   $0x2,-0x24(%rbp)
  je     L56
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L56:
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  movd   %xmm0,%eax
  mov    %eax,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  D102(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  D48(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L32
L38:
  addl   $0x1,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x14(%rbp),%xmm0
  movss  -0xc(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x10(%rbp),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x18(%rbp)
L32:
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x18(%rbp),%xmm0
  ucomiss -0x10(%rbp),%xmm0
  jp     L64
  ucomiss -0x10(%rbp),%xmm0
  je     L7
L64:
  cmpl   $0xff,-0x14(%rbp)
  jg     L7
  cmpl   $0xff,-0x18(%rbp)
  jle    L38
L7:
  cmpl   $0x0,-0x14(%rbp)
  js     L65
  cmpl   $0xff,-0x14(%rbp)
  jle    L12
L65:
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L12:
  cmpl   $0x2,-0x18(%rbp)
  jle    L52
  cmpl   $0xff,-0x18(%rbp)
  jle    L23
L52:
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L23:
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x14(%rbp),%eax
  cltq
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%eax
  shl    $0x8,%eax
  cltq
  add    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D27
datatype: f32
name: retrieve_data
arguments: data_label: D101
datatype: string
name: retrieve_data
arguments: data_label: D102
datatype: byte[4]
name: retrieve_data
arguments: data_label: D48
datatype: byte[4]
name: retrieve_data
arguments: data_label: D3
datatype: string
name: retrieve_data
arguments: data_label: D23
datatype: string
name: retrieve_data
arguments: data_label: D39
datatype: string
name: retrieve_data
arguments: data_label: D90
datatype: string
name: retrieve_data
arguments: data_label: D14
datatype: string
name: retrieve_data
arguments: data_label: D49
datatype: string
name: retrieve_data
arguments: data_label: D109
datatype: string
name: retrieve_data
arguments: data_label: D28
datatype: string

tool: D27: 1

tool: D101: usage: %s frequenz


tool: {"D102": [0x00,0x00,0x00,0x40]}

tool: {"D48": [0x00,0x00,0xd8,0x41]}

tool: D3: mdiv not correct (%d)


tool: D23: frequenz can't be used

tool: D39: ndiv not correct (%d)


tool: D90: frequ=%s


tool: D14: ndiv=%d (%x)


tool: D49: mdiv=%d (%x)


tool: D109: pll0_ndiv_mdiv for module=%ld (%lx)


tool: D28: frequenz is ok

assistant: ```c
main(int argc, char *argv[]) {
  int ndiv = 0, mdiv = 0;
  float frequ = 0, frequ_check = 1;
  unsigned long ndiv_mdiv = 0;
  if (argc != 2) {
    printf("usage: %s frequenz\n", argv[0]);
    exit(1);
  }
  frequ = atoi(argv[1]);
  frequ = frequ / 2 / 27;
  while (frequ_check != ndiv && mdiv <= 255 && ndiv <= 255) {
    mdiv++;
    frequ_check = frequ * mdiv;
    ndiv = frequ_check;
  }
  if (mdiv < 0 || mdiv > 255) {
    printf("mdiv not correct (%d)\n", mdiv);
    printf("frequenz can't be used\n");
    exit(1);
  }
  if (ndiv < 3 || ndiv > 255) {
    printf("ndiv not correct (%d)\n", ndiv);
    printf("frequenz can't be used\n");
    exit(1);
  }
  printf("frequ=%s\n", argv[1]);
  printf("ndiv=%d (%x)\n", ndiv, ndiv);
  printf("mdiv=%d (%x)\n", mdiv, mdiv);
  ndiv_mdiv = mdiv;
  ndiv_mdiv += (ndiv << 8);
  printf("pll0_ndiv_mdiv for module=%ld (%lx)\n", ndiv_mdiv, ndiv_mdiv);
  printf("frequenz is ok\n");
}
```