user: 这段汇编代码用C语言表示是什么样的?

```asm
<gradient3Dx_float>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0xb8,%rsp
  mov    (%rsi),%eax
  imul   0x4(%rsi),%eax
  mov    %rsi,0x78(%rsp)
  mov    %rdx,0x60(%rsp)
  lea    0x0(,%rax,4),%edi
  mov    %eax,0x5c(%rsp)
  call   <mallocf@plt>
  mov    (%rbx),%edi
  mov    %rax,0x10(%rsp)
  call   <mallocf@plt>
  mov    %rax,%r13
  mov    0x8(%rbx),%eax
  mov    %eax,0x88(%rsp)
  test   %eax,%eax
  jle    L1085
  mov    0x78(%rsp),%rax
  pxor   %xmm4,%xmm4
  movq   $0x0,0x30(%rsp)
  movl   $0x0,0x2c(%rsp)
  movss  D413(%rip),%xmm5
  mov    0x4(%rax),%eax
  movl   $0x0,0x58(%rsp)
  movl   $0x0,0x68(%rsp)
  movss  D534(%rip),%xmm3
  mov    %eax,0x1c(%rsp)
  mov    0x88(%rsp),%eax
  movaps D462(%rip),%xmm6
  movaps D421(%rip),%xmm8
  movl   $0x0,0x80(%rsp)
  lea    -0x1(%rax),%ebx
  mov    $0x1,%eax
  test   %ebx,%ebx
  mov    %ebx,0x84(%rsp)
  cmovle %ebx,%eax
  mov    %eax,0x6c(%rsp)
  movslq 0x5c(%rsp),%rax
  test   %eax,%eax
  mov    %rax,%rbx
  mov    %rax,0x70(%rsp)
  mov    $0x1,%eax
  cmovg  %ebx,%eax
  mov    %eax,%ebx
  mov    %eax,0x90(%rsp)
  shr    $0x2,%eax
  sub    $0x1,%eax
  and    $0xfffffffc,%ebx
  add    $0x1,%rax
  mov    %ebx,0xac(%rsp)
  shl    $0x4,%rax
  mov    %rax,0xa0(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L513:
  mov    0x5c(%rsp),%eax
  imul   0x58(%rsp),%eax
  mov    0x1c(%rsp),%edx
  mov    %eax,0x28(%rsp)
  test   %edx,%edx
  jle    L419
  mov    0x78(%rsp),%rax
  mov    0x30(%rsp),%rdi
  xor    %r9d,%r9d
  movss  D462(%rip),%xmm2
  movss  D421(%rip),%xmm7
  mov    (%rax),%ebx
  mov    0x1c(%rsp),%eax
  mov    %rdi,0x20(%rsp)
  lea    (%r12,%rdi,4),%r8
  movq   D462(%rip),%xmm9
  mov    0x28(%rsp),%edi
  mov    %ebx,%edx
  mov    %ebx,%esi
  sub    $0x1,%eax
  shr    $0x2,%edx
  and    $0xfffffffc,%esi
  mov    %eax,0x48(%rsp)
  movslq %ebx,%rax
  sub    $0x1,%edx
  mov    %esi,0x4c(%rsp)
  add    $0x1,%rdx
  mov    %edi,0x18(%rsp)
  shl    $0x4,%rdx
  mov    %rax,0x40(%rsp)
  shl    $0x2,%rax
  mov    %rdx,0x50(%rsp)
  mov    %rax,0x38(%rsp)
  lea    -0x1(%rbx),%eax
  nop
L855:
  test   %r9d,%r9d
  mov    $0x1,%esi
  mov    0x2c(%rsp),%r15d
  mov    0x48(%rsp),%edi
  cmovg  %r9d,%esi
  add    $0x1,%r9d
  mov    %r15d,%edx
  sub    0x28(%rsp),%edx
  add    0x18(%rsp),%edx
  sub    $0x1,%esi
  imul   %ebx,%esi
  cmp    %edi,%r9d
  cmovle %r9d,%edi
  imul   %ebx,%edi
  lea    (%rsi,%r15,1),%ecx
  lea    (%rdi,%r15,1),%r14d
  mov    %r14d,0x8(%rsp)
  test   %ebx,%ebx
  jle    L1014
  mov    0x30(%rsp),%r15
  lea    0x10(%r8),%r11
  movslq %esi,%rsi
  movslq %edi,%rdi
  lea    0x10(%r13),%rbp
  add    %r15,%rdi
  add    %r15,%rsi
  cmp    %r11,%r13
  setae  %r15b
  cmp    %r8,%rbp
  lea    (%r12,%rdi,4),%r10
  setbe  %r11b
  lea    0x4(,%rsi,4),%r14
  or     %r15d,%r11d
  cmp    $0x1,%ebx
  setne  %r15b
  and    %r15d,%r11d
  lea    0x10(%r12,%rdi,4),%r15
  cmp    %r15,%r13
  setae  %r15b
  cmp    %r10,%rbp
  setbe  %bpl
  or     %ebp,%r15d
  test   %r15b,%r11b
  je     L893
  lea    (%r12,%r14,1),%rbp
  mov    %r13,%r11
  sub    %rbp,%r11
  cmp    $0x8,%r11
  jbe    L893
  cmp    $0x2,%eax
  jbe    L915
  lea    -0x4(%r12,%r14,1),%rbp
  mov    0x50(%rsp),%r14
  xor    %r11d,%r11d
  nopw   0x0(%rax,%rax,1)
L743:
  movups 0x0(%rbp,%r11,1),%xmm1
  mulps  %xmm6,%xmm1
  movups %xmm1,0x0(%r13,%r11,1)
  movups (%r8,%r11,1),%xmm0
  mulps  %xmm8,%xmm0
  addps  %xmm1,%xmm0
  movups %xmm0,0x0(%r13,%r11,1)
  movups (%r10,%r11,1),%xmm1
  mulps  %xmm6,%xmm1
  addps  %xmm1,%xmm0
  movups %xmm0,0x0(%r13,%r11,1)
  add    $0x10,%r11
  cmp    %r11,%r14
  jne    L743
  mov    0x4c(%rsp),%r15d
  mov    %eax,%r11d
  cmp    %ebx,%r15d
  je     L530
  mov    %ebx,%r14d
  sub    %r15d,%r14d
  cmp    $0x1,%r14d
  je     L350
  mov    %r15d,%r11d
  mov    %r15d,%r10d
L299:
  add    %r11,%rsi
  lea    0x0(%r13,%r11,4),%rbp
  add    %r11,%rdi
  movq   D421(%rip),%xmm10
  movq   (%r12,%rsi,4),%xmm1
  mov    0x20(%rsp),%rsi
  mulps  %xmm9,%xmm1
  add    %r11,%rsi
  mov    %eax,%r11d
  movlps %xmm1,0x0(%rbp)
  movq   (%r12,%rsi,4),%xmm0
  mov    %r14d,%esi
  and    $0xfffffffe,%esi
  mulps  %xmm10,%xmm0
  add    %esi,%r10d
  addps  %xmm1,%xmm0
  movlps %xmm0,0x0(%rbp)
  movq   (%r12,%rdi,4),%xmm1
  mulps  %xmm9,%xmm1
  addps  %xmm1,%xmm0
  movlps %xmm0,0x0(%rbp)
  cmp    %esi,%r14d
  je     L530
L539:
  add    %r10d,%ecx
  movslq %r10d,%rsi
  add    %r10d,%edx
  add    0x8(%rsp),%r10d
  movslq %ecx,%rcx
  lea    0x0(%r13,%rsi,4),%rsi
  movslq %edx,%rdx
  movslq %r10d,%r10
  movss  (%r12,%rcx,4),%xmm1
  mov    %eax,%r11d
  mulss  %xmm2,%xmm1
  movss  %xmm1,(%rsi)
  movss  (%r12,%rdx,4),%xmm0
  mulss  %xmm7,%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rsi)
  movss  (%r12,%r10,4),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rsi)
L530:
  movslq 0x18(%rsp),%rdx
  mov    0x10(%rsp),%rdi
  lea    (%rdi,%rdx,4),%rsi
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L253:
  test   %edx,%edx
  mov    $0x1,%ecx
  movss  0x0(%r13,%rdx,4),%xmm1
  cmovg  %edx,%ecx
  mulss  %xmm4,%xmm1
  sub    $0x1,%ecx
  movslq %ecx,%rcx
  movss  0x0(%r13,%rcx,4),%xmm0
  lea    0x1(%rdx),%ecx
  cmp    %eax,%ecx
  mulss  %xmm5,%xmm0
  cmovg  %eax,%ecx
  movslq %ecx,%rcx
  addss  %xmm1,%xmm0
  movss  0x0(%r13,%rcx,4),%xmm1
  mov    %rdx,%rcx
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rsi,%rdx,4)
  add    $0x1,%rdx
  cmp    %r11,%rcx
  jne    L253
L1014:
  mov    0x40(%rsp),%rsi
  add    %ebx,0x18(%rsp)
  add    %rsi,0x20(%rsp)
  add    0x38(%rsp),%r8
  cmp    0x1c(%rsp),%r9d
  jne    L855
L419:
  cmpl   $0x1,0x68(%rsp)
  je     L435
  mov    0x84(%rsp),%eax
  test   %eax,%eax
  je     L957
L652:
  mov    0x58(%rsp),%ebx
  lea    0x1(%rbx),%eax
  cmp    $0x3,%ebx
  je     L255
L87:
  mov    0x68(%rsp),%edx
  mov    0x5c(%rsp),%edi
  add    %edi,0x2c(%rsp)
  mov    0x70(%rsp),%rdi
  add    $0x1,%edx
  add    %rdi,0x30(%rsp)
  cmp    0x6c(%rsp),%edx
  jg     L769
L460:
  mov    0x58(%rsp),%ebx
  movl   $0x1,0x68(%rsp)
  mov    %eax,0x58(%rsp)
  mov    %ebx,0x80(%rsp)
  jmp    L513
  nopl   0x0(%rax)
L893:
  movslq 0x8(%rsp),%rdx
  movslq %ecx,%rcx
  mov    %eax,%r11d
  lea    (%r12,%rcx,4),%rsi
  lea    (%r12,%rdx,4),%rdi
  xor    %edx,%edx
  nopl   (%rax)
L372:
  movss  (%rsi,%rdx,4),%xmm1
  mov    %rdx,%rcx
  mulss  %xmm2,%xmm1
  movss  %xmm1,0x0(%r13,%rdx,4)
  movss  (%r8,%rdx,4),%xmm0
  mulss  %xmm7,%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%r13,%rdx,4)
  movss  (%rdi,%rdx,4),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%r13,%rdx,4)
  add    $0x1,%rdx
  cmp    %r11,%rcx
  jne    L372
  jmp    L530
L915:
  mov    %ebx,%r14d
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  jmp    L299
L350:
  mov    %r15d,%r10d
  jmp    L539
L255:
  mov    0x68(%rsp),%edx
  mov    0x5c(%rsp),%ebx
  add    %ebx,0x2c(%rsp)
  mov    0x70(%rsp),%rbx
  add    $0x1,%edx
  add    %rbx,0x30(%rsp)
  cmp    %edx,0x6c(%rsp)
  jl     L9
  xor    %eax,%eax
  jmp    L460
L435:
  mov    0x2c(%rsp),%eax
  mov    0x80(%rsp),%r8d
  imul   %eax,%r8d
  test   %eax,%eax
  jle    L5
  movslq 0x28(%rsp),%rdi
  mov    0x10(%rsp),%rsi
  mov    %eax,%r14d
  movslq %r8d,%r9
  mov    0x60(%rsp),%rbx
  lea    0x4(,%r9,4),%rcx
  lea    0x4(,%rdi,4),%r10
  lea    (%rsi,%r10,1),%rdx
  mov    %rbx,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  seta   %dl
  cmp    $0x1,%r14d
  setne  %al
  test   %al,%dl
  je     L999
  lea    (%rsi,%rcx,1),%rdx
  mov    %rbx,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L999
  lea    -0x1(%r14),%eax
  mov    %r14d,%edx
  cmp    $0x2,%eax
  jbe    L38
  mov    %rsi,%rax
  shr    $0x2,%edx
  movaps D462(%rip),%xmm2
  movaps D421(%rip),%xmm7
  lea    -0x4(%rsi,%rcx,1),%rsi
  shl    $0x4,%rdx
  lea    -0x4(%rax,%r10,1),%rcx
  xor    %eax,%eax
  mov    %rbx,%r10
L815:
  movups (%rsi,%rax,1),%xmm0
  movups (%rsi,%rax,1),%xmm1
  mulps  %xmm2,%xmm0
  mulps  %xmm7,%xmm1
  addps  %xmm1,%xmm0
  movups (%rcx,%rax,1),%xmm1
  mulps  %xmm2,%xmm1
  addps  %xmm1,%xmm0
  movups %xmm0,(%r10,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L815
  mov    0x2c(%rsp),%ebx
  mov    %ebx,%edx
  and    $0xfffffffc,%edx
  mov    %edx,%eax
  cmp    %ebx,%edx
  je     L225
L874:
  mov    0x2c(%rsp),%esi
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L822
  mov    0x10(%rsp),%rbx
  lea    (%r9,%rdx,1),%rcx
  movq   D462(%rip),%xmm0
  movq   D421(%rip),%xmm7
  movq   (%rbx,%rcx,4),%xmm2
  lea    (%rdi,%rdx,1),%rcx
  movq   (%rbx,%rcx,4),%xmm1
  mov    0x60(%rsp),%rbx
  mulps  %xmm0,%xmm1
  mulps  %xmm2,%xmm0
  mulps  %xmm7,%xmm2
  addps  %xmm2,%xmm0
  addps  %xmm1,%xmm0
  movlps %xmm0,(%rbx,%rdx,4)
  mov    %esi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%esi
  je     L225
L822:
  mov    0x10(%rsp),%rbx
  lea    (%r8,%rax,1),%edx
  movss  D462(%rip),%xmm0
  movslq %edx,%rdx
  movss  D421(%rip),%xmm1
  movss  (%rbx,%rdx,4),%xmm2
  movslq %eax,%rdx
  add    0x28(%rsp),%eax
  cltq
  movss  (%rbx,%rax,4),%xmm7
  mov    0x60(%rsp),%rax
  mulss  %xmm0,%xmm7
  mulss  %xmm2,%xmm0
  mulss  %xmm1,%xmm2
  addss  %xmm2,%xmm0
  addss  %xmm7,%xmm0
  movss  %xmm0,(%rax,%rdx,4)
L225:
  cmpl   $0x1,0x84(%rsp)
  je     L1001
L5:
  mov    0x58(%rsp),%ebx
  lea    0x1(%rbx),%eax
  cmp    $0x3,%ebx
  jne    L87
  movl   $0x2,0x68(%rsp)
  mov    0x68(%rsp),%eax
  movl   $0x3,0x58(%rsp)
  movl   $0x0,0x6c(%rsp)
  cmp    %eax,0x88(%rsp)
  jg     L879
L1085:
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <free@plt>
L957:
  mov    0x5c(%rsp),%eax
  mov    0x80(%rsp),%r8d
  imul   %eax,%r8d
  test   %eax,%eax
  jle    L652
  movslq 0x28(%rsp),%rdi
L932:
  mov    0x60(%rsp),%rax
  mov    0x30(%rsp),%rbx
  lea    0x4(,%rdi,4),%r10
  movslq %r8d,%r9
  mov    0x5c(%rsp),%r14d
  lea    0x4(,%r9,4),%rsi
  lea    (%rax,%rbx,4),%rdx
  mov    0x10(%rsp),%rbx
  mov    %rdx,%rax
  lea    (%rbx,%r10,1),%rcx
  sub    %rcx,%rax
  cmp    $0x8,%rax
  seta   %cl
  cmp    $0x1,%r14d
  setg   %al
  test   %al,%cl
  je     L301
  lea    (%rbx,%rsi,1),%rcx
  mov    %rdx,%rax
  sub    %rcx,%rax
  cmp    $0x8,%rax
  jbe    L301
  cmp    $0x3,%r14d
  jle    L980
  lea    -0x4(%rbx,%r10,1),%rcx
  movaps D462(%rip),%xmm2
  lea    -0x4(%rbx,%rsi,1),%rsi
  xor    %eax,%eax
  movaps D421(%rip),%xmm7
  mov    0xa0(%rsp),%r10
L26:
  movups (%rsi,%rax,1),%xmm0
  movups (%rcx,%rax,1),%xmm1
  mulps  %xmm2,%xmm0
  mulps  %xmm7,%xmm1
  addps  %xmm1,%xmm0
  movups (%rcx,%rax,1),%xmm1
  mulps  %xmm2,%xmm1
  addps  %xmm1,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %r10,%rax
  jne    L26
  mov    0xac(%rsp),%eax
  mov    %eax,%edx
  cmp    %eax,0x90(%rsp)
  je     L652
L1077:
  mov    0x90(%rsp),%esi
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L590
  mov    0x10(%rsp),%rbx
  lea    (%rdi,%rdx,1),%rcx
  movq   D462(%rip),%xmm7
  movq   D421(%rip),%xmm2
  movq   (%rbx,%rcx,4),%xmm1
  lea    (%r9,%rdx,1),%rcx
  add    0x30(%rsp),%rdx
  movq   (%rbx,%rcx,4),%xmm0
  mov    0x60(%rsp),%rbx
  mulps  %xmm1,%xmm2
  mulps  %xmm7,%xmm0
  mulps  %xmm7,%xmm1
  addps  %xmm2,%xmm0
  addps  %xmm1,%xmm0
  movlps %xmm0,(%rbx,%rdx,4)
  mov    %esi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%esi
  je     L652
L590:
  mov    0x28(%rsp),%edx
  mov    0x10(%rsp),%rbx
  mov    0x2c(%rsp),%edi
  movss  D462(%rip),%xmm0
  add    %eax,%edx
  movss  D421(%rip),%xmm1
  movslq %edx,%rdx
  movss  (%rbx,%rdx,4),%xmm7
  lea    (%rdi,%rax,1),%edx
  add    %r8d,%eax
  cltq
  movslq %edx,%rdx
  movss  (%rbx,%rax,4),%xmm2
  mulss  %xmm7,%xmm1
  mov    0x60(%rsp),%rax
  mulss  %xmm0,%xmm7
  mulss  %xmm0,%xmm2
  addss  %xmm2,%xmm1
  addss  %xmm7,%xmm1
  movss  %xmm1,(%rax,%rdx,4)
  jmp    L652
L769:
  mov    %eax,0x6c(%rsp)
  mov    %edx,0x68(%rsp)
L1009:
  mov    0x68(%rsp),%eax
  cmp    %eax,0x88(%rsp)
  jle    L1085
L879:
  mov    0x5c(%rsp),%edi
  movss  D413(%rip),%xmm3
  movss  D462(%rip),%xmm8
  movaps D462(%rip),%xmm4
  mov    %edi,%ebx
  movaps D421(%rip),%xmm6
  movss  D421(%rip),%xmm10
  imul   %eax,%ebx
  sub    $0x1,%eax
  imul   %edi,%eax
  movslq %ebx,%rsi
  mov    %ebx,0x2c(%rsp)
  sub    %ebx,%eax
  mov    %edi,%ebx
  mov    %rsi,0x30(%rsp)
  mov    %eax,0x8c(%rsp)
  lea    -0x1(%rdi),%eax
  and    $0xfffffffc,%ebx
  mov    %eax,0x94(%rsp)
  mov    %edi,%eax
  mov    0x6c(%rsp),%edi
  shr    $0x2,%eax
  mov    %ebx,0xa8(%rsp)
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x98(%rsp)
  nopw   0x0(%rax,%rax,1)
L155:
  imul   0x5c(%rsp),%edi
  mov    0x1c(%rsp),%eax
  mov    %edi,0x28(%rsp)
  test   %eax,%eax
  jle    L952
  mov    0x78(%rsp),%rbx
  mov    0x30(%rsp),%rsi
  sub    $0x1,%eax
  xor    %r9d,%r9d
  mov    %eax,0x48(%rsp)
  movss  D534(%rip),%xmm1
  pxor   %xmm2,%xmm2
  mov    (%rbx),%ebx
  mov    %edi,0x18(%rsp)
  lea    (%r12,%rsi,4),%r8
  mov    %rsi,0x20(%rsp)
  movss  D462(%rip),%xmm5
  mov    %ebx,%edx
  movslq %ebx,%rax
  movss  D421(%rip),%xmm7
  movq   D462(%rip),%xmm9
  shr    $0x2,%edx
  mov    %rax,0x40(%rsp)
  shl    $0x2,%rax
  sub    $0x1,%edx
  mov    %rax,0x38(%rsp)
  lea    -0x1(%rbx),%eax
  add    $0x1,%rdx
  shl    $0x4,%rdx
  mov    %rdx,0x50(%rsp)
  mov    %ebx,%edx
  and    $0xfffffffc,%edx
  mov    %edx,0x4c(%rsp)
  nop
L881:
  test   %r9d,%r9d
  mov    $0x1,%esi
  mov    0x2c(%rsp),%r14d
  mov    0x48(%rsp),%edi
  cmovg  %r9d,%esi
  add    $0x1,%r9d
  mov    %r14d,%edx
  sub    0x28(%rsp),%edx
  add    0x18(%rsp),%edx
  sub    $0x1,%esi
  imul   %ebx,%esi
  cmp    %edi,%r9d
  cmovle %r9d,%edi
  imul   %ebx,%edi
  lea    (%rsi,%r14,1),%ecx
  add    %edi,%r14d
  mov    %r14d,0x8(%rsp)
  test   %ebx,%ebx
  jle    L615
  mov    0x30(%rsp),%r14
  lea    0x10(%r8),%r11
  movslq %edi,%rdi
  movslq %esi,%rsi
  lea    0x10(%r13),%rbp
  add    %r14,%rdi
  add    %r14,%rsi
  cmp    %r11,%r13
  setae  %r15b
  cmp    %r8,%rbp
  lea    (%r12,%rdi,4),%r10
  setbe  %r11b
  lea    0x4(,%rsi,4),%r14
  or     %r15d,%r11d
  cmp    $0x1,%ebx
  setne  %r15b
  and    %r15d,%r11d
  lea    0x10(%r12,%rdi,4),%r15
  cmp    %r15,%r13
  setae  %r15b
  cmp    %r10,%rbp
  setbe  %bpl
  or     %ebp,%r15d
  test   %r15b,%r11b
  je     L744
  lea    (%r12,%r14,1),%rbp
  mov    %r13,%r11
  sub    %rbp,%r11
  cmp    $0x8,%r11
  jbe    L744
  cmp    $0x2,%eax
  jbe    L1050
  lea    -0x4(%r12,%r14,1),%rbp
  mov    0x50(%rsp),%r14
  xor    %r11d,%r11d
  nopl   0x0(%rax)
L872:
  movups 0x0(%rbp,%r11,1),%xmm11
  mulps  %xmm4,%xmm11
  movups %xmm11,0x0(%r13,%r11,1)
  movups (%r8,%r11,1),%xmm0
  mulps  %xmm6,%xmm0
  addps  %xmm11,%xmm0
  movups %xmm0,0x0(%r13,%r11,1)
  movups (%r10,%r11,1),%xmm11
  mulps  %xmm4,%xmm11
  addps  %xmm11,%xmm0
  movups %xmm0,0x0(%r13,%r11,1)
  add    $0x10,%r11
  cmp    %r14,%r11
  jne    L872
  mov    0x4c(%rsp),%r15d
  mov    %eax,%r11d
  cmp    %r15d,%ebx
  je     L644
  mov    %ebx,%r14d
  sub    %r15d,%r14d
  cmp    $0x1,%r14d
  je     L605
  mov    %r15d,%r11d
  mov    %r15d,%r10d
L378:
  add    %r11,%rsi
  lea    0x0(%r13,%r11,4),%rbp
  add    %r11,%rdi
  movq   D421(%rip),%xmm12
  movq   (%r12,%rsi,4),%xmm11
  mov    0x20(%rsp),%rsi
  mulps  %xmm9,%xmm11
  add    %r11,%rsi
  mov    %eax,%r11d
  movlps %xmm11,0x0(%rbp)
  movq   (%r12,%rsi,4),%xmm0
  mov    %r14d,%esi
  and    $0xfffffffe,%esi
  mulps  %xmm12,%xmm0
  add    %esi,%r10d
  addps  %xmm11,%xmm0
  movlps %xmm0,0x0(%rbp)
  movq   (%r12,%rdi,4),%xmm11
  mulps  %xmm9,%xmm11
  addps  %xmm11,%xmm0
  movlps %xmm0,0x0(%rbp)
  cmp    %r14d,%esi
  je     L644
L989:
  add    %r10d,%ecx
  movslq %r10d,%rsi
  add    %r10d,%edx
  add    0x8(%rsp),%r10d
  movslq %ecx,%rcx
  lea    0x0(%r13,%rsi,4),%rsi
  movslq %edx,%rdx
  movslq %r10d,%r10
  movss  (%r12,%rcx,4),%xmm11
  mov    %eax,%r11d
  mulss  %xmm5,%xmm11
  movss  %xmm11,(%rsi)
  movss  (%r12,%rdx,4),%xmm0
  mulss  %xmm7,%xmm0
  addss  %xmm11,%xmm0
  movss  %xmm0,(%rsi)
  movss  (%r12,%r10,4),%xmm11
  mulss  %xmm5,%xmm11
  addss  %xmm11,%xmm0
  movss  %xmm0,(%rsi)
L644:
  movslq 0x18(%rsp),%rdx
  mov    0x10(%rsp),%rdi
  lea    (%rdi,%rdx,4),%rsi
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L741:
  test   %edx,%edx
  mov    $0x1,%ecx
  movss  0x0(%r13,%rdx,4),%xmm11
  cmovg  %edx,%ecx
  mulss  %xmm2,%xmm11
  sub    $0x1,%ecx
  movslq %ecx,%rcx
  movss  0x0(%r13,%rcx,4),%xmm0
  lea    0x1(%rdx),%ecx
  cmp    %eax,%ecx
  mulss  %xmm3,%xmm0
  cmovg  %eax,%ecx
  movslq %ecx,%rcx
  addss  %xmm11,%xmm0
  movss  0x0(%r13,%rcx,4),%xmm11
  mov    %rdx,%rcx
  mulss  %xmm1,%xmm11
  addss  %xmm11,%xmm0
  movss  %xmm0,(%rsi,%rdx,4)
  add    $0x1,%rdx
  cmp    %r11,%rcx
  jne    L741
L615:
  mov    0x40(%rsp),%rsi
  add    %ebx,0x18(%rsp)
  add    %rsi,0x20(%rsp)
  add    0x38(%rsp),%r8
  cmp    %r9d,0x1c(%rsp)
  jne    L881
L952:
  cmpl   $0x1,0x68(%rsp)
  je     L544
  mov    0x5c(%rsp),%eax
  mov    0x80(%rsp),%r9d
  mov    0x58(%rsp),%r11d
  mov    0x2c(%rsp),%r8d
  imul   %eax,%r9d
  add    0x8c(%rsp),%r8d
  imul   %eax,%r11d
  test   %eax,%eax
  jle    L1072
  mov    0x60(%rsp),%rbx
  movslq 0x28(%rsp),%r10
  movslq %r8d,%r14
  movslq %r11d,%rbp
  mov    0x10(%rsp),%rsi
  lea    0x4(,%rbp,4),%r15
  lea    (%rbx,%r14,4),%rdx
  lea    0x4(,%r10,4),%rcx
  movslq %r9d,%rbx
  mov    %rcx,0x8(%rsp)
  mov    %rdx,%rax
  lea    (%rsi,%r15,1),%rcx
  lea    0x4(,%rbx,4),%rdi
  sub    %rcx,%rax
  lea    (%rsi,%rdi,1),%rsi
  mov    %rdx,%rcx
  cmp    $0x8,%rax
  seta   %al
  sub    %rsi,%rcx
  cmp    $0x8,%rcx
  seta   %cl
  and    %ecx,%eax
  cmpl   $0x1,0x5c(%rsp)
  setne  %cl
  test   %cl,%al
  je     L933
  mov    0x10(%rsp),%rsi
  mov    0x8(%rsp),%rcx
  mov    %rdx,%rax
  add    %rsi,%rcx
  sub    %rcx,%rax
  cmp    $0x8,%rax
  jbe    L933
  cmpl   $0x2,0x94(%rsp)
  jbe    L497
  mov    %rsi,%rax
  lea    -0x4(%rsi,%rdi,1),%rdi
  lea    0x4(,%r10,4),%rcx
  movaps D462(%rip),%xmm1
  lea    -0x4(%rsi,%r15,1),%rsi
  movaps D421(%rip),%xmm5
  lea    -0x4(%rax,%rcx,1),%rcx
  mov    0x98(%rsp),%r15
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L764:
  movups (%rdi,%rax,1),%xmm0
  movups (%rsi,%rax,1),%xmm2
  mulps  %xmm1,%xmm0
  mulps  %xmm5,%xmm2
  addps  %xmm2,%xmm0
  movups (%rcx,%rax,1),%xmm2
  mulps  %xmm1,%xmm2
  addps  %xmm2,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r15
  jne    L764
  mov    0xa8(%rsp),%esi
  mov    0x5c(%rsp),%ecx
  mov    %esi,%eax
  cmp    %ecx,%eax
  je     L246
  sub    %esi,%ecx
  cmp    $0x1,%ecx
  je     L664
L540:
  movq   D462(%rip),%xmm2
  lea    (%rbx,%rax,1),%rdx
  mov    0x10(%rsp),%rbx
  movq   D421(%rip),%xmm5
  movq   (%rbx,%rdx,4),%xmm0
  lea    0x0(%rbp,%rax,1),%rdx
  movq   (%rbx,%rdx,4),%xmm1
  lea    (%r10,%rax,1),%rdx
  add    %r14,%rax
  mulps  %xmm2,%xmm0
  mulps  %xmm5,%xmm1
  addps  %xmm1,%xmm0
  movq   (%rbx,%rdx,4),%xmm1
  mov    0x60(%rsp),%rbx
  mov    %ecx,%edx
  and    $0xfffffffe,%edx
  mulps  %xmm2,%xmm1
  addps  %xmm1,%xmm0
  movlps %xmm0,(%rbx,%rax,4)
  lea    (%rdx,%rsi,1),%eax
  cmp    %ecx,%edx
  je     L246
L13:
  mov    0x10(%rsp),%rbx
  lea    (%r9,%rax,1),%ecx
  lea    (%rax,%r8,1),%edx
  movss  D462(%rip),%xmm0
  movslq %ecx,%rcx
  movss  D421(%rip),%xmm1
  movslq %edx,%rdx
  movss  (%rbx,%rcx,4),%xmm2
  lea    (%r11,%rax,1),%ecx
  add    0x28(%rsp),%eax
  movslq %ecx,%rcx
  cltq
  mulss  %xmm0,%xmm2
  mulss  (%rbx,%rcx,4),%xmm1
  mulss  (%rbx,%rax,4),%xmm0
  mov    0x60(%rsp),%rax
  addss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax,%rdx,4)
L246:
  mov    0x84(%rsp),%ebx
  cmp    %ebx,0x68(%rsp)
  je     L477
  xchg   %ax,%ax
L1072:
  mov    0x6c(%rsp),%ebx
  addl   $0x1,0x68(%rsp)
  lea    0x1(%rbx),%eax
  cmp    $0x3,%ebx
  je     L386
  mov    0x5c(%rsp),%esi
  mov    0x68(%rsp),%ebx
  add    %esi,0x2c(%rsp)
  mov    0x70(%rsp),%rsi
  add    %rsi,0x30(%rsp)
  cmp    %ebx,0x88(%rsp)
  je     L1085
L720:
  mov    0x58(%rsp),%ebx
  mov    %eax,%edi
  mov    %ebx,0x80(%rsp)
  mov    0x6c(%rsp),%ebx
  mov    %eax,0x6c(%rsp)
  mov    %ebx,0x58(%rsp)
  jmp    L155
  cs nopw 0x0(%rax,%rax,1)
L744:
  movslq 0x8(%rsp),%rdx
  movslq %ecx,%rcx
  mov    %eax,%r11d
  lea    (%r12,%rcx,4),%rsi
  lea    (%r12,%rdx,4),%rdi
  xor    %edx,%edx
  nopl   (%rax)
L1013:
  movss  (%rsi,%rdx,4),%xmm11
  mov    %rdx,%rcx
  mulss  %xmm8,%xmm11
  movss  %xmm11,0x0(%r13,%rdx,4)
  movss  (%r8,%rdx,4),%xmm0
  mulss  %xmm10,%xmm0
  addss  %xmm11,%xmm0
  movss  %xmm0,0x0(%r13,%rdx,4)
  movss  (%rdi,%rdx,4),%xmm11
  mulss  %xmm8,%xmm11
  addss  %xmm11,%xmm0
  movss  %xmm0,0x0(%r13,%rdx,4)
  add    $0x1,%rdx
  cmp    %rcx,%r11
  jne    L1013
  jmp    L644
L1050:
  mov    %ebx,%r14d
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  jmp    L378
L605:
  mov    %r15d,%r10d
  jmp    L989
L386:
  mov    0x5c(%rsp),%edi
  mov    0x68(%rsp),%eax
  add    %edi,0x2c(%rsp)
  mov    0x70(%rsp),%rdi
  add    %rdi,0x30(%rsp)
  cmp    %eax,0x88(%rsp)
  je     L1085
  xor    %eax,%eax
  jmp    L720
L544:
  mov    0x58(%rsp),%edi
  mov    0x2c(%rsp),%ebx
  imul   %ebx,%edi
  test   %ebx,%ebx
  jle    L1072
  movslq 0x28(%rsp),%r10
  mov    0x10(%rsp),%r15
  movslq %edi,%r8
  mov    0x60(%rsp),%r14
  lea    0x4(,%r8,4),%rcx
  lea    0x4(,%r10,4),%r9
  lea    (%r15,%r9,1),%rdx
  mov    %r14,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  seta   %dl
  cmp    $0x1,%ebx
  setne  %al
  test   %al,%dl
  je     L835
  lea    (%r15,%rcx,1),%rdx
  mov    %r14,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L835
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%eax
  jbe    L1041
  shr    $0x2,%ebx
  movaps D462(%rip),%xmm1
  movaps D421(%rip),%xmm5
  xor    %eax,%eax
  mov    %ebx,%edx
  lea    -0x4(%r15,%rcx,1),%rsi
  lea    -0x4(%r15,%r9,1),%rcx
  mov    %r14,%r9
  shl    $0x4,%rdx
L1047:
  movups (%rsi,%rax,1),%xmm0
  movups (%rsi,%rax,1),%xmm2
  mulps  %xmm1,%xmm0
  mulps  %xmm5,%xmm2
  addps  %xmm2,%xmm0
  movups (%rcx,%rax,1),%xmm2
  mulps  %xmm1,%xmm2
  addps  %xmm2,%xmm0
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L1047
  mov    0x2c(%rsp),%ebx
  mov    %ebx,%edx
  and    $0xfffffffc,%edx
  mov    %edx,%eax
  cmp    %ebx,%edx
  je     L246
L214:
  mov    0x2c(%rsp),%esi
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L512
  mov    0x10(%rsp),%rbx
  lea    (%r8,%rdx,1),%rcx
  movq   D462(%rip),%xmm0
  movq   D421(%rip),%xmm5
  movq   (%rbx,%rcx,4),%xmm2
  lea    (%r10,%rdx,1),%rcx
  movq   (%rbx,%rcx,4),%xmm1
  mov    0x60(%rsp),%rbx
  mulps  %xmm0,%xmm1
  mulps  %xmm2,%xmm0
  mulps  %xmm5,%xmm2
  addps  %xmm2,%xmm0
  addps  %xmm1,%xmm0
  movlps %xmm0,(%rbx,%rdx,4)
  mov    %esi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%esi
  je     L246
L512:
  mov    0x10(%rsp),%rbx
  lea    (%rdi,%rax,1),%edx
  movss  D462(%rip),%xmm0
  movslq %edx,%rdx
  movss  D421(%rip),%xmm1
  movss  (%rbx,%rdx,4),%xmm2
  movslq %eax,%rdx
  add    0x28(%rsp),%eax
  cltq
  movss  (%rbx,%rax,4),%xmm5
  mov    0x60(%rsp),%rax
  mov    0x84(%rsp),%ebx
  mulss  %xmm0,%xmm5
  mulss  %xmm2,%xmm0
  mulss  %xmm1,%xmm2
  addss  %xmm2,%xmm0
  addss  %xmm5,%xmm0
  movss  %xmm0,(%rax,%rdx,4)
  cmp    %ebx,0x68(%rsp)
  jne    L1072
L477:
  mov    0x5c(%rsp),%ebx
  mov    0x58(%rsp),%edi
  lea    0x4(,%r10,4),%r9
  mov    0x60(%rsp),%rax
  mov    0x30(%rsp),%rsi
  imul   %ebx,%edi
  mov    0x10(%rsp),%r14
  lea    (%rax,%rsi,4),%rsi
  mov    %rsi,%rax
  movslq %edi,%r8
  lea    0x4(,%r8,4),%rcx
  lea    (%r14,%rcx,1),%rdx
  sub    %rdx,%rax
  lea    (%r14,%r9,1),%rdx
  cmp    $0x8,%rax
  mov    %rsi,%rax
  seta   %r11b
  sub    %rdx,%rax
  cmp    $0x8,%rax
  seta   %al
  test   %al,%r11b
  je     L53
  cmp    $0x1,%ebx
  jle    L53
  cmp    $0x3,%ebx
  jle    L643
  lea    -0x4(%r14,%r9,1),%rdx
  movaps D462(%rip),%xmm1
  lea    -0x4(%r14,%rcx,1),%rcx
  xor    %eax,%eax
  movaps D421(%rip),%xmm5
  mov    0xa0(%rsp),%r9
L947:
  movups (%rcx,%rax,1),%xmm0
  movups (%rdx,%rax,1),%xmm2
  mulps  %xmm1,%xmm0
  mulps  %xmm5,%xmm2
  addps  %xmm2,%xmm0
  movups (%rdx,%rax,1),%xmm2
  mulps  %xmm1,%xmm2
  addps  %xmm2,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r9
  jne    L947
  mov    0xac(%rsp),%eax
  mov    %eax,%edx
  cmp    %eax,0x90(%rsp)
  je     L1072
L318:
  mov    0x90(%rsp),%esi
  sub    %edx,%esi
  cmp    $0x1,%esi
  je     L562
  mov    0x10(%rsp),%rbx
  lea    (%r10,%rdx,1),%rcx
  movq   D462(%rip),%xmm5
  movq   D421(%rip),%xmm2
  movq   (%rbx,%rcx,4),%xmm1
  lea    (%r8,%rdx,1),%rcx
  add    0x30(%rsp),%rdx
  movq   (%rbx,%rcx,4),%xmm0
  mov    0x60(%rsp),%rbx
  mulps  %xmm1,%xmm2
  mulps  %xmm5,%xmm0
  mulps  %xmm5,%xmm1
  addps  %xmm2,%xmm0
  addps  %xmm1,%xmm0
  movlps %xmm0,(%rbx,%rdx,4)
  mov    %esi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %esi,%edx
  je     L1072
L562:
  mov    0x28(%rsp),%edx
  mov    0x10(%rsp),%rbx
  mov    0x2c(%rsp),%esi
  movss  D462(%rip),%xmm0
  add    %eax,%edx
  movss  D421(%rip),%xmm1
  movslq %edx,%rdx
  movss  (%rbx,%rdx,4),%xmm5
  lea    (%rax,%rsi,1),%edx
  add    %edi,%eax
  cltq
  movslq %edx,%rdx
  movss  (%rbx,%rax,4),%xmm2
  mulss  %xmm5,%xmm1
  mov    0x60(%rsp),%rax
  mulss  %xmm0,%xmm5
  mulss  %xmm0,%xmm2
  addss  %xmm2,%xmm1
  addss  %xmm5,%xmm1
  movss  %xmm1,(%rax,%rdx,4)
  jmp    L1072
L1001:
  mov    0x5c(%rsp),%r8d
  imul   0x80(%rsp),%r8d
  jmp    L932
L933:
  mov    0x10(%rsp),%rax
  mov    0x94(%rsp),%r9d
  movss  D462(%rip),%xmm0
  movss  D421(%rip),%xmm1
  lea    (%rax,%rbx,4),%r8
  lea    (%rax,%rbp,4),%rdi
  lea    (%rax,%r10,4),%rsi
  xor    %eax,%eax
L94:
  movss  (%r8,%rax,4),%xmm2
  movss  (%rdi,%rax,4),%xmm5
  mov    %rax,%rcx
  mulss  %xmm1,%xmm5
  mulss  %xmm0,%xmm2
  addss  %xmm5,%xmm2
  movss  (%rsi,%rax,4),%xmm5
  mulss  %xmm0,%xmm5
  addss  %xmm5,%xmm2
  movss  %xmm2,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %rcx,%r9
  jne    L94
  jmp    L246
L301:
  mov    0x10(%rsp),%rax
  movss  D462(%rip),%xmm0
  movss  D421(%rip),%xmm1
  lea    (%rax,%rdi,4),%rcx
  mov    0x5c(%rsp),%edi
  lea    -0x4(%rax,%rsi,1),%rsi
  xor    %eax,%eax
L462:
  movss  (%rcx,%rax,4),%xmm7
  movss  (%rsi,%rax,4),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm7,%xmm9
  mulss  %xmm1,%xmm9
  mulss  %xmm0,%xmm7
  addss  %xmm9,%xmm2
  addss  %xmm7,%xmm2
  movss  %xmm2,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edi
  jg     L462
  jmp    L652
L999:
  mov    0x10(%rsp),%rax
  mov    0x2c(%rsp),%esi
  movss  D462(%rip),%xmm0
  movss  D421(%rip),%xmm1
  mov    0x60(%rsp),%r8
  lea    (%rax,%r9,4),%rcx
  lea    (%rax,%rdi,4),%rdx
  xor    %eax,%eax
L750:
  movss  (%rcx,%rax,4),%xmm7
  movaps %xmm7,%xmm2
  mulss  %xmm0,%xmm2
  mulss  %xmm1,%xmm7
  addss  %xmm7,%xmm2
  movss  (%rdx,%rax,4),%xmm7
  mulss  %xmm0,%xmm7
  addss  %xmm7,%xmm2
  movss  %xmm2,(%r8,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L750
  jmp    L225
L53:
  mov    0x10(%rsp),%rax
  movss  D462(%rip),%xmm0
  movss  D421(%rip),%xmm1
  mov    0x5c(%rsp),%edi
  lea    (%rax,%r8,4),%rcx
  lea    (%rax,%r10,4),%rdx
  xor    %eax,%eax
L528:
  movss  (%rdx,%rax,4),%xmm5
  movss  (%rcx,%rax,4),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm5,%xmm7
  mulss  %xmm1,%xmm7
  mulss  %xmm0,%xmm5
  addss  %xmm7,%xmm2
  addss  %xmm5,%xmm2
  movss  %xmm2,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edi
  jg     L528
  jmp    L1072
L835:
  mov    0x10(%rsp),%rax
  mov    0x2c(%rsp),%esi
  movss  D462(%rip),%xmm0
  movss  D421(%rip),%xmm1
  mov    0x60(%rsp),%rdi
  lea    (%rax,%r8,4),%rcx
  lea    (%rax,%r10,4),%rdx
  xor    %eax,%eax
L906:
  movss  (%rcx,%rax,4),%xmm5
  movaps %xmm5,%xmm2
  mulss  %xmm0,%xmm2
  mulss  %xmm1,%xmm5
  addss  %xmm5,%xmm2
  movss  (%rdx,%rax,4),%xmm5
  mulss  %xmm0,%xmm5
  addss  %xmm5,%xmm2
  movss  %xmm2,(%rdi,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L906
  jmp    L246
L497:
  mov    0x5c(%rsp),%ecx
  xor    %eax,%eax
  xor    %esi,%esi
  jmp    L540
L643:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L318
L980:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L1077
L664:
  mov    %esi,%eax
  jmp    L13
L1041:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L214
L38:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L874
L9:
  mov    %edx,0x68(%rsp)
  movl   $0x3,0x58(%rsp)
  movl   $0x0,0x6c(%rsp)
  jmp    L1009
```

