user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<interpSP6_b>:
  endbr64
  push   %r15
  movd   %xmm1,%r15d
  push   %r14
  mov    %edx,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movss  %xmm0,(%rsp)
  call   <ceilf@plt>
  movd   %r15d,%xmm0
  lea    -0x3(%rax),%ebx
  xor    %eax,%eax
  test   %ebx,%ebx
  cmovs  %eax,%ebx
  lea    -0x6(%r13),%eax
  lea    0x6(%rbx),%edx
  cmp    %r13d,%edx
  cmovge %eax,%ebx
  call   <ceilf@plt>
  mov    $0x0,%edx
  pxor   %xmm0,%xmm0
  movsd  D44(%rip),%xmm10
  movd   %r15d,%xmm2
  pxor   %xmm1,%xmm1
  pxor   %xmm5,%xmm5
  sub    $0x3,%eax
  cmovs  %edx,%eax
  lea    -0x6(%r14),%edx
  movsd  D83(%rip),%xmm8
  movss  D132(%rip),%xmm4
  movsd  D101(%rip),%xmm3
  movsd  D31(%rip),%xmm6
  pxor   %xmm12,%xmm12
  pxor   %xmm14,%xmm14
  lea    0x6(%rax),%ecx
  movsd  D31(%rip),%xmm7
  movsd  D133(%rip),%xmm9
  cmp    %r14d,%ecx
  movss  (%rsp),%xmm11
  cmovge %edx,%eax
  cvtsi2ss %eax,%xmm0
  imul   %r13d,%eax
  subss  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  lea    (%rbx,%rax,1),%r8d
  movslq %r8d,%r8
  lea    0x0(%r13,%rax,1),%edi
  movzbl 0x0(%rbp,%r8,1),%r10d
  lea    0x1(%rbx,%rax,1),%r8d
  lea    0x0(%r13,%rdi,1),%esi
  cvtss2sd %xmm2,%xmm0
  subsd  %xmm10,%xmm0
  subss  %xmm4,%xmm2
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%rax,1),%r8d
  lea    0x0(%r13,%rsi,1),%ecx
  movslq %r8d,%r8
  lea    0x0(%r13,%rcx,1),%edx
  mulsd  %xmm0,%xmm8
  movzbl 0x0(%rbp,%r8,1),%r11d
  lea    0x3(%rbx,%rax,1),%r8d
  add    %edx,%r13d
  subsd  D211(%rip),%xmm8
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  mulsd  %xmm0,%xmm8
  movd   %r8d,%xmm15
  lea    (%rbx,%rdi,1),%r8d
  addsd  D9(%rip),%xmm8
  movslq %r8d,%r8
  mulsd  %xmm0,%xmm8
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm2,%xmm0
  subss  %xmm4,%xmm2
  subsd  %xmm9,%xmm0
  cvtss2sd %xmm2,%xmm1
  mulsd  %xmm1,%xmm3
  subsd  D160(%rip),%xmm3
  mulsd  %xmm0,%xmm7
  cvtsd2ss %xmm8,%xmm8
  addsd  D339(%rip),%xmm7
  mulsd  %xmm1,%xmm3
  addsd  D246(%rip),%xmm3
  mulsd  %xmm0,%xmm7
  subsd  D352(%rip),%xmm7
  mulsd  %xmm1,%xmm3
  movaps %xmm4,%xmm1
  subss  %xmm2,%xmm1
  movsd  D101(%rip),%xmm2
  mulsd  %xmm0,%xmm7
  movaps %xmm11,%xmm0
  pxor   %xmm11,%xmm11
  cvtss2sd %xmm1,%xmm5
  mulsd  %xmm5,%xmm2
  addss  %xmm4,%xmm1
  subsd  D160(%rip),%xmm2
  addsd  %xmm9,%xmm3
  cvtsd2ss %xmm7,%xmm7
  mulsd  %xmm5,%xmm2
  cvtsd2ss %xmm3,%xmm3
  addsd  D246(%rip),%xmm2
  mulsd  %xmm5,%xmm2
  pxor   %xmm5,%xmm5
  cvtss2sd %xmm1,%xmm5
  subsd  %xmm9,%xmm5
  addss  %xmm4,%xmm1
  mulsd  %xmm5,%xmm6
  cvtss2sd %xmm1,%xmm1
  subsd  %xmm10,%xmm1
  addsd  D339(%rip),%xmm6
  addsd  %xmm9,%xmm2
  mulsd  %xmm5,%xmm6
  cvtsd2ss %xmm2,%xmm2
  subsd  D352(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  movsd  D83(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  subsd  D211(%rip),%xmm5
  cvtsd2ss %xmm6,%xmm6
  mulsd  %xmm1,%xmm5
  addsd  D9(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebx,%xmm1
  subss  %xmm1,%xmm0
  movaps %xmm4,%xmm1
  cvtsd2ss %xmm5,%xmm5
  cvtss2sd %xmm0,%xmm12
  subss  %xmm4,%xmm0
  subsd  %xmm10,%xmm12
  cvtss2sd %xmm0,%xmm11
  subss  %xmm4,%xmm0
  subsd  %xmm9,%xmm11
  movq   D132(%rip),%xmm4
  movaps %xmm4,%xmm10
  subss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm14
  unpcklps %xmm1,%xmm0
  cvtss2sd %xmm1,%xmm1
  subps  %xmm0,%xmm10
  addps  %xmm4,%xmm0
  movss  %xmm10,%xmm0
  movapd D339(%rip),%xmm10
  addps  %xmm4,%xmm0
  movapd D31(%rip),%xmm4
  cvtps2pd %xmm0,%xmm0
  addpd  D146(%rip),%xmm0
  mulpd  %xmm0,%xmm4
  addpd  %xmm4,%xmm10
  addpd  D201(%rip),%xmm4
  shufpd $0x2,%xmm4,%xmm10
  movd   %r11d,%xmm4
  mulpd  %xmm0,%xmm10
  punpckldq %xmm15,%xmm4
  movd   %r9d,%xmm15
  movaps %xmm10,(%rsp)
  movd   %r10d,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r10d
  lea    0x1(%rbx,%rdi,1),%r8d
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%rdi,1),%r8d
  punpcklqdq %xmm4,%xmm10
  movaps %xmm8,%xmm4
  movslq %r8d,%r8
  cvtdq2ps %xmm10,%xmm10
  shufps $0x0,%xmm4,%xmm4
  movzbl 0x0(%rbp,%r8,1),%r11d
  lea    0x3(%rbx,%rdi,1),%r8d
  mulps  %xmm10,%xmm4
  pxor   %xmm10,%xmm10
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  movd   %r11d,%xmm13
  movd   %r8d,%xmm15
  lea    (%rbx,%rsi,1),%r8d
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm13
  movd   %r9d,%xmm15
  movzbl 0x0(%rbp,%r8,1),%r14d
  lea    0x1(%rbx,%rsi,1),%r8d
  addps  %xmm10,%xmm4
  movd   %r10d,%xmm10
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%rsi,1),%r8d
  punpcklqdq %xmm13,%xmm10
  movaps %xmm7,%xmm13
  movslq %r8d,%r8
  shufps $0x0,%xmm13,%xmm13
  cvtdq2ps %xmm10,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r10d
  lea    0x3(%rbx,%rsi,1),%r8d
  mulps  %xmm13,%xmm10
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  movd   %r10d,%xmm13
  movd   %r8d,%xmm15
  lea    (%rbx,%rcx,1),%r8d
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm13
  movd   %r9d,%xmm15
  movzbl 0x0(%rbp,%r8,1),%r11d
  lea    0x1(%rbx,%rcx,1),%r8d
  addps  %xmm4,%xmm10
  movd   %r14d,%xmm4
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm4
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%rcx,1),%r8d
  punpcklqdq %xmm13,%xmm4
  movaps %xmm3,%xmm13
  movslq %r8d,%r8
  shufps $0x0,%xmm13,%xmm13
  cvtdq2ps %xmm4,%xmm4
  movzbl 0x0(%rbp,%r8,1),%r14d
  lea    0x3(%rbx,%rcx,1),%r8d
  mulps  %xmm13,%xmm4
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  movd   %r14d,%xmm13
  movd   %r8d,%xmm15
  lea    (%rbx,%rdx,1),%r8d
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm13
  movd   %r9d,%xmm15
  movzbl 0x0(%rbp,%r8,1),%r10d
  lea    0x1(%rbx,%rdx,1),%r8d
  addps  %xmm10,%xmm4
  movd   %r11d,%xmm10
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%rdx,1),%r8d
  punpcklqdq %xmm13,%xmm10
  movaps %xmm2,%xmm13
  movslq %r8d,%r8
  shufps $0x0,%xmm13,%xmm13
  cvtdq2ps %xmm10,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r11d
  lea    0x3(%rbx,%rdx,1),%r8d
  mulps  %xmm13,%xmm10
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  movd   %r11d,%xmm13
  movd   %r8d,%xmm15
  lea    (%rbx,%r13,1),%r8d
  movslq %r8d,%r8
  addps  %xmm4,%xmm10
  punpckldq %xmm15,%xmm13
  movzbl 0x0(%rbp,%r8,1),%r14d
  lea    0x1(%rbx,%r13,1),%r8d
  movd   %r9d,%xmm15
  movd   %r10d,%xmm4
  movslq %r8d,%r8
  punpckldq %xmm15,%xmm4
  movzbl 0x0(%rbp,%r8,1),%r9d
  lea    0x2(%rbx,%r13,1),%r8d
  punpcklqdq %xmm13,%xmm4
  movaps %xmm6,%xmm13
  movslq %r8d,%r8
  shufps $0x0,%xmm13,%xmm13
  cvtdq2ps %xmm4,%xmm4
  movzbl 0x0(%rbp,%r8,1),%r10d
  mulps  %xmm13,%xmm4
  lea    0x3(%rbx,%r13,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  movd   %r10d,%xmm13
  movd   %r8d,%xmm15
  lea    0x4(%rbx,%rax,1),%r8d
  lea    0x5(%rbx,%rax,1),%eax
  punpckldq %xmm15,%xmm13
  addps  %xmm10,%xmm4
  movd   %r9d,%xmm15
  cltq
  movd   %r14d,%xmm10
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%rax,1),%eax
  punpckldq %xmm15,%xmm10
  movzbl 0x0(%rbp,%r8,1),%r8d
  pxor   %xmm15,%xmm15
  punpcklqdq %xmm13,%xmm10
  movaps %xmm5,%xmm13
  shufps $0x0,%xmm13,%xmm13
  cvtdq2ps %xmm10,%xmm10
  mulps  %xmm13,%xmm10
  pxor   %xmm13,%xmm13
  addps  %xmm10,%xmm4
  pxor   %xmm10,%xmm10
  cvtsi2ss %r8d,%xmm10
  lea    0x4(%rbx,%rdi,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  cvtsi2ss %r8d,%xmm15
  mulss  %xmm8,%xmm10
  lea    0x4(%rbx,%rsi,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  mulss  %xmm7,%xmm15
  addss  %xmm13,%xmm10
  addss  %xmm10,%xmm15
  pxor   %xmm10,%xmm10
  cvtsi2ss %r8d,%xmm10
  lea    0x4(%rbx,%rcx,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  mulss  %xmm3,%xmm10
  addss  %xmm15,%xmm10
  pxor   %xmm15,%xmm15
  cvtsi2ss %r8d,%xmm15
  lea    0x4(%rbx,%rdx,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  mulss  %xmm2,%xmm15
  addss  %xmm10,%xmm15
  pxor   %xmm10,%xmm10
  cvtsi2ss %r8d,%xmm10
  lea    0x4(%rbx,%r13,1),%r8d
  movslq %r8d,%r8
  movzbl 0x0(%rbp,%r8,1),%r8d
  mulss  %xmm6,%xmm10
  addss  %xmm15,%xmm10
  pxor   %xmm15,%xmm15
  cvtsi2ss %r8d,%xmm15
  mulss  %xmm5,%xmm15
  addss  %xmm15,%xmm10
  movss  %xmm10,0x20(%rsp)
  pxor   %xmm10,%xmm10
  cvtsi2ss %eax,%xmm10
  lea    0x5(%rbx,%rdi,1),%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mulss  %xmm8,%xmm10
  pxor   %xmm8,%xmm8
  cvtsi2ss %eax,%xmm8
  lea    0x5(%rbx,%rsi,1),%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mulss  %xmm7,%xmm8
  pxor   %xmm7,%xmm7
  addss  %xmm13,%xmm10
  cvtsi2ss %eax,%xmm7
  lea    0x5(%rbx,%rcx,1),%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mulss  %xmm3,%xmm7
  pxor   %xmm3,%xmm3
  addss  %xmm10,%xmm8
  cvtsi2ss %eax,%xmm3
  lea    0x5(%rbx,%rdx,1),%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mulss  %xmm2,%xmm3
  pxor   %xmm2,%xmm2
  addss  %xmm8,%xmm7
  cvtsi2ss %eax,%xmm2
  lea    0x5(%rbx,%r13,1),%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mulss  %xmm6,%xmm2
  addss  %xmm7,%xmm3
  movapd (%rsp),%xmm6
  addss  %xmm3,%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2ss %eax,%xmm3
  xor    %eax,%eax
  mulss  %xmm5,%xmm3
  addss  %xmm3,%xmm2
  movsd  D31(%rip),%xmm3
  mulsd  %xmm11,%xmm3
  movss  %xmm2,0x24(%rsp)
  movsd  D83(%rip),%xmm2
  addsd  D339(%rip),%xmm3
  mulsd  %xmm12,%xmm2
  subsd  D211(%rip),%xmm2
  mulsd  %xmm11,%xmm3
  subsd  D352(%rip),%xmm3
  mulsd  %xmm12,%xmm2
  addsd  D9(%rip),%xmm2
  mulsd  %xmm11,%xmm3
  mulsd  %xmm12,%xmm2
  unpcklpd %xmm3,%xmm2
  movsd  D101(%rip),%xmm3
  cvtpd2ps %xmm2,%xmm2
  mulsd  %xmm14,%xmm3
  subsd  D160(%rip),%xmm3
  mulsd  %xmm14,%xmm3
  addsd  D246(%rip),%xmm3
  mulsd  %xmm14,%xmm3
  movapd %xmm3,%xmm5
  movsd  D101(%rip),%xmm3
  addsd  %xmm9,%xmm5
  mulsd  %xmm1,%xmm3
  subsd  D160(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  D246(%rip),%xmm3
  mulsd  %xmm3,%xmm1
  movapd %xmm5,%xmm3
  movapd D285(%rip),%xmm5
  addpd  %xmm6,%xmm5
  addpd  D352(%rip),%xmm6
  addsd  %xmm9,%xmm1
  unpcklpd %xmm1,%xmm3
  cvtpd2ps %xmm3,%xmm1
  movlhps %xmm1,%xmm2
  mulps  %xmm4,%xmm2
  movaps %xmm2,%xmm1
  movaps %xmm2,%xmm4
  addss  %xmm13,%xmm1
  shufps $0x55,%xmm2,%xmm4
  addss  %xmm1,%xmm4
  movaps %xmm2,%xmm1
  unpckhps %xmm2,%xmm1
  shufps $0xff,%xmm2,%xmm2
  movaps %xmm1,%xmm3
  movapd %xmm6,%xmm1
  movsd  %xmm5,%xmm1
  mulpd  %xmm1,%xmm0
  movq   0x20(%rsp),%xmm1
  cvtpd2ps %xmm0,%xmm0
  mulps  %xmm1,%xmm0
  movaps %xmm3,%xmm1
  addss  %xmm4,%xmm1
  addss  %xmm2,%xmm1
  addss  %xmm0,%xmm1
  shufps $0xe5,%xmm0,%xmm0
  addss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  D290(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  comiss %xmm0,%xmm13
  ja     L15
  comiss D307(%rip),%xmm0
  mov    $0xffffffff,%eax
  jbe    L16
L15:
  mov    %al,(%r12)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L16:
  cvttss2si %xmm0,%eax
  jmp    L15
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D44
type_guessed: f64
name: unpack_data
arguments: data_tag: D83
type_guessed: f64
name: unpack_data
arguments: data_tag: D132
type_guessed: f32[2]
name: unpack_data
arguments: data_tag: D101
type_guessed: f64
name: unpack_data
arguments: data_tag: D31
type_guessed: byte[16]
name: unpack_data
arguments: data_tag: D133
type_guessed: f32[2]
name: unpack_data
arguments: data_tag: D211
type_guessed: f64
name: unpack_data
arguments: data_tag: D9
type_guessed: f64
name: unpack_data
arguments: data_tag: D160
type_guessed: f64
name: unpack_data
arguments: data_tag: D339
type_guessed: f64[2]
name: unpack_data
arguments: data_tag: D246
type_guessed: f64
name: unpack_data
arguments: data_tag: D352
type_guessed: f64[2]
name: unpack_data
arguments: data_tag: D146
type_guessed: f32[4]
name: unpack_data
arguments: data_tag: D201
type_guessed: byte[16]
name: unpack_data
arguments: data_tag: D285
type_guessed: byte[16]
name: unpack_data
arguments: data_tag: D290
type_guessed: f64
name: unpack_data
arguments: data_tag: D307
type_guessed: f32

tool: D44: 2

tool: D83: 0.090909

tool: {"D132": [1.0,1.0]}

tool: D101: 1.181818

tool: {"D31": [0xdc,0x11,0x4e,0x0b,0x5e,0x74,0xe1,0xbf,0x07,0x7d,0xe9,0xed,0xcf,0x45,0xb7,0x3f]}

tool: {"D133": [0.0,1.875]}

tool: D211: 0.215311

tool: D9: 0.124402

tool: D160: 2.167464

tool: {"D339": [1.291866,0.215311]}

tool: D246: 0.014354

tool: {"D352": [0.746411,0.124402]}

tool: {"D146": [0.0,-1.875,0.0,-2.0]}

tool: {"D201": [0x85,0x07,0xcd,0xae,0x7b,0xab,0xf4,0xbf,0x07,0x0a,0xbc,0x93,0x4f,0x8f,0xcb,0xbf]}

tool: {"D285": [0x2f,0xfd,0x4b,0x52,0x99,0xe2,0xe7,0xbf,0x07,0x97,0x8e,0x39,0xcf,0xd8,0xbf,0xbf]}

tool: D290: 0.947

tool: D307: 256

assistant: ```c
int interpSP6_b(unsigned char *sl, int w, int h, float x, float y, unsigned char *v) {
  int i, j, m, n;
  float pp, p[6], wx[6], wy[6], xx;
  m = (int)ceilf(x) - 3;
  if (m < 0)
    m = 0;
  if ((m + 7) > w)
    m = w - 6;
  n = (int)ceilf(y) - 3;
  if (n < 0)
    n = 0;
  if ((n + 7) > h)
    n = h - 6;
  xx = y - n;
  wy[0] = ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = xx - 1.0;
  wy[1] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) * (xx - 1.0);
  xx = xx - 1.0;
  wy[2] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = 1.0 - xx;
  wy[3] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = xx + 1.0;
  wy[4] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) * (xx - 1.0);
  xx = xx + 1.0;
  wy[5] = ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = x - m;
  wx[0] = ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = xx - 1.0;
  wx[1] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) * (xx - 1.0);
  xx = xx - 1.0;
  wx[2] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = 1.0 - xx;
  wx[3] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = xx + 1.0;
  wx[4] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) * (xx - 1.0);
  xx = xx + 1.0;
  wx[5] = ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  for (i = 0; i < 6; i++) {
    p[i] = 0.0;
    for (j = 0; j < 6; j++) {
      p[i] = p[i] + wy[j] * sl[(j + n) * w + i + m];
    }
  }
  pp = 0.0;
  for (i = 0; i < 6; i++)
    pp = pp + wx[i] * p[i];
  pp = 0.947 * pp;
  if (pp < 0.0)
    pp = 0.0;
  if (pp > 256.0)
    pp = 255.0;
  *v = pp;
  return 0;
}
```