user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<update_map1>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%r12
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x30(%rsp)
  mov    %r8,%r15
  mov    %r9d,0x1c(%rsp)
  mov    0x80(%rsp),%r14d
  mov    0x88(%rsp),%ebp
  cvtsd2ss %xmm0,%xmm0
  mulss  %xmm0,%xmm0
  movss  D24(%rip),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x28(%rsp)
  cmpl   $0x0,0x90(%rsp)
  jle    L174
  mov    %rsi,%r13
  mov    $0x1,%ebx
  mov    %rdi,0x8(%rsp)
  mov    %r9d,%r12d
L95:
  sub    $0x8,%rsp
  push   %r12
  push   %rbp
  mov    (%r15,%rbx,4),%eax
  push   %rax
  mov    %r14d,%r9d
  mov    %ebx,%r8d
  mov    0x50(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    %r13,%rsi
  mov    0x28(%rsp),%rdi
  mov    $0x0,%eax
  call   <find_winner_pe2@plt>
  mov    %eax,(%r15,%rbx,4)
  add    $0x1,%rbx
  add    $0x20,%rsp
  cmp    %ebx,0x90(%rsp)
  jge    L95
  mov    0x8(%rsp),%r12
L174:
  test   %ebp,%ebp
  jle    L6
  lea    0x8(%r12),%rbx
  mov    0x10(%rsp),%rax
  lea    0x8(%rax),%rdi
  lea    -0x1(%rbp),%eax
  lea    0x10(%r12,%rax,8),%rax
  mov    %rax,0x38(%rsp)
  lea    -0x1(%r14),%eax
  lea    0x8(,%rax,4),%r12
  mov    0x1c(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x2c(%rsp)
  mov    %r15,0x20(%rsp)
  mov    %rdi,%r15
  jmp    L26
L70:
  mov    $0x0,%ecx
  jmp    L150
L7:
  cmpl   $0x0,0x90(%rsp)
  jle    L78
L55:
  mov    0x30(%rsp),%rax
  lea    0x8(%rax),%rbp
  mov    $0x1,%r13d
  pxor   %xmm4,%xmm4
  movss  %xmm4,0x8(%rsp)
L172:
  mov    0x20(%rsp),%rax
  mov    (%rax,%r13,4),%eax
  cmpl   $0x0,0x1c(%rsp)
  jle    L70
  cltq
  mov    0x10(%rsp),%rdi
  mov    (%rdi,%rax,8),%r8
  mov    (%r15),%rdi
  mov    0x2c(%rsp),%esi
  mov    $0x1,%edx
  mov    $0x0,%ecx
L30:
  mov    (%r8,%rdx,4),%eax
  sub    (%rdi,%rdx,4),%eax
  imul   %eax,%eax
  add    %eax,%ecx
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  jne    L30
L150:
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
  mulss  0x28(%rsp),%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <exp@plt>
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm1
  movss  0x8(%rsp),%xmm2
  addss  %xmm1,%xmm2
  movss  %xmm2,0x8(%rsp)
  test   %r14d,%r14d
  jle    L62
  mov    $0x4,%eax
L85:
  mov    %rax,%rdx
  add    (%rbx),%rdx
  mov    0x0(%rbp),%rcx
  movaps %xmm1,%xmm0
  mulss  (%rcx,%rax,1),%xmm0
  addss  (%rdx),%xmm0
  movss  %xmm0,(%rdx)
  add    $0x4,%rax
  cmp    %r12,%rax
  jne    L85
L62:
  add    $0x1,%r13
  add    $0x8,%rbp
  cmp    %r13d,0x90(%rsp)
  jge    L172
  movss  D13(%rip),%xmm1
  divss  0x8(%rsp),%xmm1
  test   %r14d,%r14d
  jle    L78
L126:
  mov    $0x4,%edx
  mov    $0x1,%eax
L176:
  mov    %rdx,%rcx
  add    (%rbx),%rcx
  movaps %xmm1,%xmm0
  mulss  (%rcx),%xmm0
  movss  %xmm0,(%rcx)
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,%r14d
  jge    L176
L78:
  add    $0x8,%rbx
  add    $0x8,%r15
  cmp    0x38(%rsp),%rbx
  je     L6
L26:
  mov    $0x4,%eax
  test   %r14d,%r14d
  jle    L7
L53:
  mov    (%rbx),%rdx
  movl   $0x0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %r12,%rax
  jne    L53
  cmpl   $0x0,0x90(%rsp)
  jg     L55
  movss  D13(%rip),%xmm1
  divss  D28(%rip),%xmm1
  jmp    L126
L6:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D24
data_type: byte[4]
name: extract_symbolic_data
arguments: data_label: D13
data_type: f32
name: extract_symbolic_data
arguments: data_label: D28
data_type: byte[4]

tool: {"D24": [0x00,0x00,0x00,0xbf]}

tool: D13: 1

tool: {"D28": [0x00,0x00,0x00,0x00]}

assistant: ```c
void update_map1(map, a, coords, data, win_list, sigmax, dim, ivars, total_units, samples) float **map, **data, **a, sigmax;
int **coords, *win_list;
int dim, ivars, total_units, samples;
{
  int i, j, k, winner, dist, diff, time_count;
  float factorx, c, distf, sum, ypred, d, weight_sumx;
  float weightx, tot_error, tot_error2, rms_error, rms_data_weights();
  factorx = -.5 / (sigmax * sigmax);
  for (i = 1; i <= samples; i++)
    win_list[i] = find_winner_pe2(map, a, coords, data, i, ivars, win_list[i], total_units, dim);
  for (j = 1; j <= total_units; j++) {
    for (k = 1; k <= ivars; k++)
      map[j][k] = 0;
    weight_sumx = 0;
    for (i = 1; i <= samples; i++) {
      dist = 0;
      winner = win_list[i];
      for (k = 1; k <= dim; k++) {
        diff = coords[winner][k] - coords[j][k];
        dist = dist + diff * diff;
      }
      weightx = exp(dist * factorx);
      weight_sumx += weightx;
      for (k = 1; k <= ivars; k++)
        map[j][k] += data[i][k] * weightx;
    }
    weight_sumx = 1.0 / weight_sumx;
    for (k = 1; k <= ivars; k++)
      map[j][k] = map[j][k] * weight_sumx;
  }
}
```