user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D44(%rip),%r15
  push   %r14
  lea    D46(%rip),%r14
  push   %r13
  push   %r12
  lea    D21(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D69(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x34(%rsp),%rcx
  lea    0x2c(%rsp),%r13
  mov    %rcx,0x18(%rsp)
  lea    0x30(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L25:
  mov    %eax,0xc(%rsp)
  jmp    L10
  xchg   %ax,%ax
L35:
  mov    %edx,0x14(%rsp)
  call   <sqrt@plt>
  mov    0x30(%rsp),%edx
  pxor   %xmm0,%xmm0
  mov    0x14(%rsp),%edi
  sub    %edx,%eax
  mov    %edx,0x10(%rsp)
  mov    %eax,%ecx
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  imul   0x2c(%rsp),%eax
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,0xc(%rsp)
  call   <sqrt@plt>
  mov    0x10(%rsp),%edx
  pxor   %xmm1,%xmm1
  movss  0xc(%rsp),%xmm0
  lea    D63(%rip),%rdi
  neg    %edx
  cvtss2sd %xmm0,%xmm0
  sub    %eax,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  imul   0x2c(%rsp),%eax
  cvtsi2ss %eax,%xmm1
  mov    $0x2,%eax
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movl   $0x0,0xc(%rsp)
L10:
  mov    %r15,%rdi
  call   <puts@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x30(%rsp),%edx
  mov    0x2c(%rsp),%eax
  imul   0x34(%rsp),%eax
  imul   %edx,%edx
  shl    $0x2,%eax
  sub    %eax,%edx
  mov    %edx,%edi
  jns    L35
  lea    D50(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x1,0xc(%rsp)
  mov    $0x1,%eax
  jne    L25
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D44
type_infered: string
name: retrieve_data
arguments: data_label: D46
type_infered: string
name: retrieve_data
arguments: data_label: D21
type_infered: string
name: retrieve_data
arguments: data_label: D69
type_infered: string
name: retrieve_data
arguments: data_label: D63
type_infered: string
name: retrieve_data
arguments: data_label: D68
type_infered: string
name: retrieve_data
arguments: data_label: D50
type_infered: string

tool: D44: 

Ingrese los coeficientes de la cuadratica ax^2+bx+c

tool: D46: a = 

tool: D21: b = 

tool: D69: %d

tool: D63: Raices: x1=%f x2=%f


tool: D68: c = 

tool: D50: sus dos raices son imaginarias!

assistant: ```c
int main() {
  int a, b, c;
  float r1, r2;
  unsigned int intentos = 0;
  while (intentos < 2) {
    printf("\n\nIngrese los coeficientes de la cuadratica ax^2+bx+c\n");
    printf("a = ");
    scanf("%d", &a);
    printf("b = ");
    scanf("%d", &b);
    printf("c = ");
    scanf("%d", &c);
    int deter = b * b - 4 * a * c;
    if (deter < 0) {
      printf("sus dos raices son imaginarias!\n");
      intentos++;
    } else {
      r1 = (-b + sqrt(deter)) / 2 * a;
      r2 = (-b - sqrt(deter)) / 2 * a;
      printf("Raices: x1=%f x2=%f\n", r1, r2);
      intentos = 0;
    }
  }
  return 0;
}
```