user: Translate the below assembly code into C programming language:

```asm
<drive>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  movss  %xmm0,-0x48(%rbp)
  movss  %xmm1,-0x4c(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x44(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  D55(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D9(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D47(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x34(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x44(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D55(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D9(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D47(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x30(%rbp)
  movss  -0x48(%rbp),%xmm0
  mulss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  mov    -0x34(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm4
  mulss  -0x4c(%rbp),%xmm4
  movaps %xmm4,%xmm0
  addss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  -0x48(%rbp),%xmm0
  mulss  -0x30(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  mov    -0x30(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm6
  mulss  -0x4c(%rbp),%xmm6
  movaps %xmm6,%xmm0
  addss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  -0x48(%rbp),%xmm0
  mulss  -0x30(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  mov    -0x30(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm1
  mulss  -0x4c(%rbp),%xmm1
  movss  -0x50(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  -0x48(%rbp),%xmm0
  mulss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  mov    -0x34(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm1
  mulss  -0x4c(%rbp),%xmm1
  movss  -0x50(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpFindSign@plt>
  movss  %xmm0,-0x50(%rbp)
  movss  -0x34(%rbp),%xmm0
  mov    -0x2c(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <helpFindMinAbsFloat@plt>
  mulss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  mov    -0x28(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpFindSign@plt>
  movss  %xmm0,-0x50(%rbp)
  movss  -0x30(%rbp),%xmm0
  mov    -0x28(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <helpFindMinAbsFloat@plt>
  mulss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  mov    -0x24(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpFindSign@plt>
  movss  %xmm0,-0x50(%rbp)
  movss  -0x30(%rbp),%xmm0
  mov    -0x24(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <helpFindMinAbsFloat@plt>
  mulss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x24(%rbp)
  mov    -0x20(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpFindSign@plt>
  movss  %xmm0,-0x50(%rbp)
  movss  -0x34(%rbp),%xmm0
  mov    -0x20(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <helpFindMinAbsFloat@plt>
  mulss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  D11(%rip),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x30(%rbp),%xmm0
  mov    -0x34(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <helpFindMaxAbsFloat@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x18(%rbp)
  movss  -0x1c(%rbp),%xmm0
  divss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x2c(%rbp),%xmm0
  mulss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x28(%rbp),%xmm0
  mulss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x24(%rbp),%xmm0
  mulss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x20(%rbp),%xmm0
  mulss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpRoundFloat@plt>
  mov    %eax,%esi
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpRoundFloat@plt>
  mov    %eax,%esi
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x8(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpRoundFloat@plt>
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  movd   %eax,%xmm0
  call   <helpRoundFloat@plt>
  mov    %eax,%esi
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D55
type_guessed: f64
name: read_data
arguments: data_tag: D9
type_guessed: f64
name: read_data
arguments: data_tag: D47
type_guessed: f64
name: read_data
arguments: data_tag: D11
type_guessed: f32
name: read_data
arguments: data_tag: D87
type_guessed: string
name: read_data
arguments: data_tag: D71
type_guessed: string
name: read_data
arguments: data_tag: D54
type_guessed: string
name: read_data
arguments: data_tag: D101
type_guessed: string

tool: D55: 45

tool: D9: 3.141592654

tool: D47: 180

tool: D11: 100

tool: D87: Scaled Power FL: %d


tool: D71: Scaled Power BL: %d


tool: D54: Scaled Power FR: %d


tool: D101: Scaled Power BR: %d


assistant: ```c
void drive(int angle, float powerRatio, float rotationRatio) {
  float maxPowFLBR = cos((45.0 - (float)angle) * 3.141592654 / 180.0);
  float maxPowFRBL = cos((45.0 + (float)angle) * 3.141592654 / 180.0);
  float powFL = (powerRatio * maxPowFLBR) + (rotationRatio * fabs(maxPowFLBR));
  float powBL = (powerRatio * maxPowFRBL) + (rotationRatio * fabs(maxPowFRBL));
  float powFR = (powerRatio * maxPowFRBL) - (rotationRatio * fabs(maxPowFRBL));
  float powBR = (powerRatio * maxPowFLBR) - (rotationRatio * fabs(maxPowFLBR));
  powFL = helpFindSign(powFL) * helpFindMinAbsFloat(powFL, maxPowFLBR);
  powBL = helpFindSign(powBL) * helpFindMinAbsFloat(powBL, maxPowFRBL);
  powFR = helpFindSign(powFR) * helpFindMinAbsFloat(powFR, maxPowFRBL);
  powBR = helpFindSign(powBR) * helpFindMinAbsFloat(powBR, maxPowFLBR);
  float maxRefPow = 100.0;
  float absHighestPow = helpFindMaxAbsFloat(maxPowFLBR, maxPowFRBL);
  float multiplier = maxRefPow / absHighestPow;
  float scaledPowFL = powFL * multiplier;
  float scaledPowBL = powBL * multiplier;
  float scaledPowFR = powFR * multiplier;
  float scaledPowBR = powBR * multiplier;
  printf("Scaled Power FL: %d\n", helpRoundFloat(scaledPowFL));
  printf("Scaled Power BL: %d\n", helpRoundFloat(scaledPowBL));
  printf("Scaled Power FR: %d\n", helpRoundFloat(scaledPowFR));
  printf("Scaled Power BR: %d\n", helpRoundFloat(scaledPowBR));
}
```