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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D3(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    -0x44(%rbp),%r12
  push   %rbx
  lea    D50(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  mov    -0x44(%rbp),%edx
  test   %edx,%edx
  jg     L81
  nopw   0x0(%rax,%rax,1)
L138:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jle    L138
L81:
  lea    D43(%rip),%rdi
  lea    D19(%rip),%r13
  call   <puts@plt>
  lea    -0x40(%rbp),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    -0x3c(%rbp),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x44(%rbp),%rax
  mov    %rsp,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L93
L87:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L87
L93:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L24
L14:
  lea    0x3(%rsp),%r14
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %r14,%rcx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffffffc,%r14
  shr    $0x2,%rcx
  mov    %rcx,-0x58(%rbp)
  mov    %rsp,%rcx
  sub    %rax,%rcx
L33:
  cmp    %rcx,%rsp
  je     L92
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L33
L24:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L14
L92:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L130
L100:
  lea    0x3(%rsp),%r15
  lea    D2(%rip),%rdi
  mov    %r15,%rax
  and    $0xfffffffffffffffc,%r15
  shr    $0x2,%rax
  mov    %r15,-0x68(%rbp)
  mov    %rax,-0x60(%rbp)
  call   <puts@plt>
  cmpl   $0x0,-0x44(%rbp)
  jle    L12
  mov    -0x68(%rbp),%rbx
  mov    %r14,%r12
  xor    %r15d,%r15d
  cs nopw 0x0(%rax,%rax,1)
L110:
  add    $0x1,%r15d
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  mov    %r15d,%esi
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  add    $0x4,%r12
  add    $0x4,%rbx
  cmp    %eax,%r15d
  jl     L110
  test   %eax,%eax
  jle    L12
  mov    -0x58(%rbp),%rax
  movss  -0x40(%rbp),%xmm0
  xor    %r13d,%r13d
  mov    $0x1,%ebx
  lea    D37(%rip),%r12
  movss  0x0(,%rax,4),%xmm3
  mov    -0x60(%rbp),%rax
  movss  0x0(,%rax,4),%xmm2
  subss  %xmm0,%xmm3
  addss  %xmm3,%xmm3
  addss  %xmm0,%xmm3
  movss  -0x3c(%rbp),%xmm0
  subss  %xmm0,%xmm2
  addss  %xmm2,%xmm2
  addss  %xmm0,%xmm2
  jmp    L120
  nopl   0x0(%rax)
L99:
  movss  (%r14,%r13,4),%xmm0
  pxor   %xmm1,%xmm1
  mov    -0x68(%rbp),%rax
  mov    %r12,%rdi
  cvtsi2ss %ebx,%xmm1
  subss  %xmm3,%xmm0
  movaps %xmm0,%xmm4
  divss  %xmm1,%xmm4
  addss  %xmm0,%xmm4
  movss  (%rax,%r13,4),%xmm0
  mov    $0x2,%eax
  subss  %xmm2,%xmm0
  addss  %xmm3,%xmm4
  movaps %xmm0,%xmm5
  divss  %xmm1,%xmm5
  movss  %xmm4,-0x58(%rbp)
  addss  %xmm0,%xmm5
  movaps %xmm4,%xmm0
  subss  %xmm3,%xmm0
  addss  %xmm2,%xmm5
  cvtss2sd %xmm0,%xmm0
  movaps %xmm5,%xmm1
  movss  %xmm5,-0x60(%rbp)
  subss  %xmm2,%xmm1
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movss  -0x60(%rbp),%xmm5
  movss  -0x58(%rbp),%xmm4
  movaps %xmm5,%xmm2
  movaps %xmm4,%xmm3
L120:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    %r12,%rdi
  mov    $0x2,%eax
  movss  %xmm3,-0x60(%rbp)
  cvtss2sd %xmm3,%xmm0
  cvtss2sd %xmm2,%xmm1
  add    %ebx,%ebx
  movss  %xmm2,-0x58(%rbp)
  add    $0x1,%r13
  call   <printf@plt>
  movss  -0x60(%rbp),%xmm3
  movss  -0x58(%rbp),%xmm2
  movss  %xmm3,-0x40(%rbp)
  movss  %xmm2,-0x3c(%rbp)
  cmp    %r13d,-0x44(%rbp)
  jg     L99
L12:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L111
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L130:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L100
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D3
type_guessed: string
name: parse_data
arguments: data_label: D50
type_guessed: string
name: parse_data
arguments: data_label: D43
type_guessed: string
name: parse_data
arguments: data_label: D19
type_guessed: string
name: parse_data
arguments: data_label: D2
type_guessed: string
name: parse_data
arguments: data_label: D32
type_guessed: string
name: parse_data
arguments: data_label: D37
type_guessed: string

tool: D3: Enter the number of all nacepin barrels ... : 

tool: D50: %d

tool: D43: Enter the starting posittion of pacman by X and Y ... : 

tool: D19: %f

tool: D2: Enter all nacepin positions by X and Y... : 

tool: D32: barrel number :%d :

tool: D37: %f     %f


assistant: ```c
int main() {
  int all_nacepin_number;
  printf("Enter the number of all nacepin barrels ... : \n");
  while (all_nacepin_number < 1) {
    scanf("%d", &all_nacepin_number);
  }
  float x_strarting_position_pacman;
  float y_strarting_position_pacman;
  printf("Enter the starting posittion of pacman by X and Y ... : \n");
  scanf("%f", &x_strarting_position_pacman);
  scanf("%f", &y_strarting_position_pacman);
  int i;
  float array_all_nacepin_positions_x[all_nacepin_number];
  float array_all_nacepin_positions_y[all_nacepin_number];
  printf("Enter all nacepin positions by X and Y... : \n");
  for (i = 0; i < all_nacepin_number; i++) {
    printf("barrel number :%d :", i + 1);
    scanf("%f", &array_all_nacepin_positions_x[i]);
    scanf("%f", &array_all_nacepin_positions_y[i]);
  }
  int a;
  float total_vector_x;
  float total_vector_y;
  int weight = 1;
  for (a = 0; a < all_nacepin_number; a++) {
    total_vector_x = x_strarting_position_pacman + ((array_all_nacepin_positions_x[a] - x_strarting_position_pacman) + (array_all_nacepin_positions_x[a] - x_strarting_position_pacman) / weight);
    total_vector_y = y_strarting_position_pacman + ((array_all_nacepin_positions_y[a] - y_strarting_position_pacman) + (array_all_nacepin_positions_y[a] - y_strarting_position_pacman) / weight);
    if (a > 0) {
      printf("%f     %f\n", total_vector_x - x_strarting_position_pacman, total_vector_y - y_strarting_position_pacman);
    }
    printf("%f     %f\n", total_vector_x, total_vector_y);
    x_strarting_position_pacman = total_vector_x;
    y_strarting_position_pacman = total_vector_y;
    weight = weight * 2;
  }
  return 0;
}
```