user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    $0xff,%edi
  call   <sqrt@plt>
  movq   %xmm0,%rbx
  mov    $0x21,%ecx
  mov    $0x21,%edx
  mov    $0xff,%esi
  lea    D174(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x3f,%ecx
  mov    $0x3f,%edx
  movq   %rbx,%xmm0
  mov    $0xff,%esi
  lea    D132(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movq   %rbx,%xmm1
  movq   %rbx,%xmm0
  mov    $0xff,%esi
  lea    D31(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1e240,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  mov    $0x1e240,%esi
  lea    D120(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x5,%edx
  mov    $0x3,%esi
  lea    D102(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x6c6c6568,0x12(%rsp)
  movw   $0x6f,0x16(%rsp)
  lea    0x12(%rsp),%rsi
  lea    D156(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D96(%rip),%rsi
  lea    D53(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movb   $0x0,0x10(%rsp)
  lea    0x10(%rsp),%rsi
  lea    D51(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x6c6c6568,0x18(%rsp)
  movw   $0x6f,0x1c(%rsp)
  movb   $0x0,0x11(%rsp)
  lea    0x18(%rsp),%rsi
  lea    D123(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x11(%rsp),%rsi
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movabs $0x3f21216f6c6c6568,%rax
  mov    %rax,0x2a(%rsp)
  movl   $0x69682020,0x32(%rsp)
  movw   $0x3f,0x36(%rsp)
  lea    0x2a(%rsp),%rsi
  lea    D73(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%r12
  mov    %r12,%rsi
  lea    D111(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movabs $0x6a2030372e35322d,%rax
  mov    %rax,0x1e(%rsp)
  movl   $0x6b6e75,0x26(%rsp)
  lea    0xc(%rsp),%rbp
  lea    0x1e(%rsp),%rbx
  mov    %rbp,%rcx
  mov    %r12,%rdx
  lea    D83(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  mov    %rbx,%rdx
  mov    0x8(%rsp),%esi
  lea    D23(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    %rbp,%rdx
  lea    D114(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  mov    %rbx,%rsi
  lea    D143(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  mov    $0x0,%eax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D174
type_infered: string
name: read_data
arguments: data_label: D132
type_infered: string
name: read_data
arguments: data_label: D31
type_infered: string
name: read_data
arguments: data_label: D120
type_infered: string
name: read_data
arguments: data_label: D102
type_infered: string
name: read_data
arguments: data_label: D156
type_infered: string
name: read_data
arguments: data_label: D96
type_infered: string
name: read_data
arguments: data_label: D53
type_infered: string
name: read_data
arguments: data_label: D51
type_infered: string
name: read_data
arguments: data_label: D123
type_infered: string
name: read_data
arguments: data_label: D72
type_infered: string
name: read_data
arguments: data_label: D73
type_infered: string
name: read_data
arguments: data_label: D55
type_infered: string
name: read_data
arguments: data_label: D111
type_infered: string
name: read_data
arguments: data_label: D24
type_infered: string
name: read_data
arguments: data_label: D83
type_infered: string
name: read_data
arguments: data_label: D23
type_infered: string
name: read_data
arguments: data_label: D114
type_infered: string
name: read_data
arguments: data_label: D143
type_infered: string

tool: D174: The square root of %d = %f %c%c


tool: D132: The square root of %f = %f %c%c


tool: D31: The square root of %05d = %.3f = %10.4f


tool: D120: The square root of %3d = %.3f = %10.4f


tool: D102: xx: %d, %d


tool: D156: hello: %s


tool: D96: hello

tool: D53: %s again


tool: D51: empty string: [%s]


tool: D123: hello2: %s


tool: D72: Another empty string: <%s>



tool: D73: hello3: %s


tool: D55: Enter an fairly small integer >= 0 (and then return): 

tool: D111: %d

tool: D24: We read in %d



tool: D83: %d%f

tool: D23: Using sscanf %%d%%f, we read in %d and %f from %s


tool: D114: %f

tool: D143: Using sscanf %%f, we read in %f from %s



assistant: ```c
int main() {
  int x = 255;
  double rootx = sqrt(x);
  char bang = '!';
  printf("The square root of %d = %f %c%c\n", x, rootx, bang, bang);
  printf("The square root of %f = %f %c%c\n", x, rootx, '?', '?');
  printf("The square root of %05d = %.3f = %10.4f\n", x, rootx, rootx);
  x = 123456;
  rootx = sqrt(x);
  printf("The square root of %3d = %.3f = %10.4f\n", x, rootx, rootx);
  int xx[2] = {3, 5};
  printf("xx: %d, %d\n", xx[0], xx[1]);
  char hello[6] = {'h', 'e', 'l', 'l', 'o', '\0'};
  printf("hello: %s\n", hello);
  printf("%s again\n", "hello");
  char empty_string[1] = {'\0'};
  printf("empty string: [%s]\n", empty_string);
  printf("\n");
  char hello2[6] = "hello";
  char empty_string2[1] = "";
  printf("hello2: %s\n", hello2);
  printf("Another empty string: <%s>\n\n", empty_string2);
  char hello3[] = "hello!!?  hi?";
  printf("hello3: %s\n", hello3);
  int y;
  printf("Enter an fairly small integer >= 0 (and then return): ");
  scanf("%d", &y);
  printf("We read in %d\n\n", y);
  char buffer[] = "-25.70 junk";
  float h;
  sscanf(buffer, "%d%f", &y, &h);
  printf("Using sscanf %%d%%f, we read in %d and %f from %s\n", y, h, buffer);
  sscanf(buffer, "%f", &h);
  printf("Using sscanf %%f, we read in %f from %s\n\n", h, buffer);
  return 0;
}
```