user: What would the C source look like for the assembly code provided here:

```asm
<YUVtoHSV>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D131(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D30(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D43(%rip),%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D5(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x28(%rbp),%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D131(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D30(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x28(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  cvtss2sd %xmm1,%xmm1
  movsd  D43(%rip),%xmm3
  movapd %xmm1,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D174(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  cvtss2sd %xmm1,%xmm1
  movsd  D43(%rip),%xmm3
  movapd %xmm1,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D23(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D131(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D30(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x28(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D43(%rip),%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D20(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x8(%rbp),%xmm0
  comiss -0x10(%rbp),%xmm0
  jbe    L50
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
  jp     L50
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
L50:
  movss  -0x4(%rbp),%xmm0
  comiss -0x10(%rbp),%xmm0
  jbe    L177
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
  jp     L177
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
L177:
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L31
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L31
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
L31:
  movss  -0x14(%rbp),%xmm0
  comiss -0x4(%rbp),%xmm0
  jbe    L134
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L134
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
L134:
  movss  -0x10(%rbp),%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L138
  movss  -0x10(%rbp),%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jne    L138
  mov    -0x38(%rbp),%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  jmp    L6
L138:
  movss  -0x10(%rbp),%xmm0
  ucomiss -0xc(%rbp),%xmm0
  jp     L5
  movss  -0x10(%rbp),%xmm0
  ucomiss -0xc(%rbp),%xmm0
  jne    L5
  movss  -0x8(%rbp),%xmm0
  subss  -0x4(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  movaps %xmm1,%xmm2
  subss  -0x14(%rbp),%xmm2
  movaps %xmm0,%xmm1
  divss  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm0,%xmm1
  movss  D150(%rip),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x38(%rbp),%rax
  movss  %xmm0,(%rax)
  jmp    L6
L5:
  movss  -0x10(%rbp),%xmm0
  ucomiss -0x8(%rbp),%xmm0
  jp     L145
  movss  -0x10(%rbp),%xmm0
  ucomiss -0x8(%rbp),%xmm0
  jne    L145
  movss  -0x4(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  movaps %xmm1,%xmm2
  subss  -0x14(%rbp),%xmm2
  movaps %xmm0,%xmm1
  divss  %xmm2,%xmm1
  movss  D182(%rip),%xmm0
  addss  %xmm0,%xmm1
  movss  D150(%rip),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x38(%rbp),%rax
  movss  %xmm0,(%rax)
  jmp    L6
L145:
  movss  -0xc(%rbp),%xmm0
  subss  -0x8(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  movaps %xmm1,%xmm2
  subss  -0x14(%rbp),%xmm2
  movaps %xmm0,%xmm1
  divss  %xmm2,%xmm1
  movss  D60(%rip),%xmm0
  addss  %xmm0,%xmm1
  movss  D150(%rip),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x38(%rbp),%rax
  movss  %xmm0,(%rax)
L6:
  mov    -0x38(%rbp),%rax
  movss  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comiss %xmm1,%xmm0
  jbe    L160
  mov    -0x38(%rbp),%rax
  movss  (%rax),%xmm1
  movss  D39(%rip),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x38(%rbp),%rax
  movss  %xmm0,(%rax)
L160:
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
  jp     L199
  pxor   %xmm0,%xmm0
  ucomiss -0x10(%rbp),%xmm0
  jne    L199
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  jmp    L91
L199:
  movss  -0x10(%rbp),%xmm0
  subss  -0x14(%rbp),%xmm0
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  divss  -0x10(%rbp),%xmm0
  movss  %xmm0,(%rax)
L91:
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  movss  -0x10(%rbp),%xmm0
  movss  D209(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x4,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  nop
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D131
type_guessed: f64
name: disassemble_data
arguments: label: D30
type_guessed: f64
name: disassemble_data
arguments: label: D43
type_guessed: f64
name: disassemble_data
arguments: label: D5
type_guessed: f64
name: disassemble_data
arguments: label: D174
type_guessed: f64
name: disassemble_data
arguments: label: D23
type_guessed: f64
name: disassemble_data
arguments: label: D20
type_guessed: f64
name: disassemble_data
arguments: label: D150
type_guessed: byte[4]
name: disassemble_data
arguments: label: D182
type_guessed: byte[4]
name: disassemble_data
arguments: label: D60
type_guessed: byte[4]
name: disassemble_data
arguments: label: D39
type_guessed: f32
name: disassemble_data
arguments: label: D209
type_guessed: byte[4]

tool: D131: 16

tool: D30: 1.1644

tool: D43: 128

tool: D5: 1.596

tool: D174: 0.813

tool: D23: 0.391

tool: D20: 2.018

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

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

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

tool: D39: 360

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

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;
}
```