tool_calls: name: disassemble_data
arguments: label: D413
type_guessed: byte[4]
name: disassemble_data
arguments: label: D534
type_guessed: byte[4]
name: disassemble_data
arguments: label: D462
type_guessed: byte[16]
name: disassemble_data
arguments: label: D421
type_guessed: byte[16]

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

tool: {"D534": [0x00,0x00,0x00,0x3f]}

tool: {"D462": [0x00,0x00,0x40,0x3e,0x00,0x00,0x40,0x3e,0x00,0x00,0x40,0x3e,0x00,0x00,0x40,0x3e]}

tool: {"D421": [0x00,0x00,0x20,0x3f,0x00,0x00,0x20,0x3f,0x00,0x00,0x20,0x3f,0x00,0x00,0x20,0x3f]}

assistant: ```c
void gradient3Dx_float(float *I, int *sizeI, float *Ix) {
  int x, y, z;
  int xp, xn, yp, yn;
  int i;
  int indexn, indexc, indexp;
  float *Irow, *Islices;
  int nSlice;
  int offsetz, offset_slice;
  int slice_select = 0;
  int slice_select_p1 = 0;
  int slice_select_p2 = 0;
  const float smoothfilter[3] = {0.187500f, 0.625000f, 0.187500f};
  const float derivafilter[3] = {-0.5f, 0.0f, 0.5f};
  nSlice = sizeI[0] * sizeI[1];
  Islices = mallocf(4 * nSlice);
  Irow = mallocf(sizeI[0]);
  for (z = 0; z < sizeI[2]; z++) {
    offsetz = nSlice * z;
    offset_slice = nSlice * slice_select;
    for (y = 0; y < sizeI[1]; y++) {
      yn = ((y - 1) > (0) ? (y - 1) : (0));
      yp = ((y + 1) < (sizeI[1] - 1) ? (y + 1) : (sizeI[1] - 1));
      indexn = yn * sizeI[0] + offsetz;
      indexc = y * sizeI[0] + offsetz;
      indexp = yp * sizeI[0] + offsetz;
      for (x = 0; x < sizeI[0]; x++) {
        Irow[x] = smoothfilter[0] * I[indexn + x];
        Irow[x] += smoothfilter[1] * I[indexc + x];
        Irow[x] += smoothfilter[2] * I[indexp + x];
      }
      indexc = y * sizeI[0] + offset_slice;
      for (x = 0; x < sizeI[0]; x++) {
        xn = ((x - 1) > (0) ? (x - 1) : (0));
        xp = ((x + 1) < (sizeI[0] - 1) ? (x + 1) : (sizeI[0] - 1));
        Islices[indexc + x] = derivafilter[0] * Irow[xn] + derivafilter[1] * Irow[x] + derivafilter[2] * Irow[xp];
      }
    }
    if (z == 1) {
      indexn = slice_select_p1 * nSlice;
      indexc = slice_select_p1 * nSlice;
      indexp = slice_select * nSlice;
      for (i = 0; i < nSlice; i++) {
        Ix[i] = smoothfilter[0] * Islices[i + indexn] + smoothfilter[1] * Islices[i + indexc] + smoothfilter[2] * Islices[i + indexp];
      }
    } else if (z > 1) {
      indexn = slice_select_p2 * nSlice;
      indexc = slice_select_p1 * nSlice;
      indexp = slice_select * nSlice;
      offsetz = nSlice * (z - 1);
      for (i = 0; i < nSlice; i++) {
        Ix[offsetz + i] = smoothfilter[0] * Islices[i + indexn] + smoothfilter[1] * Islices[i + indexc] + smoothfilter[2] * Islices[i + indexp];
      }
    }
    if (z == (sizeI[2] - 1)) {
      indexn = slice_select_p1 * nSlice;
      indexc = slice_select * nSlice;
      indexp = slice_select * nSlice;
      offsetz = nSlice * z;
      for (i = 0; i < nSlice; i++) {
        Ix[offsetz + i] = smoothfilter[0] * Islices[i + indexn] + smoothfilter[1] * Islices[i + indexc] + smoothfilter[2] * Islices[i + indexp];
      }
    }
    slice_select_p2 = slice_select_p1;
    slice_select_p1 = slice_select;
    slice_select++;
    if (slice_select > 3) {
      slice_select = 0;
    }
  }
  free(Irow);
  free(Islices);
}
```