user: 请从给定的汇编指令推导出C源代码:

```asm
<K>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  mov    %rdx,%rax
  mov    %rcx,%r9
  push   %rbx
  mov    %rsi,%rbx
  movaps %xmm0,%xmm3
  sub    $0x18,%rsp
  mov    (%rsi),%rdi
  mov    0x8(%rsi),%rsi
  mov    0x10(%rbx),%rdx
  lea    (%rdi,%rsi,1),%rcx
  add    %rdx,%rcx
  js     L83
  pxor   %xmm4,%xmm4
  cvtsi2ss %rcx,%xmm4
L18:
  divss  D28(%rip),%xmm4
  test   %rdi,%rdi
  js     L179
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdi,%xmm0
L20:
  subss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  test   %rsi,%rsi
  js     L121
  pxor   %xmm0,%xmm0
  cvtsi2ss %rsi,%xmm0
L44:
  subss  %xmm0,%xmm1
  addss  %xmm4,%xmm1
  test   %rdx,%rdx
  js     L169
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdx,%xmm0
L1:
  subss  %xmm0,%xmm2
  movaps %xmm3,%xmm0
  add    %r8,%rdx
  add    %r9,%rsi
  mulss  %xmm3,%xmm0
  add    %rax,%rdi
  movss  %xmm3,0xc(%rsp)
  movss  %xmm1,0x8(%rsp)
  addss  %xmm4,%xmm2
  movss  D0(%rip),%xmm4
  subss  %xmm0,%xmm4
  movaps %xmm1,%xmm0
  movss  %xmm2,0x4(%rsp)
  mulss  %xmm1,%xmm0
  subss  %xmm0,%xmm4
  movaps %xmm2,%xmm0
  mulss  %xmm2,%xmm0
  subss  %xmm0,%xmm4
  movss  %xmm4,(%rsp)
  call   <shuffle@plt>
  movss  (%rsp),%xmm4
  pxor   %xmm0,%xmm0
  addq   $0x1,(%rbx,%rbp,8)
  comiss %xmm4,%xmm0
  ja     L11
  mov    %rax,%rdx
  mov    %rax,%rdi
  mov    %rax,%rcx
  mov    %rax,%rsi
  shr    $0x4,%rdx
  shr    $0x3,%rdi
  and    $0x3,%esi
  movss  0x4(%rsp),%xmm2
  shr    $0x5,%rcx
  mov    %rdx,%r8
  mov    %rdi,%r9
  movss  0x8(%rsp),%xmm1
  and    $0x1,%ecx
  and    $0x1,%r8d
  and    $0x1,%r9d
  cmp    $0x1,%rsi
  movss  0xc(%rsp),%xmm3
  je     L79
  cmp    $0x2,%rsi
  jne    L10
  movaps %xmm1,%xmm0
  movaps %xmm3,%xmm1
  movaps %xmm2,%xmm3
  movaps %xmm0,%xmm2
  jmp    L10
  nopl   (%rax)
L79:
  movaps %xmm1,%xmm0
  movaps %xmm2,%xmm1
  movaps %xmm3,%xmm2
  movaps %xmm0,%xmm3
L10:
  cmp    %r9,%rcx
  jne    L41
  xorps  D10(%rip),%xmm2
L41:
  cmp    %r8,%rcx
  jne    L6
  xorps  D10(%rip),%xmm3
L6:
  xor    %rdi,%rdx
  and    $0x1,%edx
  cmp    %rcx,%rdx
  je     L104
  xorps  D10(%rip),%xmm1
L104:
  mulss  %xmm4,%xmm4
  movss  D3(%rip),%xmm0
  mulss  %xmm4,%xmm0
  mulss  %xmm4,%xmm0
  test   %rsi,%rsi
  jne    L178
  addss  %xmm1,%xmm3
L143:
  addss  %xmm3,%xmm2
  mulss  %xmm2,%xmm0
L11:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
  cs nopw 0x0(%rax,%rax,1)
L169:
  mov    %rdx,%rcx
  mov    %rdx,%r10
  pxor   %xmm0,%xmm0
  shr    %rcx
  and    $0x1,%r10d
  or     %r10,%rcx
  cvtsi2ss %rcx,%xmm0
  addss  %xmm0,%xmm0
  jmp    L1
  nopw   0x0(%rax,%rax,1)
L121:
  mov    %rsi,%rcx
  mov    %rsi,%r10
  pxor   %xmm0,%xmm0
  shr    %rcx
  and    $0x1,%r10d
  or     %r10,%rcx
  cvtsi2ss %rcx,%xmm0
  addss  %xmm0,%xmm0
  jmp    L44
  nopw   0x0(%rax,%rax,1)
L179:
  mov    %rdi,%rcx
  mov    %rdi,%r10
  pxor   %xmm0,%xmm0
  shr    %rcx
  and    $0x1,%r10d
  or     %r10,%rcx
  cvtsi2ss %rcx,%xmm0
  addss  %xmm0,%xmm0
  jmp    L20
  nopw   0x0(%rax,%rax,1)
L83:
  mov    %rcx,%r10
  and    $0x1,%ecx
  pxor   %xmm4,%xmm4
  shr    %r10
  or     %rcx,%r10
  cvtsi2ss %r10,%xmm4
  addss  %xmm4,%xmm4
  jmp    L18
  cs nopw 0x0(%rax,%rax,1)
L178:
  test   $0x4,%al
  je     L143
  movaps %xmm1,%xmm3
  jmp    L143
```

tool_calls: name: extract_symbolic_data
arguments: tag: D28
type: byte[4]
name: extract_symbolic_data
arguments: tag: D0
type: byte[4]
name: extract_symbolic_data
arguments: tag: D10
type: byte[16]
name: extract_symbolic_data
arguments: tag: D3
type: byte[4]

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

tool: {"D0": [0x9a,0x99,0x19,0x3f]}

tool: {"D10": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D3": [0x00,0x00,0xc8,0x41]}

assistant: ```c
float K(uint32_t a, uint32_t A[3], uint32_t i, uint32_t j, uint32_t k, float u, float v, float w) {
  float s = (float)(A[0] + A[1] + A[2]) / 6.f;
  float x = u - (float)A[0] + s;
  float y = v - (float)A[1] + s;
  float z = w - (float)A[2] + s;
  float t = .6f - x * x - y * y - z * z;
  uint32_t h = shuffle(i + A[0], j + A[1], k + A[2]);
  A[a]++;
  if (t < 0)
    return 0;
  uint32_t b5 = h >> 5 & 1;
  uint32_t b4 = h >> 4 & 1;
  uint32_t b3 = h >> 3 & 1;
  uint32_t b2 = h >> 2 & 1;
  uint32_t b = h & 3;
  float p = (b == 1 ? x : (b == 2 ? y : z));
  float q = (b == 1 ? y : (b == 2 ? z : x));
  float r = (b == 1 ? z : (b == 2 ? x : y));
  p = (b5 == b3 ? -p : p);
  q = (b5 == b4 ? -q : q);
  r = (b5 != (b4 ^ b3) ? -r : r);
  t *= t;
  return 25.0f * t * t * (p + (b == 0 ? q + r : (b2 == 0 ? q : r)));
}
```