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

```asm
<vol_draw_cube_fill_value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %ecx,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x30(%rbp),%xmm0
  movss  D7(%rip),%xmm1
  divss  %xmm1,%xmm0
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <ceil@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x24(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L124
  mov    -0x4(%rbp),%eax
  sub    -0x24(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L108
L124:
  mov    -0x30(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L157
  mov    $0x1,%ecx
  jmp    L175
L157:
  mov    $0x2,%ecx
L175:
  mov    -0x4(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
L108:
  mov    -0x28(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L94
  mov    -0x4(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L56
L94:
  mov    -0x30(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L93
  mov    $0x1,%ecx
  jmp    L152
L93:
  mov    $0x2,%ecx
L152:
  mov    -0x4(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x10(%rbp)
L56:
  mov    -0x2c(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L10
  mov    -0x4(%rbp),%eax
  sub    -0x2c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L173
L10:
  mov    -0x30(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L87
  mov    $0x1,%ecx
  jmp    L109
L87:
  mov    $0x2,%ecx
L109:
  mov    -0x4(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0xc(%rbp)
L173:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x14(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L79
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x14(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
L79:
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x10(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L153
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x10(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
L153:
  cmpl   $0x0,-0x2c(%rbp)
  js     L65
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0xc(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L65
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0xc(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
L65:
  cmpl   $0x0,-0x4(%rbp)
  jle    L179
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x4(%rbp),%xmm1
  movss  -0x8(%rbp),%xmm0
  divss  %xmm1,%xmm0
  jmp    L115
L179:
  pxor   %xmm0,%xmm0
L115:
  movsd  D28(%rip),%xmm1
  mov    D27(%rip),%rax
  movaps %xmm0,%xmm2
  movq   %rax,%xmm0
  call   <linerp@plt>
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D7
datatype: byte[4]
name: extract_symbolic_data
arguments: data_label: D28
datatype: f64
name: extract_symbolic_data
arguments: data_label: D27
datatype: f64

tool: {"D7": [0x00,0x00,0x00,0x40]}

tool: D28: 0.9

tool: D27: 0.1

assistant: ```c
float vol_draw_cube_fill_value(int x, int y, int z, int size) {
  int center = ceil((float)size / 2.f);
  int xm, ym, zm;
  if (x < center)
    xm = center - x;
  else
    xm = x - (center - (size % 2 == 0 ? 1 : 2));
  if (y < center)
    ym = center - y;
  else
    ym = y - (center - (size % 2 == 0 ? 1 : 2));
  if (z < center)
    zm = center - z;
  else
    zm = z - (center - (size % 2 == 0 ? 1 : 2));
  float m = 0;
  if (m < xm)
    m = xm;
  if (m < ym)
    m = ym;
  if (z >= 0 && m < zm)
    m = zm;
  return linerp(0.1, 0.9, center <= 0 ? 0 : (m / (float)center));
}
```