user: 请将以下的汇编代码转换成C语言代码：

```asm
<YUVtoHSV>:
  endbr64
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  mov    %rsi,%rax
  cvtss2sd 0x4(%rdi),%xmm0
  movsd  D119(%rip),%xmm4
  cvtss2sd (%rdi),%xmm1
  movsd  D22(%rip),%xmm5
  subsd  D107(%rip),%xmm1
  mulsd  D39(%rip),%xmm1
  cvtss2sd 0x8(%rdi),%xmm2
  subsd  %xmm4,%xmm0
  subsd  %xmm4,%xmm2
  movsd  D134(%rip),%xmm3
  mulsd  %xmm0,%xmm5
  mulsd  %xmm2,%xmm3
  movapd %xmm1,%xmm4
  mulsd  D91(%rip),%xmm2
  mulsd  D73(%rip),%xmm0
  subsd  %xmm5,%xmm4
  addsd  %xmm1,%xmm3
  subsd  %xmm2,%xmm4
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm3,%xmm3
  cvtsd2ss %xmm4,%xmm4
  movaps %xmm4,%xmm1
  cvtsd2ss %xmm0,%xmm0
  movaps %xmm0,%xmm7
  maxss  %xmm3,%xmm1
  movaps %xmm4,%xmm6
  minss  %xmm3,%xmm6
  maxss  %xmm1,%xmm7
  movaps %xmm7,%xmm1
  movaps %xmm0,%xmm7
  minss  %xmm6,%xmm7
  ucomiss %xmm1,%xmm7
  movaps %xmm7,%xmm6
  jp     L46
  jne    L46
  movl   $0x0,(%rdx)
  pxor   %xmm2,%xmm2
L56:
  ucomiss %xmm2,%xmm1
  jp     L10
  jne    L10
L5:
  divss  D14(%rip),%xmm1
  unpcklps %xmm1,%xmm2
  movlps %xmm2,0x4(%rdx)
  movss  %xmm3,(%rax)
  movss  %xmm4,0x4(%rax)
  movss  %xmm0,0x8(%rax)
  ret
  nopl   0x0(%rax)
L46:
  ucomiss %xmm3,%xmm1
  movaps %xmm1,%xmm2
  subss  %xmm6,%xmm2
  jp     L121
  jne    L121
  movaps %xmm4,%xmm5
  subss  %xmm0,%xmm5
  divss  %xmm2,%xmm5
  pxor   %xmm2,%xmm2
  addss  %xmm2,%xmm5
  mulss  D3(%rip),%xmm5
L126:
  comiss %xmm5,%xmm2
  jbe    L59
  addss  D110(%rip),%xmm5
L59:
  movss  %xmm5,(%rdx)
  jmp    L56
  nopl   0x0(%rax)
L10:
  movaps %xmm1,%xmm2
  subss  %xmm6,%xmm2
  divss  %xmm1,%xmm2
  jmp    L5
  nopl   (%rax)
L121:
  ucomiss %xmm4,%xmm1
  jp     L102
  jne    L102
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  divss  %xmm2,%xmm5
  pxor   %xmm2,%xmm2
  addss  D35(%rip),%xmm5
  mulss  D3(%rip),%xmm5
  jmp    L126
L102:
  movaps %xmm3,%xmm5
  subss  %xmm4,%xmm5
  divss  %xmm2,%xmm5
  pxor   %xmm2,%xmm2
  addss  D9(%rip),%xmm5
  mulss  D3(%rip),%xmm5
  jmp    L126
```

tool_calls: name: parse_data
arguments: data_label: D119
type: f64
name: parse_data
arguments: data_label: D22
type: f64
name: parse_data
arguments: data_label: D107
type: f64
name: parse_data
arguments: data_label: D39
type: f64
name: parse_data
arguments: data_label: D134
type: f64
name: parse_data
arguments: data_label: D91
type: f64
name: parse_data
arguments: data_label: D73
type: f64
name: parse_data
arguments: data_label: D14
type: byte[4]
name: parse_data
arguments: data_label: D3
type: byte[4]
name: parse_data
arguments: data_label: D110
type: f32
name: parse_data
arguments: data_label: D35
type: byte[4]
name: parse_data
arguments: data_label: D9
type: byte[4]

tool: D119: 128

tool: D22: 0.813

tool: D107: 16

tool: D39: 1.1644

tool: D134: 1.596

tool: D91: 0.391

tool: D73: 2.018

tool: {"D14": [0x00,0x00,0x7f,0x43]}

tool: {"D3": [0x00,0x00,0x70,0x42]}

tool: D110: 360

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

tool: {"D9": [0x00,0x00,0x80,0x40]}

assistant: ```c
void YUVtoHSV(float *yuv, float *rgb, float *hsv) {
  float red, green, blue;
  float rgbmin, rgbmax;
  red = 1.1644 * (yuv[0] - 16.0) + 1.596 * (yuv[2] - 128.0);
  green = 1.1644 * (yuv[0] - 16.0) - 0.813 * (yuv[1] - 128.0) - 0.391 * (yuv[2] - 128.0);
  blue = 1.1644 * (yuv[0] - 16.0) + 2.018 * (yuv[1] - 128.0);
  rgbmax = red;
  (rgbmax < green) && (rgbmax = green);
  (rgbmax < blue) && (rgbmax = blue);
  rgbmin = red;
  (rgbmin > green) && (rgbmin = green);
  (rgbmin > blue) && (rgbmin = blue);
  if (rgbmax == rgbmin) {
    hsv[0] = 0.0;
  } else if (rgbmax == red) {
    hsv[0] = 60 * (0 + (green - blue) / (rgbmax - rgbmin));
  } else if (rgbmax == green) {
    hsv[0] = 60 * (2 + (blue - red) / (rgbmax - rgbmin));
  } else {
    hsv[0] = 60 * (4 + (red - green) / (rgbmax - rgbmin));
  }
  if (hsv[0] < 0) {
    hsv[0] = hsv[0] + 360.0;
  }
  (rgbmax == 0) ? hsv[1] = 0 : (hsv[1] = (rgbmax - rgbmin) / rgbmax);
  hsv[2] = rgbmax / 255;
  rgb[0] = red;
  rgb[1] = green;
  rgb[2] = blue;
}
